blockX_pW

Humidity ratio for given water vapor pressure

Extends from Buildings.Utilities.Psychrometrics.BaseClasses.HumidityRatioVaporPressure (Humidity ratio for given water vapor pressure).

Information

Block to compute the humidity ratio for a given water vapor partial pressure.

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.RealOutputX_wSpecies concentration at dry bulb temperature
Modelica.Blocks.Interfaces.RealInputp_wWater vapor pressure

Components

TypeNameDefaultDescription
Modelica.Units.SI.MassFractionx_wWater mass fraction per mass of dry air

Revisions

  • September 16, 2013 by Michael Wetter:
    Added attributes to variable p_w.
  • February 17, 2010 by Michael Wetter:
    Renamed block from HumidityRatio_pWat to X_pW.
  • April 14, 2009 by Michael Wetter:
    Converted model to block because RealInput are obsolete in Modelica 3.0.
  • August 7, 2008 by Michael Wetter:
    First implementation.