Skip to content

Toms42/Cuda-Opengl-LBM

Repository files navigation

Cuda-Opengl-LBM

Lattice-Botlzmann fluid simulator using CUDA and OpenGL

Written by Tom Scherlis and Henry Friedlander

Description:

CUDA and OpenGL packages were used to graphically accelerate the Lattice-Boltzmann Method (LBM) Algorithms. Through the use of parallelization and efficient memory usage, considerable optimization and efficiency is possible with LBM simulation. In this simulation, we model constant 2 dimensional fluid flow through a medium, and at every lattice node the fluid’s curl, probabilistic velocity vectors, and pressure are calculated and available to be plotted on the screen.

Links:

More information here: http://tomscherlis.com/otw-portfolio/lbm/

Demo Vid: https://www.youtube.com/watch?v=MSMGGoP24Hw

Technical Report: http://tomscherlis.com/wordpress/wp-content/uploads/2017/02/Lattice-Boltzmann-Algorithm-Using-GPU-Acceleration.pdf

Controls:

controls

To run this, clone the repo and run lbm.exe in the bin/win64/debug folder.

Screenshots:

screenshots 1
screenshots 2

Known Bugs:

Fast mouse movement when drawing barriers can lead to gaps.

Combinations of low viscosity, high speed, large barriers, or fast barrier draw speed can lead to corruption due to supersonic microvelocities of the fluid. Be careful when drawing to avoid this!

About

Lattice-Botlzmann fluid simulator using CUDA and OpenGL

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages