blockX_pTphi
Return steam mass fraction as a function of relative humidity phi and temperature T
Extends from BuildingSystems.Utilities.Psychrometrics.BaseClasses.HumidityRatioVaporPressure (Humidity ratio for given water vapor pressure).
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.
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Boolean | use_p_in (from HumidityRatioVaporPressure) | true | Get the pressure from the input connector |
| Modelica.Units.SI.Pressure | p (from HumidityRatioVaporPressure) | 101325 | Fixed value of pressure |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Blocks.Interfaces.RealInput | p_in (from HumidityRatioVaporPressure) | Atmospheric Pressure | |
| Modelica.Blocks.Interfaces.RealInput | T | Temperature | |
| Modelica.Blocks.Interfaces.RealInput | phi | Relative humidity (0...1) | |
| Modelica.Blocks.Interfaces.RealOutput[Medium.nX] | X | Steam mass fraction |
Contents
| Name | Description |
|---|---|
| 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:
Addedassertto verify thatMedium.nX==2as the implementation is only valid for such media. - April 26, 2013 by Michael Wetter:
Set the medium model toBuildingSystems.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 fromMassFraction_pTphitoX_pTphi -
February 4, 2009 by Michael Wetter:
First implementation.