Link: Simulink and Refprop

6 Ansichten (letzte 30 Tage)
Rabih Al haddad
Rabih Al haddad am 27 Sep. 2021
Beantwortet: Florian am 28 Feb. 2024
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 Kommentare
Richard Rangel Alarcón
Richard Rangel Alarcón am 5 Jul. 2022
This works fine!!
Yifeng Tang
Yifeng Tang am 29 Jul. 2022
@Esteban Felipe Please consider copying your comment into the Answer section, since you've solved the issue :-)

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Florian
Florian am 28 Feb. 2024
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

Kategorien

Mehr zu Thermal Liquid Library finden Sie in Help Center und File Exchange

Produkte


Version

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by