modelFluidStorage

Model of a thermal fluid storage

Information

This is a model for a thermal fluid storage

Typical use and important parameters

nEle number of layers, enumeration starts at bottom (bottom layer is no. 1)

Options

The thermal fluid storage model has several fluidports. 2 at the bottom and 2 at the top. It is possible to have different configurations:

  • Switch on fluidports connected to each of the intermediate fluid layers.
  • 2 optional and freely placeable internal heat exchangers (identified as "1" and "2").
  • Specify the layer at which the HX are connected.
  • Set PerfectlyIsolated to true to switch off the heat losses to the environment, i.e. the thermal fluid storage is perfectly isolated.
    Note that if PerfectlyIsolated is set to false and no boundary condition is connected to the heatPort, the external heat flow rate will also be 0. However, because all layers are connected to the external heat port, a non-physical internal heat flow transfer between volumes takes place.

Notes

The thermal fluid storage uses a model to increase heat exchange betweeen layers accounting for buoyancy effect, see BuoyancyModels

Assumption and limitations

Up to date the model does not take into account the mixing caused by in and outflows and there is no model for a stratified inlet.

Parameters

TypeNameDefaultDescription
IntegernEle3Number of fluid layers
Geometry
Modelica.Units.SI.Lengthheight1.0Height of the storage
Modelica.Units.SI.VolumeV1.0Fluid volume of the storage
Modelica.Units.SI.Thicknessthickness_ins0.005Insulation thickness
Modelica.Units.SI.Thicknessthickness_wall1Wall thickness
Thermal properties
Modelica.Units.SI.CoefficientOfHeatTransferalpha_out800.0Coefficient of heat transfer outside of the storage
Modelica.Units.SI.CoefficientOfHeatTransferalpha_in3000.0Coefficient of heat transfer inside the storage
Modelica.Units.SI.ThermalConductivitylambda_ins0.05Thermal heat conductivity of insulation material
Modelica.Units.SI.ThermalConductanceUA_wall(Modelica.Constants.pi*height)/(1.0/(alpha_out*diameter_ext) + log(diameter_ext/diameter_int)/(2*lambda_ins) + 1/(alpha_in*diameter_int))Thermal conductance walls
Modelica.Units.SI.ThermalConductanceUA_top1.0/(thickness_ins/(lambda_ins*ASec) + 1.0/(alpha_in*ASec) + 1.0/(alpha_out*ASec))Thermal conductance top
Modelica.Units.SI.ThermalConductanceUA_botUA_topThermal conductance bottom
Storage configuration
BooleanHX_2trueSet to true to add heat exchanger at the top layer
BooleanHX_1trueSet to true to add heat exchanger at the bottom layer
BooleanPerfectlyIsolatedfalseSet to true to avoid heat losses
BooleanAdditionalFluidPortsfalseSet to true to add aditional fluid ports connected to intermediate layers
HX definition
Modelica.Units.SI.ThermalConductanceUA_HX_2100.0Constant thermal conductance of material
IntegerEle_HX_22Layer at which HX_2 is connected
Modelica.Units.SI.ThermalConductanceUA_HX_1100.0Constant thermal conductance of material
IntegerEle_HX_11Layer at which HX_1 is connected
Initialization
Modelica.Media.Interfaces.Types.TemperatureT_startMedium.T_defaultInitial storage temperature

Connectors

TypeNameDefaultDescription
Modelica.Fluid.Interfaces.FluidPorts_a[nEle - 2]port_aPorts to the intermediate layers
Modelica.Thermal.HeatTransfer.Interfaces.HeatPort_aheatPortThermal boundary condition to environment
Modelica.Fluid.Interfaces.FluidPort_aport_HX_1_aPort a to the HX at the bottom of the storage
Modelica.Fluid.Interfaces.FluidPort_bport_HX_1_bPort b to the HX at the bottom of the storage
Modelica.Fluid.Interfaces.FluidPort_aport_HX_2_aPort a to the HX at the top of the storage
Modelica.Fluid.Interfaces.FluidPort_bport_HX_2_bPort b to the HX at the top of the storage
Modelica.Fluid.Interfaces.FluidPort_bport_b1Port to the top of the storage n=nEle
Modelica.Fluid.Interfaces.FluidPort_bport_b2Port to the bottom of the storage n=1
Modelica.Fluid.Interfaces.FluidPort_aport_a1Port to the bottom of the storage n=1
Modelica.Fluid.Interfaces.FluidPort_aport_a2Port to the top of the storage n=nEle
Modelica.Blocks.Interfaces.RealOutput[nEle]TStarting at bottom

Components

TypeNameDefaultDescription
BuildingSystems.Fluid.MixingVolumes.MixingVolume[nEle - 2]vol
Modelica.Thermal.HeatTransfer.Components.ThermalConductorHeatThroughTop
Modelica.Thermal.HeatTransfer.Components.ThermalConductor[nEle]HeatThroughWalls
Modelica.Thermal.HeatTransfer.Components.ThermalConductorHeatThroughBottom
Modelica.Thermal.HeatTransfer.Components.ThermalConductor[nEle - 1]HeatBetweenLayersNormal heat transfer due to conductivity
BuildingSystems.Technologies.ThermalStorages.BaseClasses.BuoyancyModels.Buoyancy1HeatBuoyancy
Modelica.Thermal.HeatTransfer.Components.ThermalCollectorthermalCollector
BuildingSystems.Fluid.MixingVolumes.MixingVolumevol_HX_1
Modelica.Thermal.HeatTransfer.Components.ThermalConductorThermalConductanceHX_1
BuildingSystems.Fluid.MixingVolumes.MixingVolumevol_HX_2
Modelica.Thermal.HeatTransfer.Components.ThermalConductorThermalConductanceHX_2
BuildingSystems.Fluid.MixingVolumes.MixingVolumevol_bot
Fluid.MixingVolumes.MixingVolumevol_top
Fluid.FixedResistances.LosslessPipe[nEle - 2]pip

Contents

NameDescription
MediumMedium of the storage content
Medium_HX_1Medium of the internal heat exchanger 1
Medium_HX_2Medium of the internal heat exchanger 2

Revisions

  • August 18, 2018, by Christoph Nytsch-Geusen:
    Adapted to possible different media for the storage content and the two internal heat exchangers.
  • May 23, 2015 by Carles Ribas Tugores:
    First implementation.