Pipe Network Analysis
Pipe networks distribute fluid through interconnected pipes, junctions, and loops. Analyzing these systems means figuring out how flow divides among different paths and what pressure drops result. Two conservation laws govern the analysis, and the Hardy Cross method is the standard iterative technique for solving the resulting equations.
Conservation Principles for Pipe Networks
Two fundamental laws constrain every pipe network: conservation of mass and conservation of energy. Every valid solution must satisfy both simultaneously.
Conservation of mass requires that the total flow entering any junction equals the total flow leaving it:
This is sometimes called the junction equation or node equation. If three pipes meet at a junction and two carry flow in, the third must carry the combined flow out. No fluid accumulates at a junction in steady-state analysis.
Conservation of energy requires that the net head loss around any closed loop in the network equals zero:
This is the loop equation. It follows from the fact that pressure at any point is unique. If you trace a path around a loop and return to the starting node, all the pressure gains and losses must cancel. (Pipes carrying flow in the assumed clockwise direction contribute positive head loss; pipes carrying flow against that direction contribute negative head loss.)
For any single pipe segment, the energy equation between two points is:
Continuity along a single pipe with varying cross-section gives:
This lets you find velocity changes at expansions or contractions within a pipe segment.
Head loss equations. Friction losses in each pipe are typically computed with one of two formulas:
- Darcy-Weisbach (general, any fluid):
- Hazen-Williams (empirical, water only):
In both, head loss increases with pipe length and decreases with pipe diameter . The Darcy-Weisbach equation uses the friction factor (from the Moody chart or Colebrook equation), while Hazen-Williams uses a roughness coefficient that depends on pipe material (e.g., for new PVC, for old cast iron).

Hardy Cross Method for Flow Analysis
The Hardy Cross method solves the loop equations iteratively. You start with a guess for how flow distributes, then refine it until the energy balance around every loop is satisfied.
Step-by-step procedure:
-
Set up the network topology. Identify all pipes, junctions, and independent loops. For a network with pipes and junctions, the number of independent loops is .
-
Assume an initial flow distribution. Assign a flow rate and direction to every pipe. The assumed flows must satisfy conservation of mass at every junction, but they won't yet satisfy the loop energy equations.
-
Assign sign conventions. Pick a direction (e.g., clockwise) as positive for each loop. Pipes with flow in the positive direction get positive ; pipes flowing against it get negative .
-
Calculate head loss in each pipe using Darcy-Weisbach or Hazen-Williams based on the current assumed flow rates.
-
Compute the flow correction for each loop:
For the Darcy-Weisbach equation (assuming is roughly constant), , so . The correction becomes:
Note the absolute value in the denominator. The numerator retains signs (positive or negative depending on flow direction relative to the loop).
-
Update flow rates. For each pipe in the loop, add to the current flow: . Pipes shared by two loops receive corrections from both.
-
Repeat steps 4โ6 until for every loop falls below an acceptable tolerance (e.g., less than 1% of the smallest pipe flow).
A common mistake is forgetting the negative sign in the correction formula or mixing up sign conventions for shared pipes. Be consistent with your clockwise/counterclockwise assignments.
Once converged flow rates are known, you can convert head loss to pressure drop for any segment:

Pumping Power for Head Loss Compensation
Pumps add energy to the fluid to overcome elevation differences and friction losses. The power a pump must deliver to the fluid is:
where is the hydraulic power (W), is the volumetric flow rate (mยณ/s), and is the total head the pump must supply (m).
Total head has two components:
- Static head: the elevation difference between the source and the delivery point.
- Loss head: the sum of all friction losses (major losses from pipe length) and minor losses (from fittings, valves, bends, etc.) along the flow path.
The actual electrical power consumed will be higher because of pump and motor inefficiencies:
For example, if a water distribution system requires mยณ/s against a total head of m, the hydraulic power is W or about 14.7 kW. With a combined pump-motor efficiency of 70%, the actual power draw would be roughly 21 kW.
Optimization of Pipe Network Design
Designing a pipe network involves trade-offs. The main variables are pipe diameters, network layout, and pump placement.
Pipe sizing is the most direct trade-off: larger diameters reduce head loss (and therefore pumping costs) but increase material and installation costs. Smaller diameters save on materials but drive up long-term energy costs. Engineers typically evaluate this using life-cycle cost analysis, comparing the present value of energy costs over the system's lifetime against the upfront capital cost of larger pipes.
Network configuration also matters:
- Parallel pipes between two nodes split the flow, reducing velocity in each pipe and lowering total head loss compared to a single pipe carrying the full flow.
- Series pipes add their head losses together, increasing the total loss along the path.
- Looped networks (common in municipal water systems) provide redundancy and more uniform pressure distribution compared to branching (tree) networks.
Formal optimization of large networks uses techniques like linear programming, genetic algorithms, or particle swarm optimization. The objective function might minimize total cost (capital + operating), minimize energy consumption, or meet minimum pressure requirements at all demand nodes. Constraints include maximum allowable velocities, minimum pressures, and available pipe sizes.
These optimization approaches are applied in water distribution networks, district heating systems, gas pipelines, and industrial process piping where the scale justifies the computational effort.