modelOpenTank

Lumped open tank model with an imposed constant pressure

Information

The model OpenTank describes the storage of fluid in liquid phase in an open tank.

Pressure and enthalpy are selected as state variables.

The assumptions for this model are:

  • The model is based on dynamic mass and energy balance
  • Constant external pressure
  • The static pressure head due to the liquid level is taken into account
  • Thermal energy transfer through the lateral surface 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= 1

The model comprises two flow connectors and one lumped thermal port connector. During normal operation the fluid enters the model from the InFlow connector and exits from the OutFlow connector. In case of flow reversal the fluid direction is inversed

Modelling options

In the General tab the following options are available:

  • Medium: the user has the possibility to easily switch Medium.
  • HeatTransfer: selection between the different heat transfer models available in ThermoCycle

Parameters

TypeNameDefaultDescription
RealgModelica.Constants.g_n
RealpiModelica.Constants.pipi-greco
RealH_D2.5Height to diameter ratio
Modelica.SIunits.VolumeV_tank4Volume 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_cross)Tank 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)
Modelica.SIunits.Pressurep_ext3e5External pressure imposed to the system
Modelica.SIunits.CoefficientOfHeatTransferUnom1Nominal Heat transfer coefficient for the fluid
Initialization
Modelica.SIunits.TemperatureTstart100 + 273.15Initial temperature
Modelica.SIunits.Pressurepstart2e5Initial temperature
Modelica.SIunits.SpecificEnthalpyhstartMedium.specificEnthalpy_pTX(pstart, Tstart, fill(0, 0))Start value of enthalpy vector (initialized by default)
RealL_lstart0.3Start value for the liquid level with respect to the height of the tank,Min=0,Max=1
Modelica.SIunits.MassFlowRateMdotnom2Nominal fluid flow rate

Connectors

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

Components

TypeNameDefaultDescription
HeatTransferheatTransfer
Medium.ThermodynamicStatefluidState
Medium.AbsolutePressurep
Modelica.SIunits.VolumeV_lVolume of the liquid
Modelica.SIunits.AreaA_lLateral area of the tank occupied by the fluid
RealL_lHeight of the liquid with respect to tank height
Modelica.SIunits.MassM_lLiquid Mass
Medium.SpecificEnthalpyhFluid specific enthalpy
Modelica.SIunits.SpecificEnthalpyh_suEnthalpy state variable at inlet node
Modelica.SIunits.SpecificEnthalpyh_exEnthalpy state variable at outlet node
Medium.DensityrhoFluid density
Medium.TemperatureTFluid temperature
Modelica.SIunits.MassFlowRateM_dot_su
Modelica.SIunits.MassFlowRateM_dot_ex
Modelica.SIunits.DerDensityByEnthalpydrdhDerivative of average density by enthalpy
Modelica.SIunits.HeatFluxqdotheat flux with the external ambient
RealdMdt

Contents

NameDescription
Medium
HeatTransfer