/Fluid-Simulation

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

Primary LanguageC++

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