modelStratifiedTank

Stratified buffer tank model

Information

This is a four-port tank model based on Buildings.Fluid.Storage.Stratified which includes the following features.

  • The two fluid ports suffixed with Top are connected to the fluid volume at the top of the tank.
  • The two fluid ports suffixed with Bot are connected to the fluid volume at the bottom of the tank.
  • A unique heat port is exposed as an external connector. It is meant to provide a uniform temperature boundary condition at the external surface of the tank (outside insulation).
  • The model outputs the temperature of the fluid volumes at the top and at the bottom of the tank.

Parameters

TypeNameDefaultDescription
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
IntegernSeg3Number of volume segments
Assumptions
BooleanallowFlowReversaltrue= true to allow flow reversal, false restricts to design direction (port_a -> port_b)
Nominal condition
Modelica.Units.SI.MassFlowRatem_flow_nominalNominal mass flow rate

Connectors

TypeNameDefaultDescription
Modelica.Fluid.Interfaces.FluidPort_aport_aTopInlet fluid port at tank top
Modelica.Fluid.Interfaces.FluidPort_bport_bBotOutlet fluid port at tank bottom
Modelica.Fluid.Interfaces.FluidPort_aport_aBotInlet fluid port at tank bottom
Modelica.Fluid.Interfaces.FluidPort_bport_bTopOutlet fluid port at tank top
Modelica.Blocks.Interfaces.RealOutputQl_flowHeat loss of tank (positive if heat flows from tank to ambient)
Modelica.Blocks.Interfaces.RealOutputTTopFluid temperature at tank top
Modelica.Blocks.Interfaces.RealOutputTBotFluid temperature at tank bottom
Modelica.Thermal.HeatTransfer.Interfaces.HeatPort_aheaPorAmbHeat port at interface with ambient (outside insulation)

Components

TypeNameDefaultDescription
Fluid.Storage.StratifiedtanStratified tank
Modelica.Thermal.HeatTransfer.Sensors.TemperatureSensorsenTBotTank bottom temperature
Modelica.Thermal.HeatTransfer.Sensors.TemperatureSensorsenTTopTank top temperature

Contents

NameDescription
MediumMedium model

Revisions

  • July 31, 2020, by Antoine Gautier:
    First implementation.