modelRelativeHumidity

Ideal one port relative humidity sensor

Extends from Buildings.Fluid.Sensors.BaseClasses.PartialAbsoluteSensor (Partial component to model a sensor that measures a potential variable), Modelica.Icons.RoundSensor (Icon representing a round measurement device).

Information

This model outputs the relative humidity of the fluid connected to its port. The sensor is ideal, i.e. it does not influence the fluid.

Note that this sensor can only be used with media that contain the variable phi, which is typically the case for moist air models.

To measure relative humidity in a duct or pipe, use Buildings.Fluid.Sensors.RelativeHumidityTwoPort rather than this sensor. Read the Buildings.Fluid.Sensors.UsersGuide prior to using this model to see about potential numerical problems if this sensor is used incorrectly in a system model.

Parameters

TypeNameDefaultDescription
BooleanwarnAboutOnePortConnection (from PartialAbsoluteSensor)trueSet to false to suppress warning about potential numerical issues, see Buildings.Fluid.Sensors.UsersGuide for more information

Connectors

TypeNameDefaultDescription
Modelica.Fluid.Interfaces.FluidPort_aport (from PartialAbsoluteSensor)
Modelica.Blocks.Interfaces.RealOutputphiRelative humidity in port medium

Revisions

  • September 21, 2020, by Michael Wetter:
    Introduced parameter warnAboutOnePortConnection and updated documentation.
    This is for #1399.
  • February 21, 2020, by Michael Wetter:
    Changed icon to display its operating state.
    This is for #1294.
  • January 26, 2016 by Michael Wetter:
    Added quantity attribute for mass fraction variables.
    Made unit assignment of output signal final.
  • May 12, 2010 by Michael Wetter:
    First implementation.