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

TypeNameDefaultDescription
IntegernSeg7Number of segments in tank
Modelica.Units.SI.HeatFlowRateQHex_flow_nominal2000Design heat flow rate of heat exchanger
Modelica.Units.SI.MassFlowRatem_flow_nominalQHex_flow_nominal/4200/4

Components

TypeNameDefaultDescription
Buildings.Fluid.Sources.Boundary_pTwatInTanBoundary condition for water in the tank
Buildings.Fluid.Sources.MassFlowSource_TmHex_flow1Mass flow rate through the heat exchanger
TanktanDynTank with dynamic heat exchanger balance
TanktanSteTank with steady-state heat exchanger balance
Modelica.Blocks.Sources.TrapezoidmHex_flow_inControl signal for mass flow rate in heat exchanger
Buildings.Fluid.Sources.Boundary_pTsinSink boundary condition
Buildings.Fluid.Sources.MassFlowSource_TmHex_flow2Mass flow rate through the heat exchanger
Buildings.Fluid.Sensors.TemperatureTwoPortsenTanDynTemperature sensor at tank outlet
Buildings.Fluid.Sensors.TemperatureTwoPortsenTanSteTemperature sensor at tank outlet
Buildings.Fluid.Sources.MassFlowSource_TmWatTanDyn_flowMass flow rate through the tank
Buildings.Fluid.Sources.MassFlowSource_TmWatTanSte_flowMass flow rate through the tank

Contents

NameDescription
MediumMedium model
TankTank 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.