This is a lattice Boltzmann method package developed at Delft University of Technology.
Project description
TUD LBM
A lattice Boltzmann method package developed at Delft University of Technology. This package provides tools for simulating fluid dynamics using the lattice Boltzmann method, supporting both single-phase and multi-phase simulations.
The project setup is documented in project_setup.md.
Installation
TUD-LBM requires Python 3.10 or newer.
We recommend using uv for installation because it provides a fast, consistent, and cross-platform workflow for Linux, macOS, and Windows. For most users, uv is the simplest way to create an isolated environment and install the package from the repository.
If you already work in a conda-based scientific Python environment, on an HPC system, or need non-Python/system-level dependencies managed outside the project, conda remains a good optional alternative.
Install uv
Install uv by following the official instructions for your platform:
Linux and macOS
git clone git@github.com:szkuds/tud_lbm.git
cd tud_lbm
uv venv --python 3.14
source .venv/bin/activate
uv pip install .
python -c "import tud_lbm"
Windows
git clone git@github.com:szkuds/tud_lbm.git
cd tud_lbm
uv venv --python 3.14
.venv\Scripts\activate
uv pip install .
python -c "import tud_lbm"
Optional: editable install for contributors
uv pip install -e .[dev]
Optional: conda
If you prefer conda for scientific Python environments, you can still use the conda-based workflow documented in project_setup.md.
Documentation
For full documentation, visit tud-lbm.readthedocs.io.
Quick Start
Python API
from app_setup import SimulationSetup
from runner import Run
setup = SimulationSetup(
grid_shape=(100, 100),
tau=0.6,
nt=10000,
save_interval=1000,
)
sim = Run(setup)
sim.run(verbose=True)
TOML Configuration File
tud_lbm example/config_simple.toml
Interactive CLI
tud_lbm # launches interactive parameter prompts
For the full package reference (module-by-module API, operator tables, and architecture details), see the developer documentation.
Contributing
If you want to contribute to the development of tud_lbm, have a look at the contribution guidelines.
Credits
This package was created with Copier and the NLeSC/python-template.
Project details
Release history Release notifications | RSS feed
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 tud_lbm-2026.0.1.tar.gz.
File metadata
- Download URL: tud_lbm-2026.0.1.tar.gz
- Upload date:
- Size: 394.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2c809a1ed9ad4feda8e59a65621646bf58c6a94f133cb0ef49110d1f08d5b4ab
|
|
| MD5 |
ec36a0c7bed2860e56adc6fe13073e12
|
|
| BLAKE2b-256 |
5514bbfe545ff3489690d56ecc19296939e9392d99b005fcfe3d40e7d9272555
|
File details
Details for the file tud_lbm-2026.0.1-py3-none-any.whl.
File metadata
- Download URL: tud_lbm-2026.0.1-py3-none-any.whl
- Upload date:
- Size: 272.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bff12c773f0b79454cea6d1a67c54ab7b2776a2acb4c82eddd9a705a8b2be3ff
|
|
| MD5 |
e9e12a3e139ef2439459134ed9fc9641
|
|
| BLAKE2b-256 |
05d6844df7c985191deaf143e9f13ec0cb385f4f41866ee454dab6f684d8e5e4
|