fluid-simulator
fluid-simulator copied to clipboard
Real-time 2D fluid simulator with lots of visualization options.
Fluid Simulator
![Left to right, top to bottom: Ink, streamlines, speed and arrows, pressure, curl. Left to right, top to bottom: Ink, streamlines, speed and arrows, pressure, curl.](https://user-images.githubusercontent.com/15798094/111071530-e1bc1680-84d6-11eb-8408-0e916b919a80.gif)
Building
Start by cloning the program and all submodules using the following command:
git clone --recursive https://github.com/linusmossberg/fluid-simulator
Build files can then be generated with CMake using:
cd fluid-simulator
mkdir build
cd build
cmake ..
These should work automatically, but a few additional packages are required on certain platforms. On Debian/Ubuntu, these can be installed using:
apt-get install xorg-dev libglu1-mesa-dev
and on RedHat/Fedora:
sudo dnf install mesa-libGLU-devel libXi-devel libXcursor-devel libXinerama-devel libXrandr-devel xorg-x11-server-devel