Skip to content
Snippets Groups Projects
Martin Bauer's avatar
Martin Bauer authored
- test_serial_scenarios already tested if waLBerla is available by catching ImportErrors
- importorskip from pytest throws another exception, which is not part of the public API
-> catching all exceptions - which is not really elegant but works
1a15233d
Forked from pycodegen / lbmpy
349 commits behind the upstream repository.

lbmpy

Docs pipeline status coverage report

Run fast fluid simulations based on the lattice Boltzmann method in Python.

alt text

Installation

export PIP_EXTRA_INDEX_URL=https://www.walberla.net/pip
pip install lbmpy[interactive]

Without [interactive] you get a minimal version with very little dependencies.

All options:

  • gpu: use this if nVidia GPU is available and CUDA is installed
  • alltrafos: pulls in additional dependencies for loop simplification e.g. libisl
  • interactive: installs dependencies to work in Jupyter including image I/O, plotting etc.

Options can be combined e.g.

pip install lbmpy[interactive,gpu,doc]

Documentation

Read the docs here and check out the Jupyter notebooks in doc/notebooks.