Worked example
Example: 5 Mm3/day, 400 mm, 30 km. The inputs, in the units selected above:
| Input | Value |
|---|---|
| Gas flow at base conditions | 5,000,000 m³/d |
| Gas gravity (air = 1) | 0.60000 - |
| Gas specific heat | 2.2000 kJ/(kg·K) |
| Overall heat transfer coefficient to the soil | 2.0000 W/(m²·K) |
| Pipe diameter | 400.00 mm |
| Pipe length | 30.000 km |
| Inlet gas temperature | 50.000 °C |
| Soil temperature | 20.000 °C |
| Base temperature | 15.000 °C |
| Base pressure | 101.33 kPa |
Applying the formula below gives:
| Result | Value |
|---|---|
| Gas mass flow | 153,124 kg/h |
| Exponent UπDL/(ṁc_p) | 0.80575 |
| Outlet gas temperature | 33.403 °C |
| Length-average gas temperature | 40.599 °C |
| Heat lost to the soil | 1,553.1 kW |
Open this example in the calculator and change any input.
Formula
\(T_2 = T_s + (T_1 - T_s)e^{-\theta}, \quad \theta = \frac{U\pi DL}{\dot mc_p}\)
Variables
| Symbol | Meaning | SI unit |
|---|---|---|
| \(Q_b\) | Gas flow at base conditions | m³/s |
| \(G\) | Gas gravity (air = 1) | - |
| \(c_p\) | Gas specific heat | J/(kg·K) |
| \(U\) | Overall heat transfer coefficient to the soil | W/(m²·K) |
| \(D\) | Pipe diameter | m |
| \(L\) | Pipe length | m |
| \(T_1\) | Inlet gas temperature | K |
| \(T_s\) | Soil temperature | K |
| \(T_b\) | Base temperature | K |
| \(P_b\) | Base pressure | Pa |
| \(\dot m\) | Gas mass flow | kg/s |
| \(\theta\) | Exponent UπDL/(ṁc_p) | - |
| \(T_2\) | Outlet gas temperature | K |
| \(\bar T\) | Length-average gas temperature | K |
| \(H\) | Heat lost to the soil | W |
Method and standards
Steady heat balance on the gas.
Where it is used
- Compressor discharge cooling along a line.
- Choosing the temperature for the flow equations.
Common mistakes
- Ignoring Joule–Thomson cooling on long lines.
- Using U based on a different area.
Assumptions and limits
- Constant soil temperature and U.
References
- Menon
- Gas Pipeline Hydraulics (CRC Press, 2005)
- ch. 3.11
- eqs. 3.23–3.29
Questions and answers
Why does the gas cool to soil temperature?
The temperature difference decays exponentially with length; after θ ≈ 3 the gas is within 5 % of the soil temperature.
What U should I use?
About 1–3 W/(m²·K) for bare buried steel pipe in moist soil, lower in dry sand or with insulation.
What do the defaults represent?
5 million m³/day at 50 °C entering a 400 mm line, 30 km, in 20 °C soil with U = 2 W/(m²·K).
Method and article reviewed by FireCAD engineering on 17 November 2026. Every result is checked against an independent calculation on each release: how we verify our calculators.