Equations and Discretization
This example shows a simplified implementation of the Shallow-Water equations using a spatial Rusanov scheme and a temporal Euler scheme, without friction or Coriolis force. For a complete model, see Tolosa-sw.
Equations
Section titled “Equations”The Non-linear Shallow Water equations (NSW) with conservative variables:
where
The 2D form:
The eigenvalues of the Jacobian matrix are:
Spatial Rusanov Scheme
Section titled “Spatial Rusanov Scheme”The Rusanov scheme1 computes fluxes by projecting onto the local outward normal
where
The interface wave speeds are
Recovering Cartesian fluxes:
Temporal Euler Scheme
Section titled “Temporal Euler Scheme”The Euler time discretization:
where