modelMassFraction
Extends from Buildings.Fluid.Sensors.BaseClasses.PartialAbsoluteSensor (Partial component to model a sensor that measures a potential variable), Buildings.Fluid.BaseClasses.IndexMassFraction (Computes the index of a substance in the mass fraction vector Xi), Modelica.Icons.RoundSensor (Icon representing a round measurement device).
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.
To measure mass fraction in a duct or pipe, use Buildings.Fluid.Sensors.MassFractionTwoPort 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
| Type | Name | Default | Description |
|---|---|---|---|
| Boolean | warnAboutOnePortConnection (from PartialAbsoluteSensor) | true | Set to false to suppress warning about potential numerical issues, see Buildings.Fluid.Sensors.UsersGuide for more information |
| String | substanceName (from IndexMassFraction) | "" | Name of species substance |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Fluid.Interfaces.FluidPort_a | port (from PartialAbsoluteSensor) | ||
| Modelica.Blocks.Interfaces.RealOutput | X | Mass fraction in port |
Revisions
-
September 21, 2020, by Michael Wetter:
Introduced parameterwarnAboutOnePortConnectionand updated documentation.
This is for #1399. -
February 25, 2020, by Michael Wetter:
Changed icon to display its operating state.
This is for #1294. -
January 26, 2016, by Michael Wetter:
Corrected wrong assignmentXiVec[Medium.nXi](quantity=Medium.extraPropertiesNames)toXiVec[Medium.nXi](quantity=Medium.substanceNames[1:Medium.nXi]).
Changed unit of output signal from1tokg/kgto indicate that it is a mass fraction, and declared the assignment final. -
September 10, 2013, by Michael Wetter:
Changedminandmaxvalues for output signals to allow for numerical approximation error without violating these bounds.
Changed medium declaration in theextendsstatement toreplaceableto avoid a translation error in OpenModelica. -
August 31, 2013, by Michael Wetter:
Revised model to use base class Buildings.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 ofModelica.Fluid.