Petroleum Knowledge Base

Gas Pipeline Flow Calculation

Gas pipeline flow calculation determines the capacity of a pipeline from the difference of the squares of the inlet and outlet pressures, or finds the outlet pressure from a given flow rate. This entry gives the general equation for isothermal steady-state flow, the simplified equation for small pressure drops and the Weymouth equation, explains the choice of friction factor, the source of the difference between the two calculation methods and the velocity check, and includes a complete worked example for a 20 km pipeline.

Concept

Gas pipeline flow calculation solves two kinds of problems: given the pipe diameter, pipe length and inlet pressure, find the outlet pressure at a certain flow rate; or given the inlet and outlet pressures, find the maximum flow rate the pipeline can pass (the pipeline capacity). Both use the same relation, differing only in which unknown is solved for.

Gas is compressible. As pressure falls along the pipeline, the gas density decreases and the flow velocity increases, so the frictional pressure drop per unit length grows larger toward the downstream end, and the pressure drop per unit length cannot simply be multiplied by the length as in a liquid pipeline. Combining the momentum equation with the gas equation of state and integrating along the pipe length, the friction term corresponds to the difference of the squares of the inlet and outlet pressures, not to the pressure difference itself.

The derivation assumes steady flow, and that heat exchange between the gas and the surrounding soil, water or atmosphere is sufficient to keep the temperature constant along the whole line, that is, isothermal flow; in addition, elevation difference is neglected, that is, the pipeline is treated as horizontal. On this basis, taking the friction factor as the average value over the whole line and treating the gas as an ideal gas (z = 1) gives the most basic general equation; when the gas is treated as a real gas, the right-hand side is multiplied by the average compressibility factor z̄, and the calculation of z̄ is described in Natural Gas Compressibility Factor.

Calculation Methods

All of the following equations use imperial field units: pressure in psia (absolute), flow rate q in million standard cubic feet per day (MMscfd), pipe inner diameter d in inches, pipe length L in feet, temperature T in °R, and γ is the gas specific gravity (air = 1). Metric data must be converted first: 1 MPa = 145.04 psi, 1 km = 3280.8 ft, °R = 1.8 × (℃ + 273.15).

General Equation

p12 − p22 = 25.2 γ q2 T f L z̄ / d5

where p1 and p2 are the inlet and outlet pressures, and f is the Moody friction factor (that is, the Darcy friction factor, which is 4 times the Fanning factor). The equation as originally published is written for z = 1, and the z̄ added here is an extension to real gases. Derived directly from the equation of state and the frictional pressure drop equation, the coefficient is 25.18, consistent with 25.2.

f is read from the Moody chart using the Reynolds number and the relative roughness e/d, and the Reynolds number can be calculated directly from the standard flow rate:

NRe = 20 102 q γ / (d μ)

where μ is the gas viscosity at flowing conditions, in cP (= mPa·s); for values see Gas Viscosity. The mass flow rate is constant along the pipeline, so in an isothermal pipeline NRe varies only with viscosity and is essentially constant over the whole line. When the chart is not used, the explicit Jain equation can be used (turbulent flow, NRe > 2300):

f = [1.14 − 2 lg(e/d + 21.25 / NRe0.9)]−2

For the general meaning of the Reynolds number, see Reynolds Number.

Simplified Equation for Small Pressure Drops

When (p1 − p2)/p1 < 0.1, the difference of squared pressures can be written as (p1 + p2)(p1 − p2) ≈ 2p1Δp, which gives

Δp = 12.6 γ T f L q2 z̄ / (p1 d5)

This uses the inlet pressure in place of the average pressure, so the larger the pressure drop, the more the result is underestimated; when the applicable condition is exceeded, return to the general equation.

Weymouth Equation

p12 − p22 = 0.81 γ q2 T L z̄ / d16/3

The exponent of the pipe diameter is printed as 5.33 in the original equation. Comparison with the general equation shows that it amounts to taking f = 0.0321 / d1/3 (d in in); the friction factor depends only on pipe diameter, corresponding to the fully rough zone where the curves on the Moody chart flatten out, so it is suitable for pipelines with high velocity and high Reynolds number. The same equation is also often written in flow rate form:

