Python package to simulate the flow of overtopping and bores.
Project description
BoreFlow
The Python package BoreFlow provides a simple numerical model using Steep-Slope Shallow Water Equations to describe the flow of overtopping waves and bores.
This Python package is developed as part of the Ph.D. research of Niels van der Vegt and is published under the GNU GPL-3 license.
Getting started
To download the package run pip install boreflow
import numpy as np
from boreflow import BCArray, Geometry, Simulation
# 1) Create geometry
geometry = Geometry([0, 2, 11], [3, 3, 0], [0.0175, 0.0175])
# 2) Create boundary conditions
t = np.array([0, 1, 5])
h = np.array([0.5, 0.8, 0])
u = np.array([1.0, 2.0, 0])
bc = BCArray(t, h, u)
# 3) Initialize simulation settings
sim = Simulation(t_end=10.0, cfl=0.2, max_dt=0.01, nx=110)
# 4) Run the simulation
results = sim.run(geometry, bc)
# 5) Analyse the flow, e.g. at s=10m
res_t, res_h, res_u = results.get_st(s=10.0)
Acknowledgements
The authors would like to thank the researchers who have conducted studies on overtopping flow. All studies are referenced in the code of the respective boundary condition implementations. Furthermore, we acknowledge the publication by Maranzoni and Tomirotti (2022) for their publication regarding the Steep-Slope Shallow Water Equations.
This work is part of the Perspectief research programme Future Flood Risk Management Technologies for Rivers and Coasts with project number P21-23. This programme is financed by Domain Applied and Engineering Sciences of the Dutch Research Council (NWO).
HKV Lijn in Water is acknowledged for their Python package template, which is used to publish this package.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file boreflow-0.1.1.tar.gz.
File metadata
- Download URL: boreflow-0.1.1.tar.gz
- Upload date:
- Size: 10.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3e50e9714a0d80be1637e55ac9aefa88f65225a78679d2fd7f99cba7ebf9e0d4
|
|
| MD5 |
fbd7da8d557f787e39ea29a6c920e669
|
|
| BLAKE2b-256 |
2c78c88c69ff025232a9de6bc3300d693bf152583b798c471dfcfdc3b3df2b04
|
Provenance
The following attestation bundles were made for boreflow-0.1.1.tar.gz:
Publisher:
python-publish.yml on nielsvandervegt/boreflow
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
boreflow-0.1.1.tar.gz -
Subject digest:
3e50e9714a0d80be1637e55ac9aefa88f65225a78679d2fd7f99cba7ebf9e0d4 - Sigstore transparency entry: 271510430
- Sigstore integration time:
-
Permalink:
nielsvandervegt/boreflow@645d021af738228c2d3d73dcb12be5013b461c52 -
Branch / Tag:
refs/tags/0.1.1 - Owner: https://github.com/nielsvandervegt
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@645d021af738228c2d3d73dcb12be5013b461c52 -
Trigger Event:
release
-
Statement type:
File details
Details for the file boreflow-0.1.1-py2.py3-none-any.whl.
File metadata
- Download URL: boreflow-0.1.1-py2.py3-none-any.whl
- Upload date:
- Size: 16.0 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9c78b2732ebf1ee0d91024945faa839f9bb74e3107315f472d76481b557e888a
|
|
| MD5 |
3a421b56699962dea422847a8223c708
|
|
| BLAKE2b-256 |
f34f50de68e0890484c5ecc582a8ad6a156660fcd0964054060424e95ca41c33
|
Provenance
The following attestation bundles were made for boreflow-0.1.1-py2.py3-none-any.whl:
Publisher:
python-publish.yml on nielsvandervegt/boreflow
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
boreflow-0.1.1-py2.py3-none-any.whl -
Subject digest:
9c78b2732ebf1ee0d91024945faa839f9bb74e3107315f472d76481b557e888a - Sigstore transparency entry: 271510444
- Sigstore integration time:
-
Permalink:
nielsvandervegt/boreflow@645d021af738228c2d3d73dcb12be5013b461c52 -
Branch / Tag:
refs/tags/0.1.1 - Owner: https://github.com/nielsvandervegt
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@645d021af738228c2d3d73dcb12be5013b461c52 -
Trigger Event:
release
-
Statement type: