Run time, finest grid: 2.2 s · AMD EPYC 9V74 80-Core Processor, 2 cores, 15.6 GB, Linux 6.17.0-1022-azure (GitHub Actions (github-hosted, ubuntu24))
Settings: epanet (WNTR 1.5.0, libepanet22)
Scored with method 3.0 · Score card: EPA EPANET 2.2
Does the model lose the right amount of pressure to friction?
Colebrook–White gives f = 0.01821 and a total loss of 3.094 m. EPANET uses the Swamee–Jain approximation, which is expected to sit about 0.6 % high here.
Water flows at 1 m/s through a 1 km, 300 mm pipe. Friction takes about 3.1 m of head, an amount fixed exactly by the Colebrook–White formula.
Every pipe in a water network loses head this way. Get the friction law wrong and pressures at customers' taps are wrong.
In rank order: by each model's percent difference from the right answer, the largest over the test's accuracy checks (lower is better; results within 10 % of each other share a rank). Mass error, timing and NSE are shown beside it, not folded in. Each model runs the same inputs. Compare them in the results viewer →
| Rank | Model | Difference | Largest difference in | Run time |
|---|---|---|---|---|
| 1= | EPANET 2.2 US EPA | 0.6 % | Head loss | 2.2 s |
| 1= | Hydra water distribution | 0.65 % | Head loss | 1.0 s |
Run time, finest grid: 2.2 s · AMD EPYC 9V74 80-Core Processor, 2 cores, 15.6 GB, Linux 6.17.0-1022-azure (GitHub Actions (github-hosted, ubuntu24))
Settings: epanet (WNTR 1.5.0, libepanet22)
Scored with method 3.0 · Score card: EPA EPANET 2.2
Run time, finest grid: 1.0 s · AMD EPYC 9V74 80-Core Processor, 2 cores, 15.6 GB, Linux 6.17.0-1022-azure (GitHub Actions (github-hosted, ubuntu24))
Settings: hydra CLI 4.1.1 (wds engine, EPANET-format binary output)
Scored with method 3.0 · Score card: Hydra 17.0.0 water distribution
Candidate. To become frozen it needs: maintainer review recorded.
| Check | Difference measured as a percentage of | Latest | Difference | Why this check |
|---|---|---|---|---|
| head_loss relative_head_loss of h · in the score | already a percentage | – | Exact Colebrook–White head loss within 1 %: the accuracy Swamee & Jain (1976) give for their explicit approximation over 5e3 < Re < 1e8, so a solver using any standard explicit friction formula passes and a wrong friction law or a units error fails. | |
| head_profile L2 of h · in the score | of the exact 3.09 m head loss along the pipe | – | Heads along the pipe within 5 cm of the linear exact profile: catches a correct total loss distributed wrongly. | |
| convergence not applicable | – | – | Steady closed-form pipe flow: a network solver has no grid to refine, so observed order of accuracy does not apply. |
Exact solution from references.darcy_weisbach.head_loss.
Only frozen tests have fixed inputs and answers. This list is computed from the manifest and the published score cards; the rules are in the method.
| File | Role | Format | SHA-256 | Get it |
|---|---|---|---|---|
inputs/params.json | case_parameters | json | 60886c40a737… | Download |
Steady flow from a reservoir (head 100 m) through a horizontal pipe, \(L = 1000\) m, \(D = 0.3\) m, roughness \(\varepsilon = 0.15\) mm, withdrawn at \(V = 1\) m/s. With \(\nu = 10^{-6}\) m²/s, \(Re = 3.0\times10^5\) and the Colebrook–White equation, solved to machine precision, gives \(f = 0.018210\). The exact head loss is
$$\Delta h = f\,\frac{L}{D}\,\frac{V^2}{2g} = 3.094\ \text{m},$$
and the hydraulic grade line falls linearly along the pipe.
The friction law a solver uses and how it applies it. Explicit formulas (Swamee–Jain, Haaland) are within about 1 % of Colebrook–White in this range, so they pass; a fixed friction factor, the wrong viscosity or a units error fails. EPA EPANET 2.2, which uses Swamee–Jain, comes out 0.60 % high, as theory predicts (0.65 %).
Colebrook, C. F. (1939). "Turbulent flow in pipes, with particular reference to the transition region between the smooth and rough pipe laws." J. ICE, 11(4), 133–156. Swamee, P. K., and Jain, A. K. (1976). "Explicit equations for pipe-flow problems." J. Hydraul. Div., 102(5), 657–664.
Test A1P-001_darcy_weisbach_single_pipe · version 1.0.0 · data licence analytic-public