There is a newer version of the record available.

Published July 20, 2023 | Version 1.0.0
Software Open

Two-dimensional Numerical Simulations of Mixing under Ice Keels Python Code

  • 1. University of Toronto, Department of Physics, 60 St. George Street, Toronto ON M5S 1A7, Canada
  • 2. College of Earth, Ocean, and Atmospheric Sciences, Oregon State University, Corvallis, Oregon, USA
  • 3. Centre for Earth Observation Science, University of Manitoba, Winnipeg, Manitoba, Canada
  • 4. University of Toronto, Department of Physics, 60 St.\ George Street, Toronto ON M5S 1A7, Canada

Description

This deposition contains the Python code used in running two-dimensional mixing simulations of two-layered flow under the cross-section of an ice keel and processing the resultant output.

A description of the uploaded files:

  • Constants.py: Contains all parameter values like keel depth and width, stratification values, domain dimensions, specification of the spatial grid and time-stepping scheme, flow speed, etc. This file is used in nl_strat_simulation.py and  compute_diffusivitymixdepth.py.
  • nl_strat_simulation.py: The simulation code. Note that it utilizes Dedalus 2 (https://dedalus-project.org/), a spectral PDE solver, hence a proper installation of the module is required to run the code.
  • compute_diffusivitymixdepth.py: Reads in the output from the simulation and computes mixing rates (phi_d), diapycnal diffusivity values (K), and depth of mixing for each time slice (z_mix). All of these values are then stored in JSON files for further analysis.
  • arctic_regime_figure.py: Used to create a figure that depicts specific Arctic regions' locations in a Froude-number-dimensionless-keel-draft space (on average) as well as predictions as to where the averages will be in 5 to 15 years (Figure 9). This file includes all calculations and plotting code. 

Note that the Python version required to run the code is constrained by the version required to run Dedalus 2. Python 3 should be sufficient.

Files

Files (40.5 kB)

Name Size Download all
md5:46e4e1d10d0725fe6aff881864398fbe
12.9 kB Download
md5:5926802269cd0b2ae9868b50553918ff
15.2 kB Download
md5:385c82eeba61b69e57c4790e341ef8b7
1.2 kB Download
md5:7891e751a6655fde685f1630e3f75e07
11.2 kB Download