Package with psychrometric functions
This package contains functions for psychrometric calculations.
The nomenclature used in this package is described at Annex60.UsersGuide.Conventions.Extends from Modelica.Icons.Package (Icon for standard packages).
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 Annex60.Utilities.Psychrometrics.Functions |
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°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).
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°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 Annex60.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).
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] |
Density of air as a function of pressure, temperature and species concentration
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).
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] |
Type | Name | Description |
---|---|---|
Density | d | Mass density [kg/m3] |
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°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).
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°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 Annex60.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).
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] |
Relative humidity for given pressure, dry bulb temperature and moisture mass fraction
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).
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] |
Type | Name | Description |
---|---|---|
Real | phi | Relative humidity [1] |
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 according to Wagner et al. (1993). The range of validity is between 273.16 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 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] |