modelStorageTankHex

Extends from IBPSA.Fluid.Interfaces.PartialFourPortInterface (Partial model transporting fluid between two ports without storing mass or energy).

Information

This is a model of a stratified thermal storage tank with an internal heat exchanger. It is basically a convenience wrapper around the model IBPSA.Fluid.Storage.StratifiedEnhancedInternalHex. It adds a constant ambient temperature to take losses into account.

Parameters

TypeNameDefaultDescription
Assumptions
BooleanallowFlowReversal1 (from PartialFourPort)true= false to simplify equations, assuming, but not enforcing, no flow reversal for medium 1
BooleanallowFlowReversal2 (from PartialFourPort)true= false to simplify equations, assuming, but not enforcing, no flow reversal for medium 2
Nominal condition
Modelica.SIunits.MassFlowRatem1_flow_nominal (from PartialFourPortInterface)Nominal mass flow rate
Modelica.SIunits.MassFlowRatem2_flow_nominal (from PartialFourPortInterface)Nominal mass flow rate
Advanced
Medium1.MassFlowRatem1_flow_small (from PartialFourPortInterface)1E-4*abs(m1_flow_nominal)Small mass flow rate for regularization of zero flow
Medium2.MassFlowRatem2_flow_small (from PartialFourPortInterface)1E-4*abs(m2_flow_nominal)Small mass flow rate for regularization of zero flow
Advanced › Diagnostics
Booleanshow_T (from PartialFourPortInterface)false= true, if actual temperature at port is computed
Flow resistance › Primary side
Booleanfrom_dpfalse= true, use m_flow = f(dp) else dp = f(m_flow)
BooleanlinearizeFlowResistancefalse= true, use linear relation between m_flow and dp for any flow rate
Primary side
Modelica.SIunits.PowerQ1_flow_nominalNominal heat flow rate
Modelica.SIunits.TemperatureTemSup1_nominalNominal supply temperature
Modelica.SIunits.TemperatureTemRet1_nominalNominal return temperature
Secondary side
Modelica.SIunits.PowerQ2_flow_nominalNominal heat flow rate
Modelica.SIunits.TemperatureTemSup2_nominalNominal supply temperature
Modelica.SIunits.TemperatureTemRet2_nominalNominal return temperature
Storage tank
Modelica.SIunits.VolumeVTanTank volume
Modelica.SIunits.LengthhTanHeight of tank (without insulation)
Modelica.SIunits.LengthdIns0.2Thickness of insulation
Modelica.SIunits.ThermalConductivitykIns0.04Specific heat conductivity of insulation
IntegernSeg4Number of volume segments
Modelica.SIunits.TemperatureTemRoom20.0 + 273.15Constant temperature surrounding the storage tank
IntegernInit0Number of volume segments initialized with TemSup2_nominal
Heat exchanger
Modelica.SIunits.HeighthHex_ahTan/2Height of portHex_a of the heat exchanger, measured from tank bottom
Modelica.SIunits.HeighthHex_b0Height of portHex_b of the heat exchanger, measured from tank bottom
IntegerhexSegMult2Number of heat exchanger segments in each tank segment
Modelica.SIunits.DiameterdExtHex0.025Exterior diameter of the heat exchanger pipe
Realr_nominal0.5Ratio between coil inside and outside convective heat transfer at nominal heat transfer conditions

Connectors

TypeNameDefaultDescription
Modelica.Fluid.Interfaces.FluidPort_aport_a1 (from PartialFourPort)Fluid connector a1 (positive design flow direction is from port_a1 to port_b1)
Modelica.Fluid.Interfaces.FluidPort_bport_b1 (from PartialFourPort)Fluid connector b1 (positive design flow direction is from port_a1 to port_b1)
Modelica.Fluid.Interfaces.FluidPort_aport_a2 (from PartialFourPort)Fluid connector a2 (positive design flow direction is from port_a2 to port_b2)
Modelica.Fluid.Interfaces.FluidPort_bport_b2 (from PartialFourPort)Fluid connector b2 (positive design flow direction is from port_a2 to port_b2)
Modelica.Blocks.Interfaces.RealOutput[nSeg]TemTankTemperature of layers in thermal storage tank
Modelica.Thermal.HeatTransfer.Interfaces.HeatPort_a[nSeg]heaPorVolHeat port that connects to the control volumes of the tank

Components

TypeNameDefaultDescription
Medium1.MassFlowRatem1_flow (from PartialFourPortInterface)port_a1.m_flowMass flow rate from port_a1 to port_b1 (m1_flow > 0 is design flow direction)
Modelica.SIunits.PressureDifferencedp1 (from PartialFourPortInterface)port_a1.p - port_b1.pPressure difference between port_a1 and port_b1
Medium2.MassFlowRatem2_flow (from PartialFourPortInterface)port_a2.m_flowMass flow rate from port_a2 to port_b2 (m2_flow > 0 is design flow direction)
Modelica.SIunits.PressureDifferencedp2 (from PartialFourPortInterface)port_a2.p - port_b2.pPressure difference between port_a2 and port_b2
Medium1.ThermodynamicStatesta_a1 (from PartialFourPortInterface)Medium1.setState_phX(port_a1.p, noEvent(actualStream(port_a1.h_outflow)), noEvent(actualStream(port_a1.Xi_outflow)))Medium properties in port_a1
Medium1.ThermodynamicStatesta_b1 (from PartialFourPortInterface)Medium1.setState_phX(port_b1.p, noEvent(actualStream(port_b1.h_outflow)), noEvent(actualStream(port_b1.Xi_outflow)))Medium properties in port_b1
Medium2.ThermodynamicStatesta_a2 (from PartialFourPortInterface)Medium2.setState_phX(port_a2.p, noEvent(actualStream(port_a2.h_outflow)), noEvent(actualStream(port_a2.Xi_outflow)))Medium properties in port_a2
Medium2.ThermodynamicStatesta_b2 (from PartialFourPortInterface)Medium2.setState_phX(port_b2.p, noEvent(actualStream(port_b2.h_outflow)), noEvent(actualStream(port_b2.Xi_outflow)))Medium properties in port_b2
IBPSA.Fluid.Storage.StratifiedEnhancedInternalHextan
Modelica.Thermal.HeatTransfer.Sensors.TemperatureSensor[nSeg]SenTemTankTemperature tank

Contents

NameDescription
MediumMedium in the component

Revisions

  • Feburary 27, 2019, by Benedikt Leitner:
    Implementation and added User's guide.