フィルターのクリア

py.CoolPro​p.CoolProp​.PropsSI not working

27 ビュー (過去 30 日間)
Maria Dias
Maria Dias 2020 年 5 月 14 日
コメント済み: Ting Liang 2021 年 3 月 18 日
Hello,
I'm working with CoolProp in Matlab. I have everything installed from Python, but when I introduce these expressions:
[v,e] = pyversion; system([e,' -m pip install --user -U CoolProp'])
py.CoolProp.CoolProp.PropsSI('T','P',100000,'Q',0,'Water')
it gives me this error:
Undefined variable "py" or class "py.CoolProp.CoolProp.PropsSI"
Last week this was working...
Some help?
Thank you.
  1 件のコメント
Bipul Krishna Saha
Bipul Krishna Saha 2020 年 6 月 10 日
Thanks its working now

サインインしてコメントする。

回答 (2 件)

Mustafa Anjrini
Mustafa Anjrini 2020 年 5 月 14 日
編集済み: Mustafa Anjrini 2020 年 5 月 15 日
hello
it has happened with me too since two days i think when the CoolProp updated itself automatically to 6.4.0.
the same error massage appears when i run the command.
need help too in this issue.
thank you.
  4 件のコメント
Sambhav Jain
Sambhav Jain 2020 年 7 月 2 日
@Maria Dias. Thank you so much it really works well.
Ting Liang
Ting Liang 2021 年 3 月 18 日
Hi, Maria,
Excuse me.
I am now using CoolProp in MATLAB and Simulink, it is to transfer temperature vector from Simulink(Simulink model, picture1) to MATLAB(Matlab model, picture2), and then call for CoolProp to calculate the thermal properties of air (Temperature range 80 - 300 K, Pressure 10 MPa, supercritical region), but every time when I run the whole simulink model, it always reported the error shown as picture3.
Could you please tell me what's the problems? How to deal with this problem?
Thanks, and looking forward to your reply.
Best regards

サインインしてコメントする。


Ben Adams
Ben Adams 2020 年 6 月 11 日
Hello--
It seems all versions of python/coolprop do not work in Matlab 2019b. For instance, matlab does not support python version 3.8 yet.
The versions that worked for me were Python 3.7.3, CoolProp 6.2.1, Matlab 2019b. Coolprop 6.4.0 did not work, nor did python 3.8.
  1 件のコメント
José A. Almendros-Ibáñez
José A. Almendros-Ibáñez 2020 年 7 月 31 日
For me is working under Matlab R2020a with Python 3.7.3. and CoolProp 6.4.0.
With Python 3.8 it does not work.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeStartup and Shutdown についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by