The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL Introduction to Modeling Fluid Dynamics 1.

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.
Realistic Simulation and Rendering of Smoke CSE Class Project Presentation Oleksiy Busaryev TexPoint fonts used in EMF. Read the TexPoint manual.
Simulation of Fluids using the Navier-Stokes Equations Kartik Ramakrishnan.
Navier-Stokes.
Continuity Equation. Continuity Equation Continuity Equation Net outflow in x direction.
Matthias Müller, Barbara Solenthaler, Richard Keiser, Markus Gross Eurographics/ACM SIGGRAPH Symposium on Computer Animation (2005),
1 Modeling Highly- Deformable Liquid Chih-Wei Chiu Computer Graphics and Geometry Modeling Laboratory National Chiao Tung University June 25, 2002 Advisors:
1cs533d-term Notes. 2 Shallow water equations  To recap, using eta for depth=h+H:  We’re currently working on the advection (material derivative)
1cs533d-winter-2005 Shallow water equations  From last time, using eta for depth=h+H:  We’ll discretize this using “splitting” Handle the material derivative.
Combating Dissipation. Numerical Dissipation  There are several sources of numerical dissipation in these simulation methods  Error in advection step.
1cs533d-winter-2005 Notes  Please read Fedkiw, Stam, Jensen, “Visual simulation of smoke”, SIGGRAPH ‘01.
William Moss Advanced Image Synthesis, Fall 2008.
Intro to Fluid Simulation (I) Jeff Pool COMP
University of North Carolina - Chapel Hill Fluid & Rigid Body Interaction Comp Physical Modeling Craig Bennetts April 25, 2006 Comp Physical.
1cs533d-winter-2005 Notes  I’m now in X663 Well, sort of…  Questions about assignment 3?
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,
Visual Simulation of Smoke SIGGRAPH’01 Ronald Fedkiw, Jos Stam and Henrik Wann Jensen Stanford University & Alias|wavefront.
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.
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.
Simulation and Animation
Motivation  Movie  Game  Engineering Introduction  Ideally  Looks good  Fast simulation  Looks good?  Look plausible  Doesn’t need to be exactly.
2015/8/29 A Semi-Lagrangian CIP Fluid Solver Without Dimensional Splitting Doyub Kim Oh-Young Song Hyeong-Seok Ko presented by ho-young Lee.
Computer Animation Rick Parent Computer Animation Algorithms and Techniques Fluids.
Fluid Animation CSE 3541 Matt Boggus. Procedural approximations – Heightfield fluids Mathematical background – Navier-Stokes equation Computational models.
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
COMPUTATIONAL FLUID DYNAMICS IN REAL-TIME An Introduction to Simulation and Animation of Liquids and Gases.
CS559: Computer Graphics Lecture 38: Animation Li Zhang Spring 2008 Slides from Brian Curless at U of Washington.
A Fast Simulation Method Using Overlapping Grids for Interactions between Smoke and Rigid Objects Yoshinori Dobashi (Hokkaido University) Tsuyoshi Yamamoto.
Smoothed Particle Hydrodynamics (SPH) Fluid dynamics The fluid is represented by a particle system Some particle properties are determined by taking an.
A particle-gridless hybrid methods for incompressible flows
Simplified Smoothed Particle Hydrodynamics for Interactive Applications Zakiya Tamimi Richard McDaniel Based on work done at Siemens Corporate.
Incompressible Flows Sauro Succi. Incompressible flows.
Taming a Wild River Jeff Lander Darwin 3D
Stable, Circulation- Preserving, Simplicial Fluids Sharif Elcott, Yiying Tong, Eva Kanso, Peter Schröder, and Mathieu Desbrun.
University of Texas at Austin CS 378 – Game Technology Don Fussell CS 378: Computer Game Technology Physics for Games Spring 2012.
FPGA Based Smoke Simulator Jonathan Chang Yun Fei Tianming Miao Guanduo Li.
Real-time Simulation and Visualization using Pre-calculated Fluid Simulator States Marek Gayer, Pavel Slavík and František Hrdlička Computer Graphics Group.
FlowFixer: Using BFECC for Fluid Simulation ByungMoon Kim Yingjie Liu Ignacio Llamas Jarek Rossignac Georgia Institute of Technology.
© Fox, Pritchard, & McDonald Introduction to Fluid Mechanics Chapter 5 Introduction to Differential Analysis of Fluid Motion.
Particle Systems. Applications Particle systems are broadly defined for: Explosion Cloth Fluid And more… It is integrated into many animation software,
CP502 Advanced Fluid Mechanics
Game Technology Animation V Generate motion of objects using numerical simulation methods Physically Based Animation.
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.
SIGGRAPH 2005 신 승 호 신 승 호. Water Drops on Surfaces Huamin Wang Peter J. Mucha Greg Turk Georgia Institute of Technology.
Animating smoke with dynamic balance Jin-Kyung Hong Chang-Hun Kim 발표 윤종철.
Interesting papers on SIGGRAPH 2005 Korea University Computer Graphics Lab. Jin-Kyung Hong.
Computer Animation Rick Parent Computer Animation Algorithms and Techniques Computational Fluid Dynamics.
Fluid Animation CSE 3541 By: Matt Boggus.
ATCM 6317 Procedural Animation
Introduction to Fluid Dynamics & Applications
Procedural Animation Lecture 11: Fluid dynamics
Particle-in-Cell Methods
Physically Based Modeling -Overview-
David Marshburn Comp 259 April 17, 2002
Introduction to Fluid Mechanics
Presentation transcript:

The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL Introduction to Modeling Fluid Dynamics 1

The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL 2 Different Kind of Problem Can be particles, but lots of them Solve instead on a uniform grid

The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL 3 No Particles => New State Particle Mass Velocity Position Fluid Density Velocity Field Pressure Viscosity

The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL 4 No Particles => New Equations Navier-Stokes equations for viscous, incompressible liquids.

The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL 5 What goes in must come out Gradient of the velocity field= 0 Conservation of Mass

The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL 6 Time derivative Time derivative of velocity field Think acceleration

The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL 7 Advection term Field is advected through itself Velocity goes with the flow

The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL 8 Diffusion term Kinematic Viscosity times Laplacian of u Differences in Velocity damp out

The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL 9 Pressure term Fluid moves from high pressure to low pressure Inversely proportional to fluid density, ρ

The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL 10 External Force Term Can be or represent anythying Used for gravity or to let animator “stir”

The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL 11 Navier-Stokes How do we solve these equations?

The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL 12 Discretizing in space and time We have differential equations We need to put them in a form we can compute Discetization – Finite Difference Method

The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL 13 Discretize in Space X Velocity Y Velocity Pressure Staggered Grid vs Regular

The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL 14 Discretize the operators Just look them up or derive them with multidimensional Taylor Expansion Be careful if you used a staggered grid

The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL 15 Example 2D Discetizations Divergence Operator Laplacian Operator

The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL 16 Make a linear system It all boils down to Ax=b.

The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL 17 Simple Linear System Exact solution takes O(n 3 ) time where n is number of cells In 3D k 3 cells where k is discretization on each axis Way too slow O(n 9 )

The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL 18 Need faster solver Our matrix is symmetric and positive definite….This means we can use ♦ Conjugate Gradient Multigrid also an option – better asymptotic, but slower in practice.

The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL 19 Time Integration Solver gives us time derivative Use it to update the system state U(t+Δt) UtUt U(t)

The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL 20 Discetize in Time Use some system such as forward Euler. RK methods are bad because derivatives are expensive Be careful of timestep

The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL 21 Time/Space relation? Courant-Friedrichs- Lewy (CFL) condition Comes from the advection term

The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL 22 Now we have a CFD simulator We can simulate fluid using only the aforementioned parts so far This would be like Foster & Metaxas first full 3D simulator What if we want it real-time?

The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL 23 Time for Graphics Hacks Unconditionally stable advection ♦ Kills the CFL condition Split the operators ♦ Lets us run simpler solvers Impose divergence free field ♦ Do as post process

The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL 24 Semi-lagrangian Advection CFL Condition limits speed of information travel forward in time Like backward Euler, what if instead we trace back in time? p(x,t) back-trace

The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL 25 Divergence Free Field Helmholtz-Hodge Decomposition ♦ Every field can be written as w is any vector field u is a divergence free field q is a scalar field

The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL 26 Helmholtz-Hodge STAM 2003

The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL 27 Divergence Free Field We have w and we want u Projection step solves this equation

The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL 28 Ensures Mass Conservation Applied to field before advection Applied at the end of a step Takes the place of first equation in Navier-Stokes

The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL 29 Operator Splitting We can’t use semi-lagrangian advection with a Poisson solver We have to solve the problem in phases Introduces another source of error, first order approximation

The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL 30 Operator Splitting

The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL 31 Operator Splitting 1.Add External Forces 2.Semi-lagrangian advection 3.Diffusion solve 4.Project field

The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL 32 Operator Splitting W0W0 W1W1 W2W2 W3W3 W4W4 u(x,t) u(x,t+Δt)

The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL 33 Various Extensions Free surface tracking Inviscid Navier-Stokes Solid Fluid interaction

The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL 34 Free Surfaces Level sets ♦ Loses volume ♦ Poor surface detail Particle-level sets ♦ Still loses volume ♦ Osher, Stanley, & Fedkiw, 2002 MAC grid ♦ Harlow, F.H. and Welch, J.E., "Numerical Calculation of Time-Dependent Viscous Incompressible Flow of Fluid with a Free Surface", The Physics of Fluids 8, (1965).

The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL 35 Free Surfaces MAC GridLevel Set

The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL 36 Inviscid Navier-Stokes Can be run faster Only 1 Poisson Solve needed Useful to model smoke and fire ♦ Fedkiw, Stam, Jensen 2001

The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL 37 Solid Fluid Interaction Long history in CFD Graphics has many papers on 1 way coupling ♦ Way back to Foster & Metaxas, 1996 Two way coupling is a new area in past 3-4 years ♦ Carlson 2004

The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL 38 Where to get more info Simplest way to working fluid simulator (Even has code) ♦ STAM 2003 Best way to learn enough to be dangerous ♦ CARLSON 2004

The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL 39 References CARLSON, M., “Rigid, Melting, and Flowing Fluid,” PhD Thesis, Georgia Institute of Technology, Jul FEDKIW, R., STAM, J., and JENSEN, H. W., “Visual simulation of smoke,” in Proceedings of ACM SIGGRAPH 2001, Computer Graphics Proceedings, Annual Conference Series, pp. 15–22, Aug FOSTER, N. and METAXAS, D., “Realistic animation of liquids,” Graphical Models and Image Processing, vol. 58, no. 5, pp. 471–483, HARLOW, F.H. and WELCH, J.E., "Numerical Calculation of Time-Dependent Viscous Incompressible Flow of Fluid with a Free Surface", The Physics of Fluids 8, (1965). LOSASSO, F., GIBOU, F., and FEDKIW, R., “Simulating water and smoke with an octree data structure,” ACM Transactions on Graphics, vol. 23, pp. 457–462, Aug OSHER, STANLEY J. & FEDKIW, R. (2002). Level Set Methods and Dynamic Implicit Surfaces. Springer- Verlag. STAM, J., “Real-time fluid dynamics for games,” in Proceedings of the Game Developer Conference, Mar