lbm


lbm, a Python code which demonstrates the Lattice Boltzmann Method, which uses a statistical particle model to simulate fluid flow. The resulting png images are animated using ImageMagick convert(). The original code is by Ferran Alia.

Licensing:

The information on this web page is distributed under the MIT license.

Languages:

lbm is available in a C++ version and a Python version.

Related Data and Programs:

imagemagick, examples which use imagemagick(), which creates, edits, composes or converts graphical information as stored in many different file formats. imagemagick() can resize, flip, mirror, rotate, distort, shear and transform images, adjust image colors, apply various special effects, or draw text, lines, polygons, ellipses and Bézier curves.

Reference:

Source Code:


Last revised on 05 August 2026.