modelMoistureMixingConservationDynamicBalance
Extends from BuildingSystems.Fluid.MixingVolumes.Validation.BaseClasses.MoistureMixingConservation.
Information
This model verifies if mass and energy are conserved, using a dynamic balance. Two air streams with different mass flow rate are humidified by a mixing volume with two different vapor mass flow rates. These flows are then mixed. Boundary integrals are used to verify if air mass, vapour mass and internal energy are conserved.
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 BuildingSystems.Fluid.Interfaces.StaticTwoPortConservationEquation and BuildingSystems.Fluid.Interfaces.StaticTwoPortConservationEquation for a discussion.
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Units.SI.Mass | m_start | Initial mass of the mixing volumes | |
| Modelica.Units.SI.InternalEnergy | U_start | Initial energy of the mixing volumes |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Blocks.Continuous.Integrator | intMasFloVapIn | Integral of added vapour | |
| Modelica.Blocks.Math.Add3 | add | Adder for injected water | |
| Modelica.Blocks.Sources.RealExpression | masVapVol | Vapour mass stored in mixing volumes | |
| Modelica.Blocks.Math.Add3 | add3Vap | Sum of vapour mass should be conserved | |
| Modelica.Blocks.Sources.RealExpression | masVol | Mass stored in mixing volumes | |
| Modelica.Blocks.Continuous.Integrator | intMasFloOut | Integral of leaving mass | |
| Modelica.Blocks.Math.Add3 | add3Mass | Adding 3 mass streams | |
| Modelica.Blocks.Continuous.Integrator | intMasFloIn | Integral of added mass | |
| Modelica.Blocks.Sources.Constant | masFloIn | Added air mass flow rate | |
| Modelica.Blocks.Continuous.Integrator | intEntOut | Integral of leaving enthalpy | |
| Modelica.Blocks.Continuous.Integrator | intEntIn | Integral of added enthalpy | |
| Modelica.Blocks.Sources.RealExpression | entVol | Energy stored in mixing volumes | |
| Modelica.Blocks.Math.Add3 | add3Ent | Adding 3 enthalpy streams | |
| Modelica.Blocks.Sources.Constant | entIn | Added enthalpy | |
| Modelica.Blocks.Math.Product | pro | Water vapor flow rate | |
| Modelica.Blocks.Continuous.Integrator | intMasVapOut | Integral of leaving vapor mass |
Revisions
-
April 24, 2017, by Michael Wetter:
Removed enthalpy of liquid fromentIn.
This is for Buildings, #704. -
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.