functionphi_pTX
Relative humidity for given pressure, dry bulb temperature and moisture mass fraction
Extends from Modelica.Icons.Function (Icon for functions).
Information
Relative humidity of air for given pressure, temperature and water vapor mass fraction.
Note that the water vapor mass fraction must be in kg/kg total air, and not dry air.
Inputs
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Units.SI.Pressure | p | Absolute pressure of the medium | |
| Modelica.Units.SI.Temperature | T | Dry bulb temperature | |
| Modelica.Units.SI.MassFraction | X_w | Water vapor mass fraction per unit mass total air |
Outputs
| Type | Name | Default | Description |
|---|---|---|---|
| Real | phi | Relative humidity |
Revisions
-
April 4, 2019 by Filip Jorissen:
Added inverse annotation for #1110. -
November 17, 2014 by Michael Wetter:
Removed test that constrains the saturation pressure to be lower thanp. I do not see any numerical problems without this test. -
November 13, 2014 by Michael Wetter:
First implementation.