modelHeatExchangerDynamics
Test model for stratified tank with steady-state and dynamic heat exchanger balance
Extends from Modelica.Icons.Example (Icon for runnable examples).
Information
This validation model compares two tank models. The only difference between the two tank models is that one uses a dynamic energy balance, whereas the other uses a steady-state energy balance for the heat exchanger. The mass flow rate through the heat exchanger is varied from zero to the design flow rate and back to zero to test the model under conditions in which no water flows through the heat exchanger.Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Integer | nSeg | 7 | Number of segments in tank |
| Modelica.Units.SI.HeatFlowRate | QHex_flow_nominal | 2000 | Design heat flow rate of heat exchanger |
| Modelica.Units.SI.MassFlowRate | m_flow_nominal | QHex_flow_nominal/4200/4 |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Buildings.Fluid.Sources.Boundary_pT | watInTan | Boundary condition for water in the tank | |
| Buildings.Fluid.Sources.MassFlowSource_T | mHex_flow1 | Mass flow rate through the heat exchanger | |
| Tank | tanDyn | Tank with dynamic heat exchanger balance | |
| Tank | tanSte | Tank with steady-state heat exchanger balance | |
| Modelica.Blocks.Sources.Trapezoid | mHex_flow_in | Control signal for mass flow rate in heat exchanger | |
| Buildings.Fluid.Sources.Boundary_pT | sin | Sink boundary condition | |
| Buildings.Fluid.Sources.MassFlowSource_T | mHex_flow2 | Mass flow rate through the heat exchanger | |
| Buildings.Fluid.Sensors.TemperatureTwoPort | senTanDyn | Temperature sensor at tank outlet | |
| Buildings.Fluid.Sensors.TemperatureTwoPort | senTanSte | Temperature sensor at tank outlet | |
| Buildings.Fluid.Sources.MassFlowSource_T | mWatTanDyn_flow | Mass flow rate through the tank | |
| Buildings.Fluid.Sources.MassFlowSource_T | mWatTanSte_flow | Mass flow rate through the tank |
Contents
| Name | Description |
|---|---|
| Medium model | |
| Tank with dynamic heat exchanger balance |
Revisions
-
June 7, 2018 by Filip Jorissen:
Copied model from Buildings and update the model accordingly. This is for #314. -
July 5, 2017, by Michael Wetter:
Added zero mass flow rate boundary conditions to avoid a translation error in Dymola 2018.
This is for issue 834. -
January 8, 2016 by Michael Wetter:
First implementation to test issue 434.