Closed yiping-git closed 11 months ago
Hi, the principal difference is the units of density returned values, iapws return kg/m3, the other library are g/cm3. Furthermore, for saturated stated don't use the P-T as pair input parameters, use the T-x pair input parameters.
liq_sat = IAPWS97(T=t, x=0) vap_sat = IAPWS97(T=t, x=1)
I can't check right now because I don't have a PC but probably that's is the reason of tiny decimal deviation between both libraries
You are right, the problem is the input of the saturated state
water = iapws.iapws97.IAPWS97(T=t, P=sat_vp)
is problematic
liq_sat = iapws.iapws97.IAPWS97(T=t, x=0)
works
the result:
#T(K) P(MPa) kg/m^3
373.16 0.1014541751857905 958.3470966887131
383.16 0.14342413263923512 950.9420658011924
393.16 0.19872832347140001 943.0976170897111
403.16 0.27034044624348613 934.8231741477138
413.16 0.36160324519225406 926.1231396954009
423.16 0.476229003905304 916.9972445842704
433.16 0.6182964190891547 907.4407368057052
443.16 0.7922446222307992 897.4444319746991
453.16 1.0028651881659896 886.9946352680865
463.16 1.2552930243031988 876.0729346948829
473.16 1.554997088684903 864.6558537877045
483.16 1.9077719565670752 852.7143345086881
493.16 2.319731363530238 840.2129933441278
503.16 2.79730502274571 827.1090491793891
513.16 3.347240277790728 813.3507541339516
523.16 3.976610557728294 798.8750608132859
Thank you!
Hi,
This work helped me a lot, thank you!
But I met a problem when calculating the density of water under saturated vapor pressure:
the output is:
the density values looks strange, as a reference, here are values calculated with the CHNOSZ R package: