Feature

WaterWorks

Design and check a drinking-water network on top of CivilCraft's water mains: demands from parcels, fire flow at every hydrant, which main outage hurts most, water age and chlorine over 24 hours.

Use this add-on:

CivilCraft plan of a looped water network with the WaterWorks fire flow table beside it
Screenshot from the lab build. WaterWorks on the showcase water mains (14 nodes, 19 pipes): fire flow at every hydrant with the panel defaults, 63 L/s at 140 kPa: 6 meet, 0 fall short
WaterWorks criticality table listing each pipe outage with demand cut off and lowest pressure
Which main matters most on the same network: 19 outages tried, 2 cut customers off; losing wp1 from the reservoir cuts 27 L/s and 13 junctions
Water hammer and surge on EPANET's Net1: a pump trip at 2 s with a surge tank at node 11, the highest and lowest head at every node, and the envelope along pipe 10 (node 10 peaks at 1,090 ft)
Water hammer and surge on EPANET's Net1: a pump trip at 2 s with a surge tank at node 11, the highest and lowest head at every node, and the envelope along pipe 10 (node 10 peaks at 1,090 ft)
Live data on Net1: 392 readings from 8 sensors, a confirmed change at 2026-03-03 08:00 and the five junctions where a leak of about 50 gpm fits best: 23, 22, 21, 12 and 11
Live data on Net1: 392 readings from 8 sensors, a confirmed change at 2026-03-03 08:00 and the five junctions where a leak of about 50 gpm fits best: 23, 22, 21, 12 and 11
A storm sewer under a 4 in/h design storm, dynamic wave: peak flow and depth per pipe, and the hydraulic grade line from MH1 to OUT with both upstream manholes flooded
A storm sewer under a 4 in/h design storm, dynamic wave: peak flow and depth per pipe, and the hydraulic grade line from MH1 to OUT with both upstream manholes flooded
WaterWorks on the showcase water mains: fire flow at 63 L/s and 140 kPa (6 meet, 0 short), 19 outages tried, 48 hours of water age

Overview

Design and check a drinking-water distribution network inside CivilCraft. WaterWorks adds to the Water mains you already draw: it turns parcels and customers into junction demands with an hourly pattern, tests the fire flow at every hydrant, shows which main outage cuts off the most customers, follows water age, chlorine and the source of the water through a run of a day or more, and from 0.11 compares scenarios, shows shortage and leakage, runs control rules, valves and pump energy, runs emergencies, calibrates to field readings and sizes pipes; and from 0.12 it designs and checks gravity sewers and storm drains, with wet-weather and dynamic flow, surcharge and flooding, lift stations and EPA SWMM files.

It uses CivilCraft's own pressure-network solver, so a result here is the same number you see in the Water mains window. Your network stays in the project on your computer; nothing is sent anywhere. It is a calculation aid: a water engineer checks every result, and nothing here is a stamped design.

Who it’s for

  • A civil or water engineer laying out a distribution network or a subdivision's mains who needs pressures, fire flow and a check on dead ends.
  • A utility planner who wants to know which main outages hurt most and where the water is oldest.
  • A student or small consultancy who needs water-network analysis without a per-seat network licence.

