Skip to content
All work

Fluid dynamics / numerical methods

Shallow Water Lab

Lift a gate between two water levels. Watch the upstream water fan out and measure the shock moving downstream.

Open the flume
Water depth down the channel and a space-time diagram of the gate release
Water depth and velocity in a straight, level flume. The analytical solution gives a reference for the numerical result.

Follow the front

Change the initial water depths, move the time cursor and sample the velocity at a gauge. The model evolves depth and discharge in one spatial dimension.

Measure the error

With 2.4 metres of water upstream and 0.6 metres downstream, the exact shock travels about 4.56 m/s. At four seconds the mean absolute depth error fell from 28.1 mm with 120 cells to 6.24 mm with 960 cells. The comparison covers this idealized wet-bed problem.

Inspect the implementation