Shallow Water and Geostrophic Adjustment
Below you may download a Python code solves the linear shallow water equations.
The code uses a two-dimensional Arakawa C-grid. The code may be used in its current form to demonstrate goestrophic adjustment, but could be modified for any number of uses -- Kelvin and Rossby waves for example.
A nonlinear code will be made available soon. Email me if it would be of use to you.
To see how the code runs, try it in with the 1-D and 2-D options, and with the Coriolis parameter non-zero and zero.
PDF documentation: click to download
Zipfile of code : click to download
Code: click to directly download python code
Code: click to view code