What you can do

  • Turn customers into demands: one line per parcel or meter (an id, a place, a kind and an amount), placed on the nearest junction or shared between close ones, with a peaking factor and a residential, commercial or flat day pattern. WaterWorks tab, Demands. verified
  • Test fire flow at every hydrant, or every junction when none is marked: the flow each can give while the residual pressure holds, held either at the hydrant or everywhere in the system, listed worst first with meets or short. WaterWorks tab, Fire flow. verified
  • Take each main, or each valved section, out of service in turn and see how much demand is cut off and which junctions fall under the minimum pressure. WaterWorks tab, Which main matters most. verified
  • Follow water age, chlorine decay (in the water and at the pipe wall) and a source trace through the run, with junctions flagged when the residual is too low or the water too old. WaterWorks tab, Water age and chlorine. verified
  • Save every table as a CSV that a spreadsheet will open without running a name as a formula. Each table's Save as CSV button. verified
  • Read the parcels you drew in CivilCraft as customers: each parcel becomes a load at its centre, its use sets the demand per acre or per home, and the parcel's own area (curved boundaries included) is used. WaterWorks tab, Demands from parcels. verified
  • Compare what-if versions of the network side by side: a main out, a peak day, a larger pipe, a fire, a pump off, a tank level, each as a column with its change from the base. WaterWorks tab, Scenarios side by side. verified
  • See what a network delivers when its pressure falls (pressure-dependent demand), with leaking joints and a leak along the pipes. WaterWorks tab, Shortage and leakage. verified
  • Run a day with control rules, flow-control and pressure-sustaining valves and boosters, with each pump's energy, peak load and cost, and a price that changes by the hour. WaterWorks tab, Valves, rules and pump energy. verified
  • Run a main break, a fire or a power cut and see who is cut off, who falls under the minimum pressure, for how long, and when a tank runs empty. WaterWorks tab, Emergencies. verified
  • Fit the roughness of groups of pipes (and, if asked, a factor on every demand) to field pressure and flow readings. WaterWorks tab, Calibrate to field readings. verified
  • Size pipes from the list of sizes you may buy for the money, or choose which old pipes to rehabilitate within a budget. WaterWorks tab, Pipe sizes and rehabilitation. verified
  • Run water hammer and surge on the whole network: a valve closing, a pump tripping (with its inertia) or starting, a demand cut, with a surge tank, an air chamber, an air valve or a relief valve on the line. See the highest and lowest head and pressure at every node and along every pipe, the head over time at nodes you pick, where the water reaches vapour pressure, and save it all as a CSV. WaterWorks tab, Water hammer and surge. verified
  • Read sensor and SCADA readings (a CSV from a historian or a logger, pasted, chosen, dropped or polled from a web address you give), set them against the model run with your control rules, see which sensor has moved away from it, find a zone's minimum night flow and its leak estimate, and get a shortlist of the junctions where a leak would explain the readings, drawn on the plan. WaterWorks tab, Live data: sensors and SCADA. verified
  • Design a gravity sewer or storm drain, run a storm, dry weather or rain-derived inflow through it and see what happens. Size the pipes of the project's drainage network for the peak flow (Manning part-full depth and velocity, cover, inverts and drops through the manholes, the peaking factor from people and dwellings), run a design storm or a dry-weather and RDII flow down the pipes and manholes by kinematic or dynamic wave (pipes that run full, back water up or reverse; manholes that flood), add a pumped lift station with a wet well that starts and stops by depth, draw the hydraulic grade line along a path, save every table as a CSV, and read or write an EPA SWMM 5 .inp file. WaterWorks tab, Sewer and storm. verified

Methods and standards

