Course 14 Fluid Simulation Monday, Half Day, 8:30 am - 12:15 pm.

Slides:



Advertisements
Similar presentations
My First Fluid Project Ryan Schmidt. Outline MAC Method How far did I get? What went wrong? Future Work.
Advertisements

Realistic Simulation and Rendering of Smoke CSE Class Project Presentation Oleksiy Busaryev TexPoint fonts used in EMF. Read the TexPoint manual.
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.
Level set based Image Segmentation Hang Xiao Jan12, 2013.
Lecture 15: Capillary motion
Matthias Müller, Barbara Solenthaler, Richard Keiser, Markus Gross Eurographics/ACM SIGGRAPH Symposium on Computer Animation (2005),
Physical Based Modeling and Animation of Fire and Water Surface Jun Ni, Ph.D. M.E. Associate Research Scientist, Research Services Adjunct Assistant Professor.
Dr. Kirti Chandra Sahu Department of Chemical Engineering IIT Hyderabad.
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 Fire  [Nguyen, Fedkiw, Jensen ‘02]  Gaseous fuel/air mix (from a burner, or a hot piece of wood, or …) heats up  When it.
II. Properties of Fluids. Contents 1. Definition of Fluids 2. Continuum Hypothesis 3. Density and Compressibility 4. Viscosity 5. Surface Tension 6. Vaporization.
Evolving Sub-Grid Turbulence for Smoke Animation Hagit Schechter Robert Bridson SCA 08.
1cs533d-term Notes  Smoke: Fedkiw, Stam, Jensen, SIGGRAPH’01  Water: Foster, Fedkiw, SIGGRAPH’01 Enright, Fedkiw, Marschner, SIGGRAPH’02  Fire:
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
Animation and Rendering of Complex Water Surfaces Douglas Enright Stephen Marschner Ronald Fedkiw.
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?
Preliminary Assessment of Porous Gas-Cooled and Thin- Liquid-Protected Divertors S. I. Abdel-Khalik, S. Shin, and M. Yoda ARIES Meeting, UCSD (March 2004)
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.
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.
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.
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.
Analysis of A Disturbance in A Gas Flow P M V Subbarao Associate Professor Mechanical Engineering Department I I T Delhi Search for More Physics through.
A Hybrid Particle-Mesh Method for Viscous, Incompressible, Multiphase Flows Jie LIU, Seiichi KOSHIZUKA Yoshiaki OKA The University of Tokyo,
Animation of Fluids.
COMPUTATIONAL FLUID DYNAMICS IN REAL-TIME An Introduction to Simulation and Animation of Liquids and Gases.
A Fast Simulation Method Using Overlapping Grids for Interactions between Smoke and Rigid Objects Yoshinori Dobashi (Hokkaido University) Tsuyoshi Yamamoto.
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
Mathematical Equations of CFD
School of Aerospace Engineering MITE Numerical Modeling of Compressor and Combustor Flows Suresh Menon, Lakshmi N. Sankar Won Wook Kim S. Pannala, S.
1 MAE 5130: VISCOUS FLOWS Conservation of Mass September 2, 2010 Mechanical and Aerospace Engineering Department Florida Institute of Technology D. R.
Overview of Propagating Interfaces Donald Tanguay October 30, 2002.
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:
Dr. Jason Roney Mechanical and Aerospace Engineering
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.
Physical Based Modeling and Animation of Fire 1/25.
MAE 5360: Hypersonic Airbreathing Engines
Mass Coordinate WRF Dynamical Core - Eulerian geometric height coordinate (z) core (in framework, parallel, tested in idealized, NWP applications) - Eulerian.
Florida State University V. Mihalef B. Unlusu D. Metaxas M. Sussman M. Y. Hussaini Physics-Based Boiling Simulation.
CFX Slide serial no 1 © 2003 ANSYS CFX CFX-5.6 Multiphase Course Free Surface Lecture 5 Free Surface Flow.
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.
Heat Transfer Su Yongkang School of Mechanical Engineering # 1 HEAT TRANSFER CHAPTER 9 Free Convection.
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.
Computational Fluid Dynamics
Fluid Animation CSE 3541 By: Matt Boggus.
Numerical Simulations of Solar Magneto-Convection
MAE 5350: Gas Turbines Integral Forms of Mass and Momentum Equations
MAE 3241: AERODYNAMICS AND FLIGHT MECHANICS
Particle-in-Cell Methods
Anthony D. Fick & Dr. Ali Borhan Governing Equations
Presentation transcript:

Course 14 Fluid Simulation Monday, Half Day, 8:30 am - 12:15 pm

Course Schedule The Basics of Fluid Flow (Robert, 105 min) Break (15 min) The Cutting-Edge in Film (Eran, 45 min) Real Time Fluids in Games (Matthias, 45 min) Non-Newtonian Fluids (Robert, 15 min)

Talk Outline Particle level set method Vorticity confinement & vortex particles Fire simulation Solid-fluid coupling

Particle Level Set Method [Enright et al. ’02]

Level Sets We like level sets: – Smooth surface for rendering – Geometric information (normals, curvature) – Handle topological changes

simple rigid body rotationvortex stretching Problem: Bad Mass Conservation Even with high order solvers!

Solution Lagrangian marker particles Eulerian level set COMBINE

Particles Passively advected with flow Help correct interface – Especially areas of high curvature Hybrid surface model [Foster & Fedkiw ’01] – Particles inside water Particle level set method [Enright et al. ’02] – Particles on both sides

Particles Rigid Body Original shape Level set onlyOne-sided particlesParticle level set method

Particles Seeded within band of interface Carry sign and radius Periodically reseed particles – Add to under-resolved regions – Delete unnecessary particles

Error Identification Escaped particles (on wrong side of interface)

Error Quantification Particles behave like little level set spheres

Error Correction Compute corrections to >0 and <0 regions Merge into final corrected level set – Take minimum magnitude 

Particle Level Set Update Advect particles & level set Particle correction Reinitialize Particle correction Adjust radii

simple rigid body rotationvortex stretching Reduced Mass Loss

Fast and Accurate PLS Original PLS: – 3 rd order RK; 5 th order HJ-WENO [Enright et al. ‘04]: Good results with lower order methods – Semi-Lagrangian (advection) – Fast marching method (redistancing) – 2 nd order RK for particles Easier for adaptive grids

Vorticity Confinement & Vortex Particles [Selle et al. ’05]

Vorticity Vorticity: – Local rigid rotation Want to simulate turbulent phenomena – Problem: numerical dissipation (boring flows)

Fixing Boring Flows Boring FlowVorticity ConfinementVortex Particle Method

Vorticity Confinement 2. Compute vorticity 4. Compute a force 1. Start with a velocity field 3. Compute vectors directed toward local maxima in vorticity magnitude [Steinhoff & Underhill ’94; Fedkiw et al. ’01] [Andrew Selle]

Confinement Parameter  =0.25  =0.50

Limitations of Vorticity Confinement Uniformly amplifies vorticity ) grid artifacts Can only amplify vorticity already on the grid Unstable with larger   =2

Vortex Equations of Flow Navier-Stokes Equations Vortex Equations of Flow

Vortex Particle Method Hybrid method: – Vortex particles & grid-based fluid solver – Evolve both  and u Easier than trying to compute u from  [Selle et al. ’05]

Vortex Particle Method Vortex particle update: – Move particles (advection) – Change vorticity (vortex stretching) Adding vorticity to flow: – Apply analytic confinement force – Ensures vorticity is conserved

Results - Smoke Hybrid Method (6000 particles)

Results - Smoke

Results - Water [320x128x320 effective octree, 600 particles]

Fire Simulation [Nguyen et al. ’02]

Fire Gaseous fuel Blue core Blackbody radiation Soot & smoke Heating Cooling Emission due to chemical reaction Assumed premixed with air Yellowish/orange glow Visible after cooling ignition

Fire Simulation 2 phase flow – Gaseous fuel – Hot gaseous product Level set captures interface (blue core) Incompressible & inviscid Model gas expansion [Nguyen et al. ’01,’02]

Flame Modeling hot gaseous product gaseous fuel thin flame

Blue Core Track using level set (don’t need PLS) Varying flame reaction speed S (smaller on right)

Jump Conditions Using: e.g. Conservation of mass: Shorthand: Mass flux entering flame front Mass flux exiting flame front

Jump Conditions Conservation of mass and momentum:

Jump Conditions Can rewrite as

Varying Density Ratio Larger  f /  h on right

Ghost Values Fuel Ghost Value Hot Gas Ghost Fluid Method: [Fedkiw et al. ’99]

Velocity Jump Solve for fuel phase Solve for products phase

Pressure Jump Incorporate into pressure solve (projection step) e.g. In 1D:

