modelMassFractionTwoPort
Ideal two port mass fraction sensor
Extends from IBPSA.Fluid.Sensors.BaseClasses.PartialDynamicFlowSensor, IBPSA.Fluid.BaseClasses.IndexMassFraction, Modelica.Icons.RotationalSensor.
Information
This model outputs the mass fraction of the passing fluid.
The sensor is ideal, i.e. it does not influence the fluid.
If the parameter tau is non-zero, then its output
is computed using a first order differential equation.
Setting tau=0 is not recommend. See
IBPSA.Fluid.Sensors.UsersGuide for an explanation.
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Initialization | |||
| Medium.MassFraction | X_start | Medium.X_default[i_x] | Initial or guess value of output (= state) |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Blocks.Interfaces.RealOutput | X | Mass fraction of the passing fluid |
Revisions
-
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. -
January 18, 2016 by Filip Jorissen:
Using parametertauInvsince this now exists in IBPSA.Fluid.Sensors.BaseClasses.PartialDynamicFlowSensor. This is for #372. -
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 IBPSA.Fluid.BaseClasses.IndexMassFraction. -
November 3, 2011, by Michael Wetter:
Movedder(X) := 0;from the initial algorithm section to the initial equation section as this assignment does not conform to the Modelica specification. -
June 3, 2011 by Michael Wetter:
Revised implementation to add dynamics in such a way that the time constant increases as the mass flow rate tends to zero. This significantly improves the numerics. -
February 22, by Michael Wetter:
Improved code that searches for index of the substance name in the medium model. -
Feb. 8, 2011 by Michael Wetter:
First implementation.