Attempt to Simulate Fluid, using Lattice Boltzmann Method and the olc::PixelGameEngine.
Demo.mp4
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
- 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
https://mikeash.com/pyblog/fluid-simulation-for-dummies.html