qsc = 15 320 [(p12 − p22) d16/3 / (γ T z̄ Lmi)]0.5

where qsc is in scf/d and Lmi is the pipe length in miles. After conversion to the same units, the coefficients of the two forms differ slightly, and the calculated flow rates differ by about 0.2%.

Panhandle Equation

For long-distance pipelines with lower velocity, the friction factor varies with flow rate, and there is a separate Panhandle equation, in which the exponent of the flow rate is 1.96 and that of the pipe diameter is 4.96, with a flow efficiency E introduced. The matching of its coefficients with units could not be verified in the available references, so this entry does not use it for calculation and cites only the values of E (see "Recommended Values").

Velocity Check

The actual flow velocity at a section is obtained by converting the standard flow rate to the pressure and temperature at that point and dividing by the pipe cross-sectional area:

v = qsc (psc / p)(T / Tsc) z̄ / A

The outlet pressure is the lowest and the flow velocity the highest, so the check is made at the outlet.

Worked Example

Given: a horizontal gas pipeline, the unified example of this category. New steel pipe, 6 in Sch 40, inner diameter 154.05 mm (6.065 in), absolute roughness 0.0457 mm (0.0018 in); pipe length 20 km; inlet pressure 6.00 MPa (absolute), outlet pressure not lower than 4.00 MPa (absolute); gas specific gravity 0.60, average temperature in the pipe 20 ℃, average compressibility factor z̄ = 0.90, viscosity 0.012 mPa·s; flow rate 20 MMscfd. The pipe parameters, pressures, gas properties, temperature and flow rate are all assumed values, used only to demonstrate the algorithm.

Find: the outlet pressure (general equation, simplified equation and Weymouth equation side by side); the capacity when the outlet pressure is 4.00 MPa; the velocities at the inlet and outlet.

Solution:

  1. Conversion: p1 = 870.2 psia; T = 527.67 °R; L = 65 617 ft; a flow rate of 20 MMscfd equals 57.5 × 104 m³/d at China's standard conditions (20 ℃, 101.325 kPa).
  2. Reynolds number: NRe = 20 102 × 20 × 0.60 / (6.065 × 0.012) = 3 314 449 (about 3.3 × 106), so the flow is turbulent. From the Jain equation, e/d = 0.000297 and f = 0.0152.
  3. General equation: p12 − p22 = 25.2 × 0.60 × 202 × 527.67 × 0.0152 × 65 617 × 0.90 / 6.0655, giving p2 = 4.41 MPa and a pressure drop of 1.59 MPa. If the compressibility factor is ignored (z̄ = 1), p2 = 4.19 MPa, and the pressure drop is overestimated by about 0.22 MPa.
  4. Simplified equation: Δp = 1.38 MPa, about 13% smaller than from the general equation. Here (p1 − p2)/p1 = 0.27, which exceeds the applicable condition of 0.1. Under the same conditions with a pipe length of 2 km, the general equation gives p2 = 5.860 MPa (pressure drop 0.140 MPa) and the simplified equation gives 0.138 MPa, essentially in agreement.
  5. Weymouth equation: the implied friction factor is 0.0176, about 16% larger than the 0.0152 from the Jain equation, giving p2 = 4.09 MPa, 0.32 MPa lower than from the general equation.
  6. Capacity (p2 = 4.00 MPa): general equation 21.96 MMscfd (63.1 × 104 m³/d); Weymouth equation 20.39 MMscfd, or 20.43 MMscfd using the flow rate form.
  7. Velocity: 5.43 m/s at the inlet and 7.38 m/s at the outlet (4.41 MPa), below the noise-based limit of 18 to 24 m/s given below.

The differences between the two methods come entirely from the friction factor, and the difference in friction factor comes mainly from roughness. By the Jain equation, even if the new steel pipe in this example entered the fully rough zone, f would be only 0.0149, and the effect of the transition zone raises it only to 0.0152. The 0.0176 implied by Weymouth, if back-calculated assuming the fully rough zone, corresponds to an absolute roughness of about 0.098 mm, about 2.1 times the tabulated value for new steel pipe. So after the pipeline has been in service for years and its inner wall has become rougher, the two methods will come closer.

