Package with psychrometric functions
This package contains functions for psychrometric calculations.
The nomenclature used in this package is described at Buildings.UsersGuide.Conventions.Extends from Modelica.Icons.Package (Icon for standard packages).
Name | Description |
---|---|
TDewPoi_pW | Function to compute the water vapor partial pressure for a given dew point temperature of moist air |
TDewPoi_pW_amb | Function to compute the dew point temperature of moist air for a given water vapor partial pressure |
X_pSatpphi | Humidity ratio for given water vapor pressure |
X_pW | Humidity ratio for given water vapor pressure |
pW_TDewPoi | Function to compute the water vapor partial pressure for a given dew point temperature of moist air |
pW_TDewPoi_amb | Function to compute the water vapor partial pressure for a given dew point temperature of moist air |
pW_X | Water vapor pressure for given humidity ratio |
saturationPressure | Saturation curve valid for 223.16 <= T <= 373.16 (and slightly outside with less accuracy) |
saturationPressureLiquid | Return saturation pressure of water as a function of temperature T in the range of 273.16 to 373.16 K |
sublimationPressureIce | Return sublimation pressure of water as a function of temperature T between 190 and 273.16 K |
Examples | Collection of models that illustrate model use and test models |
BaseClasses | Package with base classes for Buildings.Utilities.Psychrometrics.Functions |
Internal | Solve f(x, data) for x with given f |
Function to compute the water vapor partial pressure for a given dew point temperature of moist air
Dew point temperature calculation for moist air above freezing temperature.
The correlation used in this model is valid for dew point temperatures between
0 degC
and 200 degC
. It is the correlation from 2005
ASHRAE Handbook, p. 6.2. In an earlier version of this model, the equation from
Peppers has been used, but this equation yielded about 15 Kelvin lower dew point
temperatures.
Extends from Modelica.Icons.Function (Icon for functions).
Type | Name | Default | Description |
---|---|---|---|
Pressure | p_w | Water vapor partial pressure [Pa] |
Type | Name | Description |
---|---|---|
Temperature | T | Dew point temperature [K] |
Function to compute the dew point temperature of moist air for a given water vapor partial pressure
Dew point temperature calculation for moist air between 0 degC and 30 degC with partial pressure of water vapor as an input.
The correlation used in this model is valid for dew point temperatures between
0 degC
and 30 degC
. It is an approximation to the correlation from 2005
ASHRAE Handbook, p. 6.2, which is valid in a wider range of temperatures and implemented
in
Buildings.Utilities.Psychrometrics.Functions.pW_TDewPoi.
The approximation error of this simplified function is below 5% for a
temperature of 0 degC
to 30 degC
.
The benefit of this simpler function is that it can be inverted analytically,
whereas the other function requires a numerical solution.
Extends from Buildings.Utilities.Psychrometrics.Functions.BaseClasses.pW_TDewPoi_amb (Partial function to compute the water vapor partial pressure for a given dew point temperature of moist air and its inverse).
Type | Name | Default | Description |
---|---|---|---|
Pressure | p_w | Water vapor partial pressure [Pa] |
Type | Name | Description |
---|---|---|
Temperature | T | Dew point temperature [K] |
Humidity ratio for given water vapor pressure
Function to compute the water vapor concentration based on saturation pressure, absolute pressure and relative humidity.
Extends from Modelica.Icons.Function (Icon for functions).
Type | Name | Default | Description |
---|---|---|---|
AbsolutePressure | pSat | Saturation pressure [Pa] | |
Pressure | p | Pressure of the fluid [Pa] | |
Real | phi | Relative humidity |
Type | Name | Description |
---|---|---|
MassFraction | X_w | Water vapor concentration per total mass of air [1] |
Humidity ratio for given water vapor pressure
Function to compute the humidity ratio for a given water vapor partial pressure.
Extends from Modelica.Icons.Function (Icon for functions).
Type | Name | Default | Description |
---|---|---|---|
Pressure | p_w | Water vapor pressure [Pa] | |
Pressure | p | 101325 | Total pressure [Pa] |
Type | Name | Description |
---|---|---|
MassFraction | X_w | Species concentration at dry bulb temperature [1] |
Function to compute the water vapor partial pressure for a given dew point temperature of moist air
Dew point temperature calculation for moist air above freezing temperature.
The correlation used in this model is valid for dew point temperatures between
0 degC
and 200 degC
. It is the correlation from 2005
ASHRAE Handbook, p. 6.2. In an earlier version of this model, the equation from
Peppers has been used, but this equation yielded about 15 Kelvin lower dew point
temperatures.
Extends from Modelica.Icons.Function (Icon for functions).
Type | Name | Default | Description |
---|---|---|---|
Temperature | T | Dew point temperature [K] |
Type | Name | Description |
---|---|---|
Pressure | p_w | Water vapor partial pressure [Pa] |
Function to compute the water vapor partial pressure for a given dew point temperature of moist air
Dew point temperature calculation for moist air between 0 degC and 30 degC.
The correlation used in this model is valid for dew point temperatures between
0 degC
and 30 degC
. It is an approximation to the correlation from 2005
ASHRAE Handbook, p. 6.2, which is valid in a wider range of temperatures and implemented
in
Buildings.Utilities.Psychrometrics.Functions.pW_TDewPoi.
The approximation error of this simplified function is below 5% for a
temperature of 0 degC
to 30 degC
.
The benefit of this simpler function is that it can be inverted analytically,
whereas the other function requires a numerical solution.
Extends from Buildings.Utilities.Psychrometrics.Functions.BaseClasses.pW_TDewPoi_amb (Partial function to compute the water vapor partial pressure for a given dew point temperature of moist air and its inverse).
Type | Name | Default | Description |
---|---|---|---|
Temperature | T | Dew point temperature [K] |
Type | Name | Description |
---|---|---|
Pressure | p_w | Water vapor partial pressure [Pa] |
Water vapor pressure for given humidity ratio
Function to compute the water vapor partial pressure for a given humidity ratio.
Extends from Modelica.Icons.Function (Icon for functions).
Type | Name | Default | Description |
---|---|---|---|
MassFraction | X_w | Species concentration at dry bulb temperature [1] | |
Pressure | p | 101325 | Total pressure [Pa] |
Type | Name | Description |
---|---|---|
Pressure | p_w | Water vapor pressure [Pa] |
Saturation curve valid for 223.16 <= T <= 373.16 (and slightly outside with less accuracy)
Saturation pressure of water, computed from temperature, according to Wagner et al. (1993). The range of validity is between 190 and 373.16 Kelvin.
Wagner W., A. Saul, A. Pruss. International equations for the pressure along the melting and along the sublimation curve of ordinary water substance, equation 3.5. 1993. http://www.nist.gov/data/PDFfiles/jpcrd477.pdf.
Extends from Modelica.Icons.Function (Icon for functions).
Type | Name | Default | Description |
---|---|---|---|
Temperature | TSat | Saturation temperature [K] |
Type | Name | Description |
---|---|---|
AbsolutePressure | pSat | Saturation pressure [Pa] |
Return saturation pressure of water as a function of temperature T in the range of 273.16 to 373.16 K
Saturation pressure of water above the triple point temperature computed from temperature. The range of validity is between 273.16 and 373.16 Kelvin.
Extends from Modelica.Icons.Function (Icon for functions).
Type | Name | Default | Description |
---|---|---|---|
Temperature | TSat | Saturation temperature [K] |
Type | Name | Description |
---|---|---|
AbsolutePressure | pSat | Saturation pressure [Pa] |
Return sublimation pressure of water as a function of temperature T between 190 and 273.16 K
Sublimation pressure of water below the triple point temperature, computed from temperature, according to Wagner et al. (1993). The range of validity is between 190 and 273.16 Kelvin.
Wagner W., A. Saul, A. Pruss. International equations for the pressure along the melting and along the sublimation curve of ordinary water substance, equation 3.5. 1993. http://www.nist.gov/data/PDFfiles/jpcrd477.pdf.
Extends from Modelica.Icons.Function (Icon for functions).
Type | Name | Default | Description |
---|---|---|---|
Temperature | TSat | Saturation temperature [K] |
Type | Name | Description |
---|---|---|
AbsolutePressure | pSat | Saturation pressure [Pa] |