Function to compute the water vapor partial pressure for a given humidity ratio.
function pW_X extends Modelica.Icons.Function; input Modelica.Units.SI.MassFraction X_w(min = 0, max = 0.99999, nominal = 0.01) "Species concentration at dry bulb temperature"; input Modelica.Units.SI.Pressure p = 101325 "Total pressure"; output Modelica.Units.SI.Pressure p_w(displayUnit = "Pa") "Water vapor pressure"; end pW_X;
smoothOrder=99
and displayUnit
for pressure.
VaporPressure_X
to pW_X
.
RealInput
are obsolete in Modelica 3.0.