Abstract
Omnizyro Flow solves the two-dimensional shallow-water equations over a city surface on a single GPU and exchanges water with a one-dimensional drain network at every inlet. This note describes the numerical scheme, why we chose it for dense urban grids, how the kernels are written in NVIDIA Warp, and how we will evaluate the solver against analytic cases and published benchmark tests. Results will be published after evaluation.
Problem
Urban pluvial flooding is controlled by small features: a kerb, a boundary wall, a road crown, a single inlet. To represent them the grid must be fine, typically one to two metres, which turns a modest city district into tens of millions of cells. The equations must also handle cells that are dry one minute and wet the next, steep changes in ground level at building edges, and water that leaves the street through a drain and returns somewhere else. Many established packages either coarsen the grid until runs finish overnight, or treat the drain network and the surface as separate models that are coupled loosely. Neither is good enough for a planner who wants to compare options within a working day.
Method
We use a cell-centred finite-volume discretisation of the shallow-water equations on a regular Cartesian grid aligned with the terrain raster. Fluxes between cells are computed with an HLL-type approximate Riemann solver. To keep still water still over uneven ground, a property often called well-balancing, we use hydrostatic reconstruction of the water surface at each cell face, following the approach described in the literature on well-balanced schemes. Wetting and drying are handled by a small depth threshold below which a cell carries no momentum, with fluxes limited so that a cell cannot be emptied below zero in one step.
Buildings are represented as solid obstacles burned into the grid by Omnizyro Mesh rather than as raised ground, so water flows around them. Surface friction uses a Manning formulation with roughness taken from the land-cover segmentation, applied semi-implicitly for stability in very shallow flow. The time step follows the Courant condition computed from the fastest wave speed in the domain each step, found with a parallel reduction.
Drain coupling works through inlets. At each inlet cell the solver computes an exchange flow from the difference between the surface water level and the hydraulic head in the connected drain node, using weir and orifice equations depending on submergence. The drain network itself is solved with a simplified dynamic-wave method on the graph prepared by Omnizyro Drain. When a node surcharges, water returns to the surface through the same inlet. Both sides record every exchange so the combined mass balance can be checked.
GPU implementation
Kernels are written in NVIDIA Warp, a Python framework that compiles kernels to CUDA. One thread updates one cell. Grid state is stored as separate arrays for depth and the two momentum components to keep memory access coalesced. Flux computation and state update are separate kernels so that no cell reads a neighbour that has already been overwritten. The drain graph is small compared with the surface, so its update runs as a short kernel over nodes and links each step. Output is written asynchronously at chosen intervals so the solver does not wait on storage. Writing the solver in Warp keeps one source for a workstation RTX card and a data-centre GPU, and lets engineers read the physics in Python rather than in raw CUDA.
Evaluation design
We will evaluate in three layers. First, analytic cases with known answers: still water over a bumpy bed, which must stay still; one-dimensional dam break over wet and dry beds; and a parabolic bowl with an oscillating free surface. Second, the published benchmark tests for two-dimensional hydraulic models issued by the Environment Agency for England, which include urban flooding from a point source and from rainfall over a real street layout; we will report differences against the published reference results. Third, for design partners, comparison with recorded flood marks and photographs from past events in their catchment.
Metrics: maximum depth error at reference points, timing error of peak depth, wet-area agreement measured with a critical success index, mass-balance error over the run, and wall-clock time per simulated hour on named GPUs. Every number will state the GPU, grid size and resolution used.
Risks and limits
Results are only as good as the survey and drain data. A blocked inlet or an unrecorded wall can change the answer more than any numerical choice. The simplified drain model will not capture every hydraulic structure, such as complex pumping rules. Very steep flows and supercritical jumps at fine resolution can force small time steps. We will publish where the solver disagrees with the benchmarks, not only where it agrees.
Next steps
Finish drain coupling tests, run the full analytic suite and the Environment Agency benchmarks, then publish results with hardware details. After that, domain decomposition across several GPUs for city-scale grids.
References
- A fast and stable well-balanced scheme with hydrostatic reconstruction for shallow water flows
- A simple inertial formulation of the shallow water equations for efficient two-dimensional flood inundation modelling
- Benchmarking the latest generation of 2D hydraulic modelling packages (Environment Agency)
- Storm Water Management Model Reference Manual, Volume II: Hydraulics
- Warp: a high-performance Python framework for GPU simulation and graphics