Compression-Buffering-Pressure Regulation Coordinated Air Supply Control
This example consists of an upstream gas source, a gas transmission trunk line, an active compression station, a buffer tank, a pressure closed loop, a downstream pressure regulator and a step load. It is used to simulate the collaborative gas supply process when gas consumption suddenly increases. The analysis focuses on how the buffer tank temporarily compensates for the difference in supply and demand after load changes, how the pressure controller adjusts the compressor outlet pressure, how the compression flow and power respond, and whether the downstream pressure regulator can maintain the specified outlet pressure.
Study Overview
| Item | Configuration |
|---|---|
| Scenario | Source supplies via compressor and buffer; demand steps 80000→120000 Nm³/h at 10 min |
| Network | Source, long pipe, 2 short pipes, general compressor, buffer, regulator, flow load, pressure loop |
| Analysis | Transient, isothermal |
| Control | PID in PI mode adjusts compressor outlet target from tank pressure |
| Downstream | Regulator 4.8 MPag; standard-flow load |
| Results | Demand, tank pressure/inventory, SP/PV/CV, compression flow/power, regulator/terminal pressure |
| Scope | Joint regulation, load response, tuning, capacity |
Working Conditions Background and Pipe Network Structure
Working Condition Background
In a system where gas is continuously supplied from a compressor station to a city gate station or industrial user, the downstream gas consumption may increase significantly in a short period of time. There is a process time for the flow response of the compressor and the upstream long-distance pipeline. In the initial stage of load change, buffer facilities are usually required to compensate for the difference between supply and demand; then the pressure controller increases the compressor outlet pressure so that the upstream air supply volume gradually catches up with the load and restores the buffer tank inventory.
This example focuses on the dynamic cooperation between the 500 m³ surge tank, the active compression station and the downstream pressure regulator. The model is used for pipe network dynamic response and control strategy analysis, and does not replace compressor selection, station interlocking design, controller on-site tuning and pressure vessel safety analysis.
Pipe Network Structure

The physical air supply path is:
4.5 MPag Source → 20 km Trunk → Active Compressor → 2 km Pipe → 500 m³ Buffer → 4.8 MPag Regulator → 1 km User Pipe → Step Load
The control signal path is:
Tank Pressure Measurement → PID PV → PID CV → Compressor Outlet Pressure Actuator
The PID controller measures buffer tank pressure and requests a compressor outlet pressure. The downstream regulator holds its own outlet pressure independently. Check both pressures in the results.
Configure the Measurement Instrument, Controller, and Actuator
Add a measurement instrument, a PID controller, and an actuator. The instrument reads buffer tank pressure and the actuator delivers the controller output to the compressor. Select both target devices in the respective parameter panels.
| Component | Connected device category | Connected device label | Signal option and unit |
|---|---|---|---|
| Buffer tank pressure measurement instrument | Two-Port Tank (BufferTank) | 500 m³ engineering buffer tank | Tank pressure (gauge), MPag |
| Compressor station outlet pressure actuator | General Compressor (GeneralCompressor) | Active compressor station (closed-loop setpoint) | Outlet pressure setpoint, MPag |
- Select the measurement device category, label, and tank gauge pressure signal. Connect its
signaloutput to PID inputPV. - Connect PID output
CVto the actuator'ssignalinput. Select the general compressor category, the active compressor station, and the outlet pressure setpoint. - Set compressor operating control to Fixed Outlet Pressure, its source to Signal Control, and the signal control content to Setpoint Only. Enter initial controller output and limits in MPag.
- Validate the model. Verify both device bindings and the output-to-input direction of each signal wire. The device references are configured through parameters.
See the PID controller, measurement instrument, and actuator for parameters and applicability.
Pipeline and Equipment Parameters
| Device | Parameters |
|---|---|
| Source | 4.5 MPag, 20 °C |
| Trunk | 20 km, 500 mm, wall 10 mm, roughness 0.025 mm, 10 cells |
| Compressor | On, outlet target 6 MPag, adiabatic efficiency 0.82; limits 300000 Nm³/h, 10000 kW, ratio 4 |
| To buffer pipe | 2000 m, 300 mm, wall 8 mm, roughness 0.045 mm |
| Buffer | 500 m³, initial 6 MPag, ports open, limits 4.5/7.5 MPag |
| Regulator | Open, outlet 4.8 MPag |
| User pipe | 1000 m, 250 mm, wall 8 mm, roughness 0.045 mm |
The Colebrook friction model and explicit solution method are used for each pipe section, and the inlet and outlet elevations are both 0 m. This example does not consider the impact of terrain height difference on pressure distribution.
Boundary Conditions and Simulation Setup
Load Events and Control Strategies
| Object | Initial | Transient | Meaning |
|---|---|---|---|
| Load | 80000 Nm³/h | 120000 at 600 s | 50% increase |
| PI | SP 6 MPag, Kc 0.8, Ti 180 s, Td 0 | Direct, fixed 10 s sampling | PI operation |
| CV | 6 MPag | Limits 5.2–7 MPag | Compressor target range |
| Compressor | Outlet target 6 MPag | Controller target input | Adjust active compression flow |
| Regulator | 4.8 MPag | Constant | Downstream supply |
Bypass is closed; flow increases through active compression. Global isothermal keeps ports at 20 °C while power follows the adiabatic device process.
Simulation Settings
| Setting | Value |
|---|---|
| Simulation / thermal | Transient / isothermal |
| EOS / gas | BWRS / NaturalGas |
| Period | 2026-01-01 00:00:00–00:20:00 |
| Min/max step | 10/60 s |
| Control sample | 10 s |
| Temperature | 20 °C |
| Gauge reference | 101.325 kPa(a) |
| Standard state | 101.325 kPa(a), 20 °C |
NaturalGas is methane 90%, ethane 5%, propane 2%, nitrogen 2%, CO₂ 1% by mole. Control boundaries are 10 s apart; all accepted steps are 10 s, yielding 1 initial and 120 transient frames.
Transient Calculation Results and Analysis
The initial physical state follows each device's own initial settings. The controller then uses measured values to issue requests for subsequent intervals. When comparing results, distinguish the controller's next CV request, the setpoint accepted by the compressor in the current step, and actual outlet pressure.
| Time | Demand Nm³/h | Tank MPag | Inventory Nm³ | In/out Nm³/h |
|---|---|---|---|---|
| 0 s | 80000 | 6.00000 | 34531.19 | 0 / 80000 |
| 590 s | 80000 | 5.99391 | 34492.20 | 80369 / 80000 |
| 600 s | 120000 | 5.98464 | 34432.89 | 89605 / 110953 |
| 660 s minimum | 120000 | 5.96622 | 34315.14 | 119767 / 120000 |
| 1200 s | 120000 | 5.99157 | 34477.28 | 120527 / 120000 |
At 600 s, tank outflow exceeds inflow by about 21348 Nm³/h, releasing inventory. The pipe to the user also stores gas, so tank/user transient flows differ. Pressure and inventory reach minima at 660 s, 33.78 kPa below SP.

