
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
| Type | Name | Default | Description |
| SI.Pressure | p_gas | 1e5 | pressure exerted by the (inert) gas above the liquid |
| Boolean[nSL] | inertLiquid | fill(false, nSL) | true for each component which is inert |
| Integer | nS | 2 | number of species which are equal in vapour and liquid phase |
| Integer | nL | nSL - nS | number of additional substances which are only in liquid phase |
| Integer | nSL | MediumLiquid.nSubstance | |
| Boolean | avoid_sum_mole | true | parameter to avoid the sum equation of molar fractions |
| SI.Area | A | Modelica.Constants.pi/4*d_volume^2 | |
| SI.Diameter | d_volume | 0.025 | diameter of the tank |
| Real | zeta | 2 | friction factor |
| SI.Pressure | p_ambient | 1e5 | pressure of ambience |
| Advanced |
| SI.Temperature | T_ref | systemTS.T_ref | reference temperature |
| Initialization |
| Real[nSL] | x_l_start | {1e-5, 1 - 1e-5} | |
| SI.Temperature | T_start | 300 | |
| SI.Height | level_start | 0.1 | |
Contents
| Name | Description |
MediumLiquid | |