Darcy-Weisbach Simulator: Pipe Friction Loss & Moody Chart

simulator intermediate ~10 min
Loading simulation...
hf = 11.3 m — moderate head loss over 100 m

Water at 2 m/s in a 150 mm pipe with ε = 0.15 mm over 100 m produces a head loss of about 11.3 m. Reynolds number is ~300,000 (turbulent), with friction factor f ≈ 0.017.

Formula

hf = f × (L/D) × V² / (2g) (Darcy-Weisbach)
1/√f = −2 log₁₀(ε/(3.7D) + 2.51/(Re√f)) (Colebrook)
Re = ρVD/μ = VD/ν (Reynolds number)

Why Friction Matters

Every drop of water flowing through a pipe loses energy to friction against the pipe wall and internal turbulence. This energy loss — expressed as head loss in metres of fluid — determines the pressure available at the downstream end and dictates pump sizing, pipe selection, and system economics. The Darcy-Weisbach equation provides a universal framework for calculating these losses across any fluid, pipe material, and flow regime.

The Darcy-Weisbach Equation

Head loss hf = f(L/D)(V²/2g) separates the problem into geometry (L/D), kinetic energy (V²/2g), and fluid-surface interaction (friction factor f). The critical challenge is determining f, which depends on whether flow is laminar or turbulent, and on the pipe's relative roughness ε/D. For laminar flow, f = 64/Re is exact. For turbulent flow, the implicit Colebrook equation must be solved iteratively or read from the Moody chart.

The Moody Chart

Lewis Moody's 1944 chart remains one of the most-used diagrams in engineering. It plots friction factor versus Reynolds number for a family of relative roughness curves. The laminar line (f = 64/Re) occupies the left, followed by a shaded transition zone, then fully turbulent curves that flatten at high Reynolds numbers where roughness dominates. This simulation generates the Moody chart dynamically and highlights your operating point.

Practical Design

In practice, engineers select pipe diameter to keep velocity between 1-3 m/s for water systems — fast enough to prevent sedimentation, slow enough to limit friction loss and noise. The fifth-power relationship between diameter and head loss (hf ∝ 1/D⁵ at constant flow) means even small increases in pipe size dramatically reduce energy costs over the system's lifetime.

FAQ

What is the Darcy-Weisbach equation?

The Darcy-Weisbach equation calculates head loss due to friction in a pipe: hf = f × (L/D) × V²/(2g), where f is the Darcy friction factor, L is pipe length, D is diameter, V is flow velocity, and g is gravitational acceleration. It applies to all fluids and flow regimes.

How do you find the friction factor?

For laminar flow (Re < 2300), f = 64/Re. For turbulent flow, the Colebrook equation relates f to Reynolds number and relative roughness. Since it is implicit in f, iterative solution or the Moody chart is used. The Swamee-Jain explicit approximation gives f directly within 1-2% accuracy.

What is the Moody chart?

The Moody chart (or Moody diagram) plots friction factor vs Reynolds number for various relative roughness values. Published by Lewis Moody in 1944, it remains the most widely used graphical tool in pipe flow analysis. The chart shows laminar, transition, and turbulent regimes.

Why does pipe diameter matter so much?

Head loss is proportional to V²/D, and for a given flow rate Q, velocity V = 4Q/(πD²). Substituting, hf ∝ Q²/D⁵ — head loss scales with the fifth power of diameter. Doubling pipe diameter reduces friction loss by a factor of 32.

Sources

Embed

<iframe src="https://homo-deus.com/lab/hydraulics/pipe-friction/embed" width="100%" height="400" frameborder="0"></iframe>
View source on GitHub