At 1200 s, pressure is 5.99157 MPag, 8.43 kPa below target. Executed CV 6.09630 MPag matches actual compressor outlet; Next Requested CV 6.09650 applies next step. Power is 1266.11 kW, bypass zero.

SP, PV, and CV all use MPag, representing tank target, tank measurement, and compressor outlet request respectively.
Regulator outlet holds 4.8 MPag. At 1200 s user pressure is 4.62478 MPag; downstream pipe drop is about 175.22 kPa.
Simulation Capabilities Reflected in Calculation Examples
| Simulation Content | Application in This Example |
|---|---|
| Combined transient calculation of long pipes and centralized parameter equipment | Simultaneously calculate the dynamic response of upstream pipes, compressors, stubs, surge tanks, regulators and loads |
| Closed loop pressure control | Taking the buffer tank pressure as PV, the PI controller generates the compressor outlet pressure CV |
| Buffer tank inventory calculation | Calculate inventory changes based on the difference between inlet and outlet flows, and determine its short-term compensation effect on sudden load increases |
| Compressor operating status calculation | Calculate active compression flow, inlet and outlet pressure, pressure ratio, shaft power and bypass status |
| Downstream pressure regulation | Maintains specified regulator outlet pressure when upstream pressure changes |
| Time-varying load boundaries | Apply a flow step at a specified moment and calculate the propagation of pressure, flow, and equipment load |
| cross-checking of results | Combine residual, SP/PV/CV, tank pressure, inventory, equipment flow and power to determine the control process |
Results Viewing Process
- Open coordinated compression/buffer/regulation supply; select the completed 20 min job. Check 121 frames and 10 s steps under Other Results.
- Check load step at 600 s and tank minima at 660 s.
- Compare controller SP/PV/Next CV; at 1200 s compare executed CV, compressor pressure/power, and bypass.
- Compare regulator/user pressures for downstream drop.
For workbench operations, see Run and View Results.
The reference task completed all 1200 s. Compressor flow and shaft power are zero at the initial frame and positive in all 120 transient frames. Bypass flow remains zero. The final tank pressure is 5.99157 MPag, approximately 8.43 kPa below the 6 MPag setpoint. Maximum nodal mass imbalance is about kg/s and the connection pressure difference is 0 Pa.
Control Chain Checks
| Symptom | Check first |
|---|---|
| PV differs from tank pressure | Check that the instrument reads internal gauge pressure of the 500 m³ buffer tank. Compare the same time and unit, MPag. |
| CV changes but the compressor does not apply it | Check the actuator's outlet pressure setpoint binding on the active compressor and confirm Signal Control and Setpoint Only. |
| CV and actual outlet pressure differ by one time step | Compare next requested CV with the current executed CV. Check whether operating constraints limit the response. |
| User pressure is below 4.8 MPag | The 4.8 MPag setpoint applies at the regulator outlet. The downstream pipe introduces additional pressure drop. |
Extended Comparison Conditions
| Compare Working Conditions | Modify Content | Key Comparison Results | Engineering Purposes |
|---|---|---|---|
| Load step amplitude | Set smaller or larger load increments respectively | Tank pressure minimum, inventory drawdown, compression flow and peak shaft power | Evaluate the system's ability to withstand different incremental loads |
| Controller parameters | Change Kc or Ti individually | PV maximum deviation, recovery speed, CV change and oscillation degree | Compare pressure controller tuning options |
| Buffer tank volume | Individually change buffer tank volume | Tank pressure drop rate, inventory changes, and compressor response time | Evaluate the impact of buffer volume on short-term peak shaving capabilities |
| Compressor capacity limitations | Reduce maximum flow, maximum power or maximum pressure ratio | Limit trigger status, tank pressure minimum and maintainable load | Check the capacity margin of the compression station |
| Control output limiting | Adjust CV upper and lower limits | Controller saturation, tank pressure recovery and compressor outlet pressure | Evaluate control authority and allowable pressure range of equipment |
| Regulator settings | Change regulator outlet pressure | User end pressure, downstream pipeline pressure drop and upstream gas supply conditions | Compare different air supply pressure options |
| Downstream pipe diameter expansion | Increase user pipeline diameter | User pressure and pipeline pressure drop | Assessing pipe network modification plans for terminal low pressure issues |
When performing extended operating condition comparisons, only change one load condition, equipment parameter or control parameter 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.