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
| Type | Name | Default | Description |
|---|---|---|---|
| Boolean | prescribedHeatFlowRate | false | Flag that affects what steady state balance is used in the volume |
| Modelica.Units.SI.Pressure | dp_nominal | 10 | Nominal pressure drop |
| Modelica.Units.SI.MassFlowRate | m_flow_nominal | 2.0 | Nominal mass flow rate |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Fluid.Sources.MassFlowSource_T | sou | Flow source and sink | |
| Sources.Boundary_pT | bou | Boundary condition | |
| Buildings.Fluid.MixingVolumes.MixingVolume | volDyn | ||
| Buildings.Fluid.MixingVolumes.MixingVolume | volSte | ||
| Modelica.Blocks.Math.Gain | gain | Gain to add heat, moisture or trace substance flow rate | |
| Modelica.Fluid.Sources.MassFlowSource_T | sou1 | Flow source and sink | |
| Modelica.Blocks.Sources.Ramp | m_flow | Mass flow rate |
Contents
| Name | Description |
|---|---|
| Medium 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.