modelDumpTank
Expansion tank with cover gas
Extends from TRANSFORM.Fluid.Interfaces.Records.Medium_fluid.
Information
Tank where port_a is assumped to empty at the liquid surface level (regardless of level), i.e., port_a.p=p_surface.
p = p_surface + 0.5*fluid pressure
port_b.p = p_surface + fluid pressure
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| SI.Area | A | Cross-sectional area | |
| SI.Volume | V0 | 0 | Volume at zero level |
| Advanced | |||
| Boolean | allowFlowReversal | true | = true to allow flow reversal, false restricts to design direction |
| Advanced › Dynamics | |||
| Dynamics | energyDynamics | Dynamics.DynamicFreeInitial | Formulation of energy balances |
| Dynamics | massDynamics | energyDynamics | Formulation of mass balances |
| Dynamics | substanceDynamics | massDynamics | Formulation of substance balances |
| Dynamics | traceDynamics | massDynamics | Formulation of trace substance balances |
| Initialization | |||
| SI.Pressure | p_start | 1e5 | |
| SI.Length | level_start | Start level | |
| SI.SpecificEnthalpy | h_start | 1e5 | |
| Initialization › Start Value: Species Mass Fraction | |||
| SI.MassFraction[Medium.nX] | X_start | Medium.X_default | Mass fraction |
| Initialization › Start Value: Trace Substances | |||
| SIadd.ExtraProperty[Medium.nC] | C_start | fill(0, Medium.nC) | Mass-Specific value |
| Advanced › Heat Transfer | |||
| Boolean | use_HeatPort | false | =true to toggle heat port |
| Advanced › Trace Mass Transfer | |||
| Boolean | use_TraceMassPort | false | =true to toggle trace mass port |
| SI.MolarMass[Medium.nC] | MMs | fill(1, Medium.nC) | Trace substances molar mass |
| Visualization | |||
| Boolean | showName | true | |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| TRANSFORM.Fluid.Interfaces.FluidPort_State | port_a | Fluid connector a (positive design flow direction is from port_a to port_b) | |
| TRANSFORM.Fluid.Interfaces.FluidPort_State | port_b | Fluid connector b (positive design flow direction is from port_a to port_b) | |
| HeatAndMassTransfer.Interfaces.HeatPort_State | heatPort | ||
| HeatAndMassTransfer.Interfaces.MolePort_State | traceMassPort |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| SI.Pressure | p_surface | p_start | Liquid surface/gas pressure |
| Real | g_n | Modelica.Constants.g_n | |
| SI.Length | level | Level | |
| SI.Volume | V | Volume | |
| SI.Mass | m | Mmass | |
| SI.InternalEnergy | U | Liquid internal energy | |
| Medium.SpecificEnthalpy | h | Specific enthalpy | |
| Medium.AbsolutePressure | p | Pressure | |
| Medium.ThermodynamicState | state | Medium.setState_phX(p_surface, h, Xi) | Thermodynamic state |
| Medium.Density | d | Medium.density(state) | Density |
| Medium.Temperature | T | Medium.temperature(state) | Temperature |
| SI.Mass[Medium.nXi] | mXi | Species mass | |
| SI.MassFraction[Medium.nXi] | Xi | Structurally independent mass fractions | |
| SIadd.ExtraPropertyExtrinsic[Medium.nC] | mC | Trace substance extrinsic value | |
| SIadd.ExtraProperty[Medium.nC] | C | Trace substance mass-specific value | |
| SI.MassFlowRate | mb | port_a.m_flow + port_b.m_flow | Mass flow rate source/sinks within volumes |
| SI.HeatFlowRate | Ub | port_a.m_flow*actualStream(port_a.h_outflow) + port_b.m_flow*actualStream(port_b.h_outflow) + Q_flow_internal + Q_gen | Energy source/sinks within volumes (e.g., ohmic heating, external convection) |
| SI.MassFlowRate[Medium.nXi] | mXib | {port_a.m_flow*actualStream(port_a.Xi_outflow[i]) + port_b.m_flow*actualStream(port_b.Xi_outflow[i]) for i in 1:Medium.nXi} | Species mass flow rates source/sinks within volumes |
| SIadd.ExtraPropertyFlowRate[Medium.nC] | mCb | {port_a.m_flow*actualStream(port_a.C_outflow[i]) + port_b.m_flow*actualStream(port_b.C_outflow[i]) + mC_gen[i] + mC_flow_internal[i] for i in 1:Medium.nC} | Trace flow rate source/sinks within volumes (e.g., chemical reactions, external convection) |
| SI.HeatFlowRate | Q_gen | 0 | Internal heat generation |
| SIadd.ExtraPropertyFlowRate[Medium.nC] | mC_gen | fill(0, Medium.nC) | Internal trace mass generation |