Skip to main content

Gas Tank Filling and Deflation and Overpressure Protection

This example consists of a charging gas source, a charging branch, a gas storage tank, a deflation branch and downstream users. It is used to simulate the complete transient process of the gas storage tank from charging and boosting, triggering high-pressure protection, to isolation reset, external deflation and pressure balance. The focus of the analysis includes changes in gas tank pressure, temperature, and inventory over time, protection actions that cut off the charge flow, and the effects of valve switching and downstream pressure boundaries on flow direction.

Study Overview​

ItemConfiguration
ScenarioCharge, high-pressure isolation, reset, downstream withdrawal
NetworkSource, 2 pipes, 2 shut-off valves, tank, load
AnalysisTransient non-isothermal, 1 s steps
BoundariesSupply 6 MPag, downstream 4.6 MPag
EventsHigh limit 5.2; valve switching 90 s, tank Close 200 s/Open 220 s, discharge closing 330 s
ResultsPressure, temperature, inventory, flow, opening, protection, reversal
ScopeStorage, protection, sequencing, boundary effects

Working Conditions Background and Pipe Network Structure​

Working Condition Background​

During the filling process of the gas storage facility, the pressure, temperature and inventory in the tank change at the same time. If the inflation duration, valve action or protection settings are unreasonable, the gas tank may exceed the allowable pressure; during the deflation process, you also need to pay attention to the downstream pressure, available pressure difference and valve closing timing. This example observes the time relationship between the equipment action and the status of the gas tank through the continuous inflation, protection, isolation reset and deflation processes.

This model is used to analyze the operation process of the pipeline network and does not replace the pressure vessel safety valve selection, interlocking integrity analysis and relief capacity design.

Pipe Network Structure​

Gas storage tank filling and deflation and overpressure protection model in NexusFlow gas pipeline network simulation platform
Gas storage tank filling and deflation and overpressure protection model in NexusFlow gas pipeline network simulation platform

Supply → Charge Pipe → Charge Valve → Common Node → Discharge Valve → Discharge Pipe → User.

The one-port tank connects at the common node. Protection isolates its port while valves continue schedules. When both valves are open, supply can feed downstream directly.

Pipeline and Equipment Parameters​

ObjectParameters
Source6 MPag, 20 °C
PipesEach 50 m, 50 mm, wall 5 mm, roughness 0.045 mm
ValvesExpansion/choked flow, linear, open Kv 1000 m³/(h·bar⁰·⁵), closed Kv 0
Tank35 m³, area 35 m², initial 5 MPag/25 °C, U=100 W/(m²·K), ambient 1 °C
User4.6 MPag

Both pipes use Colebrook explicit approximation, zero elevation, and zero U. Environmental heat comes from the tank settings.

Boundary Conditions and Simulation Setup​

Protection Settings and Event Timing​

ObjectInitialEventsMeaning
ProtectionOpenHigh 5.2, low 4.5 MPagLatching isolation
Charge valve100%Close at 90 s, stroke 30 sCut supply
Discharge valve0%Open 90 s, close 330 s; 30 s strokesSupply and final isolation
Tank portOpenClose 200 s, Open 220 sRecheck pressure and release latch

Within 90 to 120 s, the inflation valve gradually closes from fully open, and the deflation valve gradually opens from fully closed. The strokes of the two valves overlap, and it is necessary to determine the flow rate of the gas storage tank and the flow rate of the branch directly flowing from the gas source to the downstream in the results.

Simulation Settings​

SettingValue
Simulation / thermalTransient / non-isothermal
EOSAGA8Gross
GassimpleGas1: relative density 0.6, CO₂ 0 mole%, gross heating value 39.82 MJ/Nm³
Period2026-01-01 00:00:00–00:06:00
Min/max step1/1 s
Gauge reference101.325 kPa(a)
Standard state101.325 kPa(a), 20 °C

Transient Calculation Results and Analysis​

There are 360 steps and 361 frames including initial. Time below starts at zero. Positive tank flow enters; negative leaves. Five-decimal pressures come from result data; screenshots use interface precision.

TimeMPa(g)°CInventory Nm³Flow Nm³/hEvent
0 s5.0000025.001,930.16+21,277.63Charging
12 s5.2033026.871,997.31+19,165.15Protection trigger
13 s5.2065926.821,999.180Peak, isolated
105 s5.1218223.231,999.040Valves 50%; direct supply
220 s5.0203419.281,995.32−13,162.20Reset/withdrawal
286 s4.6003212.951,872.90−334.42Minimum inventory
287 s4.5999612.931,872.94+115.03Reverse replenishment
360 s4.5988311.871,882.90About 0Valve closed

Protection Trigger and Isolation​

At 12 s, 5.20330 MPag exceeds 5.2, marking closed/latching protection while retaining trigger-step inflow. At 13 s, pressure peaks at 5.20659 and flow is zero. Cooling then lowers temperature/pressure, but the latch remains until Open at 220 s.

12 s trigger pressure and flow
12 s trigger pressure and flow
13 s peak and zero port flow
13 s peak and zero port flow

At 13 s the port is Closed and protection is High Pressure.

13 s closed port and high-pressure protection
13 s closed port and high-pressure protection
Full tank pressure trend
Full tank pressure trend

Direct Supply During Valve Switching​

During 90–120 s, charge closes and discharge opens. Both are 50% at 105 s, carrying about 17,428.28 Nm³/h directly downstream while isolated tank flow is zero. Compare simultaneous valve/tank blocks to identify that path.

Charge valve opening
Charge valve opening
Discharge valve opening
Discharge valve opening
105 s discharge valve flows
105 s discharge valve flows
105 s zero tank flow
105 s zero tank flow

Reset, Withdrawal, and Reverse Replenishment​

At 200 s the port remains protected. Open at 220 s releases it; negative flow reduces inventory. At 286 s tank pressure is just above 4.6 MPag with negative flow; at 287 s it falls below and flow turns positive. Discharge closure begins 330 s and completes 360 s with near-zero flow.

Standard flow through isolation, withdrawal, and replenishment
Standard flow through isolation, withdrawal, and replenishment

Simulation Capabilities Reflected in Calculation Examples​

CapabilityApplication
Storage transientCoupled pressure, temperature, inventory, flow
ProtectionHigh-pressure latch and Open reset
Valve motionFinite-stroke opening/closing
TimingIdentify trigger/isolation/reset frames
DirectionWithdrawal/equilibrium/replenishment
Thermal couplingCharging heat, ambient heat, withdrawal
Cross-checksLogs, residuals, steps, trends, frames

Results Viewing Process​

  1. Open storage protection and completed job; check 1 s steps and 361 frames.
  2. Inspect protection log and frames 00:00:12/13 for pressure, flow, and latch.
  3. Inspect overlapping valve openings at 90–120 s and compare flows at 00:01:45.
  4. Inspect tank pressure/temperature/inventory/flow, reset at 220 s, and reversal at 286/287 s.
Reference task uses 1 s steps
Reference task uses 1 s steps

See Run and View Results and Storage Tank for operations and reset rules.

Extended Comparison Conditions​

ComparisonChangeComparePurpose
High limitProtection pressureTrigger, peak P/T, charged amountSetting effect
No overlapClose charge before discharge opensDirect flow, pressureTiming
Earlier withdrawal endClose by pressure/differentialMinimum inventory, reverse flow, final PAvoid replenishment
Check valveAdd one-way branchDirection/equilibrium/end stateNo reversal
VolumeTank sizeRate, trigger, withdrawal amountStorage sizing
HeatAmbient/UT/P, trigger, durationEnvironment
DownstreamPressureFlow, balance time, reversalAvailable delivery

When comparing extended working conditions, only change one protection setting, event time, equipment parameter or boundary condition at a time, and keep other settings consistent. Comparative working conditions without actual calculation are only used as follow-up analysis plans and are not regarded as the established conclusion of this benchmark working condition.