๐จ Compressible Fanno Flow with Friction
Model adiabatic compressible duct flow with friction: exit Mach (M2), choking length (Lmax), static and total pressure losses, and temperature variations.
โก Fortran 90 Engine
Double Precision (IEEE 754)
โ ISO / ASME Validated
Cfd
๐ Solver Telemetry
โ ACTIVE
๐๏ธ Views
35
โก Solves
30
๐พ Downloads
323
๐ฆ Fortran Code
4.4 KB
๐
Released
Jun 2026
โฑ๏ธ Latency
< 1 ms
๐ก
Hardware & Sizing Partner: Need to size a control valve or check ASME flange bolt torque for this line?
๐จ Adiabatic Duct Flow Acceleration & Sonic Choking Limit (M = 1.0)
Real-time visual simulation of Mach evolution, wall shear friction & static pressure gradient๐ Configuration & Presets
๐จ Compressed Air (M = 0.25)
๐จ Safety Relief (M = 0.55)
โก Supersonic Tunnel (M = 2.0)
๐ฅ Gas Pipeline (50 bar)
Fanno Line Formulations:
โข Choking Parameter: (4fL*/D) = (1โMยฒ)/(ฮณMยฒ) + [(ฮณ+1)/(2ฮณ)] ln[(ฮณ+1)Mยฒ / (2 + (ฮณโ1)Mยฒ)]
โข Max Choking Length: Lmax = (4fL*/D)โ ยท D / (4f) [m]
โข Stagnation Pressure Drop: Pโโ / Pโโ = (Pโ/Pโ*)โ / (Pโ/Pโ*)โ
โข Wall Friction drives subsonic flows toward M=1 and decelerates supersonic flows.
โข Choking Parameter: (4fL*/D) = (1โMยฒ)/(ฮณMยฒ) + [(ฮณ+1)/(2ฮณ)] ln[(ฮณ+1)Mยฒ / (2 + (ฮณโ1)Mยฒ)]
โข Max Choking Length: Lmax = (4fL*/D)โ ยท D / (4f) [m]
โข Stagnation Pressure Drop: Pโโ / Pโโ = (Pโ/Pโ*)โ / (Pโ/Pโ*)โ
โข Wall Friction drives subsonic flows toward M=1 and decelerates supersonic flows.
๐ Fanno Flow Results
๐ Output Summary
Exit Mach Number (Mโ)
Mโ = 1.216
Choking Length: Lmax = 2.29 m | Duct: 2.0 m
โ
Unchoked Flow
Exit Static Pressure (Pโ)
0.99 bar
Inlet Pโ = 0.51 bar
Exit Stagnation Pressure (Pโโ)
2.45 bar
Total Loss: 38.6 %
Exit Static Temperature (Tโ)
270.1 K
-3.1 ยฐC
Sonic Choking Limit (Lmax)
2.3 m
4fL*/D = 0.305
๐ Mach Number M(x) along Duct Length (m)
๐ Pressure Profile (P & Pโ in bar) along Duct
================================================================= THERMOFLUIDCALC โ COMPRESSIBLE FANNO DUCT FLOW REPORT ================================================================= Case Title : Supersonic Wind Tunnel Duct Fanno Deceleration Duct Geometry : Diam D = 120.0 mm, Length L = 2.00 m (Friction f = 0.0040) Inlet Conditions : M1 = 2.000, P01 = 4.00 bar, T01 = 350.0 K, gamma = 1.40 ----------------------------------------------------------------- EXIT MACH NUMBER (M2) : 1.2163 Maximum Choking Length Lmax: 2.29 meters Static Pressure P1 -> P2 : 0.511 bar -> 0.991 bar (Drop = -93.8%) Total Pressure P01 -> P02 : 4.000 bar -> 2.454 bar (Loss = 38.6%) Static Temperature T1 -> T2: 194.4 K -> 270.1 K (-78.7 C -> -3.1 C) =================================================================
๐ Calculation Methodology & Fanno Flow Standards
Fanno Line Thermodynamics
Adiabatic friction in a constant-area duct drives the flow toward maximum entropy, which always occurs at the sonic state ($M=1$):
4fL*/D = (1โMยฒ)/(ฮณMยฒ) + [(ฮณ+1)/(2ฮณ)] ln[(ฮณ+1)Mยฒ / (2 + (ฮณโ1)Mยฒ)]
Sonic Choking Phenomenon
If actual duct length $L \ge L_{max}$, the flow chokes at the exit ($M_2 = 1.0$), forcing an inlet pressure buildup and mass flow rate reduction.
Key Engineering Assumptions
- 1D steady adiabatic flow of ideal gas in constant cross-section duct.
- Uniform average Fanning friction factor $f$.
- Calorically perfect gas ($\gamma = 1.40$).