Skip to content

Attempt to Simulate Fluid using Lattice Boltzmann Method with the Pixel Game Engine

Notifications You must be signed in to change notification settings

baderouaich/Fluid-Simulation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 

Repository files navigation

Fluid Simulation

Attempt to Simulate Fluid, using Lattice Boltzmann Method and the olc::PixelGameEngine.

Overview

Demo.mp4

Build & Run

git clone https://github.com/baderouaich/Fluid-Simulation
cd Fluid-Simulation
mkdir build && cd build
cmake .. -G"Unix Makefiles" -DCMAKE_BUILD_TYPE=Release
make -j8
./fluid_simulation

Controls

  • Mouse movement to apply velocity
  • SPACE key to change fluid color randomly
  • Arrow Keys to apply fluid velocity
  • R to reset the velocity to default
  • ESCAPE key to exit the simulation

Reference

https://mikeash.com/pyblog/fluid-simulation-for-dummies.html