My CPU implementation of fluid based on what is described in GPU Gems.
| Normal | Multiply velocity by scalar after advection |
|---|---|
![]() |
![]() |
- Make sure libsdl2 installed. For debian based OS:
sudo apt update && sudo apt install libsdl2-dev -y - Make sure g++, cmake and make are installed
mkdir build && cd build && cmake .. && make && ./fluid
- Still need to implement boundary conditions

