CoolProp / CoolProp.jl

A Julia wrapper for CoolProp, offering access to thermodynamic properties for fluids and mixtures.
http://www.coolprop.org
Other
32 stars 15 forks source link

Wrong Units on HAPropsSI #39

Open aksdyall opened 5 months ago

aksdyall commented 5 months ago

HAPropsSI("D", "T", 300u"K", "P", 101325u"Pa", "W", 0.01)

returns 287.12981890840064 kg m^-3 instead of 287.12981890840064 K

The number is right, but the units are wrong. I think it might have something to do with the fact that "D" is used for density in the regular PropsSI function (with units of kg m^-3), but it's used for dew point temperature in HAPropsSI (with units of K). The correct units are displayed when using "Tdp" instead:

HAPropsSI("Tdp", "T", 300u"K", "P", 101325u"Pa", "W", 0.01) returns 287.12981890840064 K

barche commented 5 months ago

Hi, this should be fixed in the master branch now. I'll wait a little before tagging a release in case this causes unforeseen problems.