I am trying to use matlab with refprop, but it shows [SETUP error 101] error in opening file for component # 1; filename = (C:\Program Files (x86)\REFP​ROP\fluids​\fluid.fld​).

21 ビュー (過去 30 日間)
fluid='cyclopentane'
T1=348.15;
P1=refpropm('P','T',T1,'Q',1,'fluid');
  2 件のコメント
Junyuan Jiao
Junyuan Jiao 2022 年 5 月 4 日
at third row, the two quotation marks are needn't, After I removed the quotes he still showed the problem, just the fluid in the prompt changed to cyclopentane.

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

採用された回答

nick
nick 2023 年 10 月 6 日
編集済み: nick 2023 年 11 月 17 日
Hi Junyuan Jiao,
I understand that you are facing an issue related to using REFPROP with MATLAB R2022a.
As of REFPROP 10, it is no longer supported with MATLAB. Since the documentation of REFPROP was updated 2 years ago, I assume that since MATLAB R2021a, the support has been withdrawn. You may refer to https://github.com/usnistgov/REFPROP-wrappers/tree/master/wrappers/MATLAB for more information.
Since the only interface that is supported between REFPROP and MATLAB is python, you can configure the system to use python modules in MATLAB by following this link: https://www.mathworks.com/help/matlab/matlab_external/install-supported-python-implementation.html .
Hope it helps,
Regards,
Neelanshu

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeCall Python from MATLAB についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by