Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dionhaefner/shallow-water
Powerful shallow-water implementations in pure Python
https://github.com/dionhaefner/shallow-water
Last synced: 1 day ago
JSON representation
Powerful shallow-water implementations in pure Python
- Host: GitHub
- URL: https://github.com/dionhaefner/shallow-water
- Owner: dionhaefner
- Created: 2020-02-13T09:07:37.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-08-17T09:03:08.000Z (about 1 year ago)
- Last Synced: 2024-06-11T16:39:20.814Z (4 months ago)
- Language: Python
- Homepage:
- Size: 7.46 MB
- Stars: 10
- Watchers: 3
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Shallow-water modelling in Python
This repository contains two implementations of the shallow-water equations that are suitable to study a wide range of wave and ocean circulation phenomena, including non-linear effects.
They are a product of the [Bornö summer school 2018](https://nbiocean.bitbucket.io/bornoe2018b/), led by [Markus Jochum](https://www.nbi.ku.dk/english/staff/?pure=en/persons/437464) and [Carsten Eden](https://www.ifm.uni-hamburg.de/en/institute/staff/eden.html).
A preview of the non-linear setup:
![Nonlinear model spin-up](preview.gif?raw=true)
## Features
### Simple (linear) implementation
- Mass conserving on (Cartesian) Arakawa C-grid
- Mixed-time discretization
- Coriolis force on an f-plane
- Conditionally stable for `Δt <= √2 / f`### Fully non-linear implementation
All features of the simple implementation, plus...
- Adams-Bashforth time stepping scheme
- Lateral friction
- Varying Coriolis parameter (β-plane)
- Fully non-linear momentum and continuity equations
- Energy conserving scheme by Sadourny (1975)
- Rigid or periodic boundary conditions## Problems?
Feel free to [open an issue](https://github.com/dionhaefner/shallow-water/issues) or [submit a PR](https://github.com/dionhaefner/shallow-water/pulls)!