Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Wow so cool. Any summary on how the algorithm works roughly?


The repo refers to this article: http://developer.download.nvidia.com/books/HTML/gpugems/gpug...

Looks like it's standard Navier-Stokes.


Not quite standard. The trick is to use backward differencing in time, to make it unconditionally stable even for longer time steps. Also the Poisson equation to get the pressure is only solved approximately by doing Jacobi iterations until the solution is "good enough". And of course it is limited to 2d and the incompressible limit.


If it's based on that, it's essentially an implementation of Jos Stam's "stable fluids" which actually uses some tricks to get plausible results. http://www.dgp.toronto.edu/people/stam/reality/Research/pdf/...




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: