modelTank2Inlets
tank model with varying liquid level and two inlet ports
Extends from Icons.Color.ExpansionTank.
Information
This model is the same as Tank, but with two liquid inlet ports.
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) | |
| 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 | |
| SI.Area | A | Modelica.Constants.pi/4*d_volume^2 | |
| SI.Diameter | d_volume | 0.025 | |
| Real | zeta | 2 | |
| SI.Pressure | p_ambient | 1e5 | |
| 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 | |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| ThermalSeparation.Interfaces.LiquidPortIn | portIn | ||
| ThermalSeparation.Interfaces.LiquidPortOut | portOut | ||
| ThermalSeparation.Interfaces.LiquidPortIn | portInRecirc | ||
| Modelica.Blocks.Interfaces.RealOutput | y | level |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| ThermalSeparation.SystemTS | systemTS | ||
| MediumLiquid.BaseProperties | mediumLiquid | ||
| MediumLiquid.BaseProperties | mediumLiquidIn | ||
| MediumLiquid.BaseProperties | mediumLiquidInRecirc | ||
| SI.Density | rho_l | mediumLiquid.d | |
| SI.Density | rho_l_in | mediumLiquidIn.d | |
| SI.Density | rho_l_in_recirc | mediumLiquidInRecirc.d | |
| SI.Concentration[nSL] | c_l | ||
| SI.Concentration | dummy | c_l[1] | |
| SI.MoleFraction[nSL] | x_l | ||
| ThermalSeparation.Units.MolarEnthalpy | h_l | mediumLiquid.h | |
| ThermalSeparation.Units.MolarEnthalpy | u_l | mediumLiquid.u | |
| SI.MoleFraction[nSL] | x_l_in | inStream(portIn.x_outflow) | |
| SI.MoleFraction[nSL] | x_l_in_recirc | inStream(portInRecirc.x_outflow) | |
| SI.MolarMass | MM_l | mediumLiquid.MM | |
| SI.MolarMass | MM_l_in | mediumLiquidIn.MM | |
| SI.MolarMass | MM_l_in_recirc | mediumLiquidInRecirc.MM | |
| ThermalSeparation.Units.MolarEnthalpy | h_l_in | mediumLiquidIn.h | |
| ThermalSeparation.Units.MolarEnthalpy | h_l_in_recirc | mediumLiquidInRecirc.h | |
| SI.Pressure | p | ||
| SI.Height | level | ||
| SI.MassFlowRate | mdot_in | portIn.Ndot*MM_l_in | |
| SI.MassFlowRate | mdot_in2 | portInRecirc.Ndot*MM_l_in_recirc | |
| SI.MassFlowRate | mdot_out | -portOut.Ndot*MM_l | |
| SI.VolumeFlowRate | Vdot_out | -portOut.Ndot*MM_l/rho_l | |
| SI.VolumeFlowRate | Vdot_in | portIn.Ndot*MM_l_in/rho_l_in | |
| SI.VolumeFlowRate | Vdot_in_recirc | portInRecirc.Ndot*MM_l_in_recirc/rho_l_in_recirc | |
| SI.Temperature | T_l_in | ||
| SI.Temperature | T_l_in_recirc | ||
| SI.Temperature | T_l | ||
| SI.Volume | V_liq | A*level | |
| Real | sum_x | sum(x_l) |
Contents
| Name | Description |
|---|---|