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
HAPropsSI("D", "T", 300u"K", "P", 101325u"Pa", "W", 0.01)returns
287.12981890840064 kg m^-3instead of287.12981890840064 KThe 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 regularPropsSIfunction (with units of kg m^-3), but it's used for dew point temperature inHAPropsSI(with units of K). The correct units are displayed when using"Tdp"instead:HAPropsSI("Tdp", "T", 300u"K", "P", 101325u"Pa", "W", 0.01)returns287.12981890840064 K