Skip to content

Chris-Pedersen/torch_qg

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

130 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

torch_qg

pyqg simulation animation

Modelling of a 2 layer quasi-geostrophic system in PyTorch. We use PyTorch 2.0.0. This repo is based on pyqg, with a few changes. We implement all components of the numerical scheme in PyTorch, such that the simulation is end-to-end differentiable. Additionally, whilst pyqg uses a pseudo-spectral method to evolve the system forward in time, we include a real-space time-stepper, with an Arakawa advection scheme.

Core dependencies can be found in tests/requirements.txt. After git cloning the repo, install by running

pip install .

or to run in editable mode, run

pip install -e .

About

Modelling of a 2 layer QG system in torch

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors