modelTraceSubstances
Ideal one port trace substances 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 trace substances contained in the fluid connected to its port. The sensor is ideal, i.e., it does not influence the fluid.
To measure trace substances in a duct or pipe, use Buildings.Fluid.Sensors.TraceSubstancesTwoPort 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 | "CO2" | Name of trace substance |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Fluid.Interfaces.FluidPort_a | port (from PartialAbsoluteSensor) | ||
| Modelica.Blocks.Interfaces.RealOutput | C | Trace substance in port medium |
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. -
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. -
September 10, 2013, by Michael Wetter:
Corrected a syntax error in setting the nominal value for the output signal. This eliminates a compilation error in OpenModelica. -
February 22, by Michael Wetter:
Improved code that searches for index of trace substance in medium model. -
March 22, 2010 by Michael Wetter:
Changed assignment forCso that Dymola 7.4 can find the analytic derivative. -
September 29, 2009, by Michael Wetter:
First implementation.