1cs533d-term1-2005 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.

Slides:



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

Level set based Image Segmentation Hang Xiao Jan12, 2013.
Navier-Stokes.
1cs533d-term Notes  No lecture Thursday (apologies)
Gauss’ Law Besides adding up the electric fields due to all the individual electric charges, we can use something called Gauss’ Law. Its idea is similar.
Notes Assignment questions… cs533d-winter-2005.
1cs533d-term Notes  Assignment 2 is up. 2cs533d-term Modern FEM  Galerkin framework (the most common)  Find vector space of functions that.
1cs533d-term Notes  Smoke: Fedkiw, Stam, Jensen, SIGGRAPH’01  Water: Foster, Fedkiw, SIGGRAPH’01 Enright, Fedkiw, Marschner, SIGGRAPH’02  Fire:
1Notes. 2 Building implicit surfaces  Simplest examples: a plane, a sphere  Can do unions and intersections with min and max  This works great for.
More Accurate Pressure Solves. Solid Boundaries  Voxelized version works great if solids aligned with grid  If not: though the error in geometry is.
1Notes  Textbook: matchmove 6.7.2, B.9. 2 Match Move  For combining CG effects with real footage, need to match synthetic camera to real camera: “matchmove”
1Notes  Text:  Motion Blur A.3  Particle systems 4.5 (and 4.4.1, 6.6.2…)  Implicit Surfaces  Classic particle system papers  W. Reeves, “Particle.
1cs533d-winter-2005 Notes  Please read Fedkiw, Stam, Jensen, “Visual simulation of smoke”, SIGGRAPH ‘01.
Intro to Fluid Simulation (I) Jeff Pool COMP
Chapter 9 Vertical Motion. (1) Divergence in two and three dimensions. The del “or gradient” operator is a mathematical operation performed on something.
Chapter 8 Coordinate Systems.
1cs533d-winter-2005 Notes  Please read Enright et al., “Animation and rendering of complex water surfaces”, SIGGRAPH’02.
1cs533d-winter-2005 Notes  I’m now in X663 Well, sort of…  Questions about assignment 3?
1cs426-winter-2008 Notes  Course project: Will be due at the end of the term You can do it in pairs Create an animation that combines an algorithm for.
1 MFGT 242: Flow Analysis Chapter 4: Governing Equations for Fluid Flow Professor Joe Greene CSU, CHICO.
1cs533d-winter-2005 Notes  Some example values for common materials: (VERY approximate) Aluminum: E=70 GPa =0.34 Concrete:E=23 GPa =0.2 Diamond:E=950.
Modeling Fluid Phenomena -Vinay Bondhugula (25 th & 27 th April 2006)
1cs533d-term Notes. 2 Poisson Ratio  Real materials are essentially incompressible (for large deformation - neglecting foams and other weird composites…)
Simple Performance Prediction Methods Module 2 Momentum Theory.
Numerical Hydraulics Wolfgang Kinzelbach with Marc Wolf and Cornel Beffa Lecture 1: The equations.
Particle-Based non-Newtonian Fluid Animation for Melting Objects Afonso Paiva Fabiano P. do Carmo Thomas Lewiner Geovan Tavares Matmidia - Departament.
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.
Numerical Methods for Partial Differential Equations CAAM 452 Spring 2005 Lecture 9 Instructor: Tim Warburton.
Motivation  Movie  Game  Engineering Introduction  Ideally  Looks good  Fast simulation  Looks good?  Look plausible  Doesn’t need to be exactly.
ME 231 Thermofluid Mechanics I Navier-Stokes Equations.
Game Physics – Part I Dan Fleck Coming up: Rigid Body Dynamics.
AMBIENT AIR CONCENTRATION MODELING Types of Pollutant Sources Point Sources e.g., stacks or vents Area Sources e.g., landfills, ponds, storage piles Volume.
Flood Routing 2 Review of Energy Conservation Energy Grade Line Gradually Varied Flows, Head Loss Runge-Kutta Routing.
CEE 262A H YDRODYNAMICS Lecture 5 Conservation Laws Part I 1.
Chapter 9: Differential Analysis of Fluid Flow SCHOOL OF BIOPROCESS ENGINEERING, UNIVERSITI MALAYSIA PERLIS.
Smoothed Particle Hydrodynamics (SPH) Fluid dynamics The fluid is represented by a particle system Some particle properties are determined by taking an.
Kemerovo State University(Russia) Mathematical Modeling of Large Forest Fires Valeriy A. Perminov
Lecture I of VI (Claudio Piani) Course philosophy, the Navier-Stokes equations, Shallow Water, pressure gradient force, material derivative, continuity,
CHAPTER (III) KINEMATICS OF FLUID FLOW 3.1: Types of Fluid Flow : Real - or - Ideal fluid : Laminar - or - Turbulent Flows : Steady -
A conservative FE-discretisation of the Navier-Stokes equation JASS 2005, St. Petersburg Thomas Satzger.
A particle-gridless hybrid methods for incompressible flows
1 MAE 5130: VISCOUS FLOWS Conservation of Mass September 2, 2010 Mechanical and Aerospace Engineering Department Florida Institute of Technology D. R.
Mass Transfer Coefficient
Reynolds Transport Theorem We need to relate time derivative of a property of a system to rate of change of that property within a certain region (C.V.)
CEE 262A H YDRODYNAMICS Lecture 15 Unsteady solutions to the Navier-Stokes equation.
Rocket Propulsion Physics Montwood High School R. Casao.
Grid or Mesh or Adaptive Procedure Fluid Dynamics is Made for This And this was developed in the Early 1970s.
General Relativity Physics Honours 2008 A/Prof. Geraint F. Lewis Rm 560, A29 Lecture Notes 10.
HEAT TRANSFER FINITE ELEMENT FORMULATION
1 Chapter 6 Flow Analysis Using Differential Methods ( Differential Analysis of Fluid Flow)
Ch 4 Fluids in Motion.
Physical Based Modeling and Animation of Fire 1/25.
Discretization Methods Chapter 2. Training Manual May 15, 2001 Inventory # Discretization Methods Topics Equations and The Goal Brief overview.
CP502 Advanced Fluid Mechanics
Chapter 2: Heat Conduction Equation
1.What are fluid kinematics?  kinematic descriptions of motion describe position, velocity, and accelerations (NOT FORCE) [ physical interpretation: what.
Differential Analysis of Fluid Flow. Navier-Stokes equations Example: incompressible Navier-Stokes equations.
NEWTON’S SECOND LAW: LINEAR MOMENTUM
November 2005 Center for Computational Visualization Institute of Computational and Engineering Sciences Department of Computer Sciences University of.
CAD and Finite Element Analysis Most ME CAD applications require a FEA in one or more areas: –Stress Analysis –Thermal Analysis –Structural Dynamics –Computational.
ASCI/Alliances Center for Astrophysical Thermonuclear Flashes An Interface Propagation Model for Reaction-Diffusion Advection Adam Oberman An Interface.
1 Spring 2003 Prof. Tim Warburton MA557/MA578/CS557 Lecture 25.
CSE 872 Dr. Charles B. Owen Advanced Computer Graphics1 Water Computational Fluid Dynamics Volumes Lagrangian vs. Eulerian modelling Navier-Stokes equations.
Modelling of Marine Systems. Shallow waters Equations.
Chapter 4 Fluid Mechanics Frank White
Chapter 9: Differential Analysis of Fluid Flow
ME 475/675 Introduction to Combustion
FLUID MECHANICS - Review
COMBUSTION ENGINEERING
Presentation transcript:

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 reaches ignition temperature, starts to burn “blue core” - see the actual flame front due to emission lines of excited hydrocarbons  Gets really hot while burning - glows orange from blackbody radiation of smoke/soot  Cools due to radiation, mixing Left with regular smoke

3cs533d-term Defining the flow  Inside and outside blue core, regular incompressible flow with buoyancy  But an interesting boundary condition at the flame front Gaseous fuel and air chemically reacts to produce a different gas with a different density Mass is conserved, so volume has to change Gas instantly expands at the flame front  And the flame front is moving too At the speed of the flow plus the reaction speed

4cs533d-term Interface speed  Interface = flame front = blue core surface  D=V f -S is the speed of the flame front It moves with the fuel flow, and on top of that, moves according to reaction speed S S is fixed for a given fuel mix  We can track the flame front with a level set   Level set moves by  Here u LS is u f -Sn

5cs533d-term Numerical method  For water we had to work hard to move interface accurately  Here it’s ok just to use semi-Lagrangian method (with reinitialization)  Why? We’re not conserving volume of blue core - if reaction is a little too fast or slow, that’s fine Numerical error looks like mean curvature Real physics actually says reaction speed varies with mean curvature!

6cs533d-term Conservation of mass  Mass per unit area entering flame front is  f (V f - D) where V f =u f n is the normal component of fuel velocity D is the (normal) speed of the interface  Mass per unit area leaving flame front is  h (V h - D) where V h =u h n is the normal component of hot gaseous products velocity  Equating the two gives:

7cs533d-term Velocity jump  Plugging interface speed D into conservation of mass at the flame front gives:

8cs533d-term Ghost velocities  This is a “jump condition”: how the normal component of velocity jumps when you go over the flame interface  This lets us define a “ghost” velocity field that is continuous When we want to get a reasonable value of u h for semi- Lagrangian advection of hot gaseous products on the fuel side of the interface, or vice versa (and also for moving interface) When we compute divergence of velocity field  Simply take the velocity field, add/subtract (  f /  h -1)Sn

9cs533d-term Conservation of momentum  Momentum is also conserved at the interface  Fuel momentum per unit area “entering” the interface is  Hot gaseous product momentum per unit area “leaving” the interface is  Equating the two gives

10cs533d-term Simplifying  Make the equation look nicer by taking conservation of mass: multiplying both sides by -D: and adding to previous slide’s equation:

11cs533d-term Pressure jump  This gives us jump in pressure from one side of the interface to the other  By adding/subtracting the jump, we can get a reasonable continuous extension of pressure from one side to the other For taking the gradient of p to make the flow incompressible after advection  Note when we solve the Poisson equation density is NOT constant, and we have to incorporate jump in p (known) just like we use it in the pressure gradient

12cs533d-term Temperature  We don’t want to get into complex (!) chemistry of combustion  Instead just specify a time curve for the temperature Temperature known at flame front (T ignition ) Temperature of a chunk of hot gaseous product rises at a given rate to T max after it’s created Then cools due to radiation

13cs533d-term Temperature cont’d  For small flames (e.g. candles) can model initial temperature rise by tracking time since reaction: Y t +u  Y=1 and making T a function of Y  For large flames ignore rise, just start flame at T max (since transition region is very thin, close to blue core)  Radiative cooling afterwards:

14cs533d-term Smoke concentration  Can do the same as for temperature: initially make it a function of time Y since reaction (rising from zero) And ignore this regime for large flames  Then just advect without change, like before  Note: both temperature and smoke concentration play back into velocity equation (buoyancy force)

15cs533d-term Note on fuel  We assumed fuel mix is magically being injected into scene Just fine for e.g. gas burners Reasonable for slow-burning stuff (like thick wood)  What about fast-burning material? Can specify another reaction speed S fuel for how fast solid/liquid fuel turned into flammable gas (dependent on temperature) Track level set of solid/liquid fuel just like we did the blue core

16cs533d-term SPH  Smoothed Particle Hydrodynamics A particle system approach  Get rid of the mesh altogether - figure out how to do  p etc. with just particles  Each particle represents a blurry chunk of fluid (with a particular mass, momentum, etc.)  Lagrangian: advection is going to be easy

17cs533d-term Mesh-free?  Mathematically, SPH and particle-only methods are independent of meshes  Practically, need an acceleration structure to speed up finding neighbouring particles (to figure out forces)  Most popular structure (for non-adaptive codes, i.e. where h=constant for all particles) is… a mesh (background grid)

18cs533d-term SPH  SPH can be interpreted as a particular way of choosing forces, so that you converge to solving Navier-Stokes  [Lucy’77], [Gingold & Monaghan ‘77], [Monaghan…], [Morris, Fox, Zhu ‘97], …  Similar to FEM, we go to a finite dimensional space of functions Basis functions now based on particles instead of grid elements Can take derivatives etc. by differentiating the real function from the finite-dimensional space

19cs533d-term Kernel  Need to define particle’s influence in surrounding space (how we’ll build the basis functions)  Choose a kernel function W Smoothed approximation to  W(x)=W(|x|) - radially symmetric Integral is 1 W=0 far enough away - when |x|>2.5h for example  Examples: Truncated Gaussian Splines (cubic, quartic, quintic, …)

20cs533d-term Cubic kernel  Use where Note: not good for viscosity (2nd derivatives involved - not very smooth)

21cs533d-term Estimating quantities  Say we want to estimate some flow variable q at a point in space x  We’ll take a mass and kernel weighted average  Raw version: But this doesn’t work, since sum of weights is nowhere close to 1 Could normalize by dividing by but that involves complicates derivatives… Instead use estimate for normalization at each particle separately (some mass-weighted measure of overlap)

22cs533d-term Smoothed Particle Estimate  Take the “raw” mass estimate to get density: [check dimensions]  Evaluate this at particles, use that to approximately normalize:

23cs533d-term Incompressible Free Surfaces  Actually, I lied That is, regular SPH uses the previous formulation For doing incompressible flow with free surface, we have a problem Density drop smoothly to 0 around surface This would generate huge pressure gradient, compresses surface layer  So instead, track density for each particle as a primary variable (as well as mass!) Update it with continuity equation Mass stays constant however - probably equal for all particles, along with radius

24cs533d-term Continuity equation  Recall the equation is  We’ll handle advection by moving particles around  So we need to figure out right-hand side  Divergence of velocity for one particle is  Multiply by density, get SPH estimate:

25cs533d-term Momentum equation  Without viscosity:  Handle advection by moving particles  Acceleration due to gravity is trivial  Left with pressure gradient  Naïve approach - just take SPH estimate as before

26cs533d-term Conservation of momentum  Remember momentum equation really came out of F=ma (but we divided by density to get acceleration)  Previous slide - momentum is not conserved Forces between two particles is not equal and opposite  We need to symmetrize this somehow [check symmetry - also note angular momentum]

27cs533d-term SPH advection  Simple approach: just move each particle according to its velocity  More sophisticated: use some kind of SPH estimate of v keep nearby particles moving together  XSPH

28cs533d-term Equation of state  Some debate - maybe need a somewhat different equation of state if free-surface involved  E.g. [Monaghan’94]  For small variations, looks like gradient is the same [linearize] But SPH doesn’t estimate -1 exactly, so you do get different results…

29cs533d-term The End  But my lifetime guarantee: you can ask me questions anytime about numerical physics stuff…