modelHeat_storage_hx_R

Stratified tank with an internal heat exchanger, ambient heat losses and resistance heating

Information

Nodal model of a stratified tank with an internal heat exchanger and ambient heat losses. This model is adapted from the ThermoCycle library. The water tank is modeled using the energy and mass conservation principles and assuming thermodynamic equilibrium at all times inside the control volume. The following hypotheses are applied:

  • No heat transfer between the different nodes
  • The internal heat exchanger is discretized in the same way as the tank: each cell of the heat exchanger corresponds to one cell of the tank and exchanges heat with that cell only.
  • Incompressible fluid in both the tank and the heat exchanger
  • Axial thermal conductivity is neglected


The tank is discretized using a modified version of the incompressible Cell1Dim model adding an additional heat port (i.e. Cell1DimInc_2ports). The heat exchanger is modeled using the Flow1DimInc component and a wall component.

Parameters

TypeNameDefaultDescription
Modelica.Units.SI.Lengthhtot1Total height of the tank
Modelica.Units.SI.Lengthh10.3Height of the bottom of the heat exchanger
Modelica.Units.SI.Lengthh20.6Height of the top of the heat exchanger
Modelica.Units.SI.Lengthh_T0.7Height of the temperature sensor
IntegerN15Total number of cells
IntegerN1integer(h1*N/htot)Cell corresponding to the bottom of the heat exchanger
IntegerN2integer(h2*N/htot)Cell corresponding to the top of the heat exhcanger
IntegerN_Tinteger(h_T*N/htot)Cell corresponding to the tempearture sensor
Modelica.Units.SI.AreaA_amb2Total heat exchange area from the tank to the ambient
Modelica.Units.SI.AreaA_hx1Total heat exchanger area from in the heat exchanger
Modelica.Units.SI.VolumeV_tank0.3Total capacity of the tank
Modelica.Units.SI.VolumeV_hx0.005Internal volume of the heat exchanger
Modelica.Units.SI.MassFlowRateMdot_nom0.1Nominal mass flow rate in the heat exchanger
Modelica.Units.SI.CoefficientOfHeatTransferU_amb1Heat transfer coefficient between the tank and the ambient
Modelica.Units.SI.CoefficientOfHeatTransferUnom_hx4000Nominal heat transfer coefficient in the heat exchanger
Modelica.Units.SI.MassM_wall_hx5Mass of the metal wall between the two fluids
Modelica.Units.SI.SpecificHeatCapacityc_wall_hx500Specific heat capacity of metal wall
Modelica.Units.SI.PowerWdot_res3000Nominal power of the electrical resistance
Modelica.Units.SI.TemperatureTmax273.15 + 90
Initialization
Modelica.Units.SI.Pressurepstart_tank1E5Tank pressure start value
Modelica.Units.SI.TemperatureTstart_inlet_tank273.15 + 10Tank inlet temperature start value
Modelica.Units.SI.TemperatureTstart_outlet_tank273.15 + 60Tank outlet temperature start value
Modelica.Units.SI.SpecificEnthalpy[N]hstart_tanklinspace(MainFluid.specificEnthalpy_pTX(pstart_tank, Tstart_inlet_tank, MainFluid.reference_X), MainFluid.specificEnthalpy_pTX(pstart_tank, Tstart_outlet_tank, MainFluid.reference_X), N)Start value of enthalpy vector (initialized by default)
Modelica.Units.SI.Pressurepstart_hx1E5Heat exchanger pressure start value
Modelica.Units.SI.TemperatureTstart_inlet_hx273.15 + 70Heat exchanger inlet temperature start value
Modelica.Units.SI.TemperatureTstart_outlet_hx273.15 + 50Heat exchanger outlet temperature start value
Booleansteadystate_tanktrueif true, sets the derivative of h (working fluids enthalpy in each cell) to zero during Initialization
Booleansteadystate_hxtrueif true, sets the derivative of h (working fluids enthalpy in each cell) to zero during Initialization

Connectors

TypeNameDefaultDescription
Interfaces.Heat.ThermalPortLWall_ext
Modelica.Fluid.Interfaces.FluidPort_aMainFluid_su
Modelica.Fluid.Interfaces.FluidPort_bSecondaryFluid_ex
Modelica.Fluid.Interfaces.FluidPort_bMainFluid_ex
Modelica.Fluid.Interfaces.FluidPort_aSecondaryFluid_su
Modelica.Blocks.Interfaces.BooleanInputR_on_off
Modelica.Blocks.Interfaces.RealOutputTemperature

Components

TypeNameDefaultDescription
Flow1DimIncflow1Dim
Cell1DimInc_2ports[N]cell1DimInc_hx
Interfaces.Heat.ThermalPortConverterthermalPortConverter
MetalWallmetalWall
SummaryClassSummary
Modelica.Thermal.HeatTransfer.Sources.PrescribedHeatFlow[N]Resistor

Contents

NameDescription
MainFluid
SecondaryFluid
SummaryBase
SummaryClass