Flow in Pipes: Systems & Networks

Learning Objectives

  • Apply continuity and energy conservation to series, parallel, branching, and looped pipe systems.
  • Express pipe and local losses in signed nonlinear resistance form and derive equivalent-system relations.
  • Solve junction and three-reservoir problems without losing flow-direction information.
  • Apply Hardy Cross corrections with consistent loop signs and convergence checks.
  • Explain nodal-head methods, pressure-dependent demand, pumps, valves, tanks, and extended-period simulation.
  • Distinguish steady-state network adequacy from transient pressure safety.
  • Apply wave-celerity, Joukowsky, and valve-closure relations only under their stated hydraulic-transient assumptions.
  • Select and evaluate practical surge-mitigation measures for both high- and low-pressure transients.

Pipe network

A connected set of hydraulic nodes and links whose flows and heads must simultaneously satisfy continuity, energy relations, and component operating constraints.

Network Elements and Unknowns

  • Nodes: junctions, reservoirs, tanks, outlets, hydrants, and demand points.
  • Links: pipes, pumps, turbines, valves, meters, and other connecting components.
  • Boundary conditions: fixed reservoir heads, tank states, prescribed inflows or demands, pump schedules, and valve controls.
  • Typical unknowns: link discharge, junction head, pressure, tank level, and active control state.

Signed head-loss relation

A component equation that preserves both head-loss magnitude and the direction associated with an assumed positive discharge.

General Signed Resistance Form

Represents a monotonic link loss with a power-law exponent while preserving flow direction.

hL=rQ∣Q∣n−1h_L=rQ|Q|^{n-1}

Variables

SymbolDescriptionUnit
hLh_LSigned head change attributed to loss in the chosen positive directionm
rrResistance coefficient consistent with the chosen loss law-
QQSigned dischargem3/sm^3/s
nnFlow exponent-

Darcy-Weisbach Resistance at Fixed f

Discharge form of Darcy-Weisbach when the Darcy factor is treated as known for the iteration.

hf=rfQ∣Q∣h_f=r_fQ|Q|rf=8fLgπ2D5r_f=\frac{8fL}{g\pi^2D^5}

Variables

SymbolDescriptionUnit
rfr_fDarcy major-loss resistance coefficients2/m5s^2/m^5
ffDarcy friction factor-
LLPipe lengthm
DDInside diameterm

Darcy Resistance Changes When f Changes

The quadratic discharge form is exact only while ff is treated as fixed. In a network iteration, changing discharge alters Reynolds number and can alter ff. A robust Darcy-Weisbach solver updates the factor or includes its derivative in the nonlinear solution.

Local-Loss Resistance

Expresses a lumped local coefficient in discharge form for a circular pipe.

hm=rKQ∣Q∣h_m=r_KQ|Q|rK=8Kgπ2D4r_K=\frac{8K}{g\pi^2D^4}

Variables

SymbolDescriptionUnit
rKr_KLocal-loss resistance coefficients2/m5s^2/m^5
KKSum of local coefficients referenced to the pipe velocity-
DDPipe diameter associated with the reference velocitym

Pipes in series

Pipes connected sequentially without intermediate external inflow or withdrawal, so the same discharge passes through every series element.

Series-System Rules

For pipes in series,

Q1=Q2=⋯=QQ_1=Q_2=\cdots=Q

and the total irreversible head loss is

hL,total=∑ihL,ih_{L,\text{total}}=\sum_i h_{L,i}

If all elements obey the same exponent nn, their resistance coefficients add: req=∑irir_{\text{eq}}=\sum_i r_i.

Series and parallel pipe systemsSeries paths share flow; parallel branches share endpoint head difference.seriesparallel branchescontinuity

Series and parallel pipe systems

Series paths share flow; parallel branches share endpoint head difference.

Pipes in parallel

Branches that connect the same pair of hydraulic nodes, so each branch experiences the same node-to-node head difference while branch discharges sum algebraically.

Parallel Equivalent Resistance

Equivalent resistance for branches sharing the same positive flow direction and common power-law exponent.

req=(∑iri−1/n)−nr_{\text{eq}} = \left( \sum_i r_i^{-1/n} \right)^{-n}

Variables

SymbolDescriptionUnit
reqr_{\text{eq}}Equivalent parallel resistance-
rir_iBranch resistance-
nnCommon positive flow exponent-

Equivalent-Pipe Results Are Model-Specific

An equivalent diameter or resistance depends on the selected loss law, lengths, roughness, local losses, exponent, and flow range. An equivalent derived with fixed-ff Darcy-Weisbach is not automatically equivalent under Hazen-Williams or after Reynolds number changes.

Interactive Series and Parallel Network Tool

