modelMoistureMixingConservationSteadyState

This test checks if mass and energy is conserved when mixing fluid streams using steady state balances

Extends from AixLib.Fluid.MixingVolumes.Validation.BaseClasses.MoistureMixingConservation (Partial for checking conservation of mass for independent mass fraction).

Information

This test checks if water vapour mass is conserved. 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. Afterwards the added water is removed again. The final water concentration, mass flow rate and enthalpy flow rate should then be equal to the initial values.

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 AixLib.Fluid.Interfaces.StaticTwoPortConservationEquation and AixLib.Fluid.Interfaces.StaticTwoPortConservationEquation for a discussion.

Components

TypeNameDefaultDescription
AixLib.Fluid.Sources.MassFlowSource_hsou1 (from MoistureMixingConservation)Air source
AixLib.Fluid.Sources.MassFlowSource_hsou2 (from MoistureMixingConservation)Air source
AixLib.Fluid.MixingVolumes.MixingVolumeMoistAirvol (from MoistureMixingConservation)Mixing volume for adding water
AixLib.Fluid.MixingVolumes.MixingVolumeMoistAirvol1 (from MoistureMixingConservation)Mixing volume for adding water
AixLib.Fluid.Sources.Boundary_pTsin (from MoistureMixingConservation)Air sink
AixLib.Fluid.MixingVolumes.MixingVolumeMoistAirvol2 (from MoistureMixingConservation)Mixing volume for removing water
Modelica.Blocks.Sources.ConstantmWatFlo1 (from MoistureMixingConservation)Water mass flow rate 1
Modelica.Blocks.Sources.ConstantmWatFlo3 (from MoistureMixingConservation)Withdrawn water rate
Modelica.Blocks.Sources.ConstantmWatFlo2 (from MoistureMixingConservation)Water mass flow rate 2
Modelica.Blocks.Math.AddcheMasFra (from MoistureMixingConservation)Check for water conservation
AixLib.Fluid.Sensors.MassFractionTwoPortsenMasFra (from MoistureMixingConservation)Sensor for measuring water content
Modelica.Blocks.Sources.ConstantmWatFloSol (from MoistureMixingConservation)Solution mass fraction water
AixLib.Fluid.Sensors.MassFlowRatesenMasFlo (from MoistureMixingConservation)Mass flow rate sensor
Modelica.Blocks.Math.AddcheMasFlo (from MoistureMixingConservation)Check for conservation of mass
Modelica.Blocks.Sources.ConstantmFloSol (from MoistureMixingConservation)Solution mass flow rate
Sensors.EnthalpyFlowRatesenSpeEnt (from MoistureMixingConservation)Specific enthalpy flow rate sensor
Modelica.Blocks.Math.AddcheSpeEnt (from MoistureMixingConservation)Check for conservation of energy
Modelica.Blocks.Sources.ConstanthSol (from MoistureMixingConservation)Solution mass flow rate

Revisions

  • 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.