modelExpansionTank

Expansion Tank - lumped model

Information

Model ExpansionTank describes the storage of fluid in liquid phase in a closed volume filled with gas.

Pressure and enthalpy are selected as state variables.

The assumptions for this model are:

  • The gas is considered ideal and using Boyle's law: p_gas*V_gas = Const = pstart*V_gas
  • The gas is considered at the same temperature of the fluid
  • The model is based on dynamic mass and energy balances of the fluid
  • The static pressure head due to the liquid level is taken into account
  • Thermal energy transfer due to external air convection through the tank surface (lateral+top+bottom) is ensured by the TankWall connector. The actual heat flow is computed by the thermal energy model
  • Minimum liquid level with respect to tank height= 0
  • Maximum liquid level with respect to tank height= 0.5

The model is characterized by one flow connector.

The thermal energy transfer through the tank surface is computed by the ConvectiveHeatTransfer model which is inerithed in the ExpansionTank model

Modelling options

In the General tab the following options are availabe:

  • Medium: the user has the possibility to easly switch Medium.
  • p_const:If true an user defined constant pressure is imposed to the fluid volume --> closed tank at constant pressure
  • HeatTransfer: selection between the different heat transfer models available in ThermoCycle

Parameters

TypeNameDefaultDescription
RealgModelica.Constants.g_n
RealpiModelica.Constants.pipi-greco
RealRRModelica.Constants.RMolar gas constant [J/mol.K]
RealH_DHeight to diameter ratio
Modelica.SIunits.VolumeV_tankVolume of the Tank
Modelica.SIunits.Lengthr_int((V_tank/(H_D)*4/pi)^(1/3))/2Internal tank radius
Modelica.SIunits.LengthD_intr_int*2Internal tank Diameter
Modelica.SIunits.LengthHV_tank/A_crossTank Height
Modelica.SIunits.AreaA_lateralpi*H*D_intLateral External Area
Modelica.SIunits.AreaA_crosspi*r_int^2Cross section of the tank External Area
Modelica.SIunits.AreaAtot_tankA_lateral + 2*A_crossTotal External Area (lateral + bottom + top)
Booleanp_constfalseImpose a constant pressure to the tank
Modelica.SIunits.Pressurep_ext1e5Constant pressure value
Modelica.SIunits.MassFlowRateMdotnomNominal fluid flow rate
Modelica.SIunits.CoefficientOfHeatTransferUnom1Nominal Heat transfer coefficient for the fluid.
Modelica.SIunits.VolumeV_lstartA_cross*L_lstart
RealpV_gaspstart*V_tank*(1 - L_lstart)Initial value of
Initialization
Modelica.SIunits.TemperatureTstartInitial temperature
Modelica.SIunits.PressurepstartInitial pressure in the tank
Modelica.SIunits.SpecificEnthalpyhstartMedium.specificEnthalpy_pTX(pstart, Tstart, fill(0, 0))Start value of enthalpy vector (initialized by default)
RealL_lstartStart value for the liquid level with respect to the tank height min=0,max=0.5

Connectors

TypeNameDefaultDescription
ThermoCycle.Interfaces.Fluid.FlangeAInFlow
Modelica.Blocks.Interfaces.RealOutputLevel
ThermoCycle.Interfaces.HeatTransfer.ThermalPortLTankWall

Components

TypeNameDefaultDescription
HeatTransferheatTransfer
Medium.ThermodynamicStatefluidState
Medium.AbsolutePressurep
Medium.AbsolutePressurep_flWater pressure at the bottom of the tank
Modelica.SIunits.VolumeV_lVolume of the liquid
Modelica.SIunits.LengthL_lHeight of the liquid
Modelica.SIunits.MassM_lLiquid Mass
Medium.SpecificEnthalpyhFluid specific enthalpy
Medium.SpecificEnthalpyh_suEnthalpy state variable at inlet node
Medium.DensityrhoFluid density
Medium.TemperatureTFluid temperature
Modelica.SIunits.MassFlowRateM_dot
Modelica.SIunits.HeatFluxqdotheat flux with the external ambient
Modelica.SIunits.DerDensityByEnthalpydrdhDerivative of average density by enthalpy
RealdMdt
Modelica.SIunits.VolumeV_gasideal gas volume
Medium.AbsolutePressurep_gasIdeal gas pressure

Contents

NameDescription
Medium
HeatTransfer