University of North Carolina - Chapel Hill Fluid & Rigid Body Interaction Comp 259 - Physical Modeling Craig Bennetts April 25, 2006 Comp 259 - Physical.

Slides:



Advertisements
Similar presentations
Stable Fluids A paper by Jos Stam.
Advertisements

My First Fluid Project Ryan Schmidt. Outline MAC Method How far did I get? What went wrong? Future Work.
Christopher Batty and Robert Bridson University of British Columbia
A Fast Variational Framework for Accurate Solid-Fluid Coupling Christopher Batty Florence Bertails Robert Bridson University of British Columbia.
Navier-Stokes.
Continuity Equation. Continuity Equation Continuity Equation Net outflow in x direction.
Ground-Water Flow and Solute Transport for the PHAST Simulator Ken Kipp and David Parkhurst.
Equations of Continuity
1 MECH 221 FLUID MECHANICS (Fall 06/07) Tutorial 7.
More Accurate Pressure Solves. Solid Boundaries  Voxelized version works great if solids aligned with grid  If not: though the error in geometry is.
Intro to Fluid Simulation (I) Jeff Pool COMP
Particle-based fluid simulation for interactive applications
1 MECH 221 FLUID MECHANICS (Fall 06/07) Tutorial 6 FLUID KINETMATICS.
Combined Lagrangian-Eulerian Approach for Accurate Advection Toshiya HACHISUKA The University of Tokyo Introduction Grid-based fluid.
Modeling Fluid Phenomena -Vinay Bondhugula (25 th & 27 th April 2006)
Coupling Water and Smoke to Thin Deformable and Rigid Shells Eran Guendelman 1,2 Andrew Selle 1,3 Frank Losasso 1,2 Ronald Fedkiw 1,2 1 Stanford University,
Numerical Hydraulics Wolfgang Kinzelbach with Marc Wolf and Cornel Beffa Lecture 1: The equations.
Modelling Realistic Water & Fire Sérgio Leal Socrates/Erasmus student at: AK Computer Graphics Institute for Computer Graphics and Vision Technical University.
The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL Intro to Computational Fluid Dynamics Brandon Lloyd COMP 259 April 16, 2003 Image courtesy of Prof. A.
The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL Introduction to Modeling Fluid Dynamics 1.
By Michael Su 04/16/2009.  Introduction  Fluid characteristics  Navier-Stokes equation  Eulerian vs. Lagrangian approach  Dive into the glory detail.
Modeling, Simulating and Rendering Fluids Thanks to Ron Fediw et al, Jos Stam, Henrik Jensen, Ryan.
Fluid Simulation for Computer Animation Greg Turk College of Computing and GVU Center Georgia Institute of Technology.
Flow and Thermal Considerations
FUNDAMENTAL EQUATIONS, CONCEPTS AND IMPLEMENTATION
Motivation  Movie  Game  Engineering Introduction  Ideally  Looks good  Fast simulation  Looks good?  Look plausible  Doesn’t need to be exactly.
Conservation Laws for Continua
Lecture VII Rigid Body Dynamics CS274: Computer Animation and Simulation.
CEE 262A H YDRODYNAMICS Lecture 5 Conservation Laws Part I 1.
A Hybrid Particle-Mesh Method for Viscous, Incompressible, Multiphase Flows Jie LIU, Seiichi KOSHIZUKA Yoshiaki OKA The University of Tokyo,
Animation of Fluids.
Chapter 9: Differential Analysis of Fluid Flow SCHOOL OF BIOPROCESS ENGINEERING, UNIVERSITI MALAYSIA PERLIS.
Introduction to Fluid Mechanics
PTT 204/3 APPLIED FLUID MECHANICS SEM 2 (2012/2013)
COMPUTATIONAL FLUID DYNAMICS IN REAL-TIME An Introduction to Simulation and Animation of Liquids and Gases.
Spring Rigid Body Simulation. Spring Contents Unconstrained Collision Contact Resting Contact.
Lecture I of VI (Claudio Piani) Course philosophy, the Navier-Stokes equations, Shallow Water, pressure gradient force, material derivative, continuity,
A conservative FE-discretisation of the Navier-Stokes equation JASS 2005, St. Petersburg Thomas Satzger.
A Unified Lagrangian Approach to Solid-Fluid Animation Richard Keiser, Bart Adams, Dominique Gasser, Paolo Bazzi, Philip Dutré, Markus Gross.
A particle-gridless hybrid methods for incompressible flows
Governing equations: Navier-Stokes equations, Two-dimensional shallow-water equations, Saint-Venant equations, compressible water hammer flow equations.
Stable, Circulation- Preserving, Simplicial Fluids Sharif Elcott, Yiying Tong, Eva Kanso, Peter Schröder, and Mathieu Desbrun.
CIS/ME 794Y A Case Study in Computational Science & Engineering 2-D Conservation of Mass uu dx dy vv (x,y)
HEAT TRANSFER FINITE ELEMENT FORMULATION
1 Chapter 6 Flow Analysis Using Differential Methods ( Differential Analysis of Fluid Flow)
FlowFixer: Using BFECC for Fluid Simulation ByungMoon Kim Yingjie Liu Ignacio Llamas Jarek Rossignac Georgia Institute of Technology.
Governing Equations Conservation of Mass Conservation of Momentum Velocity Stress tensor Force Pressure Surface normal Computation Flowsheet Grid values.
Discretization Methods Chapter 2. Training Manual May 15, 2001 Inventory # Discretization Methods Topics Equations and The Goal Brief overview.
CS274 Spring 01 Lecture 7 Copyright © Mark Meyer Lecture VII Rigid Body Dynamics CS274: Computer Animation and Simulation.
CP502 Advanced Fluid Mechanics
Differential Analysis of Fluid Flow. Navier-Stokes equations Example: incompressible Navier-Stokes equations.
Rick Parent - CIS682 Rigid Body Dynamics simulate basic physics of an object subject to forces Keyframing can be tedious - especially to get ‘realism’
CP502 Advanced Fluid Mechanics
November 2005 Center for Computational Visualization Institute of Computational and Engineering Sciences Department of Computer Sciences University of.
Efficient Simulation of Large Bodies of Water by Coupling Two and Three Dimensional Techniques SIGGRAPH 2006 Geoffrey Irving Eran Guendelman Frank Losasso.
Efficient Simulation of Large Bodies of Water by Coupling Two and Three Dimensional Techniques Geoffrey Irving Stanford University Pixar Animation Studios.
CSE 872 Dr. Charles B. Owen Advanced Computer Graphics1 Water Computational Fluid Dynamics Volumes Lagrangian vs. Eulerian modelling Navier-Stokes equations.
Efficient Simulation of Large Bodies of Water by Coupling Two and Three Dimensional Techniques Geoffrey Irving Stanford University Pixar Animation Studios.
Particle Kinematics Direction of velocity vector is parallel to path Magnitude of velocity vector is distance traveled / time Inertial frame – non accelerating,
Animating smoke with dynamic balance Jin-Kyung Hong Chang-Hun Kim 발표 윤종철.
The Boussinesq and the Quasi-geostrophic approximations
Chapter 4 Fluid Mechanics Frank White
Part IV: Detailed Flow Structure Chap. 7: Microscopic Balances
Lecture Rigid Body Dynamics.
Rigid Body Dynamics (unconstrained)
Introduction to Fluid Dynamics & Applications
Physics 451/551 Theoretical Mechanics
Introduction to Fluid Mechanics
Anthony D. Fick & Dr. Ali Borhan Governing Equations
Presentation transcript:

University of North Carolina - Chapel Hill Fluid & Rigid Body Interaction Comp Physical Modeling Craig Bennetts April 25, 2006 Comp Physical Modeling Craig Bennetts April 25, 2006

University of North Carolina - Chapel Hill Motivation  Fluid/solid interactions are ubiquitous in our environment  Realistic fluid/solid interaction is complex  not feasible through manual animation  Fluid/solid interactions are ubiquitous in our environment  Realistic fluid/solid interaction is complex  not feasible through manual animation

University of North Carolina - Chapel Hill Types of Coupling  One-way solid-to-fluid reaction  One-way fluid-to-solid reaction  Two-way coupled interaction  One-way solid-to-fluid reaction  One-way fluid-to-solid reaction  Two-way coupled interaction

University of North Carolina - Chapel Hill Solid-to-Fluid Reaction  The solid moves the fluid without the fluid affecting the solid  Rigid bodies are treated as boundary conditions with set velocities  Foster and Metaxas, 1997  Foster and Fedkiw, 2001  Enright et al., 2002b  The solid moves the fluid without the fluid affecting the solid  Rigid bodies are treated as boundary conditions with set velocities  Foster and Metaxas, 1997  Foster and Fedkiw, 2001  Enright et al., 2002b

University of North Carolina - Chapel Hill Fluid-to-Solid Reaction  The fluid moves the solid without the solid affecting the fluid  Solids are treated as massless particles  Foster and Metaxas,1996  The fluid moves the solid without the solid affecting the fluid  Solids are treated as massless particles  Foster and Metaxas,1996

University of North Carolina - Chapel Hill One-Way Inadequacy  Fails to simulate true fluid/solid interaction  Reactive as opposed to interactive  Fails to simulate true fluid/solid interaction  Reactive as opposed to interactive

University of North Carolina - Chapel Hill Two-Way Interaction Methods  Volume Of Fluid and Cubic Interpolated Propagation (VOFCIP)  Arbitrary Lagrangian-Eulerian (ALE)  Distributed Lagrange Multiplier (DLM)  Rigid Fluid  Volume Of Fluid and Cubic Interpolated Propagation (VOFCIP)  Arbitrary Lagrangian-Eulerian (ALE)  Distributed Lagrange Multiplier (DLM)  Rigid Fluid

University of North Carolina - Chapel Hill VOFCIP method  Takahashi et al. (2002,2003)  Models forces due to hydrostatic pressure  neglects dynamic forces and torques due to the fluid momentum  Only approximates the solid-to-fluid coupling  Takahashi et al. (2002,2003)  Models forces due to hydrostatic pressure  neglects dynamic forces and torques due to the fluid momentum  Only approximates the solid-to-fluid coupling

University of North Carolina - Chapel Hill ALE method  Originally used in the computational physics community [Hirt et al. (1974)]  Finite element technique  Drawbacks:  computational grid must be re-meshed when it becomes overly distortion  at least 2 layers of cell elements are required to separate solids as they approach  Originally used in the computational physics community [Hirt et al. (1974)]  Finite element technique  Drawbacks:  computational grid must be re-meshed when it becomes overly distortion  at least 2 layers of cell elements are required to separate solids as they approach

University of North Carolina - Chapel Hill DLM method  Originally used to study particulate suspension flows [Glowinski et al. 1999]  Finite element technique  Does not require grid re-meshing  Ensures realistic motion for both fluid and solid  Originally used to study particulate suspension flows [Glowinski et al. 1999]  Finite element technique  Does not require grid re-meshing  Ensures realistic motion for both fluid and solid

University of North Carolina - Chapel Hill DLM Method (cont.)  Does not account for torques  Restricted to spherical solids  Surfaces restricted to be at least 1.5 times the velocity element size apart  requires application of repulsive force  Does not account for torques  Restricted to spherical solids  Surfaces restricted to be at least 1.5 times the velocity element size apart  requires application of repulsive force

University of North Carolina - Chapel Hill Prior Two-Way Limitations  Solids simulated as fluids with high viscosity  ultimately results in solid deformation, which is undesirable in modeling rigid bodies  Do not account for torque on solids  Boundary proximity restrictions  Solids simulated as fluids with high viscosity  ultimately results in solid deformation, which is undesirable in modeling rigid bodies  Do not account for torque on solids  Boundary proximity restrictions

University of North Carolina - Chapel Hill Rigid Fluid Method  Carlson, 2004  Extends the DLM method  except uses finite differences  Uses a Marker-And-Cell (MAC) technique  Pressure projection ensures the incompressibility of fluid  Carlson, 2004  Extends the DLM method  except uses finite differences  Uses a Marker-And-Cell (MAC) technique  Pressure projection ensures the incompressibility of fluid