Variation of outlet pressure with pipe length: general equation (Jain friction factor) and Weymouth equation, flow rate 20 MMscfd (all conditions are assumed values)
Figure 1 Variation of outlet pressure with pipe length: general equation (Jain friction factor) and Weymouth equation, flow rate 20 MMscfd (all conditions are assumed values)

Recommended Values

  • Flow efficiency E: 1.00 for a new pipeline, 0.92 for average conditions, 0.85 for unfavorable conditions. E is used to reduce the theoretical capacity, reflecting factors such as inner wall roughness, liquid accumulation and contamination.
  • Roughness: 0.0018 in (0.0457 mm) for new steel pipe, 0.006 in for galvanized iron, 0.01 in for cast iron; allowing for service life, the tabulated values should be increased by a factor of 2 to 4.
  • Velocity limit: for noise reasons, the velocity at flowing conditions should be limited to 60 to 80 ft/s (about 18 to 24 m/s). Excessive velocity may also strip the corrosion product layer from the pipe wall and accelerate corrosion; the erosional velocity is estimated separately from v = C / √ρg, and the value of the constant C should be taken from the applicable design code.
  • Simplified equation: use it only when (p1 − p2)/p1 < 0.1.
  • Weymouth equation: mostly used for short in-plant lines with high velocity and high Reynolds number; the roughness it implies is about 2 times the tabulated value for new steel pipe (at the pipe diameter of this example), so for new steel pipe it overestimates the pressure drop and underestimates the capacity, while for old pipe with a rougher inner wall it may underestimate the pressure drop.

Influencing Factors and Considerations

  1. Pipe diameter. The squared-pressure difference is inversely proportional to d5 (d16/3 for the Weymouth equation), so with other conditions unchanged (including f for the general equation), the capacity is roughly proportional to d2.5 to d2.67. With the equations of this example, a 10% increase in inner diameter increases the capacity by about 27% to 29%. The inner diameter must be taken from the actual wall thickness, not from the nominal size.
  2. Compressibility factor and temperature. Both z̄ and T are in the numerator. In this example, taking z̄ as 0.90 gives an outlet pressure 0.22 MPa higher than that calculated for an ideal gas; the capacity decreases when the ground temperature is high in summer. z̄ should be determined at the average pressure and average temperature, and when the pressure drop is large the calculation can be made in sections.
  3. Choice of friction factor. The difference between the general equation and the Weymouth equation lies entirely in f, so before comparing the two results, look at the f of each. When reading the Moody chart or using the Jain equation, e/d should match the actual condition of the pipeline.
  4. Standard conditions. The standard flow rate in imperial equations is based on 60 °F and about 14.7 psia, while China commonly uses 20 ℃ and 101.325 kPa; the two differ by about 1.5% when converted. The reference pressure of charts and tables may also differ, such as 14.65 psia, and a correction is needed when switching between them.
  5. Elevation difference and liquid accumulation. All of the above equations assume a horizontal pipeline and single-phase gas. For pipelines with large relief, the static pressure difference of the gas column must be included; liquid accumulated in the pipe reduces the effective flow area and increases the pressure drop, which shows up as a decline in flow efficiency.
  6. Isothermal assumption. In a buried long-distance pipeline the gas temperature over the whole line is close to the ground temperature, so the isothermal assumption is generally acceptable; the gas temperature near a compressor outlet is higher than the ground temperature, and the temperature drops at a throttling point, so locally the calculation should be made in sections using the actual temperature.

References

  1. H. B. Bradley; trans. Zhang Bainian; Zhou Shixian; Luo Tifu; Yu Fuzhong et al. Petroleum Engineering Handbook (Volume 1): Production Engineering (in Chinese). Petroleum Industry Press, 1992.
  2. Li Yingchuan. Oil Production Engineering (in Chinese). Petroleum Industry Press, 2002.
  3. Horizontal Well Technology (in Chinese).