Skip to content

Interactive 2D Eulerian fluid simulation on the GPU

Notifications You must be signed in to change notification settings

Masterchef365/gpgpu-fluid

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

91 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Interactive 2D GPGPU Fluid simulation

This project uses OpenGL's compute shaders to simulate fluid.

Install cargo from rustup.rs, then use cargo run to compile and run the project.

Demo of the fluid simulation

Details

  • Particles are stepped according to a velocity field
  • Velocity field is simulated via the Eularian method with Semi-lagrangian advection
    • The Jacobi scheme is used to relax to the incompressible solution
    • A staggered grid is used to simplify the relaxation scheme

About

Interactive 2D Eulerian fluid simulation on the GPU

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published