Fluid Mechanics and Pipe Flow

Pressure, flow, friction, fittings, pumps and meters: the equations of moving fluids, and how to design, size and troubleshoot a piping system, with worked numbers.

Fluid mechanics is the science of liquids and gases at rest and in motion, and pipe flow is its most useful corner: moving water, oil, air and process fluids through pipes, valves and pumps without wasting energy, damaging equipment or starving the user at the end of the line. This guide takes you from the basics (pressure, density, viscosity) through the equations of flow (continuity, Bernoulli, friction, minor losses) to the design of complete systems: pipe sizing, pumps and their curves, flow meters, compressed-air lines and surge. Every worked number is computed, and the same example (water in a DN80 steel line) runs through the pages so the numbers agree. Heat transfer, thermodynamics and HVAC are the other guides in this section; hydraulic and pneumatic actuators are in Motion Control.

Start here: what do you need?

I need to…Go to
convert a pressure to head, find the force on a wall, or understand viscosityFluid Properties and Fluid Statics
find a velocity, or understand Bernoulli and the energy equationContinuity, Bernoulli and the Energy Equation
calculate the pressure drop in a pipePipe Friction and the Moody Diagram
add up the losses of bends, tees and valves, or size a control valveFittings, Valves and Minor Losses
choose a pipe size, or work out flow in parallel pipes and loopsPipe Systems: Series, Parallel and Networks
select a pump, read its curve, or stop cavitationPumps, Pump Curves and NPSH
measure a flow with an orifice, a magnetic meter or a pitotFlow Measurement
size compressed-air pipework or find the cost of a leakCompressed Air and Gas Flow
stop a pipe banging, or diagnose a piping problemWater Hammer, Cavitation and Troubleshooting

A suggested order

Read Fluid Properties and Fluid Statics, Continuity, Bernoulli and the Energy Equation and Pipe Friction and the Moody Diagram in order: they carry the ideas that everything else uses. Then Fittings, Valves and Minor Losses and Pipe Systems: Series, Parallel and Networks put a whole system together, Pumps, Pump Curves and NPSH closes the loop with the machine that drives it, and Flow Measurement, Compressed Air and Gas Flow and Water Hammer, Cavitation and Troubleshooting cover measuring, gases and what goes wrong.

  1. Fluid Properties and Fluid Statics: Density, viscosity and vapor pressure, absolute and gauge pressure, pressure with depth, manometers, forces on walls and buoyancy.
  2. Continuity, Bernoulli and the Energy Equation: Flow rate and velocity, Reynolds number, laminar and turbulent flow, the Bernoulli equation, the energy equation with a pump and losses.
  3. Pipe Friction and the Moody Diagram: Darcy–Weisbach, the friction factor, roughness, the Colebrook and Swamee–Jain equations, Hazen–Williams and a fully worked pressure drop.
  4. Fittings, Valves and Minor Losses: Loss coefficients for bends, tees, entrances and valves, equivalent length, Cv and Kv, and control-valve sizing.
  5. Pipe Systems: Series, Parallel and Networks: The system curve, pipes in series and parallel, branching networks, Hardy Cross, and choosing a pipe size and velocity.
  6. Pumps, Pump Curves and NPSH: Pump types, head and efficiency curves, the operating point, affinity laws, cavitation and net positive suction head.
  7. Flow Measurement: Orifice plates, Venturis, pitot tubes, rotameters, vortex, magnetic, ultrasonic and Coriolis meters, and how to choose.
  8. Compressed Air and Gas Flow: Compressibility, speed of sound and choked flow, pressure drop in air lines, sizing compressed-air pipework and leaks.
  9. Water Hammer, Cavitation and Troubleshooting: Pressure surges, how to limit them, cavitation, air in lines, noise and vibration, and a table of common piping problems.

One example, start to finish

Moody diagram (friction factor from the Colebrook equation)1e31e41e51e61e71e8Reynolds number0.010.020.040.060.1friction factor fcriticalε/D 0.05ε/D 0.02ε/D 0.01ε/D 0.004ε/D 0.001ε/D 0.0002ε/D 0.00005smoothworked example: Re = 162 784, f = 0.0196Laminar: f = 64 ÷ Re. Turbulent: the Colebrook equation. At high Re the curves level off: friction depends only onroughness (fully rough flow).
The Moody diagram, with the worked example marked. The guide shows where every number in this picture comes from.

Worked example: moving water through a DN80 line

Quick reference: the equations

What you needEquation
Pressure with depthp = ρ g h
ContinuityQ = A v    A₁ v₁ = A₂ v₂
Reynolds numberRe = ρ v D ÷ μ
Bernoullip + ½ ρ v² + ρ g z = constant
Pipe frictionΔP = f (L ÷ D) ρ v² ÷ 2    laminar f = 64 ÷ Re
FittingsΔP = K ρ v² ÷ 2
Pump powerP = ρ g Q H ÷ η
Affinity lawsQ ∝ N, H ∝ N², P ∝ N³
NPSH available(ps − pv) ÷ ρg + zs − hL
Orifice meterQ = Cd A √(2 ΔP ÷ ρ) ÷ √(1 − β⁴)
Water hammerΔp = ρ a Δv

Related guides and tools

Safety first

  • Pressurized pipes and vessels store energy. Depressurize and drain before opening a line, and never go above the rated pressure of the weakest part.
  • Water hammer and compressed-air failures are violent. A burst plastic air pipe or a blown hose throws fragments; use only pipe and fittings rated for compressed air, and fit pressure relief where the source can exceed the rating.
  • Hot liquids and steam scald. Lag hot pipes and route relief valve discharges to a safe place.
  • The numbers here are for study and preliminary design. Pressure equipment, drinking-water systems and anything containing hazardous fluids need a competent engineer, the applicable code (such as ASME B31.3 or local regulations) and tested components.

FAQ

Where do I start if I only want a pipe size?

Read Pipe Friction and the Moody Diagram and the sizing section in Pipe Systems, then use the Pipe Flow and Pressure Drop Calculator. Aim for 1 to 3 m/s for liquids and check the pressure drop.

Why do two sources give different pressure drops?

Mostly roughness and the friction-factor method (Hazen–Williams against Darcy–Weisbach), then fittings. Differences of 10 to 20 percent are normal; use the more conservative one for design.

Is the Darcy friction factor the same as the Fanning factor?

No: Darcy f = 4 × Fanning f. This site always uses the Darcy factor.

Which pages cover compressed air?

Compressed Air and Gas Flow for flow, leaks and pipe sizing, and the Compressed Air Consumption Calculator for demand and compressor size.

Where are heat transfer and steam?

They are the next guides in the Thermal and Fluids section.

References

  • White, F. M., Fluid Mechanics, McGraw-Hill; Munson, B. R., et al., Fundamentals of Fluid Mechanics, Wiley; Çengel, Y. A. and Cimbala, J. M., Fluid Mechanics, McGraw-Hill.
  • Crane Co., Flow of Fluids Through Valves, Fittings and Pipe, Technical Paper 410; Idelchik, I. E., Handbook of Hydraulic Resistance.
  • Hydraulic Institute, Pipe Friction Manual and pump standards (ANSI/HI); Karassik, I. J., et al., Pump Handbook.
  • ISO 5167 (differential-pressure flow meters); Wylie, E. B. and Streeter, V. L., Fluid Transients in Systems.

Last reviewed: November 2026. Values are typical; check the standard, the manufacturer’s data and the code that applies to your system.