Function to compute the water vapor partial pressure for a given humidity ratio.
function pW_X extends Modelica.Icons.Function; input Modelica.SIunits.MassFraction X_w(min = 0, max = 0.99999, nominal = 0.01) "Species concentration at dry bulb temperature"; input Modelica.SIunits.Pressure p = 101325 "Total pressure"; output Modelica.SIunits.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.