modelTraceSubstanceConservationDynamicBalance

This test checks if trace substance mass flow rates are conserved when a dynamic balance is used

Extends from IBPSA.Fluid.MixingVolumes.Validation.BaseClasses.TraceSubstanceConservation.

Information

This test checks if the trace substance flow rate is conserved when adding moisture to a mixing volume that is configured to steady state.
The trace substance flow rate at the inlet and outlet should be equal since the trace substance concentration should not be affected by the independent mass fraction concentration.

Note, however, that there is some approximation error because in its default configuration, the conservation balance models simplify the treatment of the water that is added to the fluid. See IBPSA.Fluid.Interfaces.StaticTwoPortConservationEquation and IBPSA.Fluid.Interfaces.StaticTwoPortConservationEquation for a discussion.

Components

TypeNameDefaultDescription
Modelica.Blocks.Continuous.IntegratorintTraSubInIntegrator for trace substance inlet
Modelica.Blocks.Continuous.IntegratorintTraSubOutIntegrator for trace substance outlet
Modelica.Blocks.Sources.RealExpressionreaExpMixing volume total species mass
Modelica.Blocks.Math.AddcheConMasCheck for conservation of mass
Modelica.Blocks.Math.Add3add3Conservation of mass
Modelica.Blocks.Sources.ConstantzeroZero input

Revisions

  • November 3, 2016, by Michael Wetter:
    Removed wrong assignment for C_nominal.
    This is for issue 568.
  • November 2, 2016, by Michael Wetter:
    Changed assertions to blocks that compute the difference, and added the difference to the regression results.
    This is for issue 564.
  • May 22 2015 by Filip Jorissen:
    First implementation.