Hello,
I tried to create a p-T diagram for CO2 similarly to the one
for H2O and shown here:
somewhere 1/3 down from the top of the page.
A working code is gracefully supplied, but when I replace "Water" by "CO2" in line 7 I get the following (relevant) error messages:
File "C:\Users\faust\OneDrive\Documents\Programs\Python\supercritical.py", line 28, in <module>
TT.append(Water.melting_line(CP.iT, CP.iP, p))
File "CoolProp\AbstractState.pyx", line 471, in CoolProp.CoolProp.AbstractState.melting_line
File "CoolProp\AbstractState.pyx", line 473, in CoolProp.CoolProp.AbstractState.melting_line
ValueError: unable to calculate melting line T(p) for polynomial_in_Theta curve for p=611.657; bounds are 517950,8.22736e+08 Pa
I thought I should bring the p-value down to 611.657, but that didn't work either.
I'm particularly interested on the supercritical region.
Thanks a lot.
Fausto