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.
Metadata
Release files for boreflow 0.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| boreflow-0.1.3.tar.gz | 10.3 kB | With provenance | Details for boreflow-0.1.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| boreflow-0.1.3-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details for boreflow-0.1.3-py2.py3-none-any.whl |
Total release size: 26.7 kB
Release files / boreflow-0.1.3.tar.gz
| Download URL | boreflow-0.1.3.tar.gz |
|---|---|
| Size | 10.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9280cca57486d68c5e4a1556fb30d5dbaf6286baa1268020ab941b07022bc43d
|
|
BLAKE2b-256 checksum How to use checksums |
2a4619e51f0cd8b36ec3d1e067637869dce52f6c80f7b576c01261602d83793c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 1, 2025.
Transparency logRelease files / boreflow-0.1.3-py2.py3-none-any.whl
| Download URL | boreflow-0.1.3-py2.py3-none-any.whl |
|---|---|
| Size | 16.4 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
18f51acc5f98feee06c80f3557ca9867b3ed824a34a0f6e19aac2ec88e96090c
|
|
BLAKE2b-256 checksum How to use checksums |
2269ab897aea307420f79f0b156fec8050724f595cc756493fd6d61e7dd34e03
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 1, 2025.
Transparency logSecurity for boreflow 0.1.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for boreflow-0.1.3.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 1, 2025.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.