Return dew-point temperature given dry-bulb temperature, wet-bulb temperature, and pressure. References: ASHRAE Handbook - Fundamentals (2017) ch. 1
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real, | intent(in) | :: | TDryBulb | Dry-bulb temperature in °F [IP] or °C [SI] |
||
real, | intent(in) | :: | TWetBulb | Wet-bulb temperature in °F [IP] or °C [SI] |
||
real, | intent(in) | :: | Pressure | Atmospheric pressure in Psi [IP] or Pa [SI] |
Dew-point temperature in °F [IP] or °C [SI]
function GetTDewPointFromTWetBulb(TDryBulb, TWetBulb, Pressure) result(TDewPoint)
!+ Return dew-point temperature given dry-bulb temperature, wet-bulb temperature, and pressure.
!+ References:
!+ ASHRAE Handbook - Fundamentals (2017) ch. 1
real, intent(in) :: TDryBulb
!+ Dry-bulb temperature in °F [IP] or °C [SI]
real, intent(in) :: TWetBulb
!+ Wet-bulb temperature in °F [IP] or °C [SI]
real, intent(in) :: Pressure
!+ Atmospheric pressure in Psi [IP] or Pa [SI]
real :: TDewPoint
!+ Dew-point temperature in °F [IP] or °C [SI]
real :: HumRatio
!+ Humidity ratio in lb_H₂O lb_Air⁻¹ [IP] or kg_H₂O kg_Air⁻¹ [SI]
if (TWetBulb > TDryBulb) then
error stop "Error: wet bulb temperature is above dry bulb temperature"
end if
HumRatio = GetHumRatioFromTWetBulb(TDryBulb, TWetBulb, Pressure)
TDewPoint = GetTDewPointFromHumRatio(TDryBulb, HumRatio, Pressure)
end function GetTDewPointFromTWetBulb