modelTankBranch

Model of the tank branch of a storage plant

Extends from Buildings.Fluid.Interfaces.PartialFourPort (Partial model with four ports).

Information

This model is part of a storage plant. This branch has a stratified tank. This tank can potentially be charged remotely by a chiller from the district CHW network, or by a chiller that is local to the energy transfer station that contains this tank.

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 values
Modelica.Units.SI.MassFlowRatem_flow_nominalNominal mass flow rate
Modelica.Units.SI.MassFlowRatemTan_flow_nominalNominal mass flow rate for CHW tank branch
Modelica.Units.SI.MassFlowRatemChi_flow_nominalNominal mass flow rate for CHW chiller branch
Modelica.Units.SI.TemperatureT_CHWS_nominal7 + 273.15Nominal temperature of CHW supply
Modelica.Units.SI.TemperatureT_CHWR_nominal12 + 273.15Nominal temperature of CHW return
Tank
Modelica.Units.SI.VolumeVTanTank volume
Modelica.Units.SI.LengthhTanHeight of tank (without insulation)
Modelica.Units.SI.LengthdInsThickness of insulation
Modelica.Units.SI.ThermalConductivitykIns0.04Specific heat conductivity of insulation
IntegernSeg5Number of volume segments
Modelica.Units.SI.Timetau1Time constant for mixing
Dynamics › Conservation equations
Modelica.Fluid.Types.DynamicsenergyDynamicsModelica.Fluid.Types.Dynamics.FixedInitialFormulation of energy balance
Initialization
Medium.AbsolutePressurep_startMedium.p_defaultStart value of pressure
Medium.TemperatureT_startT_CHWR_nominalStart value of temperature
Modelica.Units.SI.Temperature[nSeg]TFlu_startT_start*ones(nSeg)Initial temperature of the tank segments, with TFlu_start[1] being the top segment

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.RealOutputmTan_flowMass flow rate of the tank
Modelica.Blocks.Interfaces.RealOutputQl_flowHeat loss of tank (positive if heat flows from tank to ambient)
Modelica.Thermal.HeatTransfer.Interfaces.HeatPort_aheaPorTopHeat port tank top (outside insulation)
Modelica.Thermal.HeatTransfer.Interfaces.HeatPort_aheaPorSidHeat port tank side (outside insulation)
Modelica.Thermal.HeatTransfer.Interfaces.HeatPort_aheaPorBotHeat port tank bottom (outside insulation). Leave unconnected for adiabatic condition
Modelica.Thermal.HeatTransfer.Interfaces.HeatPort_aheaPorVolHeat port that connects to the control volumes of the tank
Modelica.Blocks.Interfaces.RealOutput[2]TTanTemperatures at the tank 1: top and 2: bottom

Components

TypeNameDefaultDescription
Buildings.Fluid.Storage.StratifiedtanTank
Buildings.Fluid.Sensors.MassFlowRatesenFloFlow rate sensor for the tank,
Modelica.Thermal.HeatTransfer.Sensors.TemperatureSensorsenTemTopTemperature sensor for tank top
Modelica.Thermal.HeatTransfer.Sensors.TemperatureSensorsenTemBotTemperature sensor for tank bottom

Contents

NameDescription
MediumMedium package

Revisions

  • March 5, 2024, by Michael Wetter:
    Corrected wrong use of displayUnit.
  • October 4, 2022 by Hongxiang Fu:
    First implementation. This is for #2859.