documentation

fromiapwsimportIAPWS97sat_steam=IAPWS97(P=1,x=1)#saturated steam with known Psat_liquid=IAPWS97(T=370,x=0)#saturated liquid with known Tsteam=IAPWS97(P=2.5,T=500)#steam with known P and Tprint(sat_steam.h,sat_liquid.h,steam.h)#calculated enthalpies

IAPWS-95

fromiapwsimportIAPWS95sat_steam=IAPWS95(P=1,x=1)#saturated steam with known Psat_liquid=IAPWS95(T=370,x=0)#saturated liquid with known Tsteam=IAPWS95(P=2.5,T=500)#steam with known P and Tprint(sat_steam.h,sat_liquid.h,steam.h)#calculated enthalpies

IAPWS-05 for Heavy water

fromiapwsimportD2Osat_liquid=D2O(T=370,x=0)#saturated liquid with known Tprint(sat_liquid.h)#calculated enthalpy

I’ve tried to test all code and use all values for computer verification the standards give, but anyway the code can have hidden problem.
For any suggestions, comments, bugs … you can usage the github issue section, or contact directly with me at email.