The network simulation visualizes continuity and equal node-to-node head change. In design work, update flow-dependent friction factors rather than treating all resistances as permanently fixed.

Two-Pipe System Solver

Learning objective: Observe how branch resistance and network arrangement redistribute discharge while satisfying continuity and energy compatibility.

Uses Darcy–Weisbach major loss plus lumped minor losses:hL=(fL/D+∑K)V2/(2g)h_L=\left(fL/D+\sum K\right)V^2/(2g).

Pipe 1

Pipe 2

Results

Pipe 1 flow
50.00 L/s
V₁ = 2.83 m/s
Pipe 2 flow
50.00 L/s
V₂ = 2.83 m/s
Pipe 1 head loss
5.848 m
Pipe 2 head loss
5.848 m
Common branch head loss
5.848 m
Continuity residual
0.0e+0 m³/s
Parallel energy residual
0.0e+0 m

The friction factors are user-supplied Darcy factors and are treated as constant. In a full design iteration they must be recomputed from Reynolds number and roughness as flow changes. Pumps, valves with control laws, and elevation differences require the full energy equation rather than this two-branch resistance model.

Junction continuity

The requirement that mass does not accumulate at a zero-storage node, so algebraic inflow equals external withdrawal plus algebraic outflow.

Junction Continuity

Steady incompressible node balance using a consistent sign convention.

∑Qin−∑Qout−Qd=0\sum Q_{\text{in}}-\sum Q_{\text{out}}-Q_d=0

Variables

SymbolDescriptionUnit
QdQ_dExternal demand or withdrawal at the nodem3/sm^3/s

Three-reservoir problem

A junction-head problem in which three reservoirs of known head connect through hydraulic resistances to one common node of unknown head.

Signed Reservoir-Branch Relation

Relates each reservoir head to junction head and signed branch flow.

Hi−HJ=riQi∣Qi∣n−1H_i-H_J=r_iQ_i|Q_i|^{n-1}

Variables

SymbolDescriptionUnit
HiH_iKnown reservoir headm
HJH_JUnknown junction headm
QiQ_iSigned branch discharge under the chosen conventionm3/sm^3/s

Three-Reservoir Solution with Direction Checks

  1. Choose a sign convention, such as flow toward the junction positive.
  2. Bound the trial junction head between physically relevant reservoir heads.
  3. For a trial HJH_J, determine the sign of each Hi−HJH_i-H_J before calculating flow magnitude.
  4. Evaluate the algebraic continuity residual.
  5. Use bisection, safeguarded Newton iteration, or another reliable root method.
  6. Confirm final branch directions from the solved head gradients.
Three-reservoir junctionReservoir heads and an unknown junction head establish signed branch flows.reservoir headsjunction headsigned flows

Three-reservoir junction

Reservoir heads and an unknown junction head establish signed branch flows.

Square Roots Give Magnitudes, Not Directions

For a quadratic loss law, ∣Hi−HJ∣/ri\sqrt{|H_i-H_J|/r_i} gives only the magnitude. The sign must come from the head difference. Discarding sign information can produce a numerically tidy but physically impossible junction solution.

Looped pipe network

A network containing one or more closed hydraulic paths, so flows are coupled by both node continuity and path energy conservation.

Network Conservation Conditions

A physically valid steady network solution satisfies:

  • Continuity at every node: algebraic inflow and outflow balance the prescribed external demand.
  • Energy around every closed loop: the algebraic sum of head changes is zero.
  • Path independence: the head difference between two nodes is the same regardless of the path used to compute it.

Hardy Cross method

An iterative loop-balancing procedure that starts from flows satisfying continuity and applies loop corrections to reduce energy residuals.

Hardy Cross Flow Correction

Loop correction for links obeying h=rQ|Q|^(n-1), with each signed head loss referenced to the chosen loop direction.

ΔQ=−∑hi∑niri∣Qi∣ni−1\Delta Q = -\frac{\sum h_i} {\sum n_i r_i|Q_i|^{n_i-1}}

Variables

SymbolDescriptionUnit
ΔQ\Delta QLoop flow correction in the chosen traversal directionm3/sm^3/s
hih_iSigned head loss of link i relative to the loop directionm
nin_iLoss exponent for link i-

Hardy Cross Loop Procedure

  1. Assign initial link directions and magnitudes that satisfy node continuity.
  2. Select a loop traversal direction and sign every link head loss relative to it.
  3. Calculate the loop energy residual and derivative denominator.
  4. Apply ΔQ\Delta Q algebraically to links in that loop.
  5. Apply corrections from all loops to shared links.
  6. Update Darcy factors or other flow-dependent coefficients when required.
  7. Continue until both node and loop residuals meet the stated tolerance.
Hardy Cross loop correctionLoop corrections reduce energy residual while preserving nodal continuity.loopflow correctionenergy residual

Hardy Cross loop correction

Loop corrections reduce energy residual while preserving nodal continuity.

Convergence Is a Numerical Criterion, Not Proof of Good Design

Small corrections indicate that the chosen nonlinear equations are nearly satisfied. They do not prove adequate pressure, acceptable velocity, valid component states, water quality, or transient safety.

Nodal-head method

A simultaneous network solution that treats junction heads as primary unknowns and enforces continuity using head-dependent link-flow relations.

Nodal Continuity Residual

Generic nonlinear residual equation solved for a junction head.

Rj(H)=∑iQij(Hj,Hi)−Qd,j=0R_j(H) = \sum_i Q_{ij}(H_j,H_i)-Q_{d,j}=0

Variables

SymbolDescriptionUnit
RjR_jContinuity residual at node jm3/sm^3/s
HjH_jUnknown head at node jm
Qd,jQ_{d,j}External demand at node jm3/sm^3/s

Demand Models and Feasibility

  • Demand-driven: prescribed withdrawal is enforced regardless of computed pressure; useful when pressure remains adequate.
  • Pressure-dependent: delivered demand decreases when available pressure is insufficient.
  • Emitter or leak model: a relation such as Q=CpmQ=Cp^m approximates pressure-sensitive outflow.

A demand-driven solution with strongly negative pressure can be mathematically converged but physically infeasible.

Pump operating point

The discharge and head at which the pump characteristic and the complete hydraulic system requirement are simultaneously satisfied.

Pumps, Valves, and Controls

A pump adds head, so it acts as a negative-loss element in a signed path equation. Throttle valves add loss, while pressure-reducing, pressure-sustaining, and flow-control valves change their state to meet a target when physically possible. Check valves change network topology when they close. Control assumptions must be verified after each nonlinear solution.

Extended-period simulation

A sequence of hydraulic solutions linked through time-varying demands, controls, pump schedules, and tank storage.

Tank Storage Balance

Relates tank volume change to algebraic inflow and outflow.

dVdt=∑Qin−∑Qout\frac{dV}{dt}=\sum Q_{\text{in}}-\sum Q_{\text{out}}

Variables

SymbolDescriptionUnit
VVStored tank volumem3m^3
ttTimes

Steady Network Design Checks

After solving, evaluate service pressure, peak demand, fire flow, velocity, friction loss, pump range, NPSH, tank turnover, redundancy, isolation, leakage, energy use, and future-demand uncertainty. A single converged peak-hour case is not a complete network design.

Water hammer

A hydraulic transient in which a change in velocity generates pressure waves that propagate through the compressible liquid and deformable pipe system.

Wave celerity

The propagation speed of a small pressure disturbance through the coupled fluid-pipe system.

Simplified Elastic Wave Celerity

Thin-wall approximation for a liquid-filled elastic pipe under a simplified restraint condition.

a=K/ρ1+KD/(Ee)a= \sqrt{ \frac{K/\rho} {1+KD/(Ee)} }

Variables

SymbolDescriptionUnit
aaPressure-wave celeritym/s
KKLiquid bulk modulusPa
ρ\rhoLiquid densitykg/m3kg/m^3
DDInside pipe diameterm
EEPipe Young's modulusPa
eePipe wall thicknessm

Celerity Depends on Pipe Restraint and Wall Model

The displayed equation is a simplified thin-wall form. Actual wave speed can depend on Poisson effects, axial restraint, pipe-wall geometry, lining, viscoelastic behavior, entrained or trapped gas, and fluid properties. Use a transient model consistent with the real pipe system.

Joukowsky relation

The one-dimensional elastic-wave relation between a rapid change in liquid velocity and the associated pressure change at a wavefront.

Joukowsky Pressure and Head Change

Ideal elastic-wave relation for a sufficiently rapid velocity change before system reflections alter the local event.

Δp=ρa ΔV\Delta p=\rho a\,\Delta VΔH=a ΔVg\Delta H=\frac{a\,\Delta V}{g}

Variables

SymbolDescriptionUnit
Δp\Delta pSigned pressure change associated with the wavePa
ΔH\Delta HEquivalent signed head changem
ΔV\Delta VSigned velocity changem/s

Joukowsky Is Not a Universal Maximum-Surge Formula

The relation describes the initial ideal wave response under one-dimensional elastic assumptions. Reflections, friction, branches, pump inertia, air pockets, valve law, column separation, and vapor cavities can produce later pressures that differ materially from the simple estimate.

Characteristic round-trip wave time

For a simple reservoir-pipe-valve reach of length LL, the time 2L/a2L/a for a pressure wave to travel to the upstream boundary and return.

Round-Trip Wave Time

Characteristic closure-time scale for a simple reservoir-pipe-valve configuration.

Tc=2LaT_c=\frac{2L}{a}

Variables

SymbolDescriptionUnit
TcT_cRound-trip wave times
LLRelevant pipe length to the reflecting boundarym

Rapid and Slow Valve Closure

In a simple reservoir-pipe-valve model, a closure completed before the first reflected relief wave returns is commonly called rapid relative to TcT_c. A much slower closure can reduce the initial surge because boundary reflections interact with the continuing valve motion.

For a simplified frictionless system with approximately linear deceleration, one commonly taught estimate is

Δp≈2ρLV0T\Delta p\approx\frac{2\rho L V_0}{T}

This is a teaching approximation, not a universal valve-closure law.

Water-hammer wave travelA valve disturbance propagates and reflects through the pipeline.reservoirpressure wavevalve

Water-hammer wave travel

A valve disturbance propagates and reflects through the pipeline.

Interactive Water-Hammer Model

Use the simulator to explore celerity, round-trip time, and simplified rapid/slow closure estimates. Treat its results as one-dimensional screening calculations rather than a substitute for a method-of-characteristics or equivalent transient analysis.

Water Hammer Simulator

Learning objective: See how wave speed, pipe properties, initial velocity, and valve-closure time govern the idealized transient pressure response.

Elastic-pipe wave speed and rapid/slow valve-closure pressure rise.

Zero represents an ideal instantaneous closure.

Wave celerity (cc)1343 m/s
Critical closure time (Tc=2L/cT_c=2L/c)0.149 s
Closure classificationRapid
Maximum pressure rise (Δp\Delta p)2.69 MPa
Equivalent head rise (ΔH\Delta H)273.8 m
Hydraulics interactive visualizationSee how wave speed, pipe properties, initial velocity, and valve-closure time govern the idealized transient pressure response.ReservoirValveL = 100 mt = 0.000 sΔp = 2.69 MPa
Normal flowCompression waveReflected low-pressure phase

Rapid closure uses the Joukowsky relationΔp=ρcΔV\Delta p=\rho c\Delta V. For closure slower thanTc=2L/cT_c=2L/c, this educational model uses the classical gradual-closure approximationΔp≈2ρLΔV/T\Delta p\approx2\rho L\Delta V/T. Real systems may require method-of-characteristics analysis including friction, valve law, pipe restraint, entrained air, and vapor-column separation.

Transient Protection

Possible measures include controlled valve motion, pump ramping or flywheels, surge tanks, hydropneumatic or air vessels, relief valves, bypasses, non-slam check valves, air/vacuum valves, and changes in pipe diameter or pressure class. A measure that limits maximum pressure can worsen minimum pressure, so both extremes must be checked.

Steady-State Results Do Not Bound Transient Pressure

A system can have acceptable steady pressure yet experience transient overpressure, sub-atmospheric pressure, vapor formation, or column separation after a rapid event. Surge analysis must use absolute pressure limits and realistic boundary conditions.

Pipe-System Analysis Workflow

  1. Define node heads, elevations, demands, link data, component controls, and a consistent sign convention.
  2. Select loss relations and identify which coefficients change with flow.
  3. Solve continuity and energy equations simultaneously.
  4. Verify residuals, directions, pressures, velocities, and active pump or valve states.
  5. Evaluate peak, fire, low-demand, outage, and failure scenarios.
  6. Perform extended-period analysis when tanks and controls change with time.
  7. Perform transient analysis for rapid operations, long/high-velocity mains, pump trips, or other surge-sensitive conditions.
  8. Check both maximum and minimum transient pressure against structural and vapor-pressure limits.
Key Takeaways
  • Series pipes share discharge and add losses; parallel branches share a node-to-node head difference and divide flow nonlinearly.
  • Signed head-flow relations preserve physical flow direction and prevent square-root sign mistakes.
  • Equivalent-pipe relations depend on the selected loss model and its assumptions.
  • Hardy Cross requires continuity-consistent initial flows, loop sign discipline, and residual-based convergence checks.
  • Modern network analysis often solves nodal heads and explicitly models pumps, valves, tanks, leaks, and pressure-dependent demand.
  • Wave celerity depends on both fluid compressibility and pipe-system elasticity and restraint.
  • Joukowsky and 2L/a2L/a are powerful transient concepts but are not universal bounds for complex networks.
  • Simplified slow-closure formulas must state their valve-law and system assumptions.
  • Surge protection must be evaluated for both high-pressure and low-pressure transients.