Efficient Simulation of Large Bodies of Water by Coupling Two and Three Dimensional Techniques SIGGRAPH 2006 Geoffrey Irving Eran Guendelman Frank Losasso Ronald Fedkiw
Abstract ◇ effective simulation of a boat in a large box ◇ Similar to traditional 2D height field, the water is represented by tall cells ◇ Accurate representation of bottom topography
Introduction ◇ Motivation : Stormy seas, Sudden floods, cascading rapids ◇ Very expensive effects ◇ Appearance is governed by a surface layer ◇ Interior flow is not visible
Octree and Height field ◇ Octree’s drawback - Too much node, Increased numerical dissipation - Large octree cells can’t represent bottom topography ◇ Height field’s merit - Detail refinement in the horizontal direction - Capturing the effects of complex bottom topography well - Not support overturning or other interesting 3D behavior
Our method requirement (1) ◇ Detailed 3D behavior near the interface ◇ “Optical depth” is greater than the visible optical depth uniform MAC grid Navier-Stokes solver near the interface
Our method requirement (2) ◇ Represent without losing plausible bulk motion ◇ Represent important details such as bottom topography Coarsen in the vertical direction obtaining tall thin cells reach down to the bottom of the domain
Advantage ◇ The Octree method suffers from increased dissipation ◇ RLE (Run-Length-Encoded) [Houston et al. 2004; Breen et al. 2004; Wiebe and Houston 2004; Nielsen and Museth 2005; Houston et al. 2005; Houston et al. 2006] only in the air ◇ Our method greatly reduces the computational cost
Previous Work ◇ 3D Navier-Stokes equations - Foster and Metaxas 1997b - Stam Fedkiw et al ◇ Method for simulating a water surface - Foster and Metaxas Foster and Metaxas 1997a - Foster and Fedkiw 2001 ◇ Particle level set - Enright et al. 2002
Previous Work ◇ Conservative height field fluid model - Baxter et al. 2004b ◇ Viscoelastic fluid - Goktekin et al ◇ Solid fluid coupling - Calson et al Guendelman et al ◇ Control - McNamara et al Shi an Yu 2005 ◇ Two phase flow -Hong and Kim 2005
Previous Work ◇ Large and deep water simulation - Fournier and Reeves Peachey Mastin et al Ts’o and Barsky Thone et al Hinsinger et al ◇ Navier-Stokes Equation update for large bodies of water - Chen and Lobo Thon and Ghazanfarpour Neyret and Praizelin 2001
Grid Structure ◇ Uniform cells and Tall cells ◇ Scalars are stored at cell centers ◇ Velocity components are stored on their respective faces ◇ Tall cells contain uppermost and bottommost pressure values ◇ Pressure values of tall cells can be interpolated
Grid Structure ◇ Horizontal pressure derivative ◇ Co-locate horizontal velocities ◇ Vertical pressure derivative ◇ Co-locate vertical velocities
Refinement and Coarsening ◇ When change the structure, Interpolate velocities in new grid ◇ The vertical velocities at new tall cells are set to the average value ◇ Those for uniform cells are defined as their interpolated value ◇ This conserves vertical momentum
Refinement and Coarsening ◇ For horizontal velocities ◇ Let u(j a ), u(j a +1), …, u(j b ) We desire bottom and top values u a and u b
Refinement Analysis and Comparison ◇ With a sufficient optical depth satisfactory results are obtained (middle : ¼ refined case) ◇ 1/16 refined case obtain nonphysical results (right) ◇ Since the computational cost of a tall cell is independent of its height, the tall cells are equivalent in cost regardless of the depth of the water
Refinement Analysis and Comparison ◇ Right shows a octree simulation of the splash ◇ Our method (left) is faster and larger simulation
Uniform Three-Dimensional Method ◇ Navier-Stokes Equations ◇ Mass conservation ◇ Linear Momentum
Mass Conservation
Linear Momentum
Update u using N-S Eqns
Advection ◇ We chose conservative method ◇ The conservation does not cure large truncation errors ◇ it only makes the results more physically plausible
Advection ◇ Ignoring the pressure and force terms, we focus on the u velocity ◇ Velocity is updated based on the fluxes across faces ◇ The flux are computed by averaging the velocities to the faces
Advection ◇ CFL condition on the time step for stability ◇ We could refine the tall cells into a uniform grid, and re-coarsen ◇ Instabilities appear sharp changes ◇ compute the total weight
Laplace Equation ◇ After advection, we solve for the pressure and make the divergence free ◇ We assume that the density is spatially constant
Laplace Equation ◇ Consider two adjacent tall cells extending from j 1 to j 2 and j 3 to j 4 ◇ Intersecting in a minimal face from j a = max(j 1, j 3 ) to j b = min(j 2, j 4 ) ◇ Component of discrete gradient is linear with value (P x ) a and (P x ) b ◇ given by interpolating pressure to j a and j b
Laplace Equation ◇ Derivative Py = (p 2 -p 1 )/((j 2 -j 1 )dy) vertical pressure p 1 at j 1 and p 2 at j 2 ◇ The discrete volume weighted divergence of a uniform cell ◇ +- sign is chosen the face, A f is the area of the face
Laplace Equation ◇ Total flux contribution ◇ We substitute (P x ) a and (P x ) b for u a to u b
Examples
Example
Conclusion ◇ Novel method for the simulation of large bodies of water ◇ The bulk of the water volume is represented with tall cell ◇ Capturing detailed surface motion ◇ Representing detailed bottom topography