modelTankWith3InletOutletArraysWithEvaporatorCondensor

Tank with Heating and Evaporation

Information

This tank has the same geometric variables as TankWith3InletOutletArrays plus the feature of a HeatPort and the possibility of evaporation. (Assumption: The gas is condensed immediately afterwards so that a liquid boiling fluid is created.)

The tank can be initialized with the following options:

  • GuessValues: no explicit initial conditions
  • InitialValues: initial values of temperature (or specific enthalpy), composition and level are specified
  • SteadyStateHydraulic: initial values of temperature (or specific enthalpy) and composition are specified; the initial level is determined so that levels and pressure are at steady state.

Full steady state initialization is not supported, because the corresponding initial equations for temperature/enthalpy are undetermined (the flow rate through the port at steady state is zero).

Parameters

TypeNameDefaultDescription
SI.AreacrossAreaTank area
SI.Area[n_TopPorts]top_pipeAreaArea of outlet pipe
SI.Area[n_SidePorts]side_pipeAreaArea of outlet pipe
SI.Area[n_BottomPorts]bottom_pipeAreaArea of outlet pipe
SI.Heightheight10Height of Tank
SI.VolumeV00Volume of the liquid when the level is zero
SI.AccelerationgModelica.Constants.g_n
SI.Height[n_SidePorts]side_heightszeros(n_SidePorts)Side heights
SI.Height[n_BottomPorts]bottom_heightszeros(n_BottomPorts)Bottom heights
SI.Height[n_TopPorts]top_heightsfill(height, n_TopPorts)Top heights
Medium.AbsolutePressurep_ambient101325Tank surface pressure
Medium.TemperatureT_ambient293.15Tank surface Temperature
Integern_TopPorts1Number of top connectors
Integern_SidePorts1Number of side connectors
Integern_BottomPorts1Number of bottom connectors
SI.Heightmin_level_for_heatingMinimum level for heating
Initialization
SI.Heightlevel_startInitial tank level
Modelica.Fluid.Examples.AST_BatchPlant.BaseClasses.InitinitTypeInit.GuessValuesInitialization option
Booleanuse_T_starttrue= true, if T_start is used, otherwise h_start
Medium.TemperatureT_startif use_T_start then 293.15 else Medium.temperature_phX(p_ambient, h_start, X_start)Start value of temperature
Medium.SpecificEnthalpyh_startif use_T_start then Medium.specificEnthalpy_pTX(p_ambient, T_start, X_start[1:Medium.nXi]) else 1e4Start value of specific enthalpy
Medium.MassFraction[Medium.nX]X_startMedium.reference_XStart value of mass fractions m_i/m

Connectors

TypeNameDefaultDescription
Modelica.Fluid.Interfaces.FluidPort_b[n_BottomPorts]BottomFluidPort
Modelica.Fluid.Interfaces.FluidPort_a[n_TopPorts]TopFluidPort
Modelica.Fluid.Interfaces.FluidPort_b[n_SidePorts]SideFluidPort
Modelica.Fluid.Interfaces.FluidPort_bCondensed
Modelica.Thermal.HeatTransfer.Interfaces.HeatPort_aheatPort

Components

TypeNameDefaultDescription
Medium.BasePropertiesmedium
SI.HeightlevelLevel height of tank
SI.VolumeVActual tank volume
SI.EnergyUInternal energy of tank volume
RealmMass of tank volume
Real[Medium.nXi]mXiComponent masses of the independent substances
Real[n_BottomPorts]H_flow_BottomPorts
Real[n_SidePorts]H_flow_SidePorts
Real[n_TopPorts]H_flow_TopPorts
Real[n_BottomPorts]m_flow_BottomPorts
Real[n_SidePorts]m_flow_SidePorts
Real[n_TopPorts]m_flow_TopPorts
Real[n_BottomPorts]m_flow_BottomPorts_pos
Real[n_SidePorts]m_flow_SidePorts_pos
Real[n_TopPorts]m_flow_TopPorts_pos
Realm_flow_pos
Medium.MassFlowRate[n_TopPorts,Medium.nXi]mXi_flow_topPorts
Medium.MassFlowRate[n_BottomPorts,Medium.nXi]mXi_flowBottomPorts
Medium.MassFlowRate[n_SidePorts,Medium.nXi]mXi_flow_sidePorts
Modelica.Fluid.Examples.AST_BatchPlant.BaseClasses.InnerTank[n_TopPorts]InnerTankTop
Modelica.Fluid.Examples.AST_BatchPlant.BaseClasses.InnerTank[n_SidePorts]InnerTankSide
Modelica.Fluid.Examples.AST_BatchPlant.BaseClasses.InnerTank[n_BottomPorts]InnerTankBottom
HeatTransferheatTransfer
Medium.SaturationPropertiessatState vector to compute saturation properties
Medium.SpecificEnthalpyh_vMedium.dewEnthalpy(sat)Specific enthalpy of vapour
Medium.SpecificEnthalpyh_lMedium.bubbleEnthalpy(sat)Specific enthalpy of liquid
Medium.SpecificEnthalpyhActual specific enthalpy of liquid
Medium.Densityrho_vMedium.dewDensity(sat)Density in vapour phase
Medium.Densityrho_lMedium.bubbleDensity(sat)Density in liquid phase
Medium.DensityrhoActual density in liquid phase

Contents

NameDescription
Medium
HeatTransfer