Skip to main content

Supply Tank

A finite-volume gas store supplying through one port. Transient simulation tracks inventory, pressure, temperature, and composition. An open port also permits reverse charging.

Component Appearance and Location​

Expand Storage Tank in component library on the left and find "Supply Tank".

Created with Fabric.js 5.3.0

Ports and Connections​

Port KeyTypeDirectionInterface NameDisplay Conditions
0FLUIDoutputFluid outletalways show

Connect the outlet to the supplied network. Positive flow leaves the tank; negative charges it. Use a Measurement Instrument for measurements and Port Change Schedule for actions.

Parameter List​

Equipment Specifications

NamekeyTypeDefault / OptionsDescription
Tank Volume [m³]TankVolumereal15Effective geometric gas volume for initial inventory and transient charging/withdrawal.
Connection Elevation [m]PortElevationreal0Connection elevation on common network datum, matching connected pipe ports.
Low-Pressure Protection Limit [MPa(g)]MinPressurereal0Transient low limit latches the port closed. Recovery needs later Open and pressure inside limits; violations relatch. Protection, not regulation. Equal limits leave no open interval.
High-Pressure Protection Limit [MPa(g)]MaxPressurereal150Transient high limit latches the port closed. Recovery needs later Open and safe pressure; violations relatch. Does not clamp pressure.

Thermal Calculation

NamekeyTypeDefault / OptionsDescription
Heat Transfer Area [m²]SurfaceAreareal35Effective area on the coefficient basis; tank-wall thermal storage is not modeled.
Overall Heat Transfer Coefficient ModeHeatTransferCoefficientInputModechoiceFixed Value / Time CurveFixed or time-dependent overall coefficient for non-isothermal transients.
Tank Overall Heat Transfer Coefficient [W/(m²·K)]HeatTransferRatereal0Coefficient based on tank area. Zero removes environmental exchange but flow can still change temperature. Fixed mode retains area/environment settings.
Overall Coefficient CurveCurveLibraryHeatTransferCoefficientNamechoice__UNSELECTED__Select a time series for the overall heat transfer coefficient. The coefficient applies to this tank's heat transfer area, and the series must cover the transient simulation period.
Ambient Temperature ModeAmbientTemperatureInputModechoiceFixed Value / Time CurveChoose fixed ambient temperature or a time curve.
Ambient Temperature [℃]AmbientTemperaturereal25Ambient tank temperature for non-isothermal transient heat transfer.
Ambient Temperature CurveCurveLibraryTemperatureNamechoice__UNSELECTED__Select a time series for the ambient temperature outside the tank. The series must cover the transient simulation period.

Gas and Initial Conditions

NamekeyTypeDefault / OptionsDescription
Initial Tank GasInitialCompositionalFluidchoice—Initial tank gas, subsequently updated by port balances and inventory mixing.
Initial Tank GasInitialSimpleFluidchoice—Initial tank gas, subsequently updated by port balances and inventory mixing.
Initial Port StateStatuschoiceOpen / ClosedInitial open/closed state. Closure stops exchange and retains inventory; non-isothermal heat can still change P/T. Future events apply later.
Initial Tank Pressure [MPa(g)]InitialPressurereal10Initial gauge pressure, steady open-port boundary or transient inventory state. Converted absolute pressure must be positive.
Initial Tank Temperature [℃]InitialTemperaturereal25Initial non-isothermal tank temperature; steady-state uses it for boundaries, transients evolve it with flow/heat. Isothermal uses global temperature.

Transient Events

NamekeyTypeDefault / OptionsDescription
Port Change ScheduleEventstableConfigure one row at a timeFuture open/close events. Panel defines initial state; past/start rows do not execute. Open also attempts protection release; violations relatch.
Port Change Schedule / TimeEvents.timedatetime2026-01-01 00:00:00Event effective time.
Port Change Schedule / Port StateEvents.PortStatuschoiceOpen / ClosedPort state after event.

Parameter Guidance​

  • Volume, elevation, initial state. Enter gas-containing geometric volume in m³ and a shared network elevation datum. Select initial gas matching the equation of state and pressure in MPa(g). Non-isothermal mode uses initial tank temperature; isothermal uses global temperature.
  • Protection. Enter low/high MPa(g) thresholds with an open operating interval; initial transient pressure should be inside it.
  • Environmental heat transfer. Applies during non-isothermal transients. Use the same area basis for the heat transfer area and overall coefficient. Choose a fixed value or time curve separately for coefficient and ambient temperature. Curves must cover the calculation interval. The software interpolates time curves linearly at the end of each step.
  • Actions. Initial state comes from the panel. Schedule rows give time and open/closed state; only times after start execute, strictly increasing and unique. Commands persist, subject to protection.

Enter Environmental Curves​

For each input configured as a Time Curve, choose Edit Local Curve to enter time and value pairs on the tank or Reference Curve Database to select a named curve of the same type. Use W/(m²·K) for overall heat transfer coefficient and °C for ambient temperature. The two inputs can use different sources. Choose a curve source.

Saved State​

Continuation preserves port operations, pressure protection, and event progress. Loading as a new initial field retains pressure, temperature, composition, and inventory, rebuilds operations from the target start and panel state, and rechecks protection.

Modeling Steps​

  1. Add the supply tank and connect its outlet.
  2. Enter volume, elevation, and pressure limits.
  3. Select gas and initial pressure/temperature; set non-isothermal transient heat transfer if needed.
  4. Set initial state and transient actions or reopening after protection.
  5. Check initial pressure and downstream boundaries.
  6. Inspect flow, pressure, temperature, standard inventory, actual state, and protection.

View Results​

  • Pressure/flow. View MPa(g), standard Nm³/h, or actual m³/h. Positive supplies, negative charges. Steady-state flow is at initial pressure; use transients for depletion and duration.
  • Inventory/composition. View Nm³ and gas/species trends during recharge. Low-pressure protection generally leaves gas in the tank. Integrate positive standard flow for delivered volume and recharge separately.
  • Heat/protection. Compare tank/ambient temperatures and environmental heat input in kW; inspect actual port and protection states after actions.

Professional Theory​

Inventory, Mass Conservation, and Tank Pressure​

The fixed-volume lumped model uses one pressure, temperature, and composition. Let VV be volume in m³, ptp_t absolute pressure in Pa, TtT_t temperature in K, and xt\boldsymbol{x}_t composition. Mass mm in kg and standard inventory VNV_N in Nm³ are

m=Vρ(pt,Tt,xt),VN=mρN.m=V\rho(p_t,T_t,\boldsymbol{x}_t), \qquad V_N=\frac{m}{\rho_N}.

ρN\rho_N is current tank-gas density at global standard conditions. Geometric volume is fixed; standard inventory changes with mass and composition. Add the gauge reference and use consistent units when checking state from gauge pressure.

Let qportq_{\mathrm{port}} be actual flow in m³/s and ρport\rho_{\mathrm{port}} port density. With mass flow positive outward, transient conservation is

m˙port=ρportqport,dmdt=−m˙port.\dot m_{\mathrm{port}}=\rho_{\mathrm{port}}q_{\mathrm{port}}, \qquad \frac{\mathrm{d}m}{\mathrm{d}t}=-\dot m_{\mathrm{port}}.

Supply reduces mass; recharge increases it. Each step links density to pressure and temperature through the equation of state. At current composition, both pressure and temperature contribute. With fixed temperature/composition, pressure reflects inventory; non-isothermal temperature changes can alter pressure at the same inventory.

Port Pressure and Protection​

ConditionPort relation
Steady-state openNode pressure equals initial tank pressure; network determines flow, inventory stays initial.
Transient openNode pressure equals current tank pressure; pressure and flow evolve with inventory and network.
ClosedZero flow; external pressure follows network boundaries/connectivity.

Protection is checked at transient initialization and runtime. At pt≤pmin⁡p_t\le p_{\min} or pt≥pmax⁡p_t\ge p_{\max}, the whole port latches closed, stopping both directions. An initial violation retains specified pressure in a closed initial field. Results show solved actual pressure.

Even after returning to pmin⁡<pt<pmax⁡p_{\min}<p_t<p_{\max}, a later Open event must release the latch. Pressure is rechecked and can relatch. Independent steady-state only warns and follows panel initial state.

Non-Isothermal Energy Balance​

Treat tank gas as a control volume with specific internal energy utu_t in J/kg. Nonnegative inlet/outlet mass flows m˙in,m˙out\dot m_{\mathrm{in}},\dot m_{\mathrm{out}} use kg/s, and enthalpies hin,houth_{\mathrm{in}},h_{\mathrm{out}} J/kg. At fixed volume, neglecting kinetic/potential changes,

d(mut)dt=m˙inhin−m˙outhout+Q˙env.\frac{\mathrm{d}(m u_t)}{\mathrm{d}t} =\dot m_{\mathrm{in}} h_{\mathrm{in}} -\dot m_{\mathrm{out}} h_{\mathrm{out}} +\dot Q_{\mathrm{env}}.

This is discretized by time step. Outflow uses tank temperature and composition; reverse inflow uses incoming network enthalpy. MIT Control-Volume Energy Balance

Environmental heat input Q˙env\dot Q_{\mathrm{env}} in W follows coefficient UU, area AA, and ambient temperature TambT_{\mathrm{amb}}:

Q˙env=UA(Tamb−Tt).\dot Q_{\mathrm{env}}=UA(T_{\mathrm{amb}}-T_t).

Heat input is positive for warmer surroundings. U=0U=0 removes environmental transfer, but flow enthalpy still affects temperature. Closed ports still allow environmental temperature/pressure changes. Non-isothermal steady-state uses initial tank temperature directly.

Reverse Charging and Gas Mixing​

Mixing follows molar inventory. Total moles Nt=m/MtN_t=m/M_t use kmol and mean molar mass MtM_t kg/kmol. Vectors yt\boldsymbol{y}_t, yin\boldsymbol{y}_{\mathrm{in}} are tank/incoming source-gas mole fractions. Convert mass to molar flows N˙in,N˙out\dot N_{\mathrm{in}},\dot N_{\mathrm{out}} using incoming/tank molar masses respectively.

d(Ntyt)dt=N˙inyin−N˙outyt.\frac{\mathrm{d}(N_t\boldsymbol{y}_t)}{\mathrm{d}t} =\dot N_{\mathrm{in}}\boldsymbol{y}_{\mathrm{in}} -\dot N_{\mathrm{out}}\boldsymbol{y}_t.

Different recharge composition gradually changes tank fractions and equation-of-state composition. Uniform withdrawal removes gases in tank proportions, leaving fractions unchanged. Zero flow preserves composition.

Applicability and Limits​

  • Finite inventory. Use transients for duration, depletion, and recharge. Use a Source for imposed pressure/flow.
  • Lumped storage. Assumes uniform gas; stratification, local flow, and wall thermal storage are outside scope.
  • Simulation protection. Limits trigger modeled isolation; equipment design determines actual safety interlocks and mechanical protection.

Common Inspections​

  • Zero or reverse flow. Check port/protection states and downstream boundaries; negative means recharge.
  • Initial inventory mismatch. Check volume, gas, gauge reference, effective temperature, and standard conditions.
  • Reopening fails. Event must follow start and pressure must be strictly within limits. A low-pressure latch also prevents self-recharge.
  • Pressure changes while closed. Check ambient conditions, area, coefficient, tank temperature, and heat input.