Skip to main content

Surrogate-assisted Bayesian calibration for hydrodynamic and morphodynamic models (Telemac, OpenFOAM).

Project description

HydroBayesCal

Surrogate-assisted Bayesian calibration for computationally expensive hydro- and morphodynamic models.

Documentation License: BSD-3-Clause

HydroBayesCal calibrates expensive numerical models without running them thousands of times. It trains a Gaussian Process Emulator (GPE) as a fast surrogate from a small set of strategically sampled simulations, then refines it with Bayesian Active Learning (BAL) — iteratively adding the training points that maximise the information gain (relative entropy) and Bayesian model evidence for the calibration. Single- and multi-output GPEs are supported.

The package couples to open-source modelling software through a common binding layer:

  • TELEMAC (2D/3D) — fully supported
  • OpenFOAM (interFoam) — binding under active development

Experimental design and parameter sampling are delegated to BayesValidRox; the GP emulators and the Bayesian active-learning logic are implemented in-tree.

Installation

HydroBayesCal targets Python 3.10–3.11 (the upper bound is imposed by the bayesvalidrox dependency). It is developed and tested on Linux.

pip install hydroBayesCal

or, for a development/editable install from a clone:

git clone https://github.com/sschwindt/hydrobayescal.git
cd hydrobayescal
pip install -e ".[dev,docs,mesh]"

A calibration additionally requires a working installation of the numerical solver (e.g. TELEMAC) on the system. See the installation guide for the full environment setup, including coupling HydroBayesCal with TELEMAC.

Quick start

Configure a calibration in a Python config file and run the TELEMAC driver:

python bal_telemac.py --config config.py

See the documentation for the end-to-end workflow, the configuration parameters, the code architecture, and worked examples.

Citing / scientific background

HydroBayesCal builds on the Bayesian active-learning framework of Oladyshkin et al. (2020) and on Gaussian-process regression (Rasmussen & Williams, 2006). Its application to reservoir sedimentation and 3D reservoir hydrodynamics is documented in Mouris et al. (2023) and Schwindt et al. (2023). Full references with DOIs are on the references page.

License

Distributed under the BSD 3-Clause License. See LICENSE.

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

hydrobayescal-0.1.0.tar.gz (145.3 kB view details)

Uploaded Source

Built Distribution

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

hydrobayescal-0.1.0-py3-none-any.whl (155.5 kB view details)

Uploaded Python 3

File details

Details for the file hydrobayescal-0.1.0.tar.gz.

File metadata

  • Download URL: hydrobayescal-0.1.0.tar.gz
  • Upload date:
  • Size: 145.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.15

File hashes

Hashes for hydrobayescal-0.1.0.tar.gz
Algorithm Hash digest
SHA256 6bd301db609370d4d2e36d96cad73e37e7e2726c39c9d529792f61edf74867e6
MD5 64d38c995d48d00cee00bf08ea628db4
BLAKE2b-256 c28aa7f59804f44fab733b1b9b171829b5beec637150c43d308d0d97554222e9

See more details on using hashes here.

File details

Details for the file hydrobayescal-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: hydrobayescal-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 155.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.15

File hashes

Hashes for hydrobayescal-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 dcad4e0198ed5eb320ce31b98e638308885cf32a136c072087427043eb2abe23
MD5 3fc2ee6dc76a890b9993844391ecb670
BLAKE2b-256 0e44d9d348dfe4a434056890daaad95a67239cd2563b8c705b2a54f8e7efa5fd

See more details on using hashes here.

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