Pipe Network Solver

NETWORK SETUP

Connect your pipes. See how the flow splits.

Define a water supply, add demand points, then connect them with pipes. Start with the working example below and change only what you need.

Worked example: hand-check a 100 gpm pipe network — includes an EPANET input file, flow splits, head losses and pressure heads.

1. Add supply and demand points

A reservoir supplies a fixed total head. A junction consumes water at its elevation. Use the same elevation datum throughout.

Node IDTypeElevation / supply head (m)Demand (L/s)Action

2. Connect points with pipes

Use the pipe’s inside diameter. Roughness is the absolute wall roughness for Darcy–Weisbach; 0.045 mm is a starting estimate for commercial steel. K includes fittings and other minor losses.

Pipe IDFromToLength (m)Inside Ø (mm)
Pipe ID reference ↗
Roughness (mm)
Pipe roughness reference ↗
Minor-loss KAction
Connection preview · schematic, not to scale

Steady-state, demand-driven water calculation. Flow in L/s, lengths and heads in m, diameter and roughness in mm.

3. Solve the network

Ready.

How the network solver works

EPANET simultaneously balances flow at junctions and energy across the connected network. This is a full hydraulic network engine, including looped systems, multiple reservoirs, pumps, tanks, valves, patterns, and controls through EPANET 2.2 input files.

Choose a loop example for a steady-state calculation or the pump and tank example for an extended-period simulation. Use the guided tables for a steady pipe network, or the EPANET editor for advanced models, then solve it. Results include every hydraulic event time; use the time selector to inspect changing tank heads and flows.

Positive link flow follows its start-to-end direction. Head difference is start head minus end head; a running pump normally has a negative value. Pressure head is hydraulic head minus elevation, expressed in metres or feet of fluid. Reservoir demand is signed net inflow. Status indicates open or closed hydraulic connectivity. For valves, “Open / may regulate” does not distinguish active pressure or flow regulation; inspect the solved head and flow against the valve setting. Pump velocity is not a pipe velocity and is shown as a dash.

Water/liquid distribution hydraulics only. This does not simulate gas networks, water hammer, or water quality. EPANET’s Darcy–Weisbach correlations differ from the single-pipe calculator’s Colebrook implementation. Check the demand model, fluid properties, boundary conditions, and all reported warnings. Negative pressure under demand-driven analysis indicates a physically inadequate supply.

Engine: EPANET 2.2 via epanet-js 0.9.0, bundled locally. Runs stop after 60 seconds. Limits: 2 MB per file, 10,000 combined nodes and links, 2,000 hydraulic periods, and 500,000 result rows. Larger models should use desktop EPANET.

References

Explore all engineering tools

K-factor reference

K-Factor Guide ↗ · Look up typical fitting losses and check velocity bases, fT correlations, equivalent length, and valve data.

Darcy or Fanning?

Darcy vs. Fanning reference ↗ · Compare the definitions, convert friction factors, and check which equation to use.

Equation values and input guide

Set supply head and node elevations on one elevation datum, enter node demands and connect the pipes. For imported models, inspect EPANET units, head-loss method, controls and hydraulic times before solving. Check pressures and link directions at each relevant time.

Demand
Withdrawal at a junction in the model’s selected flow units. Demand is different from the flow in any one connected pipe.
Head, elevation, pressure head
Junction head is elevation plus pressure head. Elevations and supply heads must share a datum. Pressure head is H − z in length units; pressure is ρg(H − z).
Pipe flow and velocity
Flow is reported relative to the link’s defined start-to-end direction; a negative flow means reversal. Average velocity follows flow divided by internal area.
Length, diameter, roughness
Pipe dimensions and resistance data. Roughness meaning depends on the EPANET head-loss method: Darcy–Weisbach uses a roughness length; Hazen–Williams uses a dimensionless C. Do not interchange them.
Minor-loss K
Dimensionless fitting coefficient used with velocity head V²/(2g). Add only losses represented by that pipe’s fittings.
Pump curve, tank level, hydraulic time
A pump curve relates head gain to flow; a tank’s water level changes its supply head; hydraulic time identifies the simulation state being displayed. These affect results in models that contain them.

Use the unit selectors beside the inputs. Units shown in the equations must be consistent when checking the math by hand.