Examples¶
We have a few examples of how one can use the Shallow water equations to generate some simulations under different parameter regimes.
Linear Shallow Water Model¶
In this example, we look at the linearized shallow water model given by:
∂th∂tu∂tv+H(∂xu+∂yv)=0−fv=−g∂xh−κu+fu=−g∂yh−κv We demonstrate how we can use this for generating a simulation with idealistic Kelvin waves that move around the boundary and an idealistic jet across the East-West extent.
NonLinear Shallow Water Model¶
In this example, we look at the nonlinear shallow water model given by:
Height:Zonal Velocity:Meridonal Velocity:∂th+∂x(hu)+∂y(hv)∂tu+u∂xu+v∂yu−fv∂tv+u∂xv+v∂yv+fu=0=−g∂x(h+ηB)+Fx+Bx+Mx+ξx=−g∂y(h+ηB)+Fy+By+My+ξy We demonstrate how we can use this for generating a simulation with an idealistic jet across the East-West extent.
We can also write the shallow water equation as
Height:Zonal Velocity:Meridonal Velocity:∂th∂tu∂tv=−∂x(hu)−∂y(hv)=0=qhv−∂xp+Fx+Mx+Bx+ξx=−qhu−∂yp+Fy+My+By+ξy which is the vector invariant formulation that uses vorticity.
We also showcase how we can use this formulation for the same parameter regime but with slightly different end results due to numerical computation differences.