CoolProp.jl icon indicating copy to clipboard operation
CoolProp.jl copied to clipboard

Wrong Units on HAPropsSI

Open aksdyall opened this issue 10 months ago • 1 comments

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

aksdyall avatar Mar 28 '24 17:03 aksdyall

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.

barche avatar Mar 31 '24 18:03 barche