Link: Simulink and Refprop

조회 수: 6 (최근 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
Richard Rangel Alarcón
Richard Rangel Alarcón 2022년 7월 5일
This works fine!!
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