Skip to content

A Simple 2D Implementation of Lattice Boltzmann Method in c++. Allows the user to simulate the flow over a cylinder, array of squares or a rectangular obstacle.

Notifications You must be signed in to change notification settings

GontzalLopez/2D-Lattice-Boltzmann-solver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 

Repository files navigation

2D Lattice-Boltzmann solver

A Simple 2D Implementation of Lattice Boltzmann Method in c++. Allows the user to simulate the flow over a cylinder, array of squares or a rectangular obstacle. Top and bottom boundaries can be modelled as walls or periodic. The code was written for educational purposes as a basic introduction to the LBM models. The next step would be to write the code in order to parallelise the calculation and include turbulent LES models.

References: A. A. Mohamad, Lattice Boltzmann Method - Fundamentals and Engineering Applications with Computer Codes (2019)

Build project:

chmod u+x Make.sh
./Make.sh

Run:

./LBMsolver

Post-processing:

cd Results
python2 postScript.py

About

A Simple 2D Implementation of Lattice Boltzmann Method in c++. Allows the user to simulate the flow over a cylinder, array of squares or a rectangular obstacle.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published