You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In some cases, calling the calc_individual_isoline method of the FluidPropertyDiagram returns a fluid property dict of empty arrays. This happens, because one of the _single_isoline methods updating the CoolProp state fails and continues to fail through all iterations along the isoline. Each iteration contains a try-except-clause, that just continues when a ValueError is thrown. In the cases described here, this can happen throughout the whole isoline. See the _single_isentropic method for example:
Something similar may have already come up with single isothermals, as their except-clause contains another try-except-block, using PropsSI to get better values for the state.update call. See below:
As discussed in the issue within the heatpumps repository, this problem could very well stem from compression into the vapor-liquid-region. I was not able to find a setup in which this working fluid did not produce the issue, no matter how low the temperature lift and even with superheating via an IHX. In any case, fluprodia should certainly give the user feedback when most or all CoolProp calls fail, as the way it is handled now, you have to have it fail in your own code and dig deep into fluprodia to even understand which method exactly fails. What do you think?
The text was updated successfully, but these errors were encountered:
This issue references issue jfreissmann/heatpumps#28.
In some cases, calling the
calc_individual_isoline
method of theFluidPropertyDiagram
returns a fluid property dict of empty arrays. This happens, because one of the_single_isoline
methods updating the CoolProp state fails and continues to fail through all iterations along the isoline. Each iteration contains atry
-except
-clause, that just continues when aValueError
is thrown. In the cases described here, this can happen throughout the whole isoline. See the_single_isentropic
method for example:Single Isentropic Method
Something similar may have already come up with single isothermals, as their
except
-clause contains anothertry
-except
-block, usingPropsSI
to get better values for thestate.update
call. See below:Single Isothermal Method
Below is an example code snippet to recreate the issue, including the Traceback I get:
Reproduce the Issue
Traceback
Requirements
As discussed in the issue within the
heatpumps
repository, this problem could very well stem from compression into the vapor-liquid-region. I was not able to find a setup in which this working fluid did not produce the issue, no matter how low the temperature lift and even with superheating via an IHX. In any case,fluprodia
should certainly give the user feedback when most or allCoolProp
calls fail, as the way it is handled now, you have to have it fail in your own code and dig deep intofluprodia
to even understand which method exactly fails. What do you think?The text was updated successfully, but these errors were encountered: