Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Stable Fluids in 3D Example [closed]

Tags:

c++

c

opengl

fluid

Has anyone run across or have an example of Jos Stam's Stable Fluids but in 3D? I need to pursue a 3D version of this in openGL but have been having a terrible time doing so. Is there an example of this preferably in openGL/C/C++?

like image 969
David Nelson Avatar asked Nov 15 '10 17:11

David Nelson


2 Answers

This is the best information I found about solving the Navier Stokes equitation (searched about 6 month ago): link text. It explains every part of the equitation solver in the most easy way that I have ever found. I haven't looked intensively into Jos Stam's paper, but it seems to be based on this equitation.

However the link I posted is also in 2D, but as the code is so easy, it should be no problem to add one (or even more xD) additional dimension.

Edit:I just realized that the talk that I have linked was held by Jos Stam :). Its a small world. Nevertheless the talk is better documented then the pdf, so I hope it helps.

like image 154
iuiz Avatar answered Nov 03 '22 01:11

iuiz


Although this answer comes a few years late, it might still be useful:

3D implementation here: http://graphics.ethz.ch/teaching/former/imagesynthesis_06/miniprojects/p3/

Another 3D implementation: https://code.google.com/p/smoke3d

Also, this thesis has source code at the end (Bongart, Robert) http://www.nada.kth.se/utbildning/grukth/exjobb/rapportlistor/2007/rapporter07/bongart_robert_07018.pdf

like image 33
Erwin Coumans Avatar answered Nov 03 '22 02:11

Erwin Coumans