Lettuce: PyTorch-based Lattice Boltzmann Framework
Not on the map. Why?
Abstract (arXiv)
The lattice Boltzmann method (LBM) is an efficient simulation technique for computational fluid mechanics and beyond. It is based on a simple stream-and-collide algorithm on Cartesian grids, which is easily compatible with modern machine learning architectures. While it is becoming increasingly clear that deep learning can provide a decisive stimulus for classical simulation techniques, recent studies have not addressed possible connections between machine learning and LBM. Here, we introduce Lettuce, a PyTorch-based LBM code with a threefold aim. Lettuce enables GPU accelerated calculations with minimal source code, facilitates rapid prototyping of LBM models, and enables integrating LBM simulations with PyTorch's deep learning and automatic differentiation facility. As a proof of concept for combining machine learning with the LBM, a neural collision model is developed, trained on a doubly periodic shear layer and then transferred to a different flow, a decaying turbulence. We also exemplify the added benefit of PyTorch's automatic differentiation framework in flow control and optimization. To this end, the spectrum of a forced isotropic turbulence is maintained without further constraining the velocity field. The source code is freely available from https://github.com/lettucecfd/lettuce.
Key facts. Cited by 7 papers in the map (data through 7 Oct 2026). Builds on 6 of its 48 references that are in the map. First posted on arXiv 24 Jun 2021.
Builds on
6 of 48 references.
References · 6
- 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,160
- 2021Machine learning accelerated computational fluid dynamicscited by 461
- 2019Machine Learning for Fluid Mechanicscited by 380
- 2020Solver-in-the-Loop: Learning from Differentiable Physics to Interact with Iterative PDE-Solverscited by 201
- 2017Lat-Net: Compressing Lattice Boltzmann Flow Simulations using Deep Neural Networkscited by 11
- 2019waLBerla: A block-structured high-performance framework for multiphysics simulationscited by 5
Built on by
Citing papers per year: 2023: 1; 2024: 1; 2025: 5.
7 papers.
- 2025Controlled Latent Diffusion Models for 3D Porous Media Reconstructioncited by 5
- 2025Optimal Lattice Boltzmann Closures through Multi-Agent Reinforcement Learningcited by 2
- 2025Full Domain Analysis in Fluid Dynamicscited by 2
- 2024Enhancing lattice kinetic schemes for fluid dynamics with Lattice-Equivariant Neural Networkscited by 1
- 2025Beyond Blur: A Fluid Perspective on Generative Diffusion Modelscited by 1
- 2023Efficient Quality Diversity Optimization of 3D Buildings through 2D Pre-optimizationcited by 0
- 2025Fast-Forward Lattice Boltzmann: Learning Kinetic Behaviour with Physics-Informed Neural Operatorscited by 0
- 2025Fast-Forward Lattice Boltzmann: Learning Kinetic Behaviour with Physics-Informed Neural Operators26 Sep 2025
- 2025Beyond Blur: A Fluid Perspective on Generative Diffusion Models20 Jun 2025
- 2025Full Domain Analysis in Fluid Dynamics28 May 2025
- 2025Optimal Lattice Boltzmann Closures through Multi-Agent Reinforcement Learning19 Apr 2025
- 2025Controlled Latent Diffusion Models for 3D Porous Media Reconstruction31 Mar 2025
- 2024Enhancing lattice kinetic schemes for fluid dynamics with Lattice-Equivariant Neural Networks22 May 2024
- 2023Efficient Quality Diversity Optimization of 3D Buildings through 2D Pre-optimization28 Mar 2023