๐ Moody Diagram Explorer
Interactive Moody diagram. Compute Colebrook-White and Swamee-Jain friction factors, identify flow regimes, and plot custom operating points.
โก Fortran 90 Engine
Double Precision (IEEE 754)
โ ISO / ASME Validated
Fluid Mechanics
๐ Solver Telemetry
โ ACTIVE
๐๏ธ Views
255
โก Solves
201
๐พ Downloads
461
๐ฆ Fortran Code
4.5 KB
๐
Released
Jun 2026
โฑ๏ธ Latency
< 1 ms
๐ Configuration
Key Equations:
Colebrook-White: 1/โf = โ2 logโโ[ฮต/(3.7D) + 2.51/(Reโf)]
Swamee-Jain: f = 0.25/[logโโ(ฮต/(3.7D)+5.74/Reโฐยทโน)]ยฒ
Laminar: f = 64/Re
Colebrook-White: 1/โf = โ2 logโโ[ฮต/(3.7D) + 2.51/(Reโf)]
Swamee-Jain: f = 0.25/[logโโ(ฮต/(3.7D)+5.74/Reโฐยทโน)]ยฒ
Laminar: f = 64/Re
๐ Interactive Moody Diagram
๐ Calculation Methodology
Mathematical Model
The Moody diagram maps friction factor f vs Reynolds number for different relative roughness values. The implicit Colebrook-White equation is solved iteratively. The Swamee-Jain explicit equation gives a direct approximation within ยฑ1%.
Worked Example
For Re = 10โต and ฮต/D = 1.5ร10โปโด (commercial steel), the engine iterates Colebrook-White to convergence and also evaluates the Swamee-Jain formula, reporting both.
Diagram Features
- Log-log canvas with Re on x-axis and f on y-axis.
- Laminar line f = 64/Re for Re < 2300.
- Multiple roughness curves from smooth to fully rough.
- Click or hover on canvas to read interpolated f, Re, ฮต/D.
- Operating point highlighted when calculated.