University of North Carolina - Chapel Hill Rigid Fluid Method (cont.)  Treats the rigid objects as fluids:  Ensures rigidity through rigid-body-motion velocity constraints within the object  Avoids need to directly enforce boundary conditions between rigid bodies and fluid  approximately captured by the projection techniques  Uses conjugate-gradient solver  Treats the rigid objects as fluids:  Ensures rigidity through rigid-body-motion velocity constraints within the object  Avoids need to directly enforce boundary conditions between rigid bodies and fluid  approximately captured by the projection techniques  Uses conjugate-gradient solver

University of North Carolina - Chapel Hill Semi-Lagrangian Method  Advantage:  simple to use  Disadvantage:  additional numerical dampening to the advection process  Uses conjugate-gradient solver  Advantage:  simple to use  Disadvantage:  additional numerical dampening to the advection process  Uses conjugate-gradient solver

University of North Carolina - Chapel Hill Computational Domains  Distinct computational domains for fluid ( F ) and rigid solids ( R ) within the entire domain ( C ):

University of North Carolina - Chapel Hill Marker-And-Cell Technique  Harlow and Welch (1965)

University of North Carolina - Chapel Hill MAC Technique (cont.)  Well suited to simulate fluids with relatively low viscosity  Permits surface ripples, waves, and full 3D splashes  Disadvantage:  cannot simulate high viscosity fluids (with free surfaces) without reducing time step significantly  Well suited to simulate fluids with relatively low viscosity  Permits surface ripples, waves, and full 3D splashes  Disadvantage:  cannot simulate high viscosity fluids (with free surfaces) without reducing time step significantly

University of North Carolina - Chapel Hill MAC Boundary Conditions  Can use any combination of Dirichlet or Neumann boundary conditions between fluid and air  there must be at least one empty air cell represented in the matrix used to solve the system or will be singular (cannot be inverted uniquely)  Can use any combination of Dirichlet or Neumann boundary conditions between fluid and air  there must be at least one empty air cell represented in the matrix used to solve the system or will be singular (cannot be inverted uniquely)

University of North Carolina - Chapel Hill Fluid Dynamics  Navier-Stokes Equations  Incompressible fluids  Conservation of mass:  Conservation of momentum:  Navier-Stokes Equations  Incompressible fluids  Conservation of mass:  Conservation of momentum:

University of North Carolina - Chapel Hill Simplifying Assumption  For fluids of uniform viscosity  More familiar momentum diffusion form  For fluids of uniform viscosity  More familiar momentum diffusion form

University of North Carolina - Chapel Hill Notation Fluid velocity: Time derivative: Kinematic viscosity: Fluid density: Scalar pressure field: Fluid velocity: Time derivative: Kinematic viscosity: Fluid density: Scalar pressure field:

University of North Carolina - Chapel Hill Differential Operators Gradient: Divergence: Vector Laplacian: Gradient: Divergence: Vector Laplacian: Curl:

University of North Carolina - Chapel Hill Conservation of Mass  Velocity field has zero divergence  amount of fluid entering the cell is equal to the amount leaving the cell  Velocity field has zero divergence  amount of fluid entering the cell is equal to the amount leaving the cell

University of North Carolina - Chapel Hill Conservation of Momentum  The advection term accounts for the direction in which the surrounding fluid pushes a small region of fluid

University of North Carolina - Chapel Hill Conservation of Momentum  The momentum diffusion term describes how quickly the fluid damps out variation in the velocity surrounding a given point

University of North Carolina - Chapel Hill Conservation of Momentum  The pressure gradient describes how a small parcel of fluid is pushed in a direction from high to low pressure

University of North Carolina - Chapel Hill Conservation of Momentum  The external forces per unit mass that act globally on the fluid  e.g. gravity, wind, etc.  The external forces per unit mass that act globally on the fluid  e.g. gravity, wind, etc.

