iScsc / FluidSim

2D Fluid Simulation

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

FluidSim

2D Fluid Simulation

Dependencies

SFML lib

For Debian/Ubuntu distro:

sudo apt-get install libsfml-dev

For Arch Linux based distro:

sudo pacman -S sfml

cmake

For Ubuntu, use the snap package manager

sudo snap install cmake

For Arch Linux:

sudo pacman -S cmake

Compilation

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

Controls

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

About

2D Fluid Simulation


Languages

Language:C++ 96.5%Language:CMake 3.5%