Skip to content

Latest commit

 

History

History
28 lines (21 loc) · 748 Bytes

README.md

File metadata and controls

28 lines (21 loc) · 748 Bytes

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