modelTraceSubstancesTwoPort
Ideal two port sensor for trace substance
Extends from Annex60.Fluid.Sensors.BaseClasses.PartialDynamicFlowSensor, Modelica.Icons.RotationalSensor.
Information
This model outputs the trace substance 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
Annex60.Fluid.Sensors.UsersGuide for an explanation.
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| String | substanceName | "CO2" | Name of trace substance |
| Initialization | |||
| Real | C_start | 0 | Initial or guess value of output (= state) |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Blocks.Interfaces.RealOutput | C | Trace substance of the passing fluid |
Revisions
-
January 26, 2016, by Michael Wetter:
Avoided assignment ofCMed(nominal=0)as this is not allowed. -
January 18, 2016 by Filip Jorissen:
Using parametertauInvsince this now exists in Annex60.Fluid.Sensors.BaseClasses.PartialDynamicFlowSensor. This is for #372. -
June 10, 2015, by Michael Wetter:
Reformulated assignment ofsandassertstatement. The reformulation of the assignment ofswas done to allow a model check in non-pedantic mode. This is for issue 268. -
May 22, 2015, by Michael Wetter:
Corrected wrong sensor signal ifallowFlowReversal=false. For this setting, the sensor output was for the wrong flow direction. This is for issue 249. -
September 10, 2013, by Michael Wetter:
Corrected syntax errors in setting nominal value for output signal and for state variable. This eliminates a compilation error in OpenModelica. -
August 30, 2013, by Michael Wetter:
Added default valueC_start=0. -
November 3, 2011, by Michael Wetter:
Movedder(C) := 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 trace substance in medium model. -
September 29, 2009, by Michael Wetter:
First implementation.