Link: Simulink and Refprop

3 次查看(过去 30 天)
Rabih Al haddad
Rabih Al haddad 2021-9-27
回答: Florian 2024-2-28
I want to read the thermal properties of a fluid on Simulink using REFPROP. So far, I cannot make it work.
I already used the refpropm function on Matlab but I dont know if it can be used in Simulink.
Anyone here used managed to use Refprop in Simulink?
  3 个评论
Yifeng Tang
Yifeng Tang 2022-7-29
@Esteban Felipe Please consider copying your comment into the Answer section, since you've solved the issue :-)

请先登录,再进行评论。

回答(1 个)

Florian
Florian 2024-2-28
Add to your matlab code:
coder.extrinsic('refpropm')
another thing is you have to declare your variables for e.g.
x = double(0);
then it should work fine

类别

Help CenterFile Exchange 中查找有关 Thermal Liquid Library 的更多信息

产品


版本

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by