BuildSysPro.IBPSA.Utilities.Psychrometrics.Functions.density_pTX

# .BuildSysPro.IBPSA.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.

#### Interface

>     function density_pTX
>       extends Modelica.Icons.Function;
>       input Modelica.Units.SI.Pressure p "Absolute pressure of the medium";
>       input Modelica.Units.SI.Temperature T "Dry bulb temperature";
>       input Modelica.Units.SI.MassFraction X_w "Water vapor mass fraction per unit mass total air";
>       output Modelica.Units.SI.Density d "Mass density";
>     end density_pTX;

## Revisions

- November 23, 2015 by Filip Jorissen:
  Added derivative information for avoiding numerical Jacobians.
- February 24, 2015 by Michael Wetter:
  First implementation.

Generated at 2026-05-12T20:19:03Z by OpenModelicaOpenModelica 1.26.7 using GenerateDoc.mos