modelTraceSubstancesFlowSource

Extends from Modelica.Icons.Example (Icon for runnable examples).

Information

This model demonstrates the use of trace substances that are added to a volume of air. The source is a step function of 2 kg/s CO2 from t=0 second to t=0.5 second. The sensors C and C1 measure the same concentration that initially increases and then remains constant as there is no flow through the volumes vol and vol1. The sensors C2 and C3 first meaure an increase in concentration, which then decays to zero as there is a mass flow rate with zero CO2 from the source bou to the sink sin.

Components

TypeNameDefaultDescription
MixingVolumes.MixingVolumevolMixing volume
Sources.TraceSubstancesFlowSourcesou
Modelica.Blocks.Sources.Stepstep
FixedResistances.PressureDropresResistance, used to check if species are transported between ports
MixingVolumes.MixingVolumevol1Mixing volume
Sources.TraceSubstancesFlowSourcesou1
Buildings.Utilities.Diagnostics.AssertEqualityassEquAssert that both volumes have the same concentration
MixingVolumes.MixingVolumevol2Mixing volume
MixingVolumes.MixingVolumevol3Mixing volume
Buildings.Utilities.Diagnostics.AssertEqualityassEqu1Assert that both volumes have the same concentration
MixingVolumes.MixingVolumevol4Mixing volume
Sources.TraceSubstancesFlowSourcesou2
Buildings.Fluid.Sources.Boundary_pTbou
Buildings.Fluid.Sources.Boundary_pTsinSink boundary conditions
FixedResistances.PressureDropres1Resistance, used to check if species are transported between ports
FixedResistances.PressureDropres2Resistance, used to check if species are transported between ports
FixedResistances.PressureDropres3Resistance, used to check if species are transported between ports
Sensors.TraceSubstancesCTrace substance sensor
Sensors.TraceSubstancesC1Trace substance sensor
Sensors.TraceSubstancesC2Trace substance sensor
Sensors.TraceSubstancesC3Trace substance sensor
FixedResistances.PressureDropres4Resistance, used to check if species are transported between ports
FixedResistances.PressureDropres6Resistance, used to check if species are transported between ports
FixedResistances.PressureDropres5Resistance, used to check if species are transported between ports
FixedResistances.PressureDropres7Resistance, used to check if species are transported between ports
Buildings.Fluid.Sources.Boundary_pTsin1Sink boundary conditions

Contents

NameDescription
Medium

Revisions

  • March 26, 2024, by Michael Wetter:
    Configured the sensor parameter to suppress the warning about being a one-port connection.
    This is for IBPSA, #1857.
  • November 27, 2013 by Michael Wetter:
    Added pressure boundary condition to model. This is required for the new air model, which is incompressible. Otherwise, there will be no pressure reference in the system.
  • September 19, 2013, by Michael Wetter:
    Simplified example.
  • April 29, 2013, by Michael Wetter:
    Changed the initialization of the medium volumes from free initial conditions to Modelica.Fluid.Types.Dynamics.FixedInitial. This was required for vol and vol1 to have the same computations for the initial states.
  • September 18, 2008 by Michael Wetter:
    First implementation.