blockHumidityRatioVaporPressure

Humidity ratio for given water vapor pressure

Extends from Modelica.Blocks.Icons.Block (Basic graphical layout of input/output block).

Information

Partial Block to compute the relation between humidity ratio and 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_intrueGet the pressure from the input connector
Modelica.Units.SI.Pressurep101325Fixed value of pressure

Connectors

TypeNameDefaultDescription
Modelica.Blocks.Interfaces.RealInputp_inAtmospheric Pressure

Revisions

  • March 11, 2024, by Michael Wetter:
    Corrected use of HideResult.
    This is for #1850.
  • May 29, 2014, by Michael Wetter:
    Removed undesirable annotation Evaluate=true.
  • April 14, 2009 by Michael Wetter:
    First implementation.