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
Buildings.Fluid.Sources.Boundary_pTsou
Buildings.Fluid.Sources.Boundary_pTsin
Buildings.Fluid.FixedResistances.PressureDropres1
MixingVolumes.MixingVolumevol1
Buildings.Fluid.FixedResistances.PressureDropres2
Buildings.Fluid.FixedResistances.PressureDropres11
Buildings.Fluid.FixedResistances.PressureDropres12
Modelica.Fluid.Vessels.ClosedVolumevol
Buildings.Utilities.Diagnostics.CheckEqualitycheEqu1Check for equality of results
Buildings.Fluid.Sensors.EnthalpyFlowRateentFloRatEnthalpy flow rate
Buildings.Fluid.Sensors.EnthalpyFlowRateentFloRat1Enthalpy flow rate
Buildings.Fluid.MixingVolumes.MixingVolumeMoistAirvol2
Buildings.Fluid.FixedResistances.PressureDropres21
Buildings.Fluid.FixedResistances.PressureDropres22
Buildings.Utilities.Diagnostics.CheckEqualitycheEqu2Check for equality of results
Buildings.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.