ChemProCal
Knowledge Base + New Calculation Login Sign Up

Gas Pipeline Sizing: Friction & Compressibility

A detailed look at compressible flow equations, including Weymouth and Panhandle, for gas pipeline sizing.

Published
September 12, 2026
Reading Time
~20 Minutes
Author / Review
ChemProCal Editorial Board
📑 Table of Contents (Tap to view sections)

    In chemical processing plants, oil and gas gathering networks, natural gas transmission pipelines, and refinery gas treating units, sizing gas piping is fundamentally more complex than sizing liquid lines. While liquids maintain nearly constant density regardless of pressure drop, gases expand continuously as they traverse a conduit. A drop in pressure produces an immediate decrease in gas density ($\rho$), which forces the volumetric flow rate to expand and the linear velocity to accelerate toward the pipe exit.

    Applying standard incompressible equations (such as the standard liquid Darcy-Weisbach or Hazen-Williams formulas) to gas lines when the pressure drop exceeds 10% of inlet pressure leads to catastrophic under-sizing. At high velocities, gas lines risk acoustic-induced vibration (AIV), intense noise exceeding OSHA thresholds, localized pipe erosion per API RP 14E, and thermal expansion shockwaves. At the extreme limit, the expanding gas accelerates until it reaches the local speed of sound ($Ma = 1.0$), resulting in choked flow where downstream pressure reductions cannot increase throughput.

    This engineering reference covers the full mathematical theory of compressible gas flow in conduits: real gas equations of state ($Z$-factor), sonic velocity and Mach number criteria, the complete Isothermal Compressible Flow equation with kinetic acceleration, classical transmission formulas (Weymouth, Panhandle A & B), acoustic screening criteria ($\rho v^2$), and multi-schedule discrete optimization using the free ChemProCal Gas Line Sizer.

    1. Why Gas Piping Differs Fundamentally from Incompressible Liquids

    To understand gas line sizing, one must appreciate the coupled interaction between pressure, density, and velocity. Consider a gas flowing through a pipe of constant cross-sectional area $A$. By the continuity equation:

    $$\dot{m} = \rho_1 \cdot A \cdot v_1 = \rho_2 \cdot A \cdot v_2 = \text{constant}$$

    Because frictional shear against the pipe wall dissipates mechanical energy, the pressure must decrease along the length ($P_2 < P_1$). By the real gas equation of state:

    $$\rho = \frac{P \cdot M}{Z \cdot R \cdot T}$$

    As pressure falls, density $\rho$ must decrease proportionally. For mass flow to remain constant across a uniform cross-section, the linear velocity must increase:

    $$v_2 = v_1 \cdot \left(\frac{\rho_1}{\rho_2}\right) = v_1 \cdot \left(\frac{P_1}{P_2}\right) \cdot \left(\frac{Z_2 T_2}{Z_1 T_1}\right)$$

    This acceleration creates an additional pressure drop over and above pure wall friction: part of the pressure gradient must physically accelerate the expanding fluid mass.

    📈

    Density Expansion

    Gas density drops along the line. If pressure drops by 50%, the gas specific volume doubles, forcing velocity to double at the outlet.

    ⚡

    Sonic Choking ($Ma = 1.0$)

    Gas cannot accelerate beyond sonic velocity in a constant-diameter pipe without shockwaves. Choking sets an absolute thermodynamic ceiling on flow.

    🔊

    Acoustic Energy & AIV

    High kinetic energy flux ($\rho v^2$) excites high-frequency acoustic modes in pipe walls, leading to fatigue cracking at branches and thermowells.

    🌪️

    API 14E Erosional Wear

    High velocities strip the protective iron carbonate or sulfide passivation film off carbon steel walls, causing rapid erosion-corrosion failure.

    2. Thermodynamics of Compressible Flow: Speed of Sound & Mach Number

    The acoustic behavior of a gas establishes the upper physical speed limit for any piping system.

    Speed of Sound in Real Gases ($c$)

    The speed of sound ($c$) is the velocity at which infinitesimal pressure disturbances propagate through a compressible medium. For an ideal or real gas undergoing isentropic acoustic compression:

    $$c = \sqrt{\gamma \cdot \left(\frac{\partial P}{\partial \rho}\right)_s} = \sqrt{\gamma \cdot \frac{P}{\rho}} = \sqrt{\frac{\gamma \cdot Z \cdot R_{univ} \cdot T}{M}}$$

    Where:

    • $\gamma = c_p / c_v$ = Ratio of specific heats (isentropic expansion coefficient, typically $1.30 - 1.40$ for diatomic gases and dry natural gas, $1.15 - 1.25$ for heavy hydrocarbons)
    • $P$ = Absolute static pressure ($\text{Pa}$)
    • $\rho$ = Gas density ($\text{kg/m}^3$)
    • $Z$ = Gas compressibility factor (dimensionless)
    • $R_{univ}$ = Universal gas constant ($8,314.46\text{ J/(kmol}\cdot\text{K)}$)
    • $M$ = Molecular weight ($\text{kg/kmol}$, e.g., $16.04\text{ kg/kmol}$ for methane, $28.96\text{ kg/kmol}$ for air)
    • $T$ = Absolute temperature ($\text{K} = ^\circ\text{C} + 273.15$)

    The Mach Number ($Ma$) and Flow Regimes

    The Mach number ($Ma$) is the ratio of local fluid velocity to the local speed of sound:

    $$Ma = \frac{v}{c} = \frac{v}{\sqrt{\gamma \cdot P / \rho}}$$

    Compressible pipe flow is classified into four distinct operational regimes:

    Mach Number Range Hydraulic Classification Compressibility Effect on Pressure Drop Applicable Design Standard
    $Ma < 0.10$ Incompressible Regime Density change is $< 1\%$. Incompressible liquid Darcy-Weisbach formulas are fully valid. General Plant Utility Piping
    $0.10 \le Ma < 0.30$ Subsonic Low-Compressibility Density variations become noticeable ($1\% - 5\%$). Average density Darcy-Weisbach gives good accuracy. Standard Process Gas Headers (NORSOK P-002)
    $0.30 \le Ma < 1.0$ Subsonic High-Compressibility Density variations dominate. Acceleration term $2 \ln(P_1/P_2)$ contributes significantly to $\Delta P$. Acoustic noise surges. Compressor Discharge, Relief Valve Inlets
    $Ma = 1.0$ Sonic Choked Flow Maximum physical flow throughput reached at pipe exit. Downstream pressure cannot affect upstream hydraulics. Flare Tips, Safety Relief Valve Tails, Blowdown Lines

    3. The Isothermal Compressible Flow Equation

    In process piping and long transmission lines, gas flowing through an uninsulated or underground pipe rapidly exchanges heat with the pipe wall and surroundings. For lines longer than roughly 50 to 100 meters, Isothermal Flow ($T \approx \text{constant}$) is the universally accepted standard model (as formalized in Crane Technical Paper 410, Section 1-8).

    Derivation from Momentum and Energy Balances

    Beginning with the differential one-dimensional momentum balance for compressible flow with wall friction in a conduit of constant cross-sectional area:

    $$-A \cdot dP - \tau_w (\pi D) dx = \dot{m} \cdot dv$$

    Expressing wall shear stress via the Darcy friction factor $\tau_w = \frac{f_D \rho v^2}{8}$, defining the mass flux $G = \frac{\dot{m}}{A} = \rho v$, and integrating between inlet ($P_1$) and outlet ($P_2$) at constant temperature $T$ yields the complete Fundamental Isothermal Flow Equation:

    $$P_1^2 - P_2^2 = \left(\frac{G^2 \cdot P_1}{\rho_1}\right) \cdot \left[ f_D \cdot \left(\frac{L}{D}\right) + \sum K + 2 \ln\left(\frac{P_1}{P_2}\right) \right]$$

    Where:

    • $P_1, P_2$ = Absolute inlet and outlet pressures ($\text{Pa}$)
    • $G = \frac{\dot{m}}{\pi D^2 / 4}$ = Mass flux or mass velocity ($\text{kg/(s}\cdot\text{m}^2\text{)}$)
    • $\rho_1 = \frac{P_1 M}{Z R T}$ = Gas density evaluated at inlet conditions ($\text{kg/m}^3$)
    • $f_D$ = Darcy friction factor evaluated via Colebrook-White or Swamee-Jain at the average Reynolds number
    • $L / D$ = Pipe length to internal diameter ratio
    • $\sum K$ = Total minor loss resistance coefficient for fittings and valves
    • $2 \ln(P_1 / P_2)$ = Dimensionless kinetic energy acceleration term

    💡 Physical Meaning of the Acceleration Term: $2 \ln(P_1 / P_2)$

    In liquid piping, $2 \ln(P_1/P_2) = 0$ because density does not change. In gas piping, as pressure drops from $P_1$ to $P_2$, the fluid expands and accelerates. The term $2 \ln(P_1 / P_2)$ represents the net pressure differential consumed strictly to increase the kinetic energy of the gas mass. In long pipelines with low $\Delta P$, this term is negligible ($< 1\%$). But in high-velocity relief headers or short pipes with large pressure drops, the acceleration term can account for 20% to 40% of the total pressure drop!

    Numerical Solution for Downstream Pressure ($P_2$)

    Because $P_2$ appears both algebraically on the left side ($P_2^2$) and inside the natural logarithm on the right side ($\ln(P_1/P_2)$), this equation is nonlinear and implicit. ChemProCal’s engine defines the objective residual function:

    $$\mathcal{R}(P_2) = (P_1^2 - P_2^2) - \left(\frac{G^2 P_1}{\rho_1}\right) \left[ f_D \left(\frac{L}{D}\right) + \sum K + 2 \ln\left(\frac{P_1}{P_2}\right) \right] = 0$$

    The engine solves this root-finding problem using `scipy.optimize.fsolve`. If no physical solution exists where $P_2 > 0$ and $Ma_{exit} \le 1.0$, the engine immediately detects that the pipe is acoustically choked.

    4. Fanno Flow & Sonic Choking Mechanics

    To understand the physical limits of gas throughput, consider Fanno Flow: adiabatic flow with friction in a constant-area duct. As friction dissipates energy along the duct, the thermodynamic state of the gas moves along the Fanno line toward the point of maximum entropy—which corresponds precisely to Mach 1.0 (Sonic Velocity).

    Inlet: P₁, ρ₁, v₁ Ma₁ < 0.2 (Subsonic) ACCELERATION Exit: P* Ma = 1.0 (CHOKED) Pressure Profile P(x) drops exponentially toward exit
    Figure 2: Compressible Fanno Flow Mechanics — Continuous Density Reduction Induces Acceleration to Mach 1.0 at the Pipe Exit.

    Critical Pressure Ratio ($P^* / P_0$)

    When a gas accelerates to Mach 1.0 at an orifice or nozzle throat, the critical pressure ratio ($P^* / P_0$) is governed by the isentropic relationship:

    $$\left(\frac{P^*}{P_0}\right)_{critical} = \left(\frac{2}{\gamma + 1}\right)^{\frac{\gamma}{\gamma - 1}}$$

    For air and diatomic gases ($\gamma = 1.40$), $\frac{P^*}{P_0} = 0.528$. For natural gas ($\gamma \approx 1.30$), $\frac{P^*}{P_0} = 0.546$. If the receiver pressure downstream drops below this critical threshold, flow cannot accelerate any further inside the pipe. Instead, the remaining pressure difference expands through an under-expanded supersonic jet shock cell outside the pipe discharge nozzle.

    5. Long-Distance Pipeline Equations (Weymouth, Panhandle A & B)

    In cross-country gas transmission and field gathering networks spanning miles rather than meters, industry standards rely on specialized empirical integrations of the compressible flow equation. These formulations eliminate the need to solve friction factors iteratively by directly embedding empirical Reynolds-roughness relationships.

    The General Flow Equation

    All pipeline transmission equations derive from the steady-state isothermal integral:

    $$Q_b = C \cdot \left(\frac{T_b}{P_b}\right) \cdot \left[ \frac{P_1^2 - P_2^2 - \frac{0.0375 G_g \Delta Z P_{avg}^2}{Z_{avg} T_{avg}}}{G_g \cdot T_{avg} \cdot L \cdot Z_{avg} \cdot f} \right]^{0.5} \cdot D^{2.5}$$

    Where $Q_b$ is flow rate at base conditions ($P_b, T_b$), $G_g$ is gas specific gravity ($M_{gas} / 28.96$), and $\Delta Z$ is elevation change.

    Equation Formulation Empirical Friction Model Recommended Application Domain
    Weymouth Equation $$f = \frac{0.008}{\sqrt[3]{D_{inches}}}$$ Short, High-Pressure Gathering Lines: Diameters under 15 inches ($380\text{ mm}$), high pressure drop ratios. Overestimates pressure drop in large, smooth pipes.
    Panhandle A Equation $$f \propto Re^{-0.1461}$$ Medium Transmission Lines: Moderate Reynolds numbers ($Re = 5 \times 10^6\text{ to }1.4 \times 10^7$). Developed for smooth looped pipelines. Includes pipeline efficiency factor ($E \approx 0.90 - 0.95$).
    Panhandle B Equation $$f \propto Re^{-0.0392}$$ Large-Diameter Modern Transmission Pipelines: Fully turbulent high-flow trunklines (diameters $> 16\text{ to }48\text{ inches}$, $Re > 1.5 \times 10^7$). Widely used for interstate natural gas grids.

    6. Industry Design Criteria & Velocity Envelopes (API 14E & NORSOK P-002)

    Sizing gas lines is a balance between keeping lines small enough to minimize steel tonnage and large enough to respect three operational boundaries: Erosional Velocity, Acoustic Vibration, and Permissible Pressure Drop.

    1. API Recommended Practice 14E Erosional Velocity Ceiling

    The American Petroleum Institute standard API RP 14E provides the universal criterion used worldwide in offshore and production piping:

    $$v_e = \frac{C}{\sqrt{\rho}}$$

    Where $\rho$ is the gas density in $\text{kg/m}^3$ at operating conditions. In metric units, the constant is:

    • Continuous Service (Solids-Free Gas): $C = 122$ ($100\text{ in US customary}$) $\implies v_e = \frac{122}{\sqrt{\rho}}$
    • Intermittent Service (Relief / Flare / Blowdown): $C = 149$ ($122\text{ in US customary}$) $\implies v_e = \frac{149}{\sqrt{\rho}}$
    • Corrosion-Resistant Alloys (Duplex / Super Duplex / 316L SS): $C = 183 - 244$ ($150 - 200\text{ in US customary}$) where sand is monitored.

    💡 Why Erosional Velocity Decreases at Higher Pressures

    Notice that because density $\rho$ increases linearly with pressure, the allowable velocity $v_e$ decreases at higher pressures!

    • At $P = 2\text{ bar-a}$ ($\rho \approx 1.5\text{ kg/m}^3$): $v_e = \frac{122}{\sqrt{1.5}} = \mathbf{99.6\text{ m/s}}$
    • At $P = 70\text{ bar-a}$ ($\rho \approx 55\text{ kg/m}^3$): $v_e = \frac{122}{\sqrt{55}} = \mathbf{16.4\text{ m/s}}$

    At high operating pressures, gas possesses immense kinetic momentum ($\frac{1}{2}\rho v^2$). High-pressure lines must be designed with substantially lower linear velocities to prevent mechanical erosion.

    2. NORSOK Standard P-002 Velocity & Pressure Drop Envelopes

    NORSOK P-002 provides prescriptive sizing rules for process gas lines:

    Gas Service Type Piping Metallurgy Maximum Velocity ($v_{max}$) Design Pressure Drop Limit ($\Delta P / L$)
    Continuous Process Gas Carbon Steel $v \le \min(20\text{ m/s}, 0.3 \cdot c)$ $0.10 - 0.30\text{ bar per }100\text{ m}$
    Continuous Process Gas Stainless / Duplex $v \le \min(25\text{ m/s}, 0.3 \cdot c)$ $0.20 - 0.50\text{ bar per }100\text{ m}$
    Compressor Suction Lines All Alloys $v \le 12 - 15\text{ m/s}$ $\le 0.05 - 0.10\text{ bar total}$ to protect stage efficiency
    Flare & Vent Headers Carbon / Low-Temp Steel $Ma \le 0.50$ (Continuous)
    $Ma \le 0.70$ (Peak Relief)
    Governed by backpressure limits on upstream relief valves
    Wet Gas Gathering (Untreated) Carbon Steel (Inhibited) $v \ge 3 - 5\text{ m/s}$ (Min) to sweep liquids;
    $v \le 15\text{ m/s}$ (Max)
    Must prevent liquid pooling and slugging in line sags

    3. Kinetic Energy Flux ($\rho v^2$) & Acoustic Induced Vibration (AIV)

    To prevent severe aerodynamic noise and fatigue failure of small-bore piping connections (thermowells, sample points, drain branches), industry standards (including Energy Institute guidelines and ISO 15649) screen the dynamic kinetic energy density ($\rho v^2$ in $\text{Pa}$):

    Dynamic Kinetic Energy ($\rho v^2$) Acoustic & Vibration Hazard Level Engineering Recommendation
    $\rho v^2 < 5,000\text{ Pa}$ 🟢 Very Low Risk Standard pipe wall thickness; no special acoustic bracing required.
    $5,000 \le \rho v^2 \le 10,000\text{ Pa}$ 🟡 Moderate Risk Acceptable for continuous process headers. Ensure branches have gussets.
    $10,000 < \rho v^2 \le 20,000\text{ Pa}$ 🟠 High Risk Noise will exceed 85 dBA. Acoustic insulation and heavy-wall fittings recommended.
    $\rho v^2 > 20,000\text{ Pa}$ 🔴 Critical AIV Hazard Severe high-frequency acoustic fatigue. Upsize line diameter immediately.

    7. The ChemProCal Smart Pipe Gas Optimization Algorithm

    Manual calculation of compressible gas hydraulics requires guessing an exit pressure, computing the average density, looking up pipe schedules, solving the friction factor, evaluating the log term, and re-iterating until convergence.

    The ChemProCal Gas Line Sizer automates this workflow:

    1. Flexible Input Flow Modes: Accepts process throughput specified as Mass Flow ($\text{kg/h}$ or $\text{lb/h}$), Actual Volumetric Flow ($\text{m}^3\text{/h}$ or $\text{ACFM}$), or Standard Volumetric Flow ($\text{Nm}^3\text{/h}$ or $\text{MMSCFD}$).
    2. ASME B36.10M / B36.19M Geometry Integration: Queries the `fluids` engineering core to retrieve exact internal diameters and thicknesses across all schedules (5 to XXS).
    3. Nonlinear Numerical Solver (`fsolve`): Solves the full Isothermal Flow Equation with the $2 \ln(P_1/P_2)$ acceleration term for downstream pressure $P_2$ and exit velocity $v_{exit}$.
    4. Acoustic & Choking Evaluation: Evaluates local speed of sound ($c = \sqrt{\gamma P_1 / \rho_1}$), computes inlet Mach ($Ma_{in}$) and exit Mach ($Ma_{exit}$), and flags choked lines where $Ma_{exit} \ge 1.0$.
    5. Automated Optimizer Grid: Ranks standard nominal pipe sizes from NPS 1/2" to 24", testing each against:
      • $v \le v_{max}$ (Velocity constraint)
      • $v \le v_e = 122 / \sqrt{\rho}$ (API 14E erosional ceiling)
      • $\Delta P \le \Delta P_{max}$ (Pressure drop constraint)
      • $Ma_{exit} < 1.0$ (Non-choked flow)
    6. Preferred Size Tagging: Highlights the most economical standard NPS pipe that satisfies all constraints without over-sizing.

    8. Comprehensive Worked Engineering Example (Hand Calculation vs ChemProCal)

    Let us solve a practical offshore natural gas export line design problem to demonstrate the calculation procedure.

    Problem Statement: Natural Gas Gathering Header

    An offshore production separator discharges dry natural gas into a gathering pipeline leading to a compression platform:

    • Mass Flow Rate ($\dot{m}$): $25,000\text{ kg/h}$ ($6.944\text{ kg/s}$)
    • Gas Properties: Molecular weight $M = 18.2\text{ kg/kmol}$ ($SG = 0.628$), ratio of specific heats $\gamma = 1.30$, dynamic viscosity $\mu = 0.012\text{ cP} = 1.2 \times 10^{-5}\text{ Pa}\cdot\text{s}$
    • Operating Temperature ($T$): $35.0^\circ\text{C} = 308.15\text{ K}$
    • Inlet Pressure ($P_1$): $35.0\text{ bar-a} = 3,500,000\text{ Pa}$
    • Compressibility Factor ($Z$): $0.90$ at operating $P$ and $T$
    • Pipeline Length ($L$): $250.0\text{ meters}$
    • Pipe Material: Carbon steel, Schedule 40 ($\epsilon = 0.0457\text{ mm}$)
    • Total Minor Loss Coefficient ($\sum K$): $2.50$ (elbows and isolation valves)
    • Design Criteria: $v_{max} = 18.0\text{ m/s}$, $\Delta P_{max} = 1.50\text{ bar}$

    Step 1: Baseline Thermodynamic Properties

    Inlet gas density:

    $$\rho_1 = \frac{P_1 \cdot M}{Z \cdot R_{univ} \cdot T} = \frac{3,500,000 \times 18.2}{0.90 \times 8314.5 \times 308.15} = \frac{63,700,000}{2,305,900} = \mathbf{27.62\text{ kg/m}^3}$$

    Local speed of sound at inlet:

    $$c_1 = \sqrt{\gamma \cdot \frac{P_1}{\rho_1}} = \sqrt{1.30 \times \frac{3,500,000}{27.62}} = \sqrt{164,735} = \mathbf{405.9\text{ m/s}}$$

    API 14E erosional velocity limit:

    $$v_e = \frac{122}{\sqrt{\rho_1}} = \frac{122}{\sqrt{27.62}} = \frac{122}{5.255} = \mathbf{23.21\text{ m/s}}$$

    Step 2: Evaluating Candidate Pipe Sizes

    Option A: NPS 3" Schedule 40 ($D = 0.0779\text{ m}$)

    Area: $A = \frac{\pi (0.0779)^2}{4} = 0.004766\text{ m}^2$

    Inlet velocity: $v_1 = \frac{\dot{m}}{\rho_1 A} = \frac{6.944}{27.62 \times 0.004766} = \mathbf{52.75\text{ m/s}}$

    Inlet Mach: $Ma_1 = \frac{52.75}{405.9} = 0.130$.

    Evaluation: $v_1 = 52.75\text{ m/s}$ vastly exceeds $v_{max} = 18\text{ m/s}$ and exceeds the erosional ceiling ($23.21\text{ m/s}$). At this massive mass flux ($G = 1,457\text{ kg/m}^2\text{s}$), solving the isothermal equation reveals that the required pressure drop exceeds inlet pressure—the 3" pipe is heavily choked!

    Option B: NPS 4" Schedule 40 ($D = 0.1023\text{ m}$)

    Area: $A = \frac{\pi (0.1023)^2}{4} = 0.008219\text{ m}^2$

    Mass flux: $G = \frac{6.944}{0.008219} = 844.9\text{ kg/(s}\cdot\text{m}^2\text{)}$

    Inlet velocity: $v_1 = \frac{844.9}{27.62} = \mathbf{30.59\text{ m/s}}$ ($> 18.0\text{ m/s}$, exceeds allowable criteria and exceeds $v_e = 23.21\text{ m/s}$).

    Reynolds number: $Re = \frac{27.62 \times 30.59 \times 0.1023}{1.2 \times 10^{-5}} = 7,205,000$. Friction factor $f_D = 0.0168$.
    Solving the isothermal equation yields: $P_2 = 25.8\text{ bar-a} \implies \Delta P = 9.2\text{ bar} \gg 1.50\text{ bar}$ allowable limit.

    Option C: NPS 6" Schedule 40 ($D = 0.1541\text{ m}$)

    Area: $A = \frac{\pi (0.1541)^2}{4} = 0.01865\text{ m}^2$

    Mass flux: $G = \frac{6.944}{0.01865} = 372.3\text{ kg/(s}\cdot\text{m}^2\text{)}$

    Inlet velocity: $v_1 = \frac{372.3}{27.62} = \mathbf{13.48\text{ m/s}}$

    Inlet Mach number: $Ma_1 = \frac{13.48}{405.9} = \mathbf{0.0332}$ (Well within subsonic regime!).

    Velocity evaluation: $13.48\text{ m/s} \le 18.0\text{ m/s}$ (Pass!) and $13.48\text{ m/s} < 23.21\text{ m/s}$ (Erosional check pass!).

    Reynolds number:

    $$Re = \frac{27.62 \times 13.48 \times 0.1541}{1.2 \times 10^{-5}} = 4,778,000 \quad (\text{Fully Turbulent})$$

    Relative roughness: $\frac{\epsilon}{D} = \frac{0.0000457}{0.1541} = 0.000297$. Friction factor from Swamee-Jain: $f_D = 0.0154$.

    Equivalent friction factor terms:

    $$f_D \cdot \left(\frac{L}{D}\right) + \sum K = 0.0154 \cdot \left(\frac{250}{0.1541}\right) + 2.50 = 24.98 + 2.50 = 27.48$$

    Substitute into the Isothermal Equation:

    $$P_1^2 - P_2^2 = \left(\frac{G^2 P_1}{\rho_1}\right) \cdot \left[ 27.48 + 2 \ln\left(\frac{P_1}{P_2}\right) \right]$$ $$\frac{G^2 P_1}{\rho_1} = \frac{(372.3)^2 \times 3,500,000}{27.62} = \frac{138,607 \times 3,500,000}{27.62} = 1.756 \times 10^{10}\text{ Pa}^2$$

    Solving iteratively for $P_2$:

    $$P_1^2 = (3.50 \times 10^6)^2 = 1.225 \times 10^{13}\text{ Pa}^2$$ $$P_1^2 - P_2^2 \approx 1.756 \times 10^{10} \times [27.48 + 0.08] \approx 4.84 \times 10^{11}\text{ Pa}^2$$ $$P_2^2 = 1.225 \times 10^{13} - 4.84 \times 10^{11} = 1.1766 \times 10^{13}\text{ Pa}^2$$ $$P_2 = \sqrt{1.1766 \times 10^{13}} = 3,430,000\text{ Pa} = \mathbf{34.30\text{ bar-a}}$$ $$\Delta P = P_1 - P_2 = 35.00 - 34.30 = \mathbf{0.70\text{ bar}} \quad (\le 1.50\text{ bar allowable!})$$

    Exit velocity: $v_{exit} = 13.48 \times \left(\frac{35.00}{34.30}\right) = \mathbf{13.75\text{ m/s}}$. Exit Mach: $Ma_{exit} = 0.034$.

    Verdict on NPS 6": 🟢 PREFERRED SIZE — Velocity ($13.48\text{ m/s}$) and pressure drop ($0.70\text{ bar}$) both satisfy criteria with an economical carbon steel specification.

    Optimizer Comparison Grid from ChemProCal Gas Sizer

    Nominal Pipe Size (NPS) Internal ID (mm) Inlet Velocity (m/s) Exit Mach ($Ma$) Pressure Drop ($\Delta P$ bar) Hydraulic Status Optimizer Recommendation
    NPS 3" Sch 40 $77.9\text{ mm}$ $52.75$ $1.00$ $35.00$ 🔴 Choked Flow Limit Exceeded (Sonic Choke)
    NPS 4" Sch 40 $102.3\text{ mm}$ $30.59$ $0.12$ $9.21$ 🔴 Velocity & $\Delta P$ Exceeded Erosional Limit Exceeded
    NPS 6" Sch 40 $154.1\text{ mm}$ $13.48$ $0.03$ $0.70$ 🟢 Pass All Checks 🟢 Preferred Size
    NPS 8" Sch 40 $202.7\text{ mm}$ $7.80$ $0.02$ $0.17$ 🟢 Pass Meets Hydraulic Criteria
    NPS 10" Sch 40 $254.5\text{ mm}$ $4.95$ $0.01$ $0.05$ 🟢 Pass Meets Hydraulic Criteria
    NPS 12" Sch 40 $304.8\text{ mm}$ $3.45$ $<0.01$ $0.02$ 🟢 Pass Meets Hydraulic Criteria

    9. Flow-Induced Vibration (FIV) & Acoustic Fatigue (AIV)

    In high-velocity gas lines and downstream of pressure let-down valves (such as Joule-Thomson refrigeration valves or turbine bypasses), acoustic vibrations can generate severe pipe failure within hours if not screened early.

    Carucci-Mueller Acoustic Screening

    The Carucci-Mueller methodology calculates the total Sound Power Level ($PWL$) generated inside the fluid stream:

    $$PWL = 10 \log_{10} \left[ \left(\frac{\Delta P}{P_1}\right)^{3.6} \cdot W^{1.2} \cdot \left(\frac{T}{M}\right)^{0.5} \right] + 126.5\text{ dB}$$

    Where $W$ is mass flow rate ($\text{lb/hr}$ or $\text{kg/s}$) and $\Delta P$ is pressure drop across the restriction.

    🚨 Danger Threshold: $PWL > 155\text{ to }160\text{ dB}$

    When internal acoustic power exceeds 155 dB, high-frequency acoustic waves (500 to 2,000 Hz) couple with the circumferential flexural vibration modes of the pipe shell. This causes high-cycle fatigue cracking at asymmetric discontinuities such as welded branch outlets, thermowell weldolets, and support trunnions.

    Design Remedy: Upsize the downstream pipe header to lower linear velocity, increase pipe schedule thickness (e.g., upgrade from Sch 40 to Sch 80), and install full-wrap reinforcing pads or forged tees at all branch connections.

    10. Software Comparison: ChemProCal Gas Sizer vs. Generic Tools

    Capability / Metric Standard Excel Nomographs Generic Online Calculators ChemProCal Gas Line Sizer
    Flow Physics Model Incompressible Darcy (wrong for gas) Simplified isothermal without acceleration Exact Isothermal with $2\ln(P_1/P_2)$ Acceleration
    Sonic Choking Detection None None (predicts negative $P_2$) Automated Mach 1.0 Choked Screening
    Compressibility ($Z$) Factor Fixed at $1.0$ (Ideal gas only) Ignored Full Real Gas Compressibility Integration
    Standard Schedule DB Manual table lookup Nominal diameter guessed ASME B36.10M / B36.19M Schedules 5 to XXS
    API 14E Erosional Check Manual formula None Built-in with Configurable $C$-factor
    Multi-Schedule Grid Manual copy-paste Single calculation only Instant Automated NPS Comparison Matrix
    Cost & Access Proprietary corporate spreadsheets Ad-cluttered websites 100% Free Online Professional Tool

    11. Frequently Asked Questions (FAQ)

    Why does gas velocity increase toward the outlet of a pipe?

    As a gas flows through a pipe, friction dissipates mechanical energy, causing pressure to drop ($P_2 < P_1$). Because gases are compressible, a lower pressure means the molecules spread farther apart, reducing gas density ($\rho = PM/ZRT$). Since the total mass flow rate ($\dot{m} = \rho A v$) must remain constant by the law of conservation of mass, the gas must accelerate to higher velocities toward the outlet.

    What happens if a gas line is undersized?

    An undersized gas line causes excessive pressure drop that starves downstream equipment, creates extreme erosive shear on pipe walls per API 14E, generates deafening aerodynamic noise, induces acoustic fatigue on pipe branches, and can trigger sonic choking ($Ma = 1.0$) where throughput is capped regardless of how low downstream pressure falls.

    How does temperature affect gas pressure drop compared to liquids?

    In liquids, higher temperature decreases viscosity and reduces pressure drop. In gases, higher temperature has the opposite effect:

    1. Gas dynamic viscosity ($\mu$) increases with temperature because molecular thermal agitation increases momentum exchange.
    2. Gas density ($\rho$) decreases with temperature at constant pressure, increasing volumetric flow rate and velocity ($v = \dot{m} / \rho A$).

    Therefore, heating a gas increases frictional pressure drop, whereas heating a liquid decreases pressure drop.

     

    Can the Mach number exceed 1.0 inside a straight pipe?

    No. In a constant-cross-section pipe with friction (Fanno flow), subsonic flow can only accelerate up to a maximum of Mach 1.0 at the exit plane. Supersonic flow ($Ma > 1.0$) inside a conduit can only be achieved by accelerating gas through a converging-diverging (de Laval) nozzle. If you attempt to push more mass through a choked pipe, the upstream pressure simply builds up until the inlet density increases to accommodate the flow.

    What is the difference between Actual Flow and Standard Flow?

    Actual Flow Rate (ACFM or $\text{m}^3\text{/h}$) is the physical volume occupied by the gas at its exact operating pressure and temperature inside the pipe. Standard Flow Rate (SCFM, MMSCFD, or $\text{Nm}^3\text{/h}$) is a mass-equivalent volumetric flow referenced to standardized base conditions (typically $1.01325\text{ bar-a}$ and $15^\circ\text{C}$ or $60^\circ\text{F}$). Standard flow remains constant throughout a process regardless of pressure, whereas actual flow changes at every point along the pipeline.

    
    Apply This Fundamental

    Gas Line Sizing

    Apply this methodology directly in the ChemProCal calculator.

    Open Calculator →
    ⚡ Interactive Estimator

    Live Weymouth & Panhandle Gas Pipeline Hydraulics Estimator

    Adjust parameters below to test the methodology equations in real time before running full simulations:

    Standard Flow Capacity ($Q_{std}$) 7,240,000 Sm³/day
    Capacity in Imperial (MMSCFD) 255.7 MMSCFD
    Average Gas Pressure ($P_{avg}$) 58.6 bar a
    Mean Compressibility Factor ($Z_{avg}$) 0.864 (CNGA / Standing)
    Outlet Actual Gas Velocity ($v_{out}$) 12.8 m/s
    Line Pack Stored Inventory ($V_{pack}$) 425,000 Sm³
    ✓ Transmission velocity is optimal (8 - 15 m/s) with safe compressor discharge margin.