Skip to main content

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​

ItemConfiguration
ScenarioSource supplies via compressor and buffer; demand steps 80000→120000 Nm³/h at 10 min
NetworkSource, long pipe, 2 short pipes, general compressor, buffer, regulator, flow load, pressure loop
AnalysisTransient, isothermal
ControlPID in PI mode adjusts compressor outlet target from tank pressure
DownstreamRegulator 4.8 MPag; standard-flow load
ResultsDemand, tank pressure/inventory, SP/PV/CV, compression flow/power, regulator/terminal pressure
ScopeJoint 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​

NexusFlow coordinated gas supply model with measurement instrument, PID controller, and actuator connections
NexusFlow coordinated gas supply model with measurement instrument, PID controller, and actuator connections

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.

ComponentConnected device categoryConnected device labelSignal option and unit
Buffer tank pressure measurement instrumentTwo-Port Tank (BufferTank)500 m³ engineering buffer tankTank pressure (gauge), MPag
Compressor station outlet pressure actuatorGeneral Compressor (GeneralCompressor)Active compressor station (closed-loop setpoint)Outlet pressure setpoint, MPag
  1. Select the measurement device category, label, and tank gauge pressure signal. Connect its signal output to PID input PV.
  2. Connect PID output CV to the actuator's signal input. Select the general compressor category, the active compressor station, and the outlet pressure setpoint.
  3. 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.
  4. 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​

DeviceParameters
Source4.5 MPag, 20 °C
Trunk20 km, 500 mm, wall 10 mm, roughness 0.025 mm, 10 cells
CompressorOn, outlet target 6 MPag, adiabatic efficiency 0.82; limits 300000 Nm³/h, 10000 kW, ratio 4
To buffer pipe2000 m, 300 mm, wall 8 mm, roughness 0.045 mm
Buffer500 m³, initial 6 MPag, ports open, limits 4.5/7.5 MPag
RegulatorOpen, outlet 4.8 MPag
User pipe1000 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​

ObjectInitialTransientMeaning
Load80000 Nm³/h120000 at 600 s50% increase
PISP 6 MPag, Kc 0.8, Ti 180 s, Td 0Direct, fixed 10 s samplingPI operation
CV6 MPagLimits 5.2–7 MPagCompressor target range
CompressorOutlet target 6 MPagController target inputAdjust active compression flow
Regulator4.8 MPagConstantDownstream 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​

SettingValue
Simulation / thermalTransient / isothermal
EOS / gasBWRS / NaturalGas
Period2026-01-01 00:00:00–00:20:00
Min/max step10/60 s
Control sample10 s
Temperature20 °C
Gauge reference101.325 kPa(a)
Standard state101.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.

TimeDemand Nm³/hTank MPagInventory Nm³In/out Nm³/h
0 s800006.0000034531.190 / 80000
590 s800005.9939134492.2080369 / 80000
600 s1200005.9846434432.8989605 / 110953
660 s minimum1200005.9662234315.14119767 / 120000
1200 s1200005.9915734477.28120527 / 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.

Tank pressure drops after the 600 s step and recovers
Tank pressure drops after the 600 s step and recovers

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.

Tank pressure SP, PV, and next absolute CV
Tank pressure SP, PV, and next absolute CV

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 ContentApplication in This Example
Combined transient calculation of long pipes and centralized parameter equipmentSimultaneously calculate the dynamic response of upstream pipes, compressors, stubs, surge tanks, regulators and loads
Closed loop pressure controlTaking the buffer tank pressure as PV, the PI controller generates the compressor outlet pressure CV
Buffer tank inventory calculationCalculate 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 calculationCalculate active compression flow, inlet and outlet pressure, pressure ratio, shaft power and bypass status
Downstream pressure regulationMaintains specified regulator outlet pressure when upstream pressure changes
Time-varying load boundariesApply a flow step at a specified moment and calculate the propagation of pressure, flow, and equipment load
cross-checking of resultsCombine residual, SP/PV/CV, tank pressure, inventory, equipment flow and power to determine the control process

Results Viewing Process​

  1. Open coordinated compression/buffer/regulation supply; select the completed 20 min job. Check 121 frames and 10 s steps under Other Results.
  2. Check load step at 600 s and tank minima at 660 s.
  3. Compare controller SP/PV/Next CV; at 1200 s compare executed CV, compressor pressure/power, and bypass.
  4. 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 9.22×10−99.22\times10^{-9} kg/s and the connection pressure difference is 0 Pa.

Control Chain Checks​

SymptomCheck first
PV differs from tank pressureCheck 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 itCheck 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 stepCompare next requested CV with the current executed CV. Check whether operating constraints limit the response.
User pressure is below 4.8 MPagThe 4.8 MPag setpoint applies at the regulator outlet. The downstream pipe introduces additional pressure drop.

Extended Comparison Conditions​

Compare Working ConditionsModify ContentKey Comparison ResultsEngineering Purposes
Load step amplitudeSet smaller or larger load increments respectivelyTank pressure minimum, inventory drawdown, compression flow and peak shaft powerEvaluate the system's ability to withstand different incremental loads
Controller parametersChange Kc or Ti individuallyPV maximum deviation, recovery speed, CV change and oscillation degreeCompare pressure controller tuning options
Buffer tank volumeIndividually change buffer tank volumeTank pressure drop rate, inventory changes, and compressor response timeEvaluate the impact of buffer volume on short-term peak shaving capabilities
Compressor capacity limitationsReduce maximum flow, maximum power or maximum pressure ratioLimit trigger status, tank pressure minimum and maintainable loadCheck the capacity margin of the compression station
Control output limitingAdjust CV upper and lower limitsController saturation, tank pressure recovery and compressor outlet pressureEvaluate control authority and allowable pressure range of equipment
Regulator settingsChange regulator outlet pressureUser end pressure, downstream pipeline pressure drop and upstream gas supply conditionsCompare different air supply pressure options
Downstream pipe diameter expansionIncrease user pipeline diameterUser pressure and pipeline pressure dropAssessing 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.