CoolProp icon indicating copy to clipboard operation
CoolProp copied to clipboard

Error with calculate R1233zd(E) properties tables for Simscape Matlab using CoolProp

Open AdamS-mkws opened this issue 8 months ago • 3 comments

Hi,

Description: I'm trying to get a Fluid Tables properties for R1233zd(E) fluid so I can use it in Simscape Matlab. It is about two-phase properties for use as a refrigerant in Simscape.

MATLAB command line: FluidTables = twoPhaseFluidTables([118,550],[0.050,10],25,25,60,'R1233zd(E)','py.CoolProp.CoolProp.PropsSI')

Error:

Error using twoPhaseFluidTables>coolpropSaturationProperties (line 849)
CoolProp failed to return fluid properties at P = 0.05 MPa, Q = 0.

Error in twoPhaseFluidTables>@(p,q)coolpropSaturationProperties(p,q,substance,coolpropFun) (line 775)
saturationProperties = @(p, q) coolpropSaturationProperties(p, q, substance, coolpropFun);
                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Error in twoPhaseFluidTables (line 132)
            = saturationProperties(p(j), 0);
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Error in VCS_Comp_teststand_001_001_Config002_testFluidProperties (line 197)
FluidTables = twoPhaseFluidTables([118,550],[0.050,10],25,25,60,'R1233zd(E)','py.CoolProp.CoolProp.PropsSI')
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Caused by:
    Error using CoolProp/CoolProp.__Props_err2 (line 358)
    Python Error: ValueError: Thermal conductivity model is not available for this fluid : PropsSI("L","P",50000,"Q",0,"R1233zd(E)")

Is there a way to deal with this error without having to use Refprop?

AdamS-mkws avatar Apr 08 '25 09:04 AdamS-mkws

Someone needs to implement a transport property model for this fluid. There are several models in the literature now that would be a good choice. See for instance the entropy scaling models from Yang and co-authors (I'm a coauthor too)

ibell avatar Apr 08 '25 12:04 ibell

Thanks for your answer, @ibell Could you please advise me how this could be implemented?

AdamS-mkws avatar Apr 09 '25 07:04 AdamS-mkws

I would recommend this model: https://pubs.acs.org/doi/full/10.1021/acs.iecr.1c02154?casa_token=3Zbc6ZhcbQ8AAAAA%3Ae6V3QjoegYoOjwnIy24J8p_ipJi58bphNrSDn-zZLluOjRcMzbSPkAClsSsFGpYSWR-iSELdUnj_iZNh

ibell avatar Apr 10 '25 23:04 ibell