modelMixingVolume

Test model for mixing volumes

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

Information

This model tests the implementation of the mixing volumes. It compares the results from the mixing volume of the Modelica Standard Library with the implementation in the Annex60 library.

Components

TypeNameDefaultDescription
Modelica.Blocks.Sources.RampP
Annex60.Fluid.Sources.Boundary_pTsou
Annex60.Fluid.Sources.Boundary_pTsin
Annex60.Fluid.FixedResistances.PressureDropres1
MixingVolumes.MixingVolumevol1
Annex60.Fluid.FixedResistances.PressureDropres2
Annex60.Fluid.FixedResistances.PressureDropres11
Annex60.Fluid.FixedResistances.PressureDropres12
Modelica.Fluid.Vessels.ClosedVolumevol
Modelica.Blocks.Math.AddcheEqu1Check for equality of results
Annex60.Fluid.Sensors.EnthalpyFlowRateentFloRatEnthalpy flow rate
Annex60.Fluid.Sensors.EnthalpyFlowRateentFloRat1Enthalpy flow rate
Annex60.Fluid.MixingVolumes.MixingVolumeMoistAirvol2
Annex60.Fluid.FixedResistances.PressureDropres21
Annex60.Fluid.FixedResistances.PressureDropres22
Modelica.Blocks.Math.AddcheEqu2Check for equality of results
Annex60.Fluid.Sensors.EnthalpyFlowRateentFloRat2Enthalpy flow rate
Modelica.Blocks.Sources.Constantzero
Modelica.Blocks.Sources.ConstantTLiq
Modelica.Fluid.Systemsystem

Contents

NameDescription
MediumMedium model

Revisions

  • November 4, 2016, by Michael Wetter:
    Removed wrong use of each keyword.
    This is for issue 575.
  • 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.
  • October 24, 2013, by Michael Wetter:
    Set vol(h_start=45300.945). This avoids a cyclic assignment of vol.T_start and vol.h_start in Modelica.Fluid.Vessels.ClosedVolume.
  • October 12, 2009 by Michael Wetter:
    First implementation.