modelExpansionTank
Expansion tank with cover gas
Extends from TRANSFORM.Fluid.Interfaces.Records.Medium_fluid.
Parameters
| Type | Name | Default | Description |
| SI.Area | A | | Cross-sectional area |
| SI.Volume | V0 | 0 | Volume at zero level |
| Real | g_n | Modelica.Constants.g_n | |
| Advanced |
| Boolean | allowFlowReversal | true | = true to allow flow reversal, false restricts to design direction |
| Initialization |
| SI.Pressure | p_start | 1e5 | |
| SI.Length | level_start | | Start level |
| SI.SpecificEnthalpy | h_start | 1e5 | |
| Advanced › Dynamics |
| Dynamics | massDynamics | Dynamics.DynamicFreeInitial | Formulation of mass balances |
| Dynamics | traceDynamics | massDynamics | Formulation of trace substance balances |
| 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 | |
Components
| Type | Name | Default | Description |
| SI.Pressure | p_surface | p_start | Liquid surface/gas pressure |
| Medium.ThermodynamicState | state_liquid | | Thermodynamic state of the liquid |
| SI.Length | level | | Liquid level |
| SI.Volume | V | | Liquid volume |
| SI.Mass | m | | Liquid mass |
| SI.InternalEnergy | U | | Liquid internal energy |
| Medium.SpecificEnthalpy | h | | Liquid specific enthalpy |
| Medium.AbsolutePressure | p | | Bottom pressure |
| SI.Mass[Medium.nXi] | mXi | | Species mass |
| SIadd.ExtraPropertyExtrinsic[Medium.nC] | mC | | Trace substance extrinsic value |
| SI.MassFraction[Medium.nXi] | Xi | | Structurally independent mass fractions |
| SIadd.ExtraProperty[Medium.nC] | C | | Trace substance mass-specific value |
| SI.MassFlowRate[Medium.nXi] | mXib | | Species mass flow rates source/sinks within volumes |
| SIadd.ExtraPropertyFlowRate[Medium.nC] | mCb | | 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 |