Skip to content

amaury-aubel/FLIP-2d-sim-gpu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 

Repository files navigation

FLIP-2d-sim-gpu

FLIP 2d simulation (on the GPU).

Click on this link to play with it! Works on most Android devices & PCs and should work on most Apple devices (you may need to enable WebGL2 in your Safari advanced settings though).

This is a small personal project coded over the holidays to play some more with WebGL. It is decently fast and fun to play with despite running only on one core by default. There's a UI switch to perform the pressure solve on the GPU using a fixed number of Jacobi iterations but it is (not surprisingly) about the same or even slower than the preconditioned conjugate gradient (PCG) running on the CPU. One way to optimize this would be to use a multi grid approach on the GPU...if I ever have time to revisit this project...:-)