Closed JWDobken closed 2 years ago
Hi, IAPWS97 don't support input pair P-v, use IAPWS95 instead:
>>> from iapws import IAPWS95
>>> st0 = IAPWS95(P=0.1, x=0.5)
>>> st1 = IAPWS95(P=0.15, v=st0.v)
/home/jjgomera/Programacion/iapws/iapws/iapws95.py:734: RuntimeWarning: invalid value encountered in log
Ps = self.R*T*rhol*rhog/(rhol-rhog)*(K+log(rhol/rhog))
/home/jjgomera/Programacion/iapws/iapws/iapws95.py:736: RuntimeWarning: invalid value encountered in log
Jl*(1/rhog-1/rhol)-log(rhol/rhog)-K,
>>> st1.T
384.4993788995694
Let's say I heat a closed volume from 1 bar to 1.5 bar:
How can I determine state 1 from the specific volume?