When All is Said and Done… Still symmetric, positive definite!

Temperature & Smoke Density Temperature Used for color map Smoke Density Soot & smoke

Campfire

Flammable Solids Voxelize solid Track solid’s temperature (heat conduction) After ignition – Change solid voxels to negative  (fuel) – Set injection velocity on faces of solid voxels

Flammable Ball

Multiple Interacting Liquids [2nd talk – “Fluids” papers session – Wed. 8:30-10:15]

Solid-Fluid Coupling [Guendelman et al. ’05]

Lagrangian vs. Eulerian Meshes Lagrangian (moving) mesh Good for solids Bad for fluids – Significant deformation and topology change Eulerian (static) mesh Good for fluids Bad for solids – Harder to track moving material quantities

Strong vs. Weak Coupling Strong coupling (simultaneous solution) Monolothic system More stable Weak coupling (staggered solution) Use existing simulators Less stable SOLIDS SIM FLUIDS SIM SOLIDS + FLUIDS SIM e.g. [Chentanez et al. ’06]

Volumetric vs. Thin Solids VolumetricThin shell

256x256x192 effective octree; 30k triangles Coupling to Thin Solids [Guendelman et al. ’05]

Preventing Leaks: Visibility

Check visibility of interpolation nodes Use replacement ghost value when interpolating One-Sided Interpolation

One-Sided Advection Clip semi-Lagrangian rays

Additional Considerations Crossed-over nodes Preventing particles from crossing solid Redistancing & velocity extrapolation

Simulation Step un,nun,n Advance particle level set !  n+1 Advect u n and add gravity ! u* Project u* ! u n+1 u n+1,  n+1 One-sided advection (  and particles) One-sided advection (u)

Solid Affecting Fluid Rasterize solid onto grid faces Enforce solid velocity with Neumann boundary conditions Project u* ! u n+1

One-Way Coupling Step un,nun,n Advance particle level set !  n+1 Advect u n and add gravity ! u* Project u* ! u n+1 u n+1,  n+1 Advance solid Enforce solid velocities at solid-fluid interface

160x192x160 effective octree One Way Coupling Example

Fluid Coupling Force Want to use fluid pressure Incompressible pressure can be noisy – Incompressibility = hard constraint – Enforcing solid velocity = hard constraint – Better for compressible fluids [Yngve et al. ‘00; Fedkiw ‘02]

Smoother Coupling Pressure Don’t enforce solid velocity – Treat solid as fluid Solve variable density fluid for p c

Two Pressure Solves! Incompressible pressure (projection): – Enforce incompressibility & solid velocity – Essential for reducing mass loss Coupling pressure: – Does not modify fluid velocity – Essential for smoother coupling force on solid

Computing Force on Solid Fluid pressure pushes on both sides

Computing Force on Solid Net force is proportional to pressure jump [ p c ]

Computing Force on Solid Rasterize solidCompute coupling pressurePressure jumps on facesAverage to nodes ExtrapolateInterpolate at centroid Compute force

Two-Way Coupling Step un,nun,n Advance particle level set !  n+1 Advect u n and add gravity ! u* Advance solid Project u* ! u n+1 u n+1,  n+1 Compute coupling pressure and apply force to solid

148x148x111 uniform; 2.5k triangles Rigid Shell

200x200x200 effective octree; 30k triangles Water-Cloth Coupling

210x140x140 uniform; 30k triangles Coupling to Smoke

Coupling to Volumetric Solids [Losasso et al. ’06]

Approach Rasterize solid onto fluid grid – Compute  object Fill with ghost fluid values Two-way coupling as for thin shells

Volumetric Solids Extrapolate fluid values [Houston et al. ’03; Rasmussen et al. ’04] Need grid values in solid

Volumetric Solids Velocity boundary conditions – Model object friction (slip to no-slip)  boundary conditions – Extrapolate fluid  into object Separation conditions – Avoid pulling water out of solid Also collide fluid particles against objects

Two-Way Coupling Solid Affecting Fluid Neumann boundary conditions Fluid Affecting Solid Compute coupling pressure Apply force

Ice Cubes Example 100x100x100 uniform grid

Summary Particle level set method – Particles help conserve mass Vorticity confinement & vortex particles – Help preserve “turbulence” in flow Fire simulation – 2 phases with jump conditions Solid-fluid coupling – Couple using solid velocity & fluid pressure