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
| Item | Configuration |
|---|---|
| Scenario | Charge, high-pressure isolation, reset, downstream withdrawal |
| Network | Source, 2 pipes, 2 shut-off valves, tank, load |
| Analysis | Transient non-isothermal, 1 s steps |
| Boundaries | Supply 6 MPag, downstream 4.6 MPag |
| Events | High limit 5.2; valve switching 90 s, tank Close 200 s/Open 220 s, discharge closing 330 s |
| Results | Pressure, temperature, inventory, flow, opening, protection, reversal |
| Scope | Storage, 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

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
| Object | Parameters |
|---|---|
| Source | 6 MPag, 20 °C |
| Pipes | Each 50 m, 50 mm, wall 5 mm, roughness 0.045 mm |
| Valves | Expansion/choked flow, linear, open Kv 1000 m³/(h·bar⁰·⁵), closed Kv 0 |
| Tank | 35 m³, area 35 m², initial 5 MPag/25 °C, U=100 W/(m²·K), ambient 1 °C |
| User | 4.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
| Object | Initial | Events | Meaning |
|---|---|---|---|
| Protection | Open | High 5.2, low 4.5 MPag | Latching isolation |
| Charge valve | 100% | Close at 90 s, stroke 30 s | Cut supply |
| Discharge valve | 0% | Open 90 s, close 330 s; 30 s strokes | Supply and final isolation |
| Tank port | Open | Close 200 s, Open 220 s | Recheck 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
| Setting | Value |
|---|---|
| Simulation / thermal | Transient / non-isothermal |
| EOS | AGA8Gross |
| Gas | simpleGas1: relative density 0.6, CO₂ 0 mole%, gross heating value 39.82 MJ/Nm³ |
| Period | 2026-01-01 00:00:00–00:06:00 |
| Min/max step | 1/1 s |
| Gauge reference | 101.325 kPa(a) |
| Standard state | 101.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.
| Time | MPa(g) | °C | Inventory Nm³ | Flow Nm³/h | Event |
|---|---|---|---|---|---|
| 0 s | 5.00000 | 25.00 | 1,930.16 | +21,277.63 | Charging |
| 12 s | 5.20330 | 26.87 | 1,997.31 | +19,165.15 | Protection trigger |
| 13 s | 5.20659 | 26.82 | 1,999.18 | 0 | Peak, isolated |
| 105 s | 5.12182 | 23.23 | 1,999.04 | 0 | Valves 50%; direct supply |
| 220 s | 5.02034 | 19.28 | 1,995.32 | −13,162.20 | Reset/withdrawal |
| 286 s | 4.60032 | 12.95 | 1,872.90 | −334.42 | Minimum inventory |
| 287 s | 4.59996 | 12.93 | 1,872.94 | +115.03 | Reverse replenishment |
| 360 s | 4.59883 | 11.87 | 1,882.90 | About 0 | Valve 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.


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

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.




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.

Simulation Capabilities Reflected in Calculation Examples
| Capability | Application |
|---|---|
| Storage transient | Coupled pressure, temperature, inventory, flow |
| Protection | High-pressure latch and Open reset |
| Valve motion | Finite-stroke opening/closing |
| Timing | Identify trigger/isolation/reset frames |
| Direction | Withdrawal/equilibrium/replenishment |
| Thermal coupling | Charging heat, ambient heat, withdrawal |
| Cross-checks | Logs, residuals, steps, trends, frames |
Results Viewing Process
- Open storage protection and completed job; check 1 s steps and 361 frames.
- Inspect protection log and frames 00:00:12/13 for pressure, flow, and latch.
- Inspect overlapping valve openings at 90–120 s and compare flows at 00:01:45.
- Inspect tank pressure/temperature/inventory/flow, reset at 220 s, and reversal at 286/287 s.

See Run and View Results and Storage Tank for operations and reset rules.
Extended Comparison Conditions
| Comparison | Change | Compare | Purpose |
|---|---|---|---|
| High limit | Protection pressure | Trigger, peak P/T, charged amount | Setting effect |
| No overlap | Close charge before discharge opens | Direct flow, pressure | Timing |
| Earlier withdrawal end | Close by pressure/differential | Minimum inventory, reverse flow, final P | Avoid replenishment |
| Check valve | Add one-way branch | Direction/equilibrium/end state | No reversal |
| Volume | Tank size | Rate, trigger, withdrawal amount | Storage sizing |
| Heat | Ambient/U | T/P, trigger, duration | Environment |
| Downstream | Pressure | Flow, balance time, reversal | Available 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.