Skip to content

Real-time 2D fluid simulator with lots of visualization options.

License

Notifications You must be signed in to change notification settings

linusmossberg/fluid-simulator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fluid Simulator

Left to right, top to bottom: Ink, streamlines, speed and arrows, pressure, curl.

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