多能的海洋模拟器 纯Python 由JAX提供动力.
Versatile Ocean Simulation in Pure Python
Veros, the versatile ocean simulator, aims to be the swiss army knife of ocean modeling. It is a full-fledged primitive equation ocean model that supports anything between idealized toy models and realistic, high-resolution, global ocean simulations. And because Veros is written in pure Python, the days of struggling with complicated model setup workflows, ancient programming environments, and obscure legacy code are finally over.
In a nutshell, we want to enable high-performance ocean modelling with a clear focus on flexibility and usability.
Veros supports a NumPy backend for small-scale problems, and a high-performance JAX backend with CPU and GPU support. It is fully parallelized via MPI and supports distributed execution on any number of nodes, including multi-GPU architectures (see also our benchmarks).
The dynamical core of Veros is based on pyOM2, an ocean model with a Fortran backend and Fortran and Python frontends.
To learn more about Veros, make sure to visit our documentation.
(0.25×0.25° high-resolution model spin-up, click for better quality)
Veros provides
A minimal example to install and run Veros:
$ pip install veros
$ veros copy-setup acc --to /tmp/acc
$ veros run /tmp/acc/acc.pyFor more detailed installation instructions, have a look at our documentation.
To run Veros, you need to set up a model --- i.e., specify which settings
and model domain you want to use. This is done by subclassing the
VerosSetup base class in a setup script that is written in Python. You
should use the veros copy-setup command to copy one into your current
folder. A good place to start is the
ACC model:
$ veros copy-setup accAfter setting up your model, all you need to do is call the setup and
run methods on your setup class. The pre-implemented setups can all be
executed via veros run:
$ veros run acc.pyFor more information on using Veros, have a look at our documentation.
Contributions to Veros are always welcome, no matter if you spotted an inaccuracy in the documentation, wrote a new setup, fixed a bug, or even extended Veros' core mechanics. There are 2 ways to contribute:
If you use Veros in scientific work, please consider citing the following publication:
@article{hafner_veros_2018,
title = {Veros v0.1 – a fast and versatile ocean simulator in pure {Python}},
volume = {11},
issn = {1991-959X},
url = {https://gmd.copernicus.org/articles/11/3299/2018/},
doi = {10.5194/gmd-11-3299-2018},
number = {8},
journal = {Geoscientific Model Development},
author = {Häfner, Dion and Jacobsen, René Løwe and Eden, Carsten and Kristensen, Mads R. B. and Jochum, Markus and Nuterman, Roman and Vinter, Brian},
month = aug,
year = {2018},
pages = {3299--3312},
}Or have a look at our documentation for more publications involving Veros.
暂无开放 Issues,或尚未同步最近议题。