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 Buildings library.

Components

TypeNameDefaultDescription
Modelica.Blocks.Sources.RampP
IDEAS.Fluid.Sources.Boundary_pTsou
IDEAS.Fluid.Sources.Boundary_pTsin
IDEAS.Fluid.FixedResistances.PressureDropres1
MixingVolumes.MixingVolumevol1
IDEAS.Fluid.FixedResistances.PressureDropres2
IDEAS.Fluid.FixedResistances.PressureDropres11
IDEAS.Fluid.FixedResistances.PressureDropres12
Modelica.Fluid.Vessels.ClosedVolumevol
IDEAS.Utilities.Diagnostics.CheckEqualitycheEqu1Check for equality of results
IDEAS.Fluid.Sensors.EnthalpyFlowRateentFloRatEnthalpy flow rate
IDEAS.Fluid.Sensors.EnthalpyFlowRateentFloRat1Enthalpy flow rate
IDEAS.Fluid.MixingVolumes.MixingVolumeMoistAirvol2
IDEAS.Fluid.FixedResistances.PressureDropres21
IDEAS.Fluid.FixedResistances.PressureDropres22
IDEAS.Utilities.Diagnostics.CheckEqualitycheEqu2Check for equality of results
IDEAS.Fluid.Sensors.EnthalpyFlowRateentFloRat2Enthalpy flow rate
Modelica.Blocks.Sources.Constantzero
Modelica.Fluid.Systemsystem

Contents

NameDescription
MediumMedium model

Revisions

  • January 10, 2025, by Michael Wetter:
    Changed tolerance of assertion blocks.
    This is for issue IBPSA #1952.
  • April 12, 2017, by Michael Wetter:
    Removed temperature connection that is no longer needed.
    This is for issue Buildings #704.
  • January 12, 2017, by Thierry S. Nouidui:
    Refactored difference blocks for checking integration errors. This is needed for the JModelica verification tests.
  • 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.