This is the MITgcm simulation for the Ocean General Circulation in a rotating tank.
Based on "Insights of the non-linear solution of Munk’s ocean circulation theory from a rotating tank experiment" - Ocean and Coastal Research, 2020. (10.1590/2675-2824069.20-011psp)
A: Linear solution. B: Nonlinear solution.- Follow the Getting Started section on MITgcm documentation to set up the model.
- Clone this experiment to the MITgcm folder (you can also download the repository and extract it to MITgcm folder.)
- Create the
build
andrun
folders insideocean_gyre_tank
. - Go to
build
and compile the model withmpi
(see the MITgcm documentation). - Copy the executable
mitgcmuv
to therun
folder. - Create a symbolic link to the files in
input
forrun
folder.
In notebooks
there is a file called Init.ipynb
that creates the bathymetry and wind forcing.
The data will be saved to input
folder. You may have to change the grid spacing in input/data
or number of points in code/SIZE.h
if you change the code on the notebooks.
The file data
in input
folder has all the parameters needed for the experiment.
You can change to the linear case setting .FALSE.
for momAdvection
.
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
folder.
The notebook notebooks/Analysis.ipynb
its a tutorial that explains how to read and plot the output from this experiment.