University of North Carolina - Chapel Hill Overview of Fluid Steps 1.Numerically solve for the best guess velocity without accounting for pressure gradient 2.Pressure projection to re-enforce the incompressibility constraint 1.Numerically solve for the best guess velocity without accounting for pressure gradient 2.Pressure projection to re-enforce the incompressibility constraint

University of North Carolina - Chapel Hill 1. Best Guess Velocity

University of North Carolina - Chapel Hill 2. Pressure Projection  Solve for p and plug back in to find u n+1

University of North Carolina - Chapel Hill Rigid Body Dynamics  Typical rigid body solver:  rigidity is implicitly enforced due to the nature of affine transformations (translation and rotation about center of mass)  Rigid fluid solver:  rigid body motion is determined using the Navier-Stokes equations  requires a motion constraint to ensure rigidity of the solid  Typical rigid body solver:  rigidity is implicitly enforced due to the nature of affine transformations (translation and rotation about center of mass)  Rigid fluid solver:  rigid body motion is determined using the Navier-Stokes equations  requires a motion constraint to ensure rigidity of the solid

University of North Carolina - Chapel Hill Conservation of Rigidity  Similar to the incompressibility constraint presented for fluids, but more strict  The rigidity constraint is not only divergence free, but deformation free  The deformation operator ( D ) for a vector velocity field ( u ) is :  Rigid body constraint is : (in R )  Similar to the incompressibility constraint presented for fluids, but more strict  The rigidity constraint is not only divergence free, but deformation free  The deformation operator ( D ) for a vector velocity field ( u ) is :  Rigid body constraint is : (in R )

University of North Carolina - Chapel Hill Conservation of Momentum  For fluid:  For rigid body:   is implicitly defined as an extra part of the deformation stress  For fluid:  For rigid body:   is implicitly defined as an extra part of the deformation stress

University of North Carolina - Chapel Hill Governing Equations  For fluid ( F ):  For rigid body ( R ):  For fluid ( F ):  For rigid body ( R ):

University of North Carolina - Chapel Hill Implementation 1.Solve Navier-Stokes equations 2.Calculate rigid body forces 3.Enforce rigid motion 1.Solve Navier-Stokes equations 2.Calculate rigid body forces 3.Enforce rigid motion

University of North Carolina - Chapel Hill 1. Solve Navier-Stokes  Solve fluid equations for the entire computational domain: C = F  R  Rigid objects are treated exactly as if they were fluids  Perform two steps as described in fluid dynamics section  Result:  divergence-free intermediate velocity field  collision and relative density forces of the rigid bodies are not yet accounted for  Solve fluid equations for the entire computational domain: C = F  R  Rigid objects are treated exactly as if they were fluids  Perform two steps as described in fluid dynamics section  Result:  divergence-free intermediate velocity field  collision and relative density forces of the rigid bodies are not yet accounted for

University of North Carolina - Chapel Hill 2. Calculate Rigid Body Forces  Rigid body solver applies collision forces to the solid objects as it updates their positions  These forces are included in the velocity field to properly transfer momentum between the solid and fluid domains  Account for forces due to relative density differences between rigid body and fluid:  Rigid body solver applies collision forces to the solid objects as it updates their positions  These forces are included in the velocity field to properly transfer momentum between the solid and fluid domains  Account for forces due to relative density differences between rigid body and fluid: sinks rises and floats

University of North Carolina - Chapel Hill 3. Enforce Rigid Motion  Use conservation of rigidity and solve for the rigid body forces, R  similar to the pressure projection step in the fluid dynamics solution (: but crazier :)  Use conservation of rigidity and solve for the rigid body forces, R  similar to the pressure projection step in the fluid dynamics solution (: but crazier :)

University of North Carolina - Chapel Hill Rigid Fluid Advantages  Relatively straightforward to implement  Low computational overhead  scales linearly with the number of rigid bodies  Can couple independent fluid and rigid body solvers  Permits variable object densities and fluid viscosities  Allows dynamic forces and torques  Relatively straightforward to implement  Low computational overhead  scales linearly with the number of rigid bodies  Can couple independent fluid and rigid body solvers  Permits variable object densities and fluid viscosities  Allows dynamic forces and torques