modelExpansionTank

Expansion tank with cover gas

Extends from TRANSFORM.Fluid.Interfaces.Records.Medium_fluid.

Information

When a port connects directly to a component that holds a pressure (a volume, or a pipe end that exposes its state), that pressure ties the tank's level and temperature to it, and a tool keeps only some of them as states. With a free start (massDynamics=DynamicFreeInitial), the tank may then start from the other component's start pressure instead of its own start values. Start the tank with massDynamics=FixedInitial and that component with massDynamics=DynamicFreeInitial, or join the two through a flow resistance.

Parameters

TypeNameDefaultDescription
SI.AreaACross-sectional area
SI.VolumeV00Volume at zero level
Realg_nModelica.Constants.g_n
Advanced
BooleanallowFlowReversaltrue= true to allow flow reversal, false restricts to design direction
Initialization
SI.Pressurep_start1e5
SI.Lengthlevel_startStart level
Booleanuse_T_starttrue
SI.TemperatureT_start293.15
SI.SpecificEnthalpyh_startMedium.specificEnthalpy_pTX(p_start, T_start, X_start)
Advanced › Dynamics
DynamicsmassDynamicsDynamics.DynamicFreeInitialFormulation of mass balances
DynamicstraceDynamicsmassDynamicsFormulation of trace substance balances
Initialization › Start Value: Species Mass Fraction
SI.MassFraction[Medium.nX]X_startMedium.X_defaultMass fraction
Initialization › Start Value: Trace Substances
SItf.ExtraProperty[Medium.nC]C_startfill(0, Medium.nC)Mass-Specific value
Advanced › Heat Transfer
Booleanuse_HeatPortfalse=true to toggle heat port
Advanced › Trace Mass Transfer
Booleanuse_TraceMassPortfalse=true to toggle trace mass port
Real[Medium.nC]MMsfill(1, Medium.nC)Conversion from fluid mass-specific value to moles (e.g., molar mass [kg/mol] or Avogadro's number [atoms/mol])
Visualization
BooleanshowNametrue= true to show the component name on the icon

Connectors

TypeNameDefaultDescription
TRANSFORM.Fluid.Interfaces.FluidPort_Stateport_aFluid connector a (positive design flow direction is from port_a to port_b)
TRANSFORM.Fluid.Interfaces.FluidPort_Stateport_bFluid connector b (positive design flow direction is from port_a to port_b)
HeatAndMassTransfer.Interfaces.HeatPort_StateheatPort
HeatAndMassTransfer.Interfaces.MolePort_StatetraceMassPort

Components

TypeNameDefaultDescription
SI.Pressurep_surfacep_startLiquid surface/gas pressure
Medium.ThermodynamicStatestate_liquidThermodynamic state of the liquid
SI.LengthlevelLiquid level
SI.VolumeVLiquid volume
SI.MassmLiquid mass
SI.InternalEnergyULiquid internal energy
Medium.SpecificEnthalpyhLiquid specific enthalpy
Medium.AbsolutePressurepBottom pressure
SI.Mass[Medium.nXi]mXiSpecies mass
SItf.ExtraPropertyExtrinsic[Medium.nC]mCTrace substance extrinsic value
SI.MassFraction[Medium.nXi]XiStructurally independent mass fractions
SItf.ExtraProperty[Medium.nC]CTrace substance mass-specific value
SI.MassFlowRate[Medium.nXi]mXibSpecies mass flow rates source/sinks within volumes
SItf.ExtraPropertyFlowRate[Medium.nC]mCbTrace flow rate source/sinks within volumes (e.g., chemical reactions, external convection)
SI.HeatFlowRateQ_gen0Internal heat generation
SItf.ExtraPropertyFlowRate[Medium.nC]mC_genfill(0, Medium.nC)Internal trace mass generation