Stable Fluids A paper by Jos Stam.

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
Simulation of Fluids using the Navier-Stokes Equations Kartik Ramakrishnan.
Navier-Stokes.
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.
Advanced Artificial Lift Methods Electrical Submersible Pump Advanced Artificial Lift Methods – PE 571 Chapter 1 - Electrical Submersible Pump Centrifugal.
Equations of Continuity
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.
1 MFGT 242: Flow Analysis Chapter 4: Governing Equations for Fluid Flow Professor Joe Greene CSU, CHICO.
Combined Lagrangian-Eulerian Approach for Accurate Advection Toshiya HACHISUKA The University of Tokyo Introduction Grid-based fluid.
Visual Simulation of Smoke SIGGRAPH’01 Ronald Fedkiw, Jos Stam and Henrik Wann Jensen Stanford University & Alias|wavefront.
Tamed Effect of Normal Stress in VFF… P M V Subbarao Professor Mechanical Engineering Department I I T Delhi Negligible Bulk Viscosity Model for Momentum.
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.
ME 231 Thermofluid Mechanics I Navier-Stokes Equations.
Conservation Laws for Continua
Computer Animation Rick Parent Computer Animation Algorithms and Techniques Fluids.
Tutorial 5: Numerical methods - buildings Q1. Identify three principal differences between a response function method and a numerical method when both.
Animation of Fluids.
1 Discretization of Fluid Models (Navier Stokes) Dr. Farzad Ismail School of Aerospace and Mechanical Engineering Universiti Sains Malaysia Nibong Tebal.
A particle-gridless hybrid methods for incompressible flows
AOE 5104 Class 5 9/9/08 Online presentations for next class:
USSC3002 Oscillations and Waves Lecture 12 Water Waves Wayne M. Lawton Department of Mathematics National University of Singapore 2 Science Drive 2 Singapore.
1 Discretization of Fluid Models (Navier Stokes) Dr. Farzad Ismail School of Aerospace and Mechanical Engineering Universiti Sains Malaysia Nibong Tebal.
Stable, Circulation- Preserving, Simplicial Fluids Sharif Elcott, Yiying Tong, Eva Kanso, Peter Schröder, and Mathieu Desbrun.
FPGA Based Smoke Simulator Jonathan Chang Yun Fei Tianming Miao Guanduo Li.
Ch 4 Fluids in Motion.
Discretization Methods Chapter 2. Training Manual May 15, 2001 Inventory # Discretization Methods Topics Equations and The Goal Brief overview.
Tuesday Sept 21st: Vector Calculus Derivatives of a scalar field: gradient, directional derivative, Laplacian Derivatives of a vector field: divergence,
© Fox, Pritchard, & McDonald Introduction to Fluid Mechanics Chapter 5 Introduction to Differential Analysis of Fluid Motion.
CP502 Advanced Fluid Mechanics
Outline Time Derivatives & Vector Notation
Highly Viscous Flows…. P M V Subbarao Professor Mechanical Engineering Department I I T Delhi Creeping Flows.
Differential Analysis of Fluid Flow. Navier-Stokes equations Example: incompressible Navier-Stokes equations.
CP502 Advanced Fluid Mechanics
November 2005 Center for Computational Visualization Institute of Computational and Engineering Sciences Department of Computer Sciences University of.
CSE 872 Dr. Charles B. Owen Advanced Computer Graphics1 Water Computational Fluid Dynamics Volumes Lagrangian vs. Eulerian modelling Navier-Stokes equations.
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 발표 윤종철.
Computer Animation Rick Parent Computer Animation Algorithms and Techniques Computational Fluid Dynamics.
Chapter 6 Vector Analysis
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.)
Part IV: Detailed Flow Structure Chap. 7: Microscopic Balances
Today’s Lecture Objectives:
FLUID DYNAMICS Made By: Prajapati Dharmesh Jyantibhai ( )
The Bernoulli Equation
Space Distribution of Spray Injected Fluid
Chapter 6 Vector Analysis
Characteristics of Turbulence:
Objective Numerical methods Finite volume.
topic8_NS_vectorForm_F02
Introduction to Fluid Dynamics & Applications
topic8_NS_vectorForm_F02
Part 5:Vorticity.
Part VI:Viscous flows, Re<<1
Physics 451/551 Theoretical Mechanics
David Marshburn Comp 259 April 17, 2002
Introduction to Fluid Mechanics
AE/ME 339 Computational Fluid Dynamics (CFD) K. M. Isaac 7/24/2019
Fluid Simulation.
Presentation transcript:

Stable Fluids A paper by Jos Stam

Contributions Real-Time unconditionally stable solver for Navier-Stokes fluid dynamics equations Implicit methods allow for large timesteps Excessive damping – damps out swirling vortices Easy to implement Controllable (?)

Some Math(s) Nabla Operator: Laplacian Operator: Gradient:

More Math(s) Vector Gradient: Divergence: Directional Derivative:

Navier-Stokes Fluid Dynamics Velocity field u, Pressure field p Viscosity v, density d (constants) External force f Navier-Stokes Equation: Mass Conservation Condition:

Navier-Stokes Equation Derived from momentum conservation condition 4 Components: Advection/Convection Diffusion (damping) Pressure External force (gravity, etc)

Mass Conservation Condition Velocity field u has zero divergence Net mass change of any sub-region is 0 Flow in == flow out Incompressible fluid Comes from continuum assumption

Enforcing Zero Divergence Pressure and Velocity fields related Say we have velocity field w with non-zero divergence Can decompose into Helmholtz-Hodge Decomposition u has zero divergence Define operator P that takes w to u: Apply P to Navier-Stokes Equation: (Used facts that and )

Operator P Need to find Implicit definition: Poisson equation for scalar field p Neumann boundary condition Sparse linear system when discretized

Solving the System Need to calculate: Start with initial state Calculate new velocity fields New state:

Step 1 – Add Force Assume change in force is small during timestep Just do a basic forward-Euler step Note: f is actually an acceleration?

Step 2 - Advection

Method of Characteristics p is called the characteristic Partial streamline of velocity field u Can show u does not vary along streamline Determine p by tracing backwards Unconditionally stable Maximum value of w2 is never greater than maximum value of w1

Step 3 – Diffusion Standard diffusion equation Use implicit method: Sparse linear system

Step 4 - Projection Enforces mass-conservation condition Poisson Problem: Discretize q using central differences Sparse linear system Maybe banded diagonal… Relaxation methods too inaccurate Method of characteristics more precise for divergence-free field

Complexity Analysis Have to solve 2 sparse linear systems Theoretically O(N) with multigrid methods Advection solver is also O(N) However, have to take lots of steps in particle tracer, or vortices are damped out very quickly So solver is theoretically O(N) I think the constant is going to be pretty high…

Periodic Boundaries Allows transformation into Fourier domain In Fourier domain, nabla operator is equivalent to ik New Algorithm: Compute force and advection Transform to Fourier domain Compute diffusion and projection steps Trivial because nabla is just a multiply Transform back to time domain

Diffusing Substances Diffuse scalar quantity a (smoke, dust, texture coordinate) Advected by velocity field while diffusing ka is diffusion constant, da is dissipation rate, Sa is source term Similar to Navier-Stokes Can use same methods to solve equations, Except dissipation term

The End