The hydraulics are CivilCraft's Water mains solver (Hazen-Williams head loss and the global gradient method). Fire flow is a bisection on the draw at a hydrant until the lowest pressure that matters reaches the residual. An outage closes the pipe, or every pipe of a valved section, and solves again. Water quality walks plug-flow segments through each pipe in small time steps, mixes completely at junctions and in tanks, and uses first-order decay with a bulk rate and a wall rate (2 times the wall coefficient over the diameter). Demands go to the nearest junction, or are shared by inverse distance. All of it is our own code from published methods. From 0.11: control rules and a stepped run cut the step to the moment a tank meets a level rule; a flow-control valve holds its flow, a pressure-sustaining valve is found by bisection on the flow that holds its upstream pressure; pump energy is flow times head over efficiency, integrated over the steps; pressure-dependent demand uses the Wagner curve and is solved by an accelerated fixed point around the same steady solver; calibration is damped least squares (Levenberg-Marquardt) on the logarithm of each roughness; sizing and rehabilitation are greedy marginal analysis (the change that helps most per dollar, then take back what was not needed). All of it is our own code from published methods. Water hammer (0.12) is the method of characteristics: each pipe is cut into whole segments of one common time step (its wave speed is adjusted a little to fit, and the change is shown), the pressure waves are carried along the two characteristic lines, and nodes, pumps, valves and devices are solved at each step from the heads and flows of the step before. The starting state is CivilCraft's own steady solver. Friction is the steady gradient of that solution, carried quasi-steadily. A pump's speed falls from its inertia and the power it still gives the water; a valve passes flow in proportion to its opening and the square root of the head across it; a surge tank, an air chamber (polytropic gas), an air valve and a relief valve are single-node devices solved with the node. Vapour pressure is held with discrete vapour cavities (Streeter). Wave speed is by the Korteweg formula. All of it is our own code from published methods (Joukowsky, Allievi, Korteweg, Streeter and Wylie). Live data: each reading is converted to project units and put on the model's clock (the mean of the readings in each step), the model is the control-rule run with tank levels and pump states taken from the readings where they are measured, a change is a two-sided CUSUM on each sensor's gap from the model scaled by its robust spread and confirmed when two sensors agree, the minimum night flow is the lowest inflow in the night window less the model's customer use, and a leak is placed by trying a draw at each junction in the model and fitting its effect on the pressure, head and flow sensors to what the readings changed by. Sewer and storm: part-full Manning flow in circular, rectangular, trapezoidal and triangular sections; peaking by Harmon or Babbitt (CivilCraft's sewer window); time of concentration by FAA, Kerby, Kirpich or the kinematic formula; design storms by alternating blocks or Keifer and Chu; catchment runoff by CivilCraft's time-area hydrograph, or a nonlinear-reservoir subcatchment with Horton infiltration; RDII by RTK triangular unit hydrographs; routing by a Preissmann four-point kinematic wave, or a dynamic wave that solves the Saint-Venant momentum equation in each pipe with continuity at each manhole by Picard iteration, a Newton node update and under-relaxation (the approach of the Extran model, Roesner et al. 1984).

Data and sources

It ships no data. It works on the Water mains in the open project. The use per home or per acre in the demand table, and the hourly day patterns, are generic starting values that you replace with your utility's own design figures; they are not a standard. Pipe, pump and tank data come from the project.

Verification

CaseResult
Allocation conserves the total and matches hand arithmetic100 homes at 300 gpd is 20.83 gpm, 2 acres at 1,500 gpd per acre is 2.08 gpm, every flow is accounted for, a shared load adds back to its flow, every day pattern has a mean of exactly 1 (bin/test-waternet.mjs)
Fire flow against an independent bisection on the Hazen-Williams lossAvailable flow within 0.3 % of the independent answer for a 1,000 ft, 12 in main, and within 1 % of the Water mains window's own one-hydrant answer; a node already under the residual gives 0 (bin/test-waternet.mjs)
Outages in a dead-end line, a loop and a valved lineClosing the pipe to a dead end cuts off exactly that junction's demand; in a loop one outage cuts off nothing; one valve in the middle of a line makes two sections and shutting the far one cuts off exactly its two junctions (bin/test-waternet.mjs)
Water age, chlorine and trace in one pipe, two feeds and a filling tankAge equals pipe volume over flow within 1.5 %; chlorine equals c0 times exp(-k t) within 1 %; two equal feeds trace 50 percent each within 0.5; a filling tank matches (L - L0)/L within 3 % (bin/test-waternet.mjs)
CSV quoting and formula guardCommas, quotes and a leading = or + are handled so a spreadsheet does not run a name as a formula (bin/test-waternet.mjs)
EPANET Example Network 1 (EPA, public domain), 24 hours with the tank rulesHeads within 0.03 ft and flows within 0.15 gpm at hour 0; the tank level every hour within 0.03 ft and the pump flow within 0.2 gpm; the pump stops at 12.54 h and starts at 22.69 h; pump usage 57.7 %, kWh per million gallons within 0.3 % of EPANET 2.3.6's report (bin/test-waternet-11.mjs)
Flow-control and pressure-sustaining valves against EPANET 2.3.6Flow within 0.2 % and pressures within 0.12 psi for a flow-control valve at 200 and 600 gpm and a pressure-sustaining valve open and closed; throttling pressure-sustaining valve within 2 % (EPANET and we use slightly different psi per foot) (bin/test-waternet-11.mjs)
Pressure-dependent demand and emitters against EPANET 2.3.6Net1 with every demand times 14, 20 to 60 psi, exponent 0.5: delivered flow within 0.6 gpm and pressure within 0.12 psi at every junction; emitters within 0.12 gpm and heads within 0.03 ft; the Wagner curve by hand (bin/test-waternet-11.mjs)
Main break, power cut and fire against EPANET 2.3.6, and a tank by handA tank feeding 100 gpm alone is empty at volume over flow, 9.79 h, within 0.005 h; the tank level every hour of a 4 h power cut within 0.05 ft and of a 1,500 gpm fire within 0.06 ft; pressures with a main closed within 0.12 psi (bin/test-waternet-11.mjs)
Calibration recovers a known roughnessReadings from EPANET on Net1 with C 80, 130 and 70 in three groups, started at 100: each group recovered within 8 %, and a 30 % demand error found as a factor of 1.3 (bin/test-waternet-11.mjs)
Pipe sizing against the closed form, and EPANET on the resultOne pipe gets the smallest listed size at or above the Hazen-Williams closed form; Net1 sized to 114 psi is checked by EPANET on the sized network (lowest 114.23 psi); a budget is never exceeded (bin/test-waternet-11.mjs)
Water hammer against closed forms and an exact solutionInstantaneous closure rises by a V/g (51.934 m, 1e-6 relative); the head repeats every 4L/a with the reflection at 2L/a; five closure curves (instant, 0.5 s, 5 s, two-stage, one segment or ten) equal the exact travelling-wave solution to under 0.00002 m; a slow closure is under Joukowsky; the peak c
Live data on EPANET Net1 with a known leak and noise (made-up readings, no real SCADA data)A 54 gpm emitter at a known junction from hour 30, every junction in turn, ten noise seeds each: a confirmed change within 2 h of the start in all 90 runs and none in 20 clean runs; the leak junction in the top 3 in 84 of 90 (top 1 in 57); the night-flow leak within 8 gpm of EPANET's emitter flow in
Manning flow in a circular pipe against the closed formsFull flow equals 0.3117/n D^(8/3) sqrt(S) (SI) and 0.463/n (feet); half depth carries half the full flow; the peak velocity is 1.1402 of full at y/D 0.8128 and the peak flow 1.0757 of full at y/D 0.938; area, perimeter, top width, normal depth and full flow equal CivilCraft's own hydro.js (bin/test-
Peaking, time of concentration, rational method and RTK unit hydrographs by handHarmon 3.8 at 1,000 people; FAA, Kerby, Kirpich and kinematic times of concentration to 0.02 min of hand values; rational Q = C i A exactly; steady rain on an RTK sewershed gives A times the sum of R times i; a one-inch pulse gives volume R A P and a peak within 3 % of 2 R A P / (T (1 + K)) (bin/tes
Uniform flow, a wet well and mass balanceOne pipe at a steady inflow reaches the inflow and Manning's normal depth in steady, kinematic (1 %) and dynamic (5 %) routing; a wet well of 100 square feet with a 2 cfs inflow and a 6 cfs pump cycles every 225 s by hand within 20 s; every run balances mass within 1 to 2 % (bin/test-sewernet.mjs)
EPA SWMM 5 Example 1 (EPA, public domain): 8 subcatchments, Horton, 13 conduitsSubcatchment runoff peaks within 0.02 % and hydrographs within 0.2 % of the peak; kinematic wave: conduit flow series within 0.3 % of the peak, peaks within 1.5 %, node depths within 0.004 ft, the flooded volume at node 10 within 0.2 %, total inflow 6.295 acre-ft as SWMM reports; dynamic wave: flow
EPA SWMM 5 Extran manual examples 1, 2 and 7: surcharge, a flooded manhole, trapezoidal channels, a pumped lift stationMean conduit flow series within 1.7 %, 1.9 % and 1.4 % of the peaks (worst pipe 3.9 %, 4.9 % and 3.0 %); node peak depths within 0.08 ft; the flooded volume within 0.2 % of SWMM's; the same manhole (80608) floods most; steps not converging in 8 trials 4 to 5 % (SWMM's own: 3.5 to 3.8 %); Extran 6 (T
Demands from parcels against hand arithmeticA 100 by 200 ft commercial parcel at 1,500 gal/day/acre is 0.4783 gpm, its centroid is found, homes equal the area over the area per home, metric parcels convert m2 to hectares, a parcel with no shape or no use is skipped and named, a host area for a curved boundary wins, and the loads reach the nea
Scenarios side by side against EPANET 2.3.6Six scenarios read with one bad line refused by its number; closing a main gives node pressures within 0.12 psi of EPANET, a peak day of 1.5 times serves 1,650 against 1,100 and says +550, a diameter change equals a direct run, and a change to a pipe that is not there is reported rather than dropped
Control rules, valves and pump energy on EPANET Net1Four rules read back from their text and a fifth refused by line; over 24 hours the tank level is within 0.03 ft and the pump flow within 0.2 gpm of EPANET every hour, the pump stops at 140 ft (12.54 h) and starts at 110 ft (22.69 h), and pump energy and cost match EPANET's usage and kW within 0.3 p

Limits

This is a design aid, not an engineering approval: the numbers are not a certificate and a water engineer decides what they are worth. It has been tested on made-up networks against hand answers, not yet on a real utility's model, so compare it with your own before you rely on it. It does not size pumps, or reconcile with GIS. Chlorine decay is first order only, a tank is one mixed volume, a pipe cut partly by a valve is closed whole in an outage, and the day patterns and demand table are starting values. Two throttled valves in series are settled one after the other (an approximation), pressure rules are checked at step boundaries only, pump efficiency is one number a pump, and the scenarios, rules and valves you type are not saved in the project file yet. Pipe sizing is a greedy search, not a guaranteed cheapest design, and the prices are yours: none ship with the add-on. Sewer and storm (0.12) is a calculation aid like the rest: the dynamic wave follows EPA SWMM 5 closely but not exactly in a surcharged network (flow series within about 5 percent of the peak on average and up to 12 percent in the worst pipe of SWMM's Extran examples, manhole depths up to about half a foot), a pump curve on the wet-well volume depends on how the well's water surface is counted (SWMM counts the connected pipes' water surface too), and some steps of a surcharged run do not converge in eight trials. It has no water quality, snow, groundwater or LIDs, no orifices, weirs, outlets or dividers (a SWMM file that has them says so on import), no irregular sections, no Green-Ampt or curve-number infiltration and no long continuous records; the design limits and the demand per person are starting values, not a standard. Water hammer (0.12) is a calculation aid like the rest. It uses the steady-flow friction of the starting run (no unsteady friction), takes each pipe as straight between its nodes (a high point between two nodes is not seen), holds every tank and reservoir at its level, models a pump only in its normal zone behind a check valve at a constant efficiency (no reverse-flow or turbine zone), closes a check valve at zero flow with no slam, keeps a pressure-reducing valve as a fixed loss, and treats an air valve simply. Vapour pressure is modelled as discrete vapour cavities, which exaggerate the spikes after a cavity collapses and release no dissolved gas; where a pump, valve or device sits the head is only flagged. Wave speed is from the pipe material by the Korteweg formula with starting values for the material and wall (not from a standard): type your own. The closure curve you type is the valve's effective flow-area ratio. It has been checked against closed forms and exact solutions, not yet against a measured transient in a real pipeline. The live data fold is proved on made-up readings (EPA's Example Network 1 with a known leak and noise), not on a real utility's SCADA export; it finds changes against the model, not a model that is wrong by a steady amount, its leak shortlist cannot tell neighbouring junctions apart, the night-flow leak is only as good as the customer use you believe, and it reads and compares files and web addresses but writes nothing back to a control system.

Files and formats

Reads the Water mains already in the project (drawn with the tools, or opened from LandXML or EPANET-format text). Reads pasted lines of customer loads (id, x, y, kind, amount). Writes CSV tables of demands, fire flow, outages and water quality. The demands it makes are written into the Water mains as one step that Undo takes back. Reads a SCADA or historian CSV export (wide or long, any common separator, ISO or regional times, units in the heading or a column) from pasted text, a file or a web address you type, and writes CSV tables of the gaps from the model, the alarms, the night flows and the leak candidates. The readings are never changed in the file.

Get started

  1. Switch the add-on on in Settings, Add-ons, then open the WaterWorks tab. Draw your reservoir, junctions and pipes with the Water mains tools first.
  2. Paste your customer lines under Demands, press Check, then Put into the network.
  3. Press Run under Fire flow to see which hydrants fall short, and under Which main matters most to see the weak links. Run water age to find dead ends.

Languages

The text is available in:

  • Afrikaans (af)
  • Amharic (am)
  • Arabic (ar)
  • Azerbaijani (az)
  • Belarusian (be)
  • Bulgarian (bg)
  • Bengali (bn)
  • Bosnian (bs)
  • Catalan (ca)
  • Czech (cs)
  • Danish (da)
  • German (de)
  • Dhivehi (dv)
  • Greek (el)
  • English (en)
  • Spanish (Spain) (es-ES)
  • Spanish (Mexico) (es-MX)
  • Estonian (et)
  • Persian (fa)
  • Finnish (fi)
  • Filipino (fil)
  • French (fr)
  • Galician (gl)
  • Guarani (gn)
  • Hebrew (he)
  • Hindi (hi)
  • Croatian (hr)
  • Hungarian (hu)
  • Armenian (hy)
  • Indonesian (id)
  • Icelandic (is)
  • Italian (it)
  • Japanese (ja)
  • Georgian (ka)
  • Kazakh (kk)
  • Khmer (km)
  • Korean (ko)
  • Kyrgyz (ky)
  • Lao (lo)
  • Lithuanian (lt)

Works in

EditionWorksNote
Browser (/use) (yours) Added on demand Fetched the first time you use it, then kept for offline use.
Studio from getcadcraft.com Added on demand Fetched the first time you use it, then kept for offline use.
Microsoft Store Added on demand Fetched the first time you use it, then kept for offline use.
Google Play Added on demand Fetched the first time you use it, then kept for offline use.
iPad and iPhone (App Store) Included; switch it on Part of the reviewed app; your list switches it on.
Custom build Added on demand Fetched the first time you use it, then kept for offline use.

Comes with

Nothing else.

Permissions

  • Adds a panel section
  • Opens or saves its own file types
  • Adds its own objects and data to drawings

From its manifest. Shown again when an update changes them, and the update waits for your yes.

Versions

VersionChannelDateWhat changed
0.9.0stableNovember 9, 2026Signed and published.

Licence and maker

CadCraft (CadCraft, first-party). Licence: Apache-2.0. Dependencies carry their own licences, listed on their pages.