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

TypeNameDefaultDescription
Booleanuse_p_in (from HumidityRatioVaporPressure)trueGet the pressure from the input connector
Modelica.Units.SI.Pressurep (from HumidityRatioVaporPressure)101325Fixed value of pressure

Connectors

TypeNameDefaultDescription
Modelica.Blocks.Interfaces.RealInputp_in (from HumidityRatioVaporPressure)Atmospheric Pressure
Modelica.Blocks.Interfaces.RealInputTTemperature
Modelica.Blocks.Interfaces.RealInputphiRelative humidity (0...1)
Modelica.Blocks.Interfaces.RealOutput[Medium.nX]XSteam mass fraction

Contents

NameDescription
MediumMedium 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 BuildingSystems.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.