Worked example
Example: Natural gas 8 to 6 bar(a), 2 km of DN100. The inputs, in the units selected above:
| Input | Value |
|---|---|
| Inlet pressure (absolute) | 8.0000 bar |
| Outlet pressure (absolute) | 6.0000 bar |
| Pipe length | 2,000.0 m |
| Inside diameter | 102.30 mm |
| Darcy friction factor | 0.017000 - |
| Gas temperature | 15.000 °C |
| Molar mass of the gas | 17.400 kg/kmol |
Applying the formula below gives:
| Result | Value |
|---|---|
| Mass flow | 2,312.6 kg/h |
| Flow at 0 °C and 101.325 kPa | 2,978.9 Nm³/h |
| Velocity at the inlet | 13.451 m/s |
| Velocity at the outlet | 17.935 m/s |
Open this example in the calculator and change any input.
Formula
\(p_1^2 - p_2^2 = \left(\frac{\dot m}{A}\right)^2 R T \left[f\frac{L}{d} + 2\ln\frac{p_1}{p_2}\right]\)
Variables
| Symbol | Meaning | SI unit |
|---|---|---|
| \(p_1\) | Inlet pressure (absolute) | Pa |
| \(p_2\) | Outlet pressure (absolute) | Pa |
| \(L\) | Pipe length | m |
| \(d\) | Inside diameter | m |
| \(f\) | Darcy friction factor | - |
| \(T\) | Gas temperature | K |
| \(M\) | Molar mass of the gas | kg/kmol |
| \(\dot m\) | Mass flow | kg/s |
| \(Q_N\) | Flow at 0 °C and 101.325 kPa | Nm³/s |
| \(v_1\) | Velocity at the inlet | m/s |
| \(v_2\) | Velocity at the outlet | m/s |
Method and standards
Momentum equation integrated at constant temperature.
Where it is used
- Fuel gas and compressed air mains.
- Process gas lines.
Common mistakes
- Gauge pressures in p².
- Using it near choking.
Assumptions and limits
- Isothermal, ideal gas.
- The outlet velocity must stay below the isothermal limit √(RT) (Mach 1/√γ); an outlet pressure that would exceed it is rejected.
References
- Isothermal compressible flow: p₁² − p₂² = (G² R T)[f L/d + 2 ln(p₁/p₂)] (Coulson and Richardson, Chemical Engineering vol. 1)
Questions and answers
Why p² and not p?
Gas expands as pressure falls, so velocity rises along the pipe; integrating gives the difference of squares.
What is the log term?
The kinetic energy gained by the accelerating gas; small for long lines.
Which friction factor?
From Colebrook at the pipe's Reynolds number; it changes little along the line.
Method and article reviewed by FireCAD engineering on 12 November 2026. Every result is checked against an independent calculation on each release: how we verify our calculators.