CoolProp.jl
CoolProp.jl copied to clipboard
Wrong Units on HAPropsSI
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
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.