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
IF97 Backend reverse calculation using (P, S) delivering erroneous values when state point is on the saturation
Reporting this issue for a user of CoolProp with Mathcad and SMath interfaces.
Any pressure below the critical pressure can be used,
Any Output parameter will give the same issue
Expected behavior: Liquid saturation point values returned.
Actual behavior:Vapor saturation point values returned. "Phase" returns "gas_phase" erroneously.
Versions
CoolProp Version: Latest (6.6.0) Operating System and Version: Windows 10 Access Method: Mathcad/Python/SMath
Additional Information
Probably occurring at the saturated vapor point as well, but since the sat. vapor values are returned, it is not noticeable.
Probably the same for reverse calculations using (P, H).
Tracked it down so far to phase determination on the saturation curve, not sure yet if the issue is in the CoolProp backend routine, or in IF97 itself. A phase determination function from IF97.h does get called to make this determination.
The text was updated successfully, but these errors were encountered:
@ibell Having trouble figuring this one out. IF97.h is fine. Backend makes sense, but won't return the right phase flag on the saturation boundary. I always get confused on your CoolProp convention for points exactly on the saturation curve and recall it was not intuitive to me. Are these points considered part of the 2-phase region (with Q = 1 or 0) or are they considered part of the Liquid or Vapor 1-phase region?
In CoolProp, Q=1 and Q=0 are considered to be two-phase states because the bulk phase is in equilibrium with an infinitely small amount of the incipient phase, and infinitely small is greater than zero :)
Description
IF97 Backend reverse calculation using (P, S) delivering erroneous values when state point is on the saturation
Reporting this issue for a user of CoolProp with Mathcad and SMath interfaces.
Steps to Reproduce
<p>
,"S",<SsatL @ p>
,"IF97::H2O")Expected behavior: Liquid saturation point values returned.
Actual behavior: Vapor saturation point values returned. "Phase" returns "gas_phase" erroneously.
Versions
CoolProp Version: Latest (6.6.0)
Operating System and Version: Windows 10
Access Method: Mathcad/Python/SMath
Additional Information
The text was updated successfully, but these errors were encountered: