📑 Table of Contents (Tap to view sections)
In long-distance natural gas transmission systems, a pipeline is not merely a conduit for transporting fluid from point A to point B—it is also a massive, pressurized gas storage vessel.
The volume of natural gas held under pressure inside the pipeline network is known as Line Pack. Midstream operators rely on line pack as an agile operational buffer to absorb intraday demand swings (such as gas-fired turbine power plant ramping), balance supply interruptions from processing plants, and optimize compressor fuel consumption.
1. The Physics of Line Pack: Why Arithmetic Pressure Fails
Because natural gas is highly compressible and experiences frictional pressure drops over hundreds of kilometers, the pressure gradient along the pipeline is non-linear. The pressure drops slowly near the inlet (where gas density is high) and drops steepeningly near the delivery outlet (where gas expands and accelerates).
If an engineer simply used the arithmetic mean pressure $\frac{P_1 + P_2}{2}$ to calculate gas inventory, they would significantly overestimate the stored gas volume.
The true effective average operating pressure ($P_{avg}$) along a gas transmission pipeline is derived by integrating the pressure profile over the line length:
$$ P_{avg} = \frac{2}{3} \left( P_1 + P_2 - \frac{P_1 \cdot P_2}{P_1 + P_2} \right) $$
Where:
- $P_1$ = Inlet operating pressure (psia or $\text{bar(a)}$)
- $P_2$ = Outlet delivery pressure (psia or $\text{bar(a)}$)
Notice that as the pressure differential $\Delta P = P_1 - P_2$ widens, $P_{avg}$ deviates further below the arithmetic average.
2. Fundamental Line Pack Equation
The total standard volume of gas physically stored inside the pipe at average operating conditions is given by the Real Gas Law:
$$ V_{pack} = V_{geom} \cdot \left( \frac{P_{avg}}{P_b} \right) \cdot \left( \frac{T_b}{T_{avg} \cdot Z_{avg}} \right) $$
Where:
- $V_{geom} = \frac{\pi}{4} D^2 L$ is the internal geometric volume of the pipeline ($D$ in m or ft, $L$ in m or ft).
- $P_b, T_b$ are base standard pressure and temperature conditions ($1.01325 \text{ bar(a)}, 288.15 \text{ K}$ or $14.696 \text{ psia}, 519.67 \text{ R}$).
- $T_{avg}$ is the average flowing temperature in Kelvin or Rankine.
- $Z_{avg}$ is the natural gas compressibility factor evaluated at $P_{avg}$ and $T_{avg}$ (e.g. via Peng-Robinson, AGA8, or Papay correlation).
3. Usable Pack vs. Dead Pack
In pipeline dispatch operations, not all gas inside the pipe can be extracted. The inventory is divided into two distinct components:
- Dead Pack (Base Inventory): The minimum gas volume required to keep the pipeline pressurized at its minimum contractual delivery pressure ($P_{2,min}$) under steady-state flow conditions. This gas can never be removed without violating downstream delivery commitments or causing compressor flameout.
- Deliverable (Usable) Line Pack: The swing buffer between the maximum packed state (inlet at Maximum Allowable Operating Pressure, MAOP) and the draft state:
$$ \Delta V_{usable} = V_{pack}(P_{avg,max}) - V_{pack}(P_{avg,min}) $$
Line Pack Buffer Time (Autonomy)
When upstream gas supplies trip (e.g., offshore platform shutdown), the duration that the pipeline can sustain full delivery flow rate ($Q_{demand}$) without upstream feed is:
$$ \Delta t_{buffer} = \frac{\Delta V_{usable}}{Q_{demand} - Q_{supply}} $$
4. Worked Calculation Example
Problem Statement:
Consider a cross-country natural gas transmission pipeline with the following design parameters:
- Length ($L$): $120 \text{ km}$ ($120,000 \text{ m}$)
- Nominal Diameter: $24\text{ inch}$ (Schedule 40, Internal Diameter $D = 22.624 \text{ in} = 0.5746 \text{ m}$)
- Inlet Pressure ($P_1$): $75.0 \text{ barg} = 76.013 \text{ bar(a)}$ ($7,601.3 \text{ kPa}$)
- Delivery Pressure ($P_2$): $45.0 \text{ barg} = 46.013 \text{ bar(a)}$ ($4,601.3 \text{ kPa}$)
- Average Temperature ($T_{avg}$): $15.0^\circ\text{C} = 288.15 \text{ K}$
- Gas Specific Gravity ($G$): $0.62$ (relative to air)
- Base Conditions: $P_b = 1.01325 \text{ bar(a)}, T_b = 288.15 \text{ K}$
Step 1: Geometric Volume of the Pipe
$$ A = \frac{\pi}{4} D^2 = \frac{\pi}{4} (0.5746)^2 = 0.2593 \text{ m}^2 $$
$$ V_{geom} = A \cdot L = 0.2593 \text{ m}^2 \times 120,000 \text{ m} = 31,116 \text{ m}^3 $$
Step 2: Calculate Average Operating Pressure ($P_{avg}$)
$$ P_1 \cdot P_2 = 76.013 \times 46.013 = 3,497.64 $$
$$ P_1 + P_2 = 76.013 + 46.013 = 122.026 $$
$$ \frac{P_1 \cdot P_2}{P_1 + P_2} = \frac{3,497.64}{122.026} = 28.663 \text{ bar} $$
$$ P_{avg} = \frac{2}{3} \left( 122.026 - 28.663 \right) = \frac{2}{3} (93.363) = 62.242 \text{ bar(a)} $$
(Note: The naive arithmetic average would be $\frac{76.013 + 46.013}{2} = 61.013 \text{ bar}$, introducing an error of over $1.2 \text{ bar}$!).
Step 3: Determine Real Gas Z-Factor ($Z_{avg}$)
Using pseudo-critical correlations (Sutton) for $G = 0.62$:
- $P_{pc} = 4,600 \text{ kPa} = 46.0 \text{ bar}$
- $T_{pc} = 198.5 \text{ K}$
- Reduced properties: $P_r = \frac{62.24}{46.0} = 1.353$, $T_r = \frac{288.15}{198.5} = 1.452$
- Calculated $Z_{avg} \approx 0.842$
Step 4: Calculate Total Line Pack
$$ V_{pack} = 31,116 \cdot \left( \frac{62.242}{1.01325} \right) \cdot \left( \frac{288.15}{288.15 \times 0.842} \right) $$
$$ V_{pack} = 31,116 \times 61.428 \times 1.1876 = 2,270,100 \text{ Sm}^3 $$
Converting to MMSCF ($1 \text{ Sm}^3 = 35.3147 \text{ SCF}$):
$$ V_{pack} = 2,270,100 \times 35.3147 \times 10^{-6} \approx 80.17 \text{ MMSCF} $$
Step 5: Usable Swing Capacity
If evening peak demand pulls the outlet down to minimum pressure $P_{2,min} = 32 \text{ bar(a)}$ while maintaining inlet at $76 \text{ bar(a)}$:
- New $P_{avg} = 57.38 \text{ bar(a)}$, $Z_{avg} \approx 0.858$.
- Depleted Line Pack $= 1,985,000 \text{ Sm}^3$ ($70.10 \text{ MMSCF}$).
- Deliverable Line Pack: $80.17 - 70.10 = 10.07 \text{ MMSCF}$ ($285,100 \text{ Sm}^3$).
This deliverable buffer gives dispatchers several hours of peak peaking power without requiring instant compressor throttle changes.
5. Operational Dispatch Best Practices
- Diurnal Packing Strategy: Pack the pipeline overnight during low industrial demand hours (raising delivery pressure toward MAOP), then draft the line pack during morning and early-evening peak power generation hours.
- SCADA Real-Time Pack Modeling: Modern pipeline control rooms feed pressure, temperature, and custody-transfer meter data into transient hydraulic software (e.g. SPS, PipelineStudio) to continuously update line pack inventory every 30 seconds.
- Surge & Rapid Valve Closure: When drafting line pack at high velocities, sudden emergency valve closures can induce severe water-hammer/gas-hammer pressure waves. Fast-acting surge relief skids and automated compressor bypass loops are mandatory to protect piping integrity.
Frequently Asked Questions (FAQ)
What is pipeline linepack and what mathematical formula calculates inventory?
Linepack is the total volume of natural gas physically stored under pressure inside the internal geometry of a transmission pipeline network. It is calculated using the real gas law converted to standard cubic meters (\(Sm^3\)) or standard cubic feet (\(SCFD\)): \(V_{linepack} = V_{geometric} \cdot \left( \frac{P_{avg}}{P_{std}} \right) \cdot \left( \frac{T_{std}}{T_{avg}} \right) \cdot \left( \frac{1}{Z_{avg}} \right)\), where \(V_{geometric} = \frac{\pi}{4} D^2 L\) is internal pipe volume, \(P_{avg}\) and \(T_{avg}\) are volume-weighted average pressure and absolute temperature along the line, and \(Z_{avg}\) is the real gas compressibility factor at operating conditions.
How is the average gas pressure in a transmission pipeline derived?
Because gas expands and accelerates as pressure falls toward the downstream terminal, pressure loss is non-linear (parabolic). Integrating the pressure gradient equation \(P(x) = \sqrt{P_1^2 - (P_1^2 - P_2^2) \frac{x}{L}}\) across the pipeline length yields the volume-weighted average pressure: \(P_{avg} = \frac{2}{3} \left( P_1 + P_2 - \frac{P_1 \cdot P_2}{P_1 + P_2} \right)\). Using a simple arithmetic average \((P_1 + P_2)/2\) underestimates actual stored linepack by 3% to 8%, creating substantial inventory and accounting discrepancies across multi-billion-dollar pipeline networks.
How is pipeline survival time calculated when upstream supply trips?
Pipeline survival time (or "buffer autonomy") is the time a transmission system can continue supplying contracted downstream demand after an upstream gas plant or compressor station unexpectedly trips offline. Survival time is calculated as: \(t_{survival} = \frac{V_{pack, initial} - V_{pack, min}}{Q_{demand} - Q_{supply, in}}\), where \(V_{pack, min}\) is the minimum linepack corresponding to the minimum allowable delivery pressure required by downstream gas turbines or city gate stations. For example, if a pipeline contains 50 MMSCF of deliverable linepack draft and downstream demand is 10 MMSCF/hour with zero upstream feed, survival time is exactly 5.0 hours before downstream customer delivery pressures violate tariff contracts.
What is the difference between total physical linepack, base pack, and working draft pack?
Pipeline gas inventory is classified into three operational categories:
- Total Linepack: The entire physical volume of gas contained in the pipeline pipe volume at any moment.
- Base Pack (Dead Pack): The minimum baseline inventory required to hold the pipeline at its minimum allowable operating pressure (MAOP floor) necessary to feed downstream delivery points. This volume is permanently immobilized inside the pipe.
- Working Draft Linepack: The usable inventory stored between minimum delivery pressure and maximum allowable operating pressure (MAOP): \(V_{working} = V_{total} - V_{base}\). Pipeline dispatchers draw and refill this working cushion daily to absorb intraday peak-shaving swings without altering upstream production rates.
How do transient gas-hammer pressure waves impact pipeline integrity during rapid shut-ins?
When an emergency shutdown valve (ESD) closes rapidly or a downstream compressor trips, the kinetic momentum of the flowing gas column is abruptly halted, converting kinetic energy into a compressive pressure shockwave (gas hammer). The pressure surge travels upstream at the acoustic speed of sound (\(c = \sqrt{k Z R T} \approx 380 - 430\text{ m/s}\) in natural gas). Although gas compressibility cushions hammer shocks compared to hydraulic water hammer, rapid valve closures can generate transient pressure spikes of 5 to 20 bar above steady-state pressure, threatening pipe hoop stress limits unless controlled by automated stroke-limiting surge valves.
Worked Example: Trunkline Linepack Inventory Calculation
A 90 km NPS 24 gas transmission segment (ID = 584 mm, geometric volume \(V = 24{,}108\text{ m}^3\)) ramps from \(P_1 = 76\text{ bara}, P_2 = 58\text{ bara}\) to steady peak pack \(P_1 = 84\text{ bara}, P_2 = 72\text{ bara}\) at \(288\text{ K}\). Spatial average pressure \(P_{avg} = \tfrac{2}{3}(P_1 + P_2 - P_1 P_2/(P_1 + P_2))\) rises from 67.4 bara (\(Z = 0.855\)) to 78.2 bara (\(Z = 0.835\)), storing an extra \(3.62 \times 10^5\text{ Sm}^3\) (\(12.8\text{ MMSCF}\)) of pack buffer for peak gas-turbine dispatch.
Gas Pipeline Sizing (Weymouth & Panhandle)
Apply this methodology directly in the ChemProCal calculator.
Open Calculator →Live Weymouth & Panhandle Gas Pipeline Hydraulics Estimator
Adjust parameters below to test the methodology equations in real time before running full simulations: