Skip to content

Latest commit

 

History

History
38 lines (26 loc) · 811 Bytes

README.md

File metadata and controls

38 lines (26 loc) · 811 Bytes

Stable-Fluids

This is the implementation of Stable Fluids by Jos Stam at SIGGRAPH 1999.

FFT method with periodic boundary condition is one way to solve the equation of diffuse and projection faster.

Build

Windows is not supported.

Libraries you need are

  • FFTW (version 3)
  • GLM
  • GLEW
  • GLFW

You can build and execute following command.

$ git clone https://github.com/daichi-ishida/Stable-Fluids.git
$ make
$ ./bin/main

Density is continuously added to the initial area by default.

If you want to set density only once at the beginning, add -o option that represents for "once".

$ ./bin/main -o

Screenshot

Screenshot

Each of red lines shows the direction of the grid's velocity and brightness represents density at the position.