Physics Forums

Physics Forums (http://www.physicsforums.com/index.php)
-   Programming & Computer Science (http://www.physicsforums.com/forumdisplay.php?f=165)
-   -   Fluid simulation for computer graphics (http://www.physicsforums.com/showthread.php?t=549299)

redredred Nov10-11 04:25 PM

Fluid simulation for computer graphics
 
Can someone explain to me how fluids are simulated using particles? What equations to solve? How to update the particle positions? How awfully computer intensive is the algorithm? Can a simulation using a 100 * 100 * 10 grid run okay on the average computer?

The more I read the more I realize how much is needed to calculate just ONE STEP in time.

TylerH Nov10-11 06:31 PM

Re: Fluid simulation for computer graphics
 
I can't help, but Blender might be a good place to start, if you can read Python.

chiro Nov10-11 11:19 PM

Re: Fluid simulation for computer graphics
 
Quote:

Quote by redredred (Post 3609269)
Can someone explain to me how fluids are simulated using particles? What equations to solve? How to update the particle positions? How awfully computer intensive is the algorithm? Can a simulation using a 100 * 100 * 10 grid run okay on the average computer?

The more I read the more I realize how much is needed to calculate just ONE STEP in time.

What kind of simulation are you after?

Are you looking at simulating "fluid-like" simulations that don't collide with any external geometry, or are you looking at doing a type of simulation of fluids in something like say a tank with dynamic geometry included?

Maybe you should get started by reading about the Marching Cubes algorithm for the first case. There are plenty of demos on the internet for OpenGL and DirectX that show this (and have complete source code).

If you want to do something with less constraints, then that is another issue.


All times are GMT -5. The time now is 11:07 AM.

Powered by vBulletin Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
© 2014 Physics Forums