Skip to content

About

Code for a realistic model of the 79° North Glacier fjord, based on GETM

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

57 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

79NG Fjord Model in GETM

This repository contains the code to create a realistic, three-dimensional, high-resolution, numerical ocean model of the 79° North Glacier (79NG) fjord located in Northeast Greenland, using the General Estuarine Transport Model GETM. The model is described and analyzed by Reinert et al. (2026); their results and figures can be reproduced with this repository. The model is based on the idealized 2D-vertical setup by Reinert et al. (2023) of the same fjord, which has been extended to 3D, equipped with realistic topography and forced by temporally-averaged ocean conditions from a global model.

Developed by Markus Reinert (ORCID: 0000-0002-3761-8029) at the Leibniz Institute for Baltic Sea Research Warnemünde (IOW) in the research project GROCE: Greenland Ice Sheet–Ocean Interaction. Feel free to reach out if you have any questions or would like to collaborate.

Instructions

1. Compile GETM

Follow the instructions on the official GETM website to download the code of GETM and GOTM, and to compile GETM into an executable for your machine. This setup requires the glacial_ice branch of GETM, published by Klingbeil (2024) at DOI: 10.5281/zenodo.17201289. Compilation consists (roughly) of running the following two commands in an (empty) build folder, with GETMDIR and GOTMDIR defined as the paths to the downloaded GETM and GOTM codes:

cmake $GETMDIR/src -DCMAKE_INSTALL_PREFIX=`pwd` -DGETM_EMBED_VERSION=ON -DGETM_USE_PARALLEL=ON -DGOTM_BASE=$GOTMDIR
make install

Put the GETM executable in the path model/bin/getm in (a clone or release of) this repository.

2. Create the setup

Note: This step can be skipped by downloading the files included in a Release.

The files to run the model exist or will be created in the model directory. At the end of this step, the directory should contain:

  • adaptcoord6.inp created by editscenario
  • bdy_2d.nc created by the notebook for boundary conditions
  • bdy_3d.nc created by the notebook for boundary conditions
  • bdyinfo.dat created by the notebook for boundary conditions
  • bin/getm compiled in step 1 above
  • getm.inp created by editscenario
  • getm_fabm.inp also created by editscenario but not needed here
  • gotmturb.nml included in this repository
  • grounding_line_500m.txt created by the notebook for topography
  • init_3d.nc created by the notebook for initial conditions
  • output.yaml included in this repository
  • parallel.inp included in this repository
  • par_setup.dat created by subdiv
  • store empty directory
  • subglacial_runoff.nc downloaded from Reinert (2023)
  • topography_500m.nc created by the notebook for topography

Input files

To create the input files, run the notebooks of this repository in the following order:

  1. Create model grid and topography
  2. Create initial conditions
  3. Create boundary conditions

The notebooks require external data files described in the notebook headers. Make sure to download the necessary datasets and put them in the correct locations.

Runoff data

Download the file subglacial_runoff.nc from the setup by Reinert (2023) and put it in the model folder.

Namelists

Use editscenario (can be installed from the Python Package Index with pip) to create the namelist files that configure GETM. Assuming that GETM was downloaded to $HOME/tools/getm/code, run the following command to create the namelists:

editscenario --schemadir $HOME/tools/getm/code/schemas -e nml model configuration.xml

To change the model configuration, modify the configuration file directly or make temporary modifications in the command line, e.g., export stop="2006-01-01 00:00:00" to limit the simulation to six model years, before running editscenario.

Subdomain division

This GETM setup is usually run on a large number of CPU cores, say 150. Use subdiv from the GETM-utils to create the file par_setup.dat describing a subdomain division suitable for the number of CPU cores available on your machine. Put this file also in the model folder.

Output folder

In the model folder, create a sub-directory with the name store to store the model output.

3. Run the model

Having compiled GETM and prepared the setup files, go to the model folder and run the GETM executable. Assuming that the parallel setup file was created for 150 CPU cores, start GETM with the following command:

mpirun -n 150 bin/getm

The model output will be saved in model/store. (The files named fjord_79NG.3d.0???.nc in this directory are not needed and can be removed.) Use ncmerge from the GETM-utils to combine the individual subdomain outputs into a big file covering the whole model domain.

References

Main publication

The following publication explains the model setup and analyzes the results. This is the primary reference to be cited when using the code or model of this repository:

  • Reinert, M., Wekerle, C., Klingbeil, K., Lorenz, M., & Burchard, H. (2026). The multilayer ocean circulation melting the 79N Glacier ice tongue. EGUsphere, 1–31. DOI: 10.5194/egusphere-2025-6459 (preprint)

Citation of this repository

The code and the model setup of this repository are archived on Zenodo to be citable. To get the DOI of a specific release/version, click on the link:

Data files

The output files produced by the model of this repository and used in the analysis notebooks are archived at:

Related publications

The following paper and setup files are for an idealized model of the same glacier fjord:

  • Reinert, M., Lorenz, M., Klingbeil, K., Büchmann, B., & Burchard, H. (2023). High-Resolution Simulations of the Plume Dynamics in an Idealized 79°N Glacier Cavity Using Adaptive Vertical Coordinates. Journal of Advances in Modeling Earth Systems. DOI: 10.1029/2023MS003721

  • Reinert, M. (2023). Setup files of the 2DV-model for the 79NG fjord (v1.0.1). Zenodo. DOI: 10.5281/zenodo.7755753 (code)

About

Code for a realistic model of the 79° North Glacier fjord, based on GETM

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages