This is the MITgcm simulation of a flow over a gaussian bump based on exp2 from MITgcm documentation.
This is part of a mentoring that I am giving to the BSME student Alan Andonian from prof. Amit Tandon's laboratory (UMassD). I created this repository to organize the numerical experiments I am running for him to analyze.
The main idea is to familiarize him to basic Geophysical Fluid Dynamics problems and Python programming. And, of course, give him an opportunity to learn more about control version on GitHub. One of the first problems is the Taylor-Proudman Theorem. This experiment is perfect to understand this theorem, as even being 400m above the top of the gaussian bump, the flow cannot "jump it", which results into a Taylor column above the bump.
The same does not happen to an stratified fluid, in which thermal-wind balance allows vertical shear.
I also believe that this repository can help other students that are beginning to setup and run their own numerical simulations using MITgcm.
- Follow the Getting Started section on MITgcm documentation to set up the model;
- Clone this experiment to the
MITgcm/exp
folder (you can also download the repository and extract it to MITgcm folder.); - Configure
compile.sh
for the designatedoptfile
; - Run
compile.sh
. If everything is correctly configured, you will have themitgcmuv
executable insiderun_<experiment>
folders; - Create a symbolic link for the files in
input
andinput_<experiment>
torun_<experiment>
folder. - Run the executable
mitgcmuv
insiderun_<experiment>
folder (You can base your submit file onsubmit.lsf
).
The current configuration on code/SIZE.h
works in parallel using 4 cores (see Documentation to learn how to set up for a different number of cores).
If the experiment is already configured you just have to run mpirun -np 4 ./mitgcmuv
in run_<experiment>
folder.
If you are using a supercomputer, check with support how to setup a batch script for your experiment.
In notebooks
there is a file called 00-Init.ipynb
that creates the initial conditions
The data will be saved to input
folder. You may have to change the grid spacing in input_<experiment>/data
or number of points in code/SIZE.h
if you change the code in the notebooks.
We define the Barotropic velocity from the free surface using the geostrophic balance :
We defined three options for the initial mass field: homogeneous (N0), constant stratification (NC) and with a thermocline defined by a tanh
(NZ).
The notebook notebooks/01-Analysis.ipynb
its a tutorial that explains how to read and plot the output from this experiment.