BuildSysPro.IBPSA.Fluid.Sensors.TraceSubstances

# .BuildSysPro.IBPSA.Fluid.Sensors.TraceSubstances

Ideal one port trace substances sensor

## 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 IBPSA.Fluid.Sensors.TraceSubstancesTwoPort rather than this sensor. Read the IBPSA.Fluid.Sensors.UsersGuide prior to using this model to see about potential numerical problems if this sensor is used incorrectly in a system model.

## Revisions

- September 21, 2020, by Michael Wetter:
  Introduced parameter `warnAboutOnePortConnection` and 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 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.

Generated at 2026-05-12T20:19:03Z by OpenModelicaOpenModelica 1.26.7 using GenerateDoc.mos