Annex60.Fluid.Interfaces.FourPortHeatMassExchanger

# .Annex60.Fluid.Interfaces.FourPortHeatMassExchanger

Model transporting two fluid streams between four ports with storing mass or energy

## Information

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 Annex60.Fluid.Chillers.Carnot_y. To add moisture input into (or moisture output from) volume `vol2`, the model can be replaced with Annex60.Fluid.MixingVolumes.MixingVolumeMoistAir.

#### Implementation

The variable names follow the conventions used in Modelica.Fluid.Examples.HeatExchanger.BaseClasses.BasicHX.

## Revisions

- December 1, 2016, by Michael Wetter:
  Updated model as `use_dh` is 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:
  Set `quantity` attributes.
- November 13, 2015, by Michael Wetter:
  Changed assignments of start values in `extends` statement. This is for issue #299.
- June 2, 2015, by Filip Jorissen:
  Removed final modifier from `mSenFac` in `vol1` and `vol2`. This is for issue #258.
- May 6, 2015, by Michael Wetter:
  Added missing propagation of `allowFlowReversal` to instances `vol1` and `vol2`. 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:
  Removed `annotation(Evaluate=true)` for parameters `tau1` and `tau2`. This is needed to allow changing the time constant after translation.
- November 12, 2013, by Michael Wetter:
  Removed `import Modelica.Constants` statement.
- October 8, 2013, by Michael Wetter:
  Removed parameter `show_V_flow`.
- September 26, 2013, by Michael Wetter:
  Removed unrequired `sum` operator.
- February 6, 2012, by Michael Wetter:
  Updated documentation.
- February 3, 2012, by Michael Wetter:
  Removed assignment of `m_flow_small` as 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_start` and `h_outflow_b2_start`, and declared them as final.
  - Set nominal values for `vol1.C` and `vol2.C`.
- July 11, 2011, by Michael Wetter:
  Changed parameterization of fluid volume so that steady-state balance is used when `tau = 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:
  Added `stateSelect=StateSelect.always` for 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 of `Delays.DelayFirstOrder` with instances of `MixingVolumes.MixingVolume`. This allows to extract liquid for a condensing cooling coil model.
- March 25, 2008, by Michael Wetter:
  First implementation.

Generated at 2026-05-09T18:18:56Z by OpenModelicaOpenModelica 1.26.7 using GenerateDoc.mos