Skip to main content

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

boreflow-0.1.2.tar.gz (10.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

boreflow-0.1.2-py2.py3-none-any.whl (16.4 kB view details)

Uploaded Python 2Python 3

File details

Details for the file boreflow-0.1.2.tar.gz.

File metadata

  • Download URL: boreflow-0.1.2.tar.gz
  • Upload date:
  • Size: 10.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for boreflow-0.1.2.tar.gz
Algorithm Hash digest
SHA256 471972eb70b1d5d4a954d3f2877643c9714a242a40bbbd2d71d5942a20ea4411
MD5 51d771d33cd5325535b4bb23a4613ea9
BLAKE2b-256 7d79e36218a68fc0a73e2b549f96d8319bb9b2a6208e51c8f290549c4e07c217

See more details on using hashes here.

Provenance

The following attestation bundles were made for boreflow-0.1.2.tar.gz:

Publisher: python-publish.yml on nielsvandervegt/boreflow

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file boreflow-0.1.2-py2.py3-none-any.whl.

File metadata

  • Download URL: boreflow-0.1.2-py2.py3-none-any.whl
  • Upload date:
  • Size: 16.4 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for boreflow-0.1.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 2119b32659a6f7ccd16b06fe7bc75dfee9831b6a6218f4d7514ef575cd1698ca
MD5 594d8134a564089ae76aac1aa66b5678
BLAKE2b-256 18408df97b5243ac215f08b6df4d24b9e7e661bb149f4045779e9a0efa8f4d47

See more details on using hashes here.

Provenance

The following attestation bundles were made for boreflow-0.1.2-py2.py3-none-any.whl:

Publisher: python-publish.yml on nielsvandervegt/boreflow

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page