AixLib.Utilities.Psychrometrics.X_pTphi

# .AixLib.Utilities.Psychrometrics.X_pTphi

Return steam mass fraction as a function of relative humidity phi and temperature T

## Information

Block to compute the water vapor concentration based on pressure, temperature and relative humidity.

If `use_p_in` is false (default option), the `p` parameter is used as atmospheric pressure, and the `p_in` input connector is disabled; if `use_p_in` is true, then the `p` parameter is ignored, and the value provided by the input connector is used instead.

## Contents

Name | Description
--- | ---
Medium | Medium model

## Revisions

- November 3, 2017 by Filip Jorissen:
  Converted (initial) algorithm section into (initial) equation section. See #847.
- July 24, 2014 by Michael Wetter:
  Added `assert` to verify that `Medium.nX==2` as the implementation is only valid for such media.
- April 26, 2013 by Michael Wetter:
  Set the medium model to `AixLib.Media.Air`. This was required to allow a pedantic model check in Dymola 2014.
- August 21, 2012 by Michael Wetter:
  Added function call to compute water vapor content.
- February 22, 2010 by Michael Wetter:
  Improved the code that searches for the index of 'water' in the medium model.
- February 17, 2010 by Michael Wetter:
  Renamed block from `MassFraction_pTphi` to `X_pTphi`
- February 4, 2009 by Michael Wetter:
  First implementation.

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