Mountain Waves


Here is a code to calculate 2D flow (x-z) over a mountain ridge, producing figures similar to those in section 7.7 of the AOFD book. The code calculates the steady solution numerically (using FFTs etc) and will run as is to produce an output of hydrostatic flow over a ridge. The code can then easily be modified for nonhydrostatic parameters over a thin or wide ridge, The code is in Matlab. A nice exercise would be to provide a Python version, and if you do that please send it to me.

Sample PDF output. For more plots, click here

Download the code.

View the code.