The reference vessel design on the 12 km main keeps the line at +4.33 m against a +3.0 m criterion: a pass, with 1.33 m to spare. That single run assumes one wave speed, one friction, one gas volume, one gas law and one flow. Move each within a plausible range and the minimum runs from +0.29 to +8.45 m on the gas law alone. Sample all seven together, 300 times, and 31 % of the combinations fail the criterion, while the maximum reaches 143 m in the worst of them, above the 136 m limit. This article shows how to find which inputs matter, how to bound the result, and how to turn a single number into a design that survives its own uncertainty.
1 · One run is one point in a cloud
Every input to a surge model carries an uncertainty, and some carry a lot [1][2]:
- Wave speed: ±10 % is common for a buried main before it is measured (see wave speed).
- Friction: new pipe against pipe after years of service; ±15 % on the head loss at duty.
- Vessel gas volume: the level control holds it within a band, typically ±10 % (see pre-charge pressure).
- Gas law exponent: between isothermal (1.0) and adiabatic (1.4); 1.2 is a convention, not a measurement.
- Connection loss: ±30 % on the loss coefficients of the vessel connection and its orifice.
- Flow: ±10 % on the duty, for operating points and future demand.
- Delivery level: ±3 m on the reservoir HGL.
The base case is the vessel design of the surge series: 3.5 m³ of gas, a DN400 connection with a differential orifice (loss coefficients 2 out and 10 in), on the 12 km DN800 ductile iron main at 0.70 m³/s, with the pump modelled as stopping at once [3]. Every run below is a full transient run of the trip, 150 s, with the same solver.
2 · One at a time: the tornado
The first step is to move each input to the ends of its range with everything else at base, and see how far the result moves. Sorted by size, the bars form a tornado [2][4].
For the minimum, the gas law exponent dominates: +8.45 m isothermal, +0.29 m adiabatic. Flow (+5.67 to +2.26 m) and the gas volume tolerance (+2.68 to +5.64 m) follow. Wave speed barely matters (+3.93 to +4.42 m): the vessel works on the mass oscillation, not on the water hammer wave. For the maximum the order changes: the gas law and friction lead, each moving the peak by about 16 m. One tornado per limit is needed.
3 · Shape, not only span
A tornado shows the ends of each range. Sweeping an input across its range shows whether the response is linear, whether it has a threshold, and where the criterion is crossed.
The gas law exponent moves the minimum steeply: from about 1.25 upwards the reference design falls below +3.0 m. Gas volume is close to linear, about 0.15 m of minimum for every 1 % of gas, flattening at the top of the range. Friction works the other way from intuition: more friction damps the oscillation and raises the minimum. Lower the criterion to −3 m (only where the project specification and the manufacturers' ratings allow it) and every input passes across its whole range.
4 · All together: sampling the cloud
Inputs do not wait for each other to be unfavourable. We drew 300 combinations, each input uniform within its range and independent of the others, and ran the trip for each [4][5]. Uniform sampling is deliberately plain: it says only that every value in the range is plausible, which is usually all a designer can defend.
The median of the 300 runs (+4.56 m) is close to the base case, but 31 % of them fall below +3.0 m, the 5th percentile is −0.43 m and the lowest is −2.91 m. At the top, 5 % of the runs exceed 129.8 m and the worst reaches 143.4 m, above the 136 m limit. The single run said “pass with 1.3 m to spare”; the cloud says the design passes in about two systems out of three.
5 · From a range to a robust design
Two ways to design for the cloud are common [2][5]:
- The corner case. Run every input at its unfavourable end together. On this main that is the high wave speed, high friction, low gas, adiabatic gas, high connection loss, high flow and low delivery level, and it gives −4.85 m. A vessel sized so that even this corner meets +3.0 m needs 5.30 m³ of gas instead of 3.5, which at the nominal inputs gives +8.84 m. Corners are conservative, because all the inputs are rarely unfavourable at once, but they are simple and defensible.
- A percentile. Choose the design so that, say, 95 % of sampled systems meet the criterion. It is less conservative and needs the sampling to be repeated for each candidate size.
Whichever is used, the inputs that dominate the tornado are where effort pays: here, specify the vessel's gas volume band tightly, justify the gas law with the expected rate of compression, and confirm the design flow range. Measuring the wave speed (see field validation) would barely change this answer, because the vessel works on the mass oscillation; on an unprotected main or one protected by air valves, the order would be different.
| Basis | Lowest head (m) | Highest head (m) | Verdict at +3.0 m / 136 m |
|---|---|---|---|
| Single base run | +4.33 | 119.2 | passes |
| 300 sampled runs, 5th / 95th percentile | −0.43 | 129.8 | fails 31 % of the time |
| Corner case, 3.5 m³ of gas | −4.85 | 118.0 | fails |
| Corner case, 5.30 m³ of gas | +3.00 | 101.0 | passes |
6 · What to vary, and what not to
Not everything in a model is uncertain in the same way, and treating every input alike blurs the answer [1][2].
- Physical uncertainties (wave speed, friction, inertia, gas law) belong in the ranges. Their bounds come from data, tests or the literature.
- Operating states (flow, number of pumps, reservoir levels) are not uncertain at all: each is a separate scenario that the design must pass, not a range to be averaged over. We include them in the sampling only to see their weight, and design for each one explicitly.
- Design choices (the criterion, the vessel size, the orifice ratio) are what the analysis is meant to fix. They are never sampled.
- Model choices (the cavity model, the time step) are checked separately, as in Is your HAMMER run right?, and their effect reported alongside the range.
- Correlated inputs should move together. Friction and the operating flow are linked through the pump curve; the gas volume and its pressure through the level control. Sampling them independently can create combinations that cannot happen.
The ranges in this article are illustrative. On a project, write each one down with its source in the assumptions register (see The surge study report), and check the minimum used against the allowable values in the project specification and the manufacturers’ ratings.
7 · Reporting a range
A surge report that gives one number for each limit implies a precision the model does not have. We report:
- the base result, the inputs behind it, and the ranges assumed for each input with their source;
- the tornado for each limit, so a reviewer can see which inputs matter;
- the corner case or the percentile used for the design, and the margin it leaves;
- the inputs that should be pinned down by specification or test, because they dominate.
The structure is in The surge study report.
8 · Running it in Bentley HAMMER
Field names differ slightly between versions [6].
- Create one alternative per uncertain input (physical properties for wave speed and friction, initial settings for flows and levels, the hydropneumatic tank's gas volume and gas law exponent, the connection's loss coefficients), each with a low and a high version.
- Create a scenario for each low and high, changing only that input, and use Batch Run to compute them together.
- Tabulate the envelope extremes of each scenario from the results tables, and build the tornado from them.
- Build the corner scenario by combining the unfavourable alternatives.
- For sampling, script the inputs (HAMMER's programming interfaces, or export, edit and re-import the input) and collect the extremes; or sample a reduced set of inputs that the tornado shows to matter.
- Size the protection on the chosen basis, then rerun the base and the corner with the final size.
9 · Checklist
- Range set for every uncertain input, with its source.
- Tornado for the minimum and for the maximum, sorted by span.
- Sweeps for the dominant inputs, looking for thresholds.
- Combined uncertainty: corner case or sampled percentile, stated.
- Design sized on that basis, with the margin reported.
- Dominant inputs pinned down by specification, test or operating rule.
- Is your HAMMER run right? Time step, adjustment and run duration
- Validating a surge model with a field pump-trip test
- Sensitivity and uncertainty: bounding the result
- Pump data for a pump trip: inertia, specific speed and four-quadrant curves
- Demands, branches and dead ends in a transient model
- Reading the surge envelope against the pipe's real limits
- Transient forces on pipe supports and bends
- Booster stations in series
- Pump starts, controlled stops and drive ramps
- Filling, draining and restarting a transmission main
- Surge in wastewater force mains
- The surge study report: what to deliver and what a reviewer checks
References & standards
- Boulos, P.F., Karney, B.W., Wood, D.J. & Lingireddy, S. “Hydraulic transient guidelines for protecting water distribution systems.” Journal AWWA, 97(5), 2005: uncertain inputs in transient analysis and the need for sensitivity runs.
- Thorley, A.R.D. Fluid Transients in Pipeline Systems, 2nd ed. Professional Engineering Publishing, 2004: the influence of wave speed, friction, gas law and pump data on surge results.
- Abokhatwa, M. Surge protection design series, abokhatwa.com, 2026: the reference main, its vessel design and the verified MOC solver.
- Saltelli, A. et al. Global Sensitivity Analysis: The Primer. Wiley, 2008: one-at-a-time and sampling-based sensitivity methods.
- Wylie, E.B. & Streeter, V.L. Fluid Transients in Systems. Prentice Hall, 1993: the transient model and the gas law of a hydropneumatic vessel.
- Bentley Systems. OpenFlows HAMMER documentation: alternatives, scenarios, batch run and results tables.