This model can be used to inject trace substances into a system. The model adds a mass flow rate to its port with a trace substance concentration of 1.
A typical use of this model is to add carbon dioxide to room air, since the
carbon dioxide concentration is typically so small that it need not be
added to the room mass balance, and since the mass flow rate can be
made small compared to the room volume if the medium that leaves this
component has a carbon dioxide concentration of 1.
The parameter substanceName
must be set to the name of the substance
that is injected into the fluid.
Note however that mixing volumes from the package IDEAS.Fluid.MixingVolumes allow to directly add a trace substance mass flow rate, which is more efficient than using this model.
Name | Description |
---|---|
Medium | Medium in the component |
C_in_internal
to avoid an initial algorithm section.unit
and quantity
attributes.
nPorts=1
in extension of the base class
as the default must be 0.
This avoids a warning in the pedantic model check of Dymola 2016.
Evaluate=true
.
each
in declaration of
C_in_internal
.
This eliminates a compilation error in OpenModelica.
C_in_internal
to allow pedantic check in Dymola 2014.