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
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.