Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real, | intent(in) | :: | TDryBulb |
function GetDryAirEnthalpy(TDryBulb) result(DryAirEnthalpy)
!+ Return dry-air enthalpy given dry-bulb temperature.
!+ Reference:
!+ ASHRAE Handbook - Fundamentals (2017) ch. 1 eqn 28
real, intent(in) :: TDryBulb
!+ Dry-bulb temperature in °F [IP] or °C [SI]
real :: DryAirEnthalpy
!+ Dry air enthalpy in Btu lb⁻¹ [IP] or J kg⁻¹ [SI]
if (isIP()) then
DryAirEnthalpy = 0.240 * TDryBulb
else
DryAirEnthalpy = 1006 * TDryBulb
end if
end function GetDryAirEnthalpy