07 Fluid Simulation
07 Fluid Simulation
• Spring-Mass Systems
• Numerical Integration
Navier-Stokes (Euler, Midpoint, Runge-Kutta)
& • Modeling string, hair, & cloth
Flow Simulation
• Breen, House,
and Wozny
• SIGGRAPH
1994
READING FOR TODAY
Cloth Collision Robert Bridson, Ronald Fedkiw & John Anderson
Cloth in Practice (w/ Animation)
Robust Treatment of Collisions, Contact
and Friction for Cloth Animation
• A cloth has many SIGGRAPH 2002 READING FOR TODAY
points of contact
• Often stays in contact • Baraff, Witkin & Kass
• Requires Untangling Cloth
– Efficient collision detection SIGGRAPH 2003
– Efficient numerical treatment (stability)
For a single
phase simulation
(e.g., water only,
air only)
• Smoothed Particle
Hydrodynamics (SPH)
Comparing Representations Volume-of-fluid-tracking
• How do we render the resulting surface? • Each cell stores a scalar floating point value indicating
that cell’s “full”-ness
• Are we guaranteed not to lose mass/volume?
(is the simulation incompressible?)
• How is each affected by the grid resolution
and timestep?
• Can we guarantee stability?
+ preserves volume
– difficult to render
– very dependent on grid resolution
http://mme.uwaterloo.ca/~fslien/free_surface/free_surface.htm
• Identify which cells are Empty, • In 2D: For each axis, find the 4 closest face velocity samples:
Full, or on the Surface
• Compute new velocities
• Adjust the velocities to maintain
an incompressible flow
• Move the particles
– Interpolate the velocities at the faces
• Render the geometry and repeat!