Modelica.Fluid.Examples.AST_BatchPlant.BaseClasses

Information

Extends from Modelica.Icons.BasesPackage (Icon for packages containing base classes).

Package Content

Name Description
Modelica.Fluid.Examples.AST_BatchPlant.BaseClasses.setReal setReal Set output signal to a time varying Real expression
Modelica.Fluid.Examples.AST_BatchPlant.BaseClasses.TankWith3InletOutletArraysWithEvaporatorCondensor TankWith3InletOutletArraysWithEvaporatorCondensor Tank with Heating and Evaporation
Modelica.Fluid.Examples.AST_BatchPlant.BaseClasses.InnerTank InnerTank  
Modelica.Fluid.Examples.AST_BatchPlant.BaseClasses.Controller Controller  
Modelica.Fluid.Examples.AST_BatchPlant.BaseClasses.ControllerUtilities ControllerUtilities  
Modelica.Fluid.Examples.AST_BatchPlant.BaseClasses.Init Init Enumeration to define initialization options
Modelica.Fluid.Examples.AST_BatchPlant.BaseClasses.TankWithTopPorts TankWithTopPorts Tank with inlet/outlet ports and with inlet ports at the top

Modelica.Fluid.Examples.AST_BatchPlant.BaseClasses.setReal Modelica.Fluid.Examples.AST_BatchPlant.BaseClasses.setReal

Set output signal to a time varying Real expression

Information

Parameters

NameDescription
Time varying input signal
uSet value of Real input

Connectors

NameDescription
Time varying input signal
uSet value of Real input

Modelica.Fluid.Examples.AST_BatchPlant.BaseClasses.TankWith3InletOutletArraysWithEvaporatorCondensor Modelica.Fluid.Examples.AST_BatchPlant.BaseClasses.TankWith3InletOutletArraysWithEvaporatorCondensor

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:

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

NameDescription
replaceable package MediumMedium in the component
crossAreaTank area [m2]
top_pipeArea[n_TopPorts]Area of outlet pipe [m2]
side_pipeArea[n_SidePorts]Area of outlet pipe [m2]
bottom_pipeArea[n_BottomPorts]Area of outlet pipe [m2]
heightHeight of Tank [m]
V0Volume of the liquid when the level is zero [m3]
side_heights[n_SidePorts] 
bottom_heights[n_BottomPorts] 
top_heights[n_TopPorts] 
p_ambientTank surface pressure [Pa]
T_ambientTank surface Temperature [K]
n_TopPortsnumber of Top connectors
n_SidePortsnumber of side connectors
n_BottomPortsnumber of bottom connectors
min_level_for_heating 
Initialization
level_startInitial tank level [m]
initTypeInitialization option
use_T_startUse T_start if true, otherwise h_start
T_startStart value of temperature [K]
h_startStart value of specific enthalpy [J/kg]
X_start[Medium.nX]Start value of mass fractions m_i/m [kg/kg]
Assumptions
Heat transfer
replaceable model HeatTransferWall heat transfer

Connectors

NameDescription
replaceable package MediumMedium in the component
BottomFluidPort[n_BottomPorts] 
TopFluidPort[n_TopPorts] 
SideFluidPort[n_SidePorts] 
Condensed 
heatPort 
Assumptions
Heat transfer
replaceable model HeatTransferWall heat transfer

Modelica.Fluid.Examples.AST_BatchPlant.BaseClasses.InnerTank Modelica.Fluid.Examples.AST_BatchPlant.BaseClasses.InnerTank

Parameters

NameDescription
replaceable package MediumMedium in the component
Xi[Medium.nXi]Actual mass fractions of fluid in tank [kg/kg]

Connectors

NameDescription
replaceable package MediumMedium in the component
port 

Modelica.Fluid.Examples.AST_BatchPlant.BaseClasses.Controller Modelica.Fluid.Examples.AST_BatchPlant.BaseClasses.Controller

Parameters

NameDescription
w_dilution 
w_concentrate 
startTime 
T5_batch_level 

Connectors

NameDescription
sensors 
actuators 

Modelica.Fluid.Examples.AST_BatchPlant.BaseClasses.Init

Enumeration to define initialization options

Information

Integer type that can have the following values (to be selected via choices menu):

Types.Init.Meaning
GuessValues GuessValues -- Guess values (not fixed) for p, T or h, X, C
InitialValues Initial values for p, T or h, X, C
SteadyStateMomentum Steady state momentum
SteadyStateHydraulic Hydraulic steady state (der(p)=0), guess value for p, initial values for T or h, X, C
SteadyState Steady state (guess values for p, T or h, X, C)

Modelica.Fluid.Examples.AST_BatchPlant.BaseClasses.TankWithTopPorts Modelica.Fluid.Examples.AST_BatchPlant.BaseClasses.TankWithTopPorts

Tank with inlet/outlet ports and with inlet ports at the top

Information

Model of a tank that is open to the environment at the fixed pressure p_ambient. The tank is filled with a single or multiple-substance liquid, assumed to have uniform temperature and mass fractions.

At the top of the tank over the maximal fill level height a vector of FluidPorts, called topPorts, is present. The assumption is made that fluid flows always in to the tank via these ports (and never back in to the connector).

The vector of connectors ports are fluid ports at the bottom and side of the tank at a definable height. Fluid can flow either out of or in to this port. The fluid level of the tank may be below one of these ports. This case is approximated by introducing a large pressure flow coefficient so that the mass flow rate through this port is very small in this case.

If the tank starts to over flow (i.e., level > height), an assertion is triggered.

When the diagram layer is open in the plot environment, the level of the tank is dynamically visualized. Note, the speed of the diagram animation in Dymola can be set via command animationSpeed(), e.g., animationSpeed(speed = 10)

Extends from Modelica.Fluid.Interfaces.PartialLumpedVolume (Lumped volume with mass and energy balance).

Parameters

NameDescription
heightMaximum level of tank before it overflows [m]
crossAreaArea of tank [m2]
V0Volume of the liquid when level = 0 [m3]
replaceable package MediumMedium in the component
portsData[nPorts]Data of inlet/outlet ports at side and bottom of tank
Custom Parameters
fluidVolumeVolume [m3]
Assumptions
Ambient
p_ambientTank surface pressure [Pa]
T_ambientTank surface Temperature [K]
Dynamics
energyDynamicsFormulation of energy balance
massDynamicsFormulation of mass balance
Heat transfer
use_HeatTransfer= true to use the HeatTransfer model
replaceable model HeatTransferWall heat transfer
Initialization
level_startStart value of tank level [m]
p_startStart value of pressure [Pa]
use_T_start= true, use T_start, otherwise h_start
T_startStart value of temperature [K]
h_startStart value of specific enthalpy [J/kg]
X_start[Medium.nX]Start value of mass fractions m_i/m [kg/kg]
C_start[Medium.nC]Start value of trace substances
Advanced
Port properties
hysteresisFactorHysteresis for empty pipe = diameter*hysteresisFactor
stiffCharacteristicForEmptyPort=true, if steep pressure loss characteristic for empty pipe port
zetaLargeLarge pressure loss factor if mass flows out of empty pipe port
m_flow_smallRegularization range at zero mass flow rate [kg/s]

Connectors

NameDescription
topPorts[nTopPorts]Inlet ports over height at top of tank (fluid flows only from the port in to the tank)
ports[nPorts]inlet/outlet ports at bottom or side of tank (fluid flows in to or out of port; a port might be above the fluid level)
heatPort 
Assumptions
Heat transfer
replaceable model HeatTransferWall heat transfer
Automatically generated Thu Dec 19 17:20:09 2019.