Learn R Programming

psychrolib (version 2.5.2)

GetVapPresFromHumRatio: Return vapor pressure given humidity ratio and pressure.

Description

Return vapor pressure given humidity ratio and pressure.

Usage

GetVapPresFromHumRatio(HumRatio, Pressure)

Arguments

HumRatio

A numeric vector of humidity ratio in lb_H2O lb_Air-1 [IP] or kg_H2O kg_Air-1 [SI]

Pressure

A numeric vector of atmospheric pressure in Psi [IP] or Pa [SI]

Value

A numeric vector of partial pressure of water vapor in moist air in Psi [IP] or Pa [SI]

References

ASHRAE Handbook - Fundamentals (2017) ch. 1 eqn 20 solved for pw

Examples

Run this code
# NOT RUN {
SetUnitSystem("IP")
GetVapPresFromHumRatio(seq(0.02, 0.03, 0.001), 14.175)

SetUnitSystem("SI")
GetVapPresFromHumRatio(seq(0.02, 0.03, 0.001), 95461)

# }

Run the code above in your browser using DataLab