Computer Animation Algorithms and Techniques

Slides:



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

Lecture 15: Capillary motion
Lecture 2 Properties of Fluids Units and Dimensions.
Particle Acceleration Particle t t+dt. Physical Interpretation Total acceleration of a particle Local acceleration Convective acceleration time velocity.
Continuity Equation. Continuity Equation Continuity Equation Net outflow in x direction.
Dr. Kirti Chandra Sahu Department of Chemical Engineering IIT Hyderabad.
II. Properties of Fluids. Contents 1. Definition of Fluids 2. Continuum Hypothesis 3. Density and Compressibility 4. Viscosity 5. Surface Tension 6. Vaporization.
Particle-based fluid simulation for interactive applications
Fluid Kinematics Fluid Dynamics . Fluid Flow Concepts and Reynolds Transport Theorem ä Descriptions of: ä fluid motion ä fluid flows ä temporal and spatial.
Momentum flux across the sea surface
1 MFGT 242: Flow Analysis Chapter 4: Governing Equations for Fluid Flow Professor Joe Greene CSU, CHICO.
1 MFGT 242: Flow Analysis Chapter 3: Stress and Strain in Fluid Mechanics Professor Joe Greene CSU, CHICO.
Modeling Fluid Phenomena -Vinay Bondhugula (25 th & 27 th April 2006)
Chapter 9 Solids and Fluids. Solids Has definite volume Has definite volume Has definite shape Has definite shape Molecules are held in specific locations.
Fluid mechanics 3.1 – key points
Modeling, Simulating and Rendering Fluids Thanks to Ron Fediw et al, Jos Stam, Henrik Jensen, Ryan.
Flow and Thermal Considerations
FLUID MECHANICS.
Conservation Laws for Continua
Computer Animation Rick Parent Computer Animation Algorithms and Techniques Fluids.
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.
COMPUTATIONAL FLUID DYNAMICS IN REAL-TIME An Introduction to Simulation and Animation of Liquids and Gases.
Smoothed Particle Hydrodynamics (SPH) Fluid dynamics The fluid is represented by a particle system Some particle properties are determined by taking an.
Lesson 21 Laminar and Turbulent Flow
A particle-gridless hybrid methods for incompressible flows
Basic Fluid Properties and Governing Equations
Simplified Smoothed Particle Hydrodynamics for Interactive Applications Zakiya Tamimi Richard McDaniel Based on work done at Siemens Corporate.
Chapter 15FLUIDS 15.1 Fluid and the World Around Us 1.A fluid is a substance that cannot support a shearing stress. 2.Both gases and liquids are fluids.
Distributed Flow Routing Surface Water Hydrology, Spring 2005 Reading: 9.1, 9.2, 10.1, 10.2 Venkatesh Merwade, Center for Research in Water Resources.
Taming a Wild River Jeff Lander Darwin 3D
Chapter 03: Macroscopic interface dynamics Xiangyu Hu Technical University of Munich Part A: physical and mathematical modeling of interface.
FLUID PROPERTIES Independent variables SCALARS VECTORS TENSORS.
Measurements in Fluid Mechanics 058:180:001 (ME:5180:0001) Time & Location: 2:30P - 3:20P MWF 218 MLH Office Hours: 4:00P – 5:00P MWF 223B-5 HL Instructor:
What is Fluid????? A fluid may be liquid, vapour or gas. It has no permanent shape but takes up the shape of a containing vessel or channel or is shaped.
Ch 4 Fluids in Motion.
ME 101: Fluids Engineering Chapter 6 ME Two Areas for Mechanical Engineers Fluid Statics –Deals with stationary objects Ships, Tanks, Dams –Common.
SPH weekly meeting Free surface flows in Code Saturne Results 23/11/2009 Olivier Cozzi.
Fluid Mechanics-I Spring 2010 Lecture # Course Outline  Introduction to Fluids and Fluid Properties  Fluid Statics  Integral Relations for fluid.
CSE 872 Dr. Charles B. Owen Advanced Computer Graphics1 Water Computational Fluid Dynamics Volumes Lagrangian vs. Eulerian modelling Navier-Stokes equations.
Animating smoke with dynamic balance Jin-Kyung Hong Chang-Hun Kim 발표 윤종철.
Chapter 1: Basic Concepts
Computer Animation Rick Parent Computer Animation Algorithms and Techniques Computational Fluid Dynamics.
Subject Name: FLUID MECHANICS Subject Code:10ME36B Prepared By: R Punith Department: Aeronautical Engineering Date:
FLUID MECHANICS.
Chapter 11 Fluids.
Fluid Animation CSE 3541 By: Matt Boggus.
Chapter 4 Fluid Mechanics Frank White
Continuum Mechanics (MTH487)
DIFFERENTIAL EQUATIONS FOR FLUID FLOW Vinay Chandwani (Mtech Struct.)
Chapter 9: Differential Analysis of Fluid Flow
Today’s Lecture Objectives:
Fluid Mechanics Dr. Mohsin Siddique Assistant Professor
Chapter 7: Solid and Fluids
CFD – Fluid Dynamics Equations
1. Density y Volume,  Mass, m C Elemental Volume,   Mass, m x z.
Viscous Flow in Pipes.
Reminder: HW #10 due Thursday, Dec 2, 11:59 p.m.
Fluid Kinematics Fluid Dynamics.
topic8_NS_vectorForm_F02
Introduction to Fluid Dynamics & Applications
FLUID MECHANICS REVIEW
topic8_NS_vectorForm_F02
Marine Hydrodynamics Lecture – 01
Cutnell/Johnson Physics 7th edition Reading Quiz Questions
FLUID MECHANICS - Review
Introduction to Fluid Mechanics
WHAT IS FLUID? Fluid is a substance that is capable of flowing. It has no definite shape of its own. It assumes the shape of its container. Both liquids.
Presentation transcript:

Computer Animation Algorithms and Techniques Fluids Rick Parent Computer Animation

Superficial models v. Deep models (comes up throughout graphics, but particularly relevant here) OR Directly model visible properties Model underlying processes that produce the visible properties Water waves Wrinkles in skin and cloth Hair as a single flex object Clouds as implicit surfaces Computational Fluid Dynamics Cloth weave Physical properties of a strand of hair Rick Parent Computer Animation

Superficial Models for Water Water is complex Changes shape Changes topology Governed by fluid dynamics Model specific features Still waters Small amplitude waves Ocean waves Running downhill Rick Parent Computer Animation

Simple Wave Model - Sinusoidal Distance-amplitude Rick Parent Computer Animation

Simple Wave Time-amplitude at a location Rick Parent Computer Animation

Simple Wave Rick Parent Computer Animation

Simple Wave Rick Parent Computer Animation

Sum of Sinusoidals Rick Parent Computer Animation

Normal vector perturbation Sum of Sinusoidals Height field Normal vector perturbation Rick Parent Computer Animation

Ocean Waves Darwyn R. Peachey, “Modeling waves and surf”, SIGGRAPH '86. s – distance from source t – time A – maximum amplitude C – propogation speed L – wavelength T – period of wave Rick Parent Computer Animation

Movement of a particle In idealized wave, no transport of water L – wavelength A - amplitude of wave H – twice the amplitude C – propagation speed T – period of wave S – steepness of the wave Q – average orbital speed Rick Parent Computer Animation

Breaking waves If Q exceeds C => breaking wave If non-breaking wave, steepness is limited Observed steepness (S) between 0.5 and 1.0 Rick Parent Computer Animation

Airy model of waves Relates depth of water, propagation speed and wavelength g - gravity As depth increases, C approaches As depth decreases, C approaches Rick Parent Computer Animation

Implication of depth on waves approaching beach at an angle Wave tends to straighten out – closer sections slow down Rick Parent Computer Animation

Wave in shallow water propogation speed, C, and wavelength, L, are reduced period of wave, T, remains the same amplitude, A (H), remains the same or increase orbital speed, Q, remains the same Waves break Rick Parent Computer Animation

Model for Transport ofWater h – water surface b – ground v – water velocity Rick Parent Computer Animation

Model for Transport ofWater Relates: Acceleration Difference in adjacent velocities Acceleration due to gravity Rick Parent Computer Animation

Model for Transport ofWater d = h(x) – b(x) Relates: Temporal change in the height Spatial change in amount of water Rick Parent Computer Animation

Model for Transport ofWater Small fluid velocity Slowly varying depth Use finite differences to model - see book Rick Parent Computer Animation

Models for Clouds Basic cloud types Physics of clouds Visual characteristics, rendering issues Early approaches Volumetric cloud modeling Rick Parent Computer Animation

Clouds Backdrop - static or slow moving, 2D Distant - 2 1/2 D, relative movement, opaque Close - 3D, translucent, amorphous Immersion - 3D, transparent, ethereal, misty, foggy Sets mood - ominous to playful Rick Parent Computer Animation

Cloud Formation air at certain temperature can hold certain amount of moisture formed when moisture content approaches moisture limit increase moisture content decrease temperature Example forces of formation Air mass is lifted and cooled as result (front, mountains) Ground water evaporates Air mass travels over something cold (e.g. water) Rick Parent Computer Animation

Basic Cloud Terms Altitude Cirrus/cirro - high (alone, means ‘fibrous’) Altus/alto - middle level Shape Cumulus/cumulo - puffy Stratus/strato - layers, sheet Moisture Nimbus/nimbo - water bearing Rick Parent Computer Animation

Cloud Formation Transpiration, evaporation Condensation Precipitation and loop ... Rick Parent Computer Animation

Visual characteristics 3D Amorphous Turbulent Complex shading Semi-transparent Self-shadowing Reflective (albedo) Rick Parent Computer Animation

Approaches to Clouds Particle systems - but massive amount of particles needed for any significant cloud mass Volumetric representation - possible, but computationally expensive and must pre-determine extent of cloud to descretize space Implicit functions - partitions clouds into semi-transparent pieces; can animate independently Rick Parent Computer Animation

Early Approach - Gardner Early flight simulator research Static model for the most part Sum of overlaping semi-transparent hollow ellipsoids Taper transparency from edges to center See Gardner’s paper from SIGGRAPH 1985 Rick Parent Computer Animation

Dave Ebert Rick Parent Computer Animation

Models for Fire Procedural 2D Particle system Ad hoc approaches Rick Parent Computer Animation

Models for Fire - 2D Rick Parent Computer Animation

Models for Fire - particle system Derived from Reeves’ paper on particle systems Rick Parent Computer Animation

Particle System Fire Rick Parent Computer Animation

Flames for film production Arnauld Lamorlette, Nick Foster, Structural modeling of flames for a production environment, Siggraph 02 (PDI/DreamWorks ) Rick Parent Computer Animation

Computational Fluid Dynamics (CFD) Fluid - a substance, as a liquid or gas, that is capable of flowing and that changes its shape at a steady rate when acted upon by a force. Rick Parent Computer Animation

CFD - terms Compressible – changeable density Steady state flow – motion attributes are constant at a point Viscosity – resistance to flow Newtonian Fluid has linear stresss-strain rate Vortices – circular swirls Rick Parent Computer Animation

General Approaches Grid-based Particle-based method Hybrid method Rick Parent Computer Animation

CFD equations mass is conserved momentum is conserved energy is conserved Usually not modeled in computer animation To solve: discretize cells discretize equations solve iteratively by numerical methods Rick Parent Computer Animation

CFD Rick Parent Computer Animation

Conservation of mass (2D) vx A Small control volume: Δx by Δy A = Δx * Δy vy Mass inside: Pressure gradient is proportional to both velocity and velocity gradient (and density) Time rate of mass change in volume Rick Parent Computer Animation

Conservation of mass (2D) vx A A = Δx * Δy vy Amount of mass entering from left: Time rate of mass change in volume = difference in rate of mass entering and rate of mass exiting Pressure gradient is proportional to both velocity and velocity gradient (and density) Difference between left and right: Rick Parent Computer Animation

Conservation of mass (2D) vx vy Divergence operator: Pressure gradient is proportional to both velocity and velocity gradient (and density) If incompressible Rick Parent Computer Animation

Conservation of momentum Momentum in CV changes as the result of: Mass flowing in and out Collisions of adjacent fluid (pressure) Pressure gradient is proportional to both velocity and velocity gradient (and density) Random interchange of fluid at boundary Rick Parent Computer Animation

Conservation of momentum in 2D Rate of change of vx-momentum vx-Momentum entering: Difference of x-momentum in x: Pressure gradient is proportional to both velocity and velocity gradient (and density) Difference of x-momentum in y: Pressure difference in x : Rick Parent Computer Animation

Conservation of momentum in 2D Pressure gradient is proportional to both velocity and velocity gradient (and density) Rick Parent Computer Animation

Conservation of momentum (3D) x direction y direction z direction Material derivative Rick Parent Computer Animation

Navier-Stokes (for graphics) Rick Parent Computer Animation

Viscosity, etc. Hooke’s law: in solid, stress is proportional to strain Fluid continuously deforms under an applied shear stress Newtonian fluid: stress is linearly proportional to time rate of strain h V Water, air are Newtonian; blood in non-Newtonian Rick Parent Computer Animation

Stokes Relations Extended Newtonian idea to multi-dimensional flows Rick Parent Computer Animation

Stokes Hypothesis Choose λ so that normal stresses sum to zero Rick Parent Computer Animation

Conservation of momentum with viscosity Rick Parent Computer Animation

Incompressible, Steady 2-D flow Density is a constant Steady state so time derivatives disappear Kinematic viscosity Rick Parent Computer Animation

2D Euler Equations – no viscosity If incompressible Pressure gradient is proportional to both velocity and velocity gradient (and density) Rick Parent Computer Animation

2D Equations review Pressure gradient is proportional to both velocity and velocity gradient (and density) Rick Parent Computer Animation

Smooth Particle Hydrodynamics (SPH) Track particles - globs of fluid - through space Each particle represents a density distribution of fluid Pressure gradient is proportional to both velocity and velocity gradient (and density) Inspect space for fluid/non-fluid interface Rick Parent Computer Animation

SPH property s() at location r computed by weighted average of property at particle: mj - mass of particle j rj - location of particle j sj - value of property of particle j pj - density of property of particle j Wh(r-rj) - kernel function Pressure gradient is proportional to both velocity and velocity gradient (and density) Rick Parent Computer Animation

SPH compute gradient and Laplacian at location r: Pressure gradient is proportional to both velocity and velocity gradient (and density) Rick Parent Computer Animation

SPH compute density at location r: Pressure gradient is proportional to both velocity and velocity gradient (and density) Rick Parent Computer Animation

SPH compute forces: Pressure gradient is proportional to both velocity and velocity gradient (and density) Rick Parent Computer Animation

SPH General purpose kernel: Kernel to avoid zero gradient at center Pressure gradient is proportional to both velocity and velocity gradient (and density) Rick Parent Computer Animation

SPH Kernel for viscosity: corresponding Laplacian: Pressure gradient is proportional to both velocity and velocity gradient (and density) Rick Parent Computer Animation