Algorithms for Simulating Fluid Flow

夙愿已清 提交于 2019-12-02 17:17:52

This is not my area of research but I believe this is considered the canonical work:

Fluid Simulation for Computer Graphics

http://www.akpeters.com/product.asp?ProdCode=3260

Also, look at the Berkeley Animation and Modeling Group

http://www.cs.berkeley.edu/b-cam/

I also recommend a tool like Google Scholar or Citeseer and persue the scholarly literature.

Lattice-Boltzmann methods are a pretty common way to simulate fluid in a discretised, cellular automaton-like way.

However, for the sake of real time performance on an iPhone, it may be more effective to simulate the fluid as a particle system and then work out a way to render the particles as a volumetric mass. I suspect this is the approach taken by games like Aqua Forest.

Probably a particle system is a good place to start. Along these lines you can look into SPH (smoothed particle hydrodynamics) as a somewhat more physical approach to fluid simulation that still relies on particles.

Ron Fedkiw's work is quite stunning in this area.

One more comment: Fluid simulations is the stuff of numerical parallel programming and supercomputers, or at the very least, high power, multi-core desktops. An iPhone probably will not cut it.

This might also be of interest (demo video, demo binary, source code).

Brandon Pelfrey

SPH with particles is probably the fastest to get up and running with a head start on extendability into visco-elastics and other stuff. I'll be publishing a guide on my blog tomorrow that I've been writing for the last few days on this very topic. (http://blog.brandonpelfrey.com)

I wonder if you're thinking of something like Archer Maclean's Mercury or Mercury Meltdown for the PSP.

As far as I know in the game De Blob a colored "blob" moves around a white environment, coloring objects it bumps into. This was somehow triggered in my mind when I read your description of what you seem to want to do. (Haven't actually played the game, so I have no idea how well that fit is.)

Having said that, I seem to recall that the fluidity of the blob is mostly artifical in that game: basically being a sphere, some slight size/shape transformations of it, some motion cues and added "fuidy sounds" that give the player the impression that something not quite solid is the main character of the game. No actual physics or simulation type programming was involved.

Sounds like a good fit for a iphone runnable piece of software, that. Would that perhaps be enough for you?

It is so sparce you have to model particles?

If so I recommend having a look at Lattice-Gas Cellular Automata (LGCA, see example video here).

In short, LGCA are a subclass of cellular automata where cell states are tuples of binary values, each representing a channel between a cell and one of its neighbor, and through which particles can travel (channel is1if it contains a particle,0otherwise).

The updating scheme is then a synchronous parallel two-step function which reorganizes particles between channels within each cell (collision) and then propagate these particles to the corresponding channel of the targeted neighbor (propagation).

Grid based Navier-Stokes solution is always faster and the computation speed is constant.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!