Rate the error shrinks on finer grids: 1.5 (90 % range 1.3 to 1.8); the method's expected rate is 1.6 or more
Scored with method 3.0 · Score card: demo
Does the model carry and spread a pollutant correctly?
A tracer is released continuously into steady flow. After an hour its front has moved 360 m and smeared out by dispersion, following an exact formula.
Contamination warnings, chlorine decay and sewer water quality all depend on getting both the travel and the spreading right.
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 on 4 grids, from 4 m down to 0.5 m cells; the checks are scored on the 0.5 m grid, and each card lists the error on every grid. Compare them in the results viewer →
| Rank | Model | Difference | Largest difference in | Mass error | Run time |
|---|---|---|---|---|---|
| 1 | Demo 1D suite example | 0.045 % | Concentration profile | <0.01 % | – |
| 2 | EPANET 2.2 US EPA | 1.9 % | Concentration profile | 0.028 % | 0.56 s |
Rate the error shrinks on finer grids: 1.5 (90 % range 1.3 to 1.8); the method's expected rate is 1.6 or more
Scored with method 3.0 · Score card: demo
Rate the error shrinks on finer grids: -0.0043 (90 % range -0.0087 to 0.0002); the method's expected rate is 1.6 or more
Run time, finest grid: 0.56 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); water quality, Lagrangian advection (no dispersion)
Scored with method 3.0 · Score card: EPA EPANET 2.2
Average error on each grid. A steeper line means the model converges faster.
Candidate. To become frozen it needs: maintainer review recorded.
| Check | Difference measured as a percentage of | Latest | Difference | Why this check |
|---|---|---|---|---|
| concentration_L1 L1 of c · in the score | already a percentage | – | Concentration L1 error within 2 % of the L1 norm of the Ogata–Banks profile on the finest grid. The front is 8.5 m wide (2√(Dt)) and moves 360 m, so a scheme with numerical diffusion comparable to D (first-order upwind at u·dx/2 = 0.025 m²/s, 2.5×D) visibly smears it and fails. | |
| mass global_mass_error of c · conservation, beside the score | already a percentage | – | Tracer mass in the domain within 0.5 % of the exact integral: a conservative scheme meets it to quadrature error. | |
| convergence observed order of L1 error in c · reported, not counted | the design order, 2 | – | Measured from the error on every refinement level, as in ASME V&V 20. |
Exact solution from references.ogata_banks.concentration.
Exact profile every 15 min; dots are the demo solver (MUSCL advection, central diffusion) on its finest grid, around the front at 1 h.
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 | 94ed23813123… | Download |
A tracer enters a uniform flow \(u = 0.1\) m/s at \(x = 0\) with \(c = c_0\) from \(t = 0\); dispersion \(D = 0.01\) m²/s. Ogata & Banks (1961) give
$$\frac{c}{c_0} = \tfrac12\left[\operatorname{erfc}\frac{x-ut}{2\sqrt{Dt}} + e^{ux/D}\operatorname{erfc}\frac{x+ut}{2\sqrt{Dt}}\right].$$
After one hour the front is at 360 m and about 8.5 m wide.
Advection without excess numerical diffusion. A first-order upwind scheme adds \(u\,\Delta x/2\), already 2.5 × \(D\) on a 0.5 m grid, and smears the front; a second-order TVD scheme should converge at order 2 on this smooth, monotone profile (minimum 1.6). The demo solver (MUSCL with van Leer limiter, central diffusion, SSP-RK2) reaches 1.67 across the four grids: its coarsest grid is half the front width, so the asymptotic order of 2 only shows on the finer pairs (1.8).
Ogata, A., and Banks, R. B. (1961). A Solution of the Differential Equation of Longitudinal Dispersion in Porous Media. USGS Professional Paper 411-A.
Test A1P-030_advection_dispersion_tracer · version 1.0.0 · data licence analytic-public