Home / Manual / Verification & Validation
Verification & Validation
Verification asks whether the equations are solved right; validation, whether they are the right equations for the water being modelled. Both are recorded here, with the cases that miss.
1How it is checked
FluxCell is checked at three levels. Each GPU kernel is compared with a double-precision implementation of the same method on the processor; both are compared with exact solutions; and the fused kernel, the one HydraClims runs, is compared with published benchmark data.
The processor references carry 150 tests: exact equilibria, closed budgets, the time-step rules, every branch of the HLLC flux, convergence, exact Riemann problems, friction, sources, solid cells, every boundary type, transport, the turbulence closure, wind, Coriolis, run-time changes and seeded stress cases. On the GPU, test pages run the same cases in the browser, plus the UK Environment Agency and NTHMP benchmarks, 500 seeded stress cases, an elevation sweep and timing.
2Exactness and conservation
Each kernel runs 77 validation cases, nine of them with wind and nine with Coriolis, and all pass. A lake at rest stays exactly at rest in single precision, on beds that aren't exact in binary and behind stage and wave boundaries, because a still state carries exactly zero mass flux.
| Case, 17 × 33 cells, 1,000 steps | Largest difference from double precision | Water budget |
|---|---|---|
| Lakes, shorelines, obstacles, uniform flow | 0 | 0 |
| Rain on dry ground | 4.7 × 10⁻¹² | 9.3 × 10⁻⁹ |
| Dam break among buildings | 4.8 × 10⁻⁶ | 6.2 × 10⁻¹⁰ |
| Inflow hydrograph, 80.0000 m³ enters | 1.5 × 10⁻⁷ | 4.8 × 10⁻⁹ |
Repeated runs are bit for bit the same. So are the fused and multi-pass kernels, and batches of 1 to 256 steps. A result doesn't change when the whole ground is raised by up to 8,000 m: with the automatic datum shift every result is bit for bit the same at every offset.
3Accuracy and convergence
On smooth problems the error falls about four times each time the cells are halved: second order, as the method intends, and not more.
| Smooth problem, fused GPU kernel | Cells | Observed orders |
|---|---|---|
| Nonlinear simple wave | 32 to 256 | 2.09, 2.19, 2.16 |
| Diagonal 2D wave | 16² to 64² | 2.02, 2.14 |
| Moving equilibrium over a wavy bed | 16 to 64 | 2.42, 2.66 |
| Flow over a bump, subcritical | 100 to 800 | 2.28, 2.09, 1.98 |
| Flow over a bump, transcritical | 100 to 800 | 1.87, 1.88, 1.89 |
Against exact dam breaks the scheme's error is 0.13 to 0.15 times that of a first-order scheme. On Thacker's paraboloid, where the shoreline moves, the order falls to 1.2 to 1.5, limited by the wet and dry front, and the single-precision GPU errors equal the double-precision ones to three significant figures.
4Benchmarks against data
Runup is the measure that matters for coastal flooding, and the NTHMP benchmarks give it with acceptance criteria. The Monai Valley runup is within its criterion, with the gauge peaks within 5.3 % and their times within 0.39 s. On the conical island, case C is within at both cell sizes, and case B depends on which wave height is taken: the stated one passes, the recorded one fails at the finer grid. Optional case A fails.
The Environment Agency tests mostly have no measured truth, so they were checked through exact volumes, agreement between the stated grid and half its cell size, and the behaviour each test targets: the pond in Test 1 fills to 10.352 m against a boundary of 10.35 m, and every inflow volume is within 0.1 m³ of the exact one, out of up to 9.45 million.
5Sources, boundaries and transport
- InflowsA discharge boundary admits the exact integral of its hydrograph, and a stage equal to the lake level keeps a lake exactly at rest.
- WavesA leaving wave reflects less than 2 % of its height, an imposed wave enters within 5 %, and waves against a wall build a standing wave of 1.98 times the incident amplitude (2 expected).
- Wind and CoriolisUniform wind on a periodic domain matches the exact momentum to 8.2 × 10⁻⁹ m²/s after 1,000 GPU steps; a current follows the exact inertial circle to 1.05 × 10⁻⁷.
- Tracers and sedimentAdvection and diffusion converge at close to second order, concentrations stay in range, and settling follows the exact decay.
- EddiesKelvin–Helmholtz growth converges to within 1 % of linear theory, and an island wake sheds at a Strouhal number of 0.195 to 0.22, around the 0.19 to 0.21 of circular cylinders.
6Robustness
500 seeded random cases on the GPU, with cliffs up to 500 m, ground raised up to 8,000 m, films down to 10⁻⁹ m, speeds up to 40 m/s, every boundary type, rain, sources, friction and buildings, ran with no failure and no retry, and their water budgets closed to 2.6 × 10⁻⁷ or better. A deliberately injected fault, rejecting long steps, is rolled back and retried, and the accepted run equals a plain one bit for bit.
On real terrain, runs on 2 m lidar (the 600 m³/s breach of the 17th Street Canal on 1024² cells, and a 353,300 m³ release on El Capitan on 1536²) closed their water budgets to 3.0 × 10⁻¹⁰ or better without a retry.
7Speed
| Grid | Million cell updates a second |
|---|---|
| 256² to 1024² cells | 610–700 |
| 2048² cells, 4.2 million | 406–474 |
Measured with GPU timestamp queries on a built-in Intel GPU (xe-2lpg), shared with the desktop. The fused kernel is 3.4 to 7.4 times faster than the multi-pass second-order kernels and uses 80 bytes a cell. Each trip between the page and the GPU costs 3.5 to 4 ms, so the solver runs up to 256 steps per trip. No other GPU has been measured yet, so these are a floor for desktop cards, not a ceiling. Measure this computer.
8What it doesn't do yet
- No wave dispersionThe shallow-water equations have none, so storm waves turn into bores near the shore. On the conical island, runup on the face toward the wave is overpredicted by about 35 %. Read Grand Isle's waves as an illustration.
- Fronts and shocksThe order falls to 1.2 to 1.5 at a moving shoreline and toward one at a captured hydraulic jump.
- BoundariesOpen edges are zero-gradient, and the wave edge lets waves out without reflection only for long waves meeting it head-on.
- Steep terrainOn near-vertical faces the equations accelerate thin sheets of water unrealistically (53 m/s on El Capitan), so velocities on cliffs shouldn't be read.
- One GPU measuredSpeed and repeatability have been measured on one built-in Intel GPU so far.
- Model sizeThe workbench has been tested up to 0.8 million cells, and the solver alone up to 4.2 million. The design aims at 10 million.
- Global terrainFABDEM, Copernicus and GEM-15 can't be tied to local levels. Street-scale depths need local survey, like the lidar under the New Orleans case.
- Not tested yetSatellite and weather-model rain, and OpenTopography terrain.
9Data and references
Benchmark data: the UK Environment Agency 2D benchmark datasets (Open Government Licence v3.0), the NTHMP benchmark repository (problems 6 and 7), and the USGS 3D Elevation Program.
- Briggs, M. J., Synolakis, C. E., Harkins, G. S., & Green, D. R. (1995). Laboratory experiments of tsunami runup on a circular island. Pure and Applied Geophysics, 144, 569–593.
- Delestre, O., et al. (2013). SWASHES: A compilation of shallow water analytic solutions for hydraulic and environmental studies. International Journal for Numerical Methods in Fluids, 72(3), 269–300.
- Liu, P. L.-F., Yeh, H., & Synolakis, C. (2008). Benchmark problems. In Advanced numerical models for simulating tsunami waves and runup (pp. 223–230). World Scientific.
- Matsuyama, M., & Tanaka, H. (2001). An experimental study of the highest run-up height in the 1993 Hokkaido Nansei-Oki earthquake tsunami. Proceedings of the International Tsunami Symposium 2001, 879–889.
- Néelz, S., & Pender, G. (2013). Benchmarking the latest generation of 2D hydraulic modelling packages (Report SC120002). Environment Agency.
- Synolakis, C. E., et al. (2007). Standards, criteria, and procedures for NOAA evaluation of tsunami numerical models (NOAA Technical Memorandum OAR PMEL-135).
- Thacker, W. C. (1981). Some exact solutions to the nonlinear shallow-water wave equations. Journal of Fluid Mechanics, 107, 499–508.