modelTank

tank model with varying liquid level

Extends from Icons.Color.ExpansionTank.

Information

This is a tank model for a liquid tank with a (inert) gas phase above the liquid level. This gas phase exerts a constant pressure on the liquid surface. The gas phase is not modelled explicitly and the pressure exerted by the gas phase is set by the user using the parameter p_gas. This pressure is then also propaged to the liquid inlet port.

Parameters

TypeNameDefaultDescription
SI.Pressurep_gas1e5pressure exerted by the (inert) gas above the liquid
Boolean[nSL]inertLiquidfill(false, nSL)true for each component which is inert
IntegernS2number of species which are equal in vapour and liquid phase
IntegernLnSL - nSnumber of additional substances which are only in liquid phase
IntegernSLMediumLiquid.nSubstance
Booleanavoid_sum_moletrueparameter to avoid the sum equation of molar fractions
SI.AreaAModelica.Constants.pi/4*d_volume^2
SI.Diameterd_volume0.025diameter of the tank
Realzeta2friction factor
SI.Pressurep_ambient1e5pressure of ambience
Advanced
SI.TemperatureT_refsystemTS.T_refreference temperature
Initialization
Real[nSL]x_l_start{1e-5, 1 - 1e-5}
SI.TemperatureT_start300
SI.Heightlevel_start0.1

Connectors

TypeNameDefaultDescription
ThermalSeparation.Interfaces.LiquidPortInportIn
ThermalSeparation.Interfaces.LiquidPortOutportOut
Modelica.Blocks.Interfaces.RealOutputylevel

Components

TypeNameDefaultDescription
ThermalSeparation.SystemTSsystemTS
MediumLiquid.BasePropertiesmediumLiquid
MediumLiquid.BasePropertiesmediumLiquidIn
SI.Densityrho_lmediumLiquid.d
SI.Densityrho_l_inmediumLiquidIn.d
ThermalSeparation.Units.MolarEnthalpyh_l
ThermalSeparation.Units.MolarEnthalpyu_lmediumLiquid.u
SI.MolarMassMM_lmediumLiquid.MM
SI.MolarMassMM_l_inmediumLiquidIn.MM
SI.MoleFraction[nSL]x_l_ininStream(portIn.x_outflow)
ThermalSeparation.Units.MolarEnthalpyh_l_ininStream(portIn.h_outflow)
SI.Concentration[nSL]c_l
SI.MoleFraction[nSL]x_l
SI.Pressurep
SI.Heightlevel
ResultsLiquidVolumesresults
SI.VolumeV_liqA*level
Realsum_xsum(x_l)
SI.MassFlowRatemdot_inportIn.Ndot*MM_l_in
SI.MassFlowRatemdot_outportOut.Ndot*MM_l
SI.TemperatureT_out
SI.TemperatureT_in
SI.VolumeFlowRateVdot_inportIn.Ndot*MM_l_in/rho_l_in

Contents

NameDescription
MediumLiquid