modelReverseFlowMassExchanger
Extends from Modelica.Icons.Example (Icon for runnable examples).
Information
This model tests whether the results for a mass exchanger are identical for forward flow and reverse flow.
Note that if the latent heat transfer effectiveness is non-zero, then
the results will differ. The reason is that the maximum capacity stream
is computed using the mass flow rates at port_a1
and port_a2. For reverse flow, they are not equal if
moisture is added to the mass flow rate. Using an average mass flow rate
in computing the heat and moisture transfer would lead to identical results,
but it would introduce additional nonlinear equations that need to be solved.
Therefore, the model uses the mass flow rates at port_a1
and port_a2.
Note: This problem fails to translate in Dymola 2012 due to an error in Dymola's support of stream connector. This bug will be corrected in future versions of Dymola.
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Blocks.Math.Add | cheTem | Check whether the outputs of the forward flow and reverse flow model are identical | |
| Modelica.Blocks.Math.Add | cheEnt | Check whether the outputs of the forward flow and reverse flow model are identical | |
| Modelica.Blocks.Math.Add | cheMas | Check whether the outputs of the forward flow and reverse flow model are identical | |
| Modelica.Fluid.Sources.MassFlowSource_T | source2 | ||
| Buildings.Fluid.MassExchangers.ConstantEffectiveness | masExcFor | Mass exchanger with forward flow | |
| Buildings.Fluid.MassExchangers.ConstantEffectiveness | masExcRev | Mass exchanger with reverse flow | |
| Buildings.Fluid.Sources.Boundary_pT | sink2 | Fluid sink | |
| FixedResistances.PressureDrop | res3 | Fixed resistance | |
| FixedResistances.PressureDrop | res4 | Fixed resistance | |
| Sensors.SpecificEnthalpy | senEnt3 | ||
| Buildings.Fluid.Sensors.Temperature | senTem3 | ||
| Sensors.MassFraction | senMas3 | ||
| Sensors.SpecificEnthalpy | senEnt4 | ||
| Buildings.Fluid.Sensors.Temperature | senTem4 | ||
| Sensors.MassFraction | senMas4 | ||
| Modelica.Blocks.Math.Add | cheTem1 | Check whether the outputs of the forward flow and reverse flow model are identical | |
| Modelica.Blocks.Math.Add | cheEnt1 | Check whether the outputs of the forward flow and reverse flow model are identical | |
| Modelica.Blocks.Math.Add | cheMas1 | Check whether the outputs of the forward flow and reverse flow model are identical | |
| Modelica.Fluid.Sources.MassFlowSource_T | source3 | ||
| Modelica.Fluid.Sources.MassFlowSource_T | source4 | ||
| Modelica.Fluid.Sources.MassFlowSource_T | source1 | ||
| Sources.Boundary_pT | sink1 | Fluid sink | |
| Sensors.SpecificEnthalpy | senEnt1 | ||
| Buildings.Fluid.Sensors.Temperature | senTem1 | ||
| Sensors.MassFraction | senMas1 | ||
| Buildings.Fluid.Sensors.Temperature | senTem2 | ||
| Sensors.SpecificEnthalpy | senEnt2 | ||
| Sensors.MassFraction | senMas2 | ||
| FixedResistances.PressureDrop | res1 | Fixed resistance | |
| FixedResistances.PressureDrop | res2 | Fixed resistance |
Contents
| Name | Description |
|---|---|
Revisions
-
September 20, 2020, by Michael Wetter:
Updated model to use one port temperature sensor from Modelica Standard Library.
This is for #1399. -
May 2, 2019, by Jianjun Hu:
Replaced fluid source. This is for #1072. -
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 9, 2013, by Michael Wetter:
ReplacedModelica.Fluid.Sources.FixedBoundarywithBuildings.Fluid.Sources.FixedBoundaryas otherwise, the pedantic model check fails in Dymola 2014 FD01 beta3. -
August 19, 2010, by Michael Wetter:
First implementation.