Skip to content

yoharol/Stable-Fluids

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This project implements the most basic fluid simulation:

  • All physics properties are defined in centered-grid
  • Linear equations are solved with Gauss-Seidel method
  • Single thread but good performance

thumbnail

Run this program

Download windows build

Click on screen to add random momentum

Press key to set different modes(which physical quantity to show):

key mode
'd' dye
'v' velocity
'p' pressure
'r' reset

Compile and Run

External package required:

  • GLFW
  • OpenGL
  • Eigen3

Build tool: CMake

Future Plan

  • MAC grid
  • Vortex Confinement
  • Better large-scale linear equation solver
  • Calculate on GPU

About

Stable Fluids in C++ with OpenGL

Resources

Stars

Watchers

Forks

Packages

No packages published