modelTank_pL

Fully-mixed two-phase tank model with pressure and level as state variables

Information

Model Tank_pL represents a liquid receiver. It is assumed to be in thermodynamic equilibrium at all times, i.e. the vapor and liquid are saturated at the given pressure. It is modeled with a dynamic energy and mass balances.

The exhaust flow rate is defined as saturated liquid while the supply flow rate coming from the inlet can be either subcooled (in which case the receiver pressure is going to decrease), saturated (in which case the receiver pressure remains constant) or two-phase (in which case the receiver pressure is going to increase).

It uses L , the relative level, and p, pressure, as state variables

It only requires one saturation call to the thermodynamic properties.

Modelling options

In the Initialization tab the following options are availabe:

  • impose_L: if true, the level of the tank is imposed during Initialization
  • impose_pressure: if true, the pressure of the tank is imposed during Initialization
  • SteadyState_p: if true, the derivative of the pressure of the tank is set to zero during Initialization
  • SteadyState_L: if true, the derivative of the level of the tank is set to zero during Initialization

Sylvain Quoilin, March 2013.

Parameters

TypeNameDefaultDescription
Modelica.SIunits.VolumeVtot0.002Volume of the tank
Modelica.SIunits.Pressurep_ng0Partial pressure of non-condensable gases
Initialisation
Modelica.SIunits.Pressurepstart5e5Initial pressure
RealL_start0.6Initial level
Booleanimpose_LtrueSet to yes to impose the initial tank level
Booleanimpose_pressurefalseSet to yes to impose the initial tank pressure
BooleanSteadyState_pfalseSet to yes to impose initial steady-state on the pressure
BooleanSteadyState_LfalseSet to yes to impose initial steady-state on the tank level

Connectors

TypeNameDefaultDescription
Modelica.Blocks.Interfaces.RealOutputlevel
Interfaces.Fluid.FlangeAInFlow
Interfaces.Fluid.FlangeBOutFlow

Components

TypeNameDefaultDescription
Medium.SaturationPropertiessat
Modelica.SIunits.Pressurep_totTotal pressure of the system
Medium.DensityrhoInlet density
Modelica.SIunits.VolumeVlVolume of the fluid in liquid phase [m3]
Modelica.SIunits.VolumeVvVolume of the fluid in vapor phase [m3]
Modelica.SIunits.MassFlowRateM_dot_exOutlet mass flow [kg/s]
Modelica.SIunits.MassFlowRateM_dot_suInlet mass flow [kg/s]
Modelica.SIunits.SpecificEnthalpyh_exOutlet enthalpy [kJ/kg]
Modelica.SIunits.SpecificEnthalpyh_suInlet enthalpy [kJ/kg]
Modelica.SIunits.Pressurep
Modelica.SIunits.MassMTotal mass of the fluid stored [kg]
Modelica.SIunits.EnthalpyH
RealLLevel in the tank
RealH_derderivative of the total enthalpy

Contents

NameDescription
Medium