Model transporting two fluid streams between four ports with storing mass or energy
This component transports two fluid streams between four ports.
It provides the basic model for implementing a dynamic heat exchanger.
The model can be used as-is, although there will be no heat or mass transfer
between the two fluid streams.
To add heat transfer, heat flow can be added to the heat port of the two volumes.
See for example
IDEAS.Fluid.Chillers.Carnot_y.
To add moisture input into (or moisture output from) volume vol2,
the model can be replaced with
IDEAS.Fluid.MixingVolumes.MixingVolumeMoistAir.
Implementation
The variable names follow the conventions used in
Modelica.Fluid.Examples.HeatExchanger.BaseClasses.BasicHX.
- 
March 3, 2022, by Michael Wetter:
 RemovedmassDynamics.
 This is for
issue 1542.
- 
April 14, 2020, by Michael Wetter:
 ChangedhomotopyInitializationto a constant.
 This is for
IDEAS, #1341.
- 
October 23, 2017, by Michael Wetter:
 Made volumevol1replaceable. This is required for
Buildings, issue 1013.
- 
December 1, 2016, by Michael Wetter:
 Updated model asuse_dhis no longer a parameter in the pressure drop model.
 This is for
#480.
- 
April 11, 2016 by Michael Wetter:
 Corrected wrong hyperlink in documentation for
issue 450.
- 
January 26, 2016, by Michael Wetter:
 Setquantityattributes.
- 
November 13, 2015, by Michael Wetter:
 Changed assignments of start values inextendsstatement.
This is for issue
#299.
- 
June 2, 2015, by Filip Jorissen:
 Removed final modifier frommSenFacinvol1andvol2.
This is for issue
#258.
- 
May 6, 2015, by Michael Wetter:
 Added missing propagation ofallowFlowReversalto
instancesvol1andvol2.
This is for issue
#412.
- 
October 6, 2014, by Michael Wetter:
 Changed medium declaration in pressure drop elements to be final.
- 
May 28, 2014, by Michael Wetter:
 Removedannotation(Evaluate=true)for parameterstau1andtau2.
This is needed to allow changing the time constant after translation.
- 
November 12, 2013, by Michael Wetter:
 Removedimport Modelica.Constantsstatement.
- 
October 8, 2013, by Michael Wetter:
 Removed parametershow_V_flow.
- 
September 26, 2013, by Michael Wetter:
 Removed unrequiredsumoperator.
- 
February 6, 2012, by Michael Wetter:
 Updated documentation.
- 
February 3, 2012, by Michael Wetter:
 Removed assignment ofm_flow_smallas it is no
longer used in its base class.
- 
July 29, 2011, by Michael Wetter:
- 
Changed values of
h_outflow_a1_start,h_outflow_b1_start,h_outflow_a2_startandh_outflow_b2_start, and
declared them as final.
- 
Set nominal values for vol1.Candvol2.C.
 
- 
July 11, 2011, by Michael Wetter:
 Changed parameterization of fluid volume so that steady-state balance is
used whentau = 0.
- 
March 25, 2011, by Michael Wetter:
 Added homotopy operator.
- 
April 13, 2009, by Michael Wetter:
 Added model to compute flow friction.
- 
September 10, 2008 by Michael Wetter:
 AddedstateSelect=StateSelect.alwaysfor temperature of volume 1.
- 
Changed temperature sensor from Celsius to Kelvin.
Unit conversion should be made during output
processing.
- 
August 5, 2008, by Michael Wetter:
 Replaced instances ofDelays.DelayFirstOrderwith instances ofMixingVolumes.MixingVolume. This allows to extract liquid for a condensing cooling
coil model.
- 
March 25, 2008, by Michael Wetter:
 First implementation.
Generated at 2025-10-30T19:21:05Z
 by OpenModelicaOpenModelica 1.25.5 using GenerateDoc.mos