iuryt/ocean_gyre_tank
MITgcm simulation of an ocean gyre in a rotating tank.
Ocean Gyre in a Tank (Numerical Experiment)
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.How to set up the experiment
- 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
buildandrunfolders insideocean_gyre_tank. - Go to
buildand compile the model withmpi(see the MITgcm documentation). - Copy the executable
mitgcmuvto therunfolder. - Create a symbolic link to the files in
inputforrunfolder.
How to generate the initial conditions and forcing
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.
How to configure the experiment
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.
How to run the experiment
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.
How to read the data from the output
The notebook notebooks/Analysis.ipynb its a tutorial that explains how to read and plot the output from this experiment.
