2D simulation of incompressible and inviscid flow with an initial rotational velocity field and solid walls on all four sides. Color is advected with the flow using three scalars for the red, green, and blue components of a given fluid element.
Video made from an interactive Java applet I wrote (which you can run at http://cfb.qqnoobs.com/Fluid/). At this resolution, each frame takes just under a second to compute, but it runs smoothly with lower resolutions.
Code based off of Robert Bridson's "Fluid Simulation for Computer Graphics." (His lecture notes at http://www.cs.ubc.ca/~rbridson/fluidsimulation/ also contain pretty much everything you need.)
Link to this comment:
All Comments (0)