Worked example
Example: Air, M1 0.3, DN100, 20 m. The inputs, in the units selected above:
| Input | Value |
|---|---|
| Inlet Mach number (subsonic) | 0.30000 - |
| Ratio of specific heats | 1.4000 - |
| Darcy friction factor | 0.018000 - |
| Pipe inside diameter | 102.30 mm |
| Pipe length | 20.000 m |
Applying the formula below gives:
| Result | Value |
|---|---|
| Fanno parameter at the inlet | 5.2993 |
| Length to choke | 30.117 m |
| Outlet Mach number | 0.43337 |
| Static pressure ratio | 0.68569 |
| Static temperature ratio | 0.98115 |
Open this example in the calculator and change any input.
Formula
\(\frac{f_DL^*}{D} = \frac{1 - M^2}{\gamma M^2} + \frac{\gamma + 1}{2\gamma}\ln\frac{(\gamma + 1)M^2}{2 + (\gamma - 1)M^2}\)
\(\frac{p}{p^*} = \frac1M\sqrt{\frac{\gamma + 1}{2 + (\gamma - 1)M^2}}, \quad \frac{f_DL}{D} = \left.\frac{f_DL^*}{D}\right|_{M_1} - \left.\frac{f_DL^*}{D}\right|_{M_2}\)
Variables
| Symbol | Meaning | SI unit |
|---|---|---|
| \(M_1\) | Inlet Mach number (subsonic) | - |
| \(\gamma\) | Ratio of specific heats | - |
| \(f_D\) | Darcy friction factor | - |
| \(D\) | Pipe inside diameter | m |
| \(L\) | Pipe length | m |
| \(f_DL^*/D\) | Fanno parameter at the inlet | - |
| \(L^*\) | Length to choke | m |
| \(M_2\) | Outlet Mach number | - |
| \(p_2/p_1\) | Static pressure ratio | - |
| \(T_2/T_1\) | Static temperature ratio | - |
Method and standards
Fanno line, subsonic branch.
Where it is used
- Relief and vent lines.
- Compressed air and steam headers (first check).
Common mistakes
- Using the Fanning friction factor.
- Applying it to heated or cooled lines.
Assumptions and limits
- Perfect gas; constant f; adiabatic; subsonic inlet.
- When the pipe is longer than L*, the inlet Mach number falls to the value M₁′ whose choking length equals the pipe; the outlet is then sonic and the ratios are for M₁′.
References
- Fanno-line relations for adiabatic flow of a perfect gas with friction (Shapiro, The Dynamics and Thermodynamics of Compressible Fluid Flow, 1953; Perry's Chemical Engineers' Handbook, 9th ed. (McGraw-Hill, 2019), sec. 6, adiabatic compressible flow)
Questions and answers
What is choking?
With friction, subsonic gas accelerates along the pipe; it cannot pass Mach 1 at the outlet, so a long pipe limits the flow.
Fanno or isothermal?
Fanno for short, insulated lines and vents; isothermal for long uninsulated pipelines that exchange heat with the ground.
Which friction factor?
The Darcy factor from the Moody chart at the pipe's Reynolds number (four times the Fanning value).
Method and article reviewed by FireCAD engineering on 13 November 2026. Every result is checked against an independent calculation on each release: how we verify our calculators.