2D Fluid Simulation
For Debian/Ubuntu distro:
sudo apt-get install libsfml-dev
For Arch Linux based distro:
sudo pacman -S sfml
For Ubuntu, use the snap package manager
sudo snap install cmake
For Arch Linux:
sudo pacman -S cmake
If you compile the project for the first time, run the following command in the source directory of the project
mkdir build
Then, run the following commands to compile the project
cd build
cmake ..
make
./app
Use the following keys to control the simulation:
- Space: Switch on/off the step mode
- Enter: In step mode only, make one simulation step
- r: reset the simulation