modelMassFraction

Ideal one port mass fraction sensor

Extends from IBPSA.Fluid.Sensors.BaseClasses.PartialAbsoluteSensor, IBPSA.Fluid.BaseClasses.IndexMassFraction, Modelica.Icons.RotationalSensor.

Information

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

Read the IBPSA.Fluid.Sensors.UsersGuide prior to using this model with one fluid port.

Components

TypeNameDefaultDescription
Modelica.Blocks.Interfaces.RealOutputXMass fraction in port

Revisions

  • January 26, 2016, by Michael Wetter:
    Corrected wrong assignment XiVec[Medium.nXi](quantity=Medium.extraPropertiesNames) to XiVec[Medium.nXi](quantity=Medium.substanceNames[1:Medium.nXi]).
    Changed unit of output signal from 1 to kg/kg to indicate that it is a mass fraction, and declared the assignment final.
  • September 10, 2013, by Michael Wetter:
    Changed min and max values for output signals to allow for numerical approximation error without violating these bounds.
    Changed medium declaration in the extends statement to replaceable to avoid a translation error in OpenModelica.
  • August 31, 2013, by Michael Wetter:
    Revised model to use base class IBPSA.Fluid.BaseClasses.IndexMassFraction.
  • February 22, by Michael Wetter:
    Improved the code that searches for the index of the substance in the medium model.
  • April 7, 2009 by Michael Wetter:
    First implementation. Implementation is based on enthalpy sensor of Modelica.Fluid.