Lesson 12 of 16
Pipe Friction Losses
Pipe Friction Losses
Real pipe flow loses energy to viscous friction. The Darcy-Weisbach equation quantifies this as a head loss (metres of fluid):
where:
- — Darcy friction factor (dimensionless)
- — pipe length (m)
- — pipe diameter (m)
- — mean flow velocity (m/s)
- m/s²
Head loss is the height a fluid column would need to fall to supply the same energy. It is proportional to , so turbulent flow is expensive.
Friction Factor for Laminar Flow
For laminar flow () the friction factor has an exact analytical value:
For turbulent flow, empirical correlations such as the Moody chart or the Colebrook equation are used instead.
Pressure Drop
Head loss converts to a pressure drop via:
This is the pressure the pump must provide to maintain the flow.
Your Task
Implement:
head_loss(f, L, D, v)— returns (m). Use m/s² inside the function.friction_factor_laminar(Re)— returns Darcy for laminar flowpressure_drop(rho, h_f)— returns (Pa). Use m/s² inside the function.
Python runtime loading...
Loading...
Click "Run" to execute your code.