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
| Type | Name | Default | Description |
|---|---|---|---|
| SI.Area | crossArea | Tank area | |
| SI.Area[n_TopPorts] | top_pipeArea | Area of outlet pipe | |
| SI.Area[n_SidePorts] | side_pipeArea | Area of outlet pipe | |
| SI.Area[n_BottomPorts] | bottom_pipeArea | Area of outlet pipe | |
| SI.Height | height | 10 | Height of Tank |
| SI.Volume | V0 | 0 | Volume of the liquid when the level is zero |
| SI.Acceleration | g | Modelica.Constants.g_n | |
| SI.Height[n_SidePorts] | side_heights | zeros(n_SidePorts) | Side heights |
| SI.Height[n_BottomPorts] | bottom_heights | zeros(n_BottomPorts) | Bottom heights |
| SI.Height[n_TopPorts] | top_heights | fill(height, n_TopPorts) | Top heights |
| Medium.AbsolutePressure | p_ambient | 101325 | Tank surface pressure |
| Medium.Temperature | T_ambient | 293.15 | Tank surface Temperature |
| Integer | n_TopPorts | 1 | Number of top connectors |
| Integer | n_SidePorts | 1 | Number of side connectors |
| Integer | n_BottomPorts | 1 | Number of bottom connectors |
| SI.Height | min_level_for_heating | Minimum level for heating | |
| Initialization | |||
| SI.Height | level_start | Initial tank level | |
| Modelica.Fluid.Examples.AST_BatchPlant.BaseClasses.Init | initType | Init.GuessValues | Initialization option |
| Boolean | use_T_start | true | = true, if T_start is used, otherwise h_start |
| Medium.Temperature | T_start | if use_T_start then 293.15 else Medium.temperature_phX(p_ambient, h_start, X_start) | Start value of temperature |
| Medium.SpecificEnthalpy | h_start | if use_T_start then Medium.specificEnthalpy_pTX(p_ambient, T_start, X_start[1:Medium.nXi]) else 1e4 | Start value of specific enthalpy |
| Medium.MassFraction[Medium.nX] | X_start | Medium.reference_X | Start value of mass fractions m_i/m |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| 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_b | Condensed | ||
| Modelica.Thermal.HeatTransfer.Interfaces.HeatPort_a | heatPort |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Medium.BaseProperties | medium | ||
| SI.Height | level | Level height of tank | |
| SI.Volume | V | Actual tank volume | |
| SI.Energy | U | Internal energy of tank volume | |
| Real | m | Mass of tank volume | |
| Real[Medium.nXi] | mXi | Component 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 | ||
| Real | m_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 | ||
| HeatTransfer | heatTransfer | ||
| Medium.SaturationProperties | sat | State vector to compute saturation properties | |
| Medium.SpecificEnthalpy | h_v | Medium.dewEnthalpy(sat) | Specific enthalpy of vapour |
| Medium.SpecificEnthalpy | h_l | Medium.bubbleEnthalpy(sat) | Specific enthalpy of liquid |
| Medium.SpecificEnthalpy | h | Actual specific enthalpy of liquid | |
| Medium.Density | rho_v | Medium.dewDensity(sat) | Density in vapour phase |
| Medium.Density | rho_l | Medium.bubbleDensity(sat) | Density in liquid phase |
| Medium.Density | rho | Actual density in liquid phase |
Contents
| Name | Description |
|---|---|