modelMixingVolumeReverseFlow

Test model for mixing volume with flow reversal

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

Information

This model is the base class to validate the mixing volume with air flowing into and out of the volume and heat, moisture or trace substance added to the volume.

The model volDyn uses a dynamic balance, whereas the model volSte uses a steady-state balance. The mass flow rate starts positive and reverses its direction at t=5 seconds.

Parameters

TypeNameDefaultDescription
BooleanprescribedHeatFlowRatefalseFlag that affects what steady state balance is used in the volume
Modelica.Units.SI.Pressuredp_nominal10Nominal pressure drop
Modelica.Units.SI.MassFlowRatem_flow_nominal2.0Nominal mass flow rate

Components

TypeNameDefaultDescription
Modelica.Fluid.Sources.MassFlowSource_TsouFlow source and sink
Sources.Boundary_pTbouBoundary condition
Buildings.Fluid.MixingVolumes.MixingVolumevolDyn
Buildings.Fluid.MixingVolumes.MixingVolumevolSte
Modelica.Blocks.Math.GaingainGain to add heat, moisture or trace substance flow rate
Modelica.Fluid.Sources.MassFlowSource_Tsou1Flow source and sink
Modelica.Blocks.Sources.Rampm_flowMass flow rate

Contents

NameDescription
MediumMedium model

Revisions

  • April 29, 2021, by Michael Wetter:
    Reformulated constraint of replaceable model to avoid access of component that is not in constraining type.
    This is for IBPSA, #1473.
  • December 23, 2019, by Michael Wetter:
    Changed constraining clause to ensure that heat port is present.
    This is for IBPSA, #1268.
  • January 19, 2016, by Michael Wetter:
    First implementation.