---
id: po.wb.sf.pipeline-design
title: Pipeline Design and Route Integrity
summary: "What size one route's gas, liquid and multiphase lines must be, and whether the bore holds against erosion, hydrates and CO2 corrosion."
category: Production
requires:
  - po-addin
  - excel-365
tags:
  - pipeline
  - gas-pipeline
  - liquid-pipeline
  - pipeline-integrity
  - flowline
  - surface-facilities
  - erosion
  - erosional-velocity
  - hydrate
  - hydrate-curve
  - corrosion
  - corrosion-rate
  - corrosion-allowance
  - multiphase-flow
  - flow-assurance
---

## Description

What size must the lines from the wellhead to the facility be, and will the route hold? You enter one stream's rates and fluid, the pressures and temperatures along the route, the line lengths and profile, the design basis and the inhibitor. You read off the gas line, liquid line and multiphase flowline sizes with their arrival pressures, and, for the chosen bore, the erosional velocity ratio (API RP 14E), the hydrate margin at the coldest point (Katz curve) and the CO2 corrosion against the allowance.

**How to use it:** Put the route's data in the blue cells on the Lines sheet: the metered rates, the gas and water analyses, the line's as-built lengths, ground and seabed temperatures, the inlet and delivery pressures, the inhibitor concentration and the design life. Lines sizes the three lines from them and chains the flowline's pressure along the route profile; edit the segment lengths and rises to match the route. Read erosion, hydrates and corrosion along the same route on the Integrity sheet, and every headline and check on the Summary.

**Method:** The gas line is the smallest standard-weight size whose outlet pressure, by the design equation (Weymouth by default, or Panhandle A or B), stays above the plant's minimum delivery pressure and whose outlet velocity stays under API RP 14E's erosional velocity; the line's Z is the DAK value at the average pressure, two thirds of the inlet and minimum, on Standing pseudo-criticals corrected by Wichert-Aziz. The liquid line is the smallest standard-weight size that arrives above the terminal's minimum pressure, with the climb taken off and the velocity inside its limits. The flowline carries the bore entered and its arrival pressure from Beggs and Brill chained segment by segment over the route profile. The route's erosion is API RP 14E's rule on the multiphase line: the no-slip mixture density, the C factor for the service, the erosional velocity C over the square root of the density, and the mixture velocity in the route's bore. The route's hydrates are the Katz curve fitted by Towler-Mokhatab: the hydrate temperature at the arrival pressure against the arrival temperature, the bare margin, and the margin with the methanol's depression (Hammerschmidt to 20 wt %, Nielsen-Bucklin above), taken as the least margin over the flowing and the shut-in cases. The route's corrosion is the de Waard-Milliams CO2 rate of bare carbon steel at the line's pressure, CO2 and water pH, the wall lost over the design life, and the inhibitor efficiency the allowance needs.

**Example:** The default stream is the flow-assurance family's reference flowline: 20 MMscf/d of a 0.7 gravity gas with 3 % CO2 and 500 ppm H2S, 1,000 STB/d of the 40.7 API reference oil and 500 bbl/d of water, at 1,000 psia and 150 F, arriving at 45 F. The gas line comes out at NPS 8, 7.981 in, delivering 849 psia against the 600 psia plant minimum, at 9.5 ft/s against an erosional 38.8 ft/s. The liquid line comes out at 2.067 in, arriving at 71 psig against the 50 psig minimum at 4.2 ft/s. The multiphase flowline is NPS 6, 6.065 in; Beggs and Brill over the route profile arrives at 740.7 psia. On the route the mixture moves at 0.53 of its erosional velocity, so erosion is not a problem. The coldest point is the 45 F arrival, where the hydrate temperature is 60.4 F: the bare line is 15.4 F inside the hydrate curve, and with 30 wt % methanol it keeps 3.4 F of margin, just over the 3 F wanted. Corrosion is the one warning: at 30 psia of CO2 the bare steel loses 9.18 mm a year, 183.6 mm over the 20 year life against the 3 mm allowance, so it needs inhibition at 98.4 % efficiency, above the 85 % set, or a corrosion-resistant alloy. The route holds on erosion and hydrates; the carbon steel does not fit the corrosion allowance.

## Validity

The gas design equations are steady, isothermal and horizontal, with one Z for the line: elevation, the temperature profile and line pack are left out. The hydrates assume the Katz fit's range of gas gravity and that the line cools toward the seabed. The corrosion rate is the unprotected de Waard-Milliams rate, an upper bound above 140 F where iron carbonate scale can form, and the water pH is an in-situ measurement, not a surface one. The sour-service region is a screening only: the ISO 15156-2 boundary at pH 5.0 and 0.5 psia H2S is not yet verified, so the region is stated and no check is built on it. The line's own schedule of internal diameters, its detailed profile and its bathymetry are outside what this workbook models; a real route needs a hydraulic and a thermal simulator, not a sizing sheet.

## References

- API RP 14E (1991). *Recommended Practice for Design and Installation of Offshore Production Platform Piping Systems*, section 2.5.
- Hammerschmidt, E.G. (1934). Formation of Gas Hydrates in Natural Gas Transmission Lines. *Ind. Eng. Chem.* 26(8), 851-855.
- Katz, D.L. (1940), the gas-gravity hydrate chart.
- Beggs, H.D. and Brill, J.P. (1973). A Study of Two-Phase Flow in Inclined Pipes. *JPT* 25(5), 607-617.
- de Waard, C. and Milliams, D.E. (1975). Carbonic Acid Corrosion of Steel. *Corrosion* 31(5), 177-181.
- Towler, G.J. and Mokhatab, S. (2001), the fit to the Katz hydrate curve.
- GPSA (2012). *Engineering Data Book*, 13th ed., section 17.
- ISO 15156-2, *Petroleum and natural gas industries — Materials for use in H2S-containing environments in oil and gas production — Part 2*.

## Inputs

| Input | Unit | Default | Name |
|---|---|---|---|
| Gas rate | MMscf/d | 20 | `PDS_Qg` |
| Oil rate | STB/d | 1,000 | `PDS_Qo` |
| Water rate | bbl/d | 500 | `PDS_Qw` |
| Gas specific gravity (air = 1) | — | 0.7 | `PDS_SG` |
| Liquid specific gravity, oil and water blended | — | 0.89 | `PDS_SGL` |
| CO2 mole fraction in the gas | % | 3 | `PDS_CO2` |
| H2S in the gas | ppm | 500 | `PDS_H2S` |
| In-situ pH of the produced water | — | 5.0 | `PDS_Ph` |
| Flowline inlet pressure, absolute | psia | 1,000 | `PDS_Pin` |
| Minimum delivery pressure at the gas plant, absolute | psia | 600 | `PDS_Pmin` |
| Separator operating pressure, absolute | psia | 250 | `PDS_Psep` |
| Liquid line pump discharge, gauge | psig | 285 | `PDS_PLiq` |
| Minimum arrival pressure at the terminal, gauge | psig | 50 | `PDS_PLiqMin` |
| Flowline inlet temperature | F | 150 | `PDS_Tin` |
| Flowline arrival temperature, the coldest point | F | 45 | `PDS_Tout` |
| Seabed temperature, which the line cools toward | F | 40 | `PDS_Tsea` |
| Gas line average flowing temperature, buried | F | 60 | `PDS_Tgas` |
| Gas line length | mi | 30 | `PDS_Lgas` |
| Liquid line length | ft | 10,560 | `PDS_Lliq` |
| Flowline length along the route | ft | 26,830 | `PDS_Lflow` |
| Liquid line climb, outlet less inlet | ft | 100 | `PDS_dH` |
| Wall roughness, absolute, commercial steel | ft | 0.0018 | `PDS_Eps` |
| Liquid viscosity at line temperature | cP | 2.72 | `PDS_Mu` |
| Highest velocity allowed in the liquid line | ft/s | 15 | `PDS_Vmax` |
| Lowest velocity wanted in the liquid line | ft/s | 3 | `PDS_Vmin` |
| Flowline bore, NPS 6 standard weight | in | 6.065 | `PDS_MflBore` |
| Gas-liquid surface tension at line conditions | dyne/cm | 25 | `PDS_IFT` |
| Gas line pipeline efficiency | — | 0.92 | `PDS_E` |
| Gas line design equation, 1 Weymouth, 2 Panhandle A, 3 Panhandle B | — | 1 | `PDS_Eq` |
| Solids in the gas | — | 0 | `PDS_Sand` |
| Continuous service | — | 1 | `PDS_Cont` |
| Corrosive gas without inhibition | — | 1 | `PDS_Corr` |
| Methanol in the free water | wt % | 30 | `PDS_MeOH` |
| Design life | y | 20 | `PDS_Life` |
| Corrosion allowance for carbon steel | mm | 3 | `PDS_CAmax` |
| Inhibitor efficiency | % | 85 | `PDS_Eff` |
| Margin off the hydrate curve the route must keep | F | 3 | `PDS_Margin` |

## Sheets

- `Guide` — what the workbook decides, the order to work through it and the default route.
- `Lines` — the route's single block of inputs; the standard sizes swept from NPS 2 to 24; the gas line's average conditions, smallest delivering size, outlet pressure and velocities; the liquid line's smallest arriving size, velocity and arrival pressure; the flowline bore; and the route profile with Beggs and Brill chained segment by segment, with a chart of pressure along the route.
- `Integrity` — the gas at line conditions, the no-slip mixture density and the erosional velocity ratio; the hydrate temperature at the coldest point, the bare margin, the margin with methanol and the shut-in case; the CO2 partial pressure, bare and inhibited corrosion rates, wall lost over the life and the inhibitor efficiency the allowance needs.
- `Summary` — the three lines, the erosion, hydrate and corrosion headlines, and every check under one verdict.
- `Test Cases` — the worked example and other cases, with expected and computed results.

## Functions used

`PO.SF.PL.Gas.Size`, `PO.SF.PL.Gas.Weymouth.Pout`, `PO.SF.PL.Gas.PanhandleA.Pout`, `PO.SF.PL.Gas.PanhandleB.Pout`, `PO.SF.PL.Gas.Vel`, `PO.SF.PL.Gas.Rho`, `PO.SF.PL.Liq.Size`, `PO.SF.PL.Liq.Vel`, `PO.SF.PL.Liq.Pout`, `PO.VFP.BeggsBrill.Pout`, `PO.FA.Erosion.CFactor`, `PO.FA.Erosion.RhoMix`, `PO.FA.Erosion.Ve`, `PO.FA.Erosion.Vmix`, `PO.FA.Erosion.Ratio`, `PO.FA.Hydrate.Teq`, `PO.FA.Hydrate.dT.MeOH`, `PO.FA.Corrosion.Pp.CO2`, `PO.FA.Corrosion.CR.CO2`, `PO.FA.Corrosion.CR.Inh`, `PO.FA.Corrosion.CA`, `PO.PVT.Ppc.ByStanding.Sour`, `PO.PVT.Tpc.ByStanding.Sour`, `PO.PVT.Z.ByDAK`, `PO.PVT.Rho.Gas.ByDefinition`, `PO.PVT.Rho.Wat.Stn`, `PO.PVT.Bg.ByDefinition`.
