SW2D solves the 2D shallow water equations:
where (resp. and ) is the time (resp. space), the gravitational acceleration, represents the water depth, (resp. ) the unit-discharge in the (resp. ) direction, (resp. ) the bottom slope in the (resp. ) direction and (resp. ) the friction slope in the (resp. ) direction estimated using the classical Strickler formulation:
The shallow water equations are discretized using a finite volume approach:
The fluxes and the source terms are estimated using an explicit method. The fluxes through the interfaces are estimated using the HLL/HLLC Riemann solver.