jjgomera / iapws

python libray for IAPWS standard calculation of water and steam properties
GNU General Public License v3.0
170 stars 64 forks source link

Issue with calculation in iapws97 #71

Closed iha4TW closed 9 months ago

iha4TW commented 9 months ago

Hello,

I would like to report an error in the calculation in the iapws97.

It seems like the function iapws.iapws97.IAPWS97_Ph does not return the correct "x" value when entering with p = 18 MPa, h = (h_l_sat + h_s_sat)*0.5

error.txt

jjgomera commented 9 months ago

Thanks for report, a elusive bug in a tiny region near critical zone between region 3 and 4. Check now if it works for you