modelTraceSubstances

Ideal one port trace substances sensor

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

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.

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

Parameters

TypeNameDefaultDescription
StringsubstanceName"CO2"Name of trace substance

Components

TypeNameDefaultDescription
Modelica.Blocks.Interfaces.RealOutputCTrace substance in port medium

Revisions

  • June 10, 2015, by Michael Wetter:
    Reformulated assignment of s and assert statement. The reformulation of the assignment of s was 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 for C so that Dymola 7.4 can find the analytic derivative.
  • September 29, 2009, by Michael Wetter:
    First implementation.