Skip to content

Marshall Molteni QG3 Quasigeostrophic Atmospheric Model in Julia, GPU and AD enabled

License

Notifications You must be signed in to change notification settings

maximilian-gelbrecht/QG3.jl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

QG3 Logo

QG3.jl

Dev Build Status

This package provides a Julia implementation of the Marshall, Molteni Quasigeostrophic Atmsopheric Model in three layers. It runs on CPU or CUDA GPUs and is differentiable via Zygote.jl.

The model is solved with a pseudo-spectral approach on a gaussian grid with approatiate spherical harmonics transforms defined. Example scripts are provided in the examples folder.

Install e.g. via ]add https://github.com/maximilian-gelbrecht/QG3.jl.git and test the installation with ]test QG3

The repository includes pre-computed forcing and initial conditions on a T21 to run the model but no proper dataset to re-compute those in order to save space. The example folder also includes the necessary scripts to pre-compute those for other grids and datasets.

The Model

Details about the model can be read up in "Towards a Dynamical Understanding of Planetary-Scale Flow Regimes", Marshall, Molteni, Journal of Atmsopheric Sciences, 1993

Its governing equation for the quasigeostrophic vorticity $q_i$ in three equipressure levels (200, 500, 800 hPa) are given be

$$\dot{q_i} = -J(\psi_i, q_i) - D(\psi_i, q_i) + S \\\ \vec{q} = T_{\psi q} \vec{\psi}$$

where the voriticy $q$ and streamfunction $\psi$ are related by a linear operator (comprising the Laplacian and temperature relaxation), $J$ is the Jacobian / advection term, $D$ the dissipation and $S$ a forcing computed from data.

Currently there are two different implementations, one that is optimised for CPU (the "2D version") and one that is optimised for GPU (the "3D version"). The GPU version can also run on CPU, albeit a bit slower, but not the other way around. Further explainations in the documentation.

Cite us

If you are using this model for any publications or other works, please cite us.

  • ZENODO and ARXIV link upcoming (please get in touch with us) -

About

Marshall Molteni QG3 Quasigeostrophic Atmospheric Model in Julia, GPU and AD enabled

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published