Buildings.Utilities.Psychrometrics.Functions
Package with psychrometric functions
Information
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).
Package Content
Name | Description |
---|---|
Internal | Solve f(x, data) for x with given f |
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 |
density_pTX | Density of air as a function of pressure, temperature and species concentration |
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 |
phi_pTX | Relative humidity for given pressure, dry bulb temperature and moisture mass fraction |
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 |
Buildings.Utilities.Psychrometrics.Functions.TDewPoi_pW
Function to compute the water vapor partial pressure for a given dew point temperature of moist air
Information
Dew point temperature calculation for moist air above freezing temperature.
The correlation used in this model is valid for dew point temperatures between 0°C and 200°C. 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).
Inputs
Type | Name | Default | Description |
---|---|---|---|
Pressure | p_w | Water vapor partial pressure [Pa] |
Outputs
Type | Name | Description |
---|---|---|
Temperature | T | Dew point temperature [K] |
Modelica definition
Buildings.Utilities.Psychrometrics.Functions.TDewPoi_pW_amb
Function to compute the dew point temperature of moist air for a given water vapor partial pressure
Information
Dew point temperature calculation for moist air between 0°C and 30°C with partial pressure of water vapor as an input.
The correlation used in this model is valid for dew point temperatures between 0°C and 30°C. 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°C to 30°C. The benefit of this simpler function is that it can be inverted analytically, whereas the other function requires a numerical solution.
Extends from Modelica.Icons.Function (Icon for functions).
Inputs
Type | Name | Default | Description |
---|---|---|---|
Pressure | p_w | Water vapor partial pressure [Pa] |
Outputs
Type | Name | Description |
---|---|---|
Temperature | T | Dew point temperature [K] |
Modelica definition
Buildings.Utilities.Psychrometrics.Functions.X_pSatpphi
Humidity ratio for given water vapor pressure
Information
Function to compute the water vapor concentration based on saturation pressure, absolute pressure and relative humidity.
Extends from Modelica.Icons.Function (Icon for functions).
Inputs
Type | Name | Default | Description |
---|---|---|---|
AbsolutePressure | pSat | Saturation pressure [Pa] | |
Pressure | p | Pressure of the fluid [Pa] | |
Real | phi | Relative humidity |
Outputs
Type | Name | Description |
---|---|---|
MassFraction | X_w | Water vapor concentration per total mass of air [1] |
Modelica definition
Buildings.Utilities.Psychrometrics.Functions.X_pW
Humidity ratio for given water vapor pressure
Information
Function to compute the humidity ratio for a given water vapor partial pressure.
Extends from Modelica.Icons.Function (Icon for functions).
Inputs
Type | Name | Default | Description |
---|---|---|---|
Pressure | p_w | Water vapor pressure [Pa] | |
Pressure | p | 101325 | Total pressure [Pa] |
Outputs
Type | Name | Description |
---|---|---|
MassFraction | X_w | Species concentration at dry bulb temperature [1] |
Modelica definition
Buildings.Utilities.Psychrometrics.Functions.density_pTX
Density of air as a function of pressure, temperature and species concentration
Information
Function to compute the density of moist air for given pressure, temperature and water vapor mass fraction.
Note that the water vapor mass fraction is in kg/kg total air.
Extends from Modelica.Icons.Function (Icon for functions).
Inputs
Type | Name | Default | Description |
---|---|---|---|
Pressure | p | Absolute pressure of the medium [Pa] | |
Temperature | T | Dry bulb temperature [K] | |
MassFraction | X_w | Water vapor mass fraction per unit mass total air [1] |
Outputs
Type | Name | Description |
---|---|---|
Density | d | Mass density [kg/m3] |
Modelica definition
Buildings.Utilities.Psychrometrics.Functions.pW_TDewPoi
Function to compute the water vapor partial pressure for a given dew point temperature of moist air
Information
Dew point temperature calculation for moist air above freezing temperature.
The correlation used in this model is valid for dew point temperatures between 0°C and 200°C. 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).
Inputs
Type | Name | Default | Description |
---|---|---|---|
Temperature | T | Dew point temperature [K] |
Outputs
Type | Name | Description |
---|---|---|
Pressure | p_w | Water vapor partial pressure [Pa] |
Modelica definition
Buildings.Utilities.Psychrometrics.Functions.pW_TDewPoi_amb
Function to compute the water vapor partial pressure for a given dew point temperature of moist air
Information
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°C and 30°C. 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°C to 30°C. The benefit of this simpler function is that it can be inverted analytically, whereas the other function requires a numerical solution.
Extends from Modelica.Icons.Function (Icon for functions).
Inputs
Type | Name | Default | Description |
---|---|---|---|
Temperature | T | Dew point temperature [K] |
Outputs
Type | Name | Description |
---|---|---|
Pressure | p_w | Water vapor partial pressure [Pa] |
Modelica definition
Buildings.Utilities.Psychrometrics.Functions.pW_X
Water vapor pressure for given humidity ratio
Information
Function to compute the water vapor partial pressure for a given humidity ratio.
Extends from Modelica.Icons.Function (Icon for functions).
Inputs
Type | Name | Default | Description |
---|---|---|---|
MassFraction | X_w | Species concentration at dry bulb temperature [1] | |
Pressure | p | 101325 | Total pressure [Pa] |
Outputs
Type | Name | Description |
---|---|---|
Pressure | p_w | Water vapor pressure [Pa] |
Modelica definition
Buildings.Utilities.Psychrometrics.Functions.phi_pTX
Relative humidity for given pressure, dry bulb temperature and moisture mass fraction
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.
Extends from Modelica.Icons.Function (Icon for functions).
Inputs
Type | Name | Default | Description |
---|---|---|---|
Pressure | p | Absolute pressure of the medium [Pa] | |
Temperature | T | Dry bulb temperature [K] | |
MassFraction | X_w | Water vapor mass fraction per unit mass total air [1] |
Outputs
Type | Name | Description |
---|---|---|
Real | phi | Relative humidity [1] |
Modelica definition
Buildings.Utilities.Psychrometrics.Functions.saturationPressure
Saturation curve valid for 223.16 <= T <= 373.16 (and slightly outside with less accuracy)
Information
Saturation pressure of water, computed from temperature, according to Wagner et al. (1993). The range of validity is between 190 and 373.16 Kelvin.
References
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).
Inputs
Type | Name | Default | Description |
---|---|---|---|
Temperature | TSat | Saturation temperature [K] |
Outputs
Type | Name | Description |
---|---|---|
AbsolutePressure | pSat | Saturation pressure [Pa] |
Modelica definition
Buildings.Utilities.Psychrometrics.Functions.saturationPressureLiquid
Return saturation pressure of water as a function of temperature T in the range of 273.16 to 373.16 K
Information
Saturation pressure of water above the triple point temperature computed from temperature according to Wagner et al. (1993). The range of validity is between 273.16 and 373.16 Kelvin.
References
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).
Inputs
Type | Name | Default | Description |
---|---|---|---|
Temperature | TSat | Saturation temperature [K] |
Outputs
Type | Name | Description |
---|---|---|
AbsolutePressure | pSat | Saturation pressure [Pa] |
Modelica definition
Buildings.Utilities.Psychrometrics.Functions.sublimationPressureIce
Return sublimation pressure of water as a function of temperature T between 190 and 273.16 K
Information
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.
References
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).
Inputs
Type | Name | Default | Description |
---|---|---|---|
Temperature | TSat | Saturation temperature [K] |
Outputs
Type | Name | Description |
---|---|---|
AbsolutePressure | pSat | Saturation pressure [Pa] |