David Marshburn Comp 259 April 17, 2002

Slides:



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

Realistic Simulation and Rendering of Smoke CSE Class Project Presentation Oleksiy Busaryev TexPoint fonts used in EMF. Read the TexPoint manual.
Navier-Stokes.
Continuity Equation. Continuity Equation Continuity Equation Net outflow in x direction.
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 MECH 221 FLUID MECHANICS (Fall 06/07) Tutorial 6 FLUID KINETMATICS.
1 MFGT 242: Flow Analysis Chapter 4: Governing Equations for Fluid Flow Professor Joe Greene CSU, CHICO.
Manipulator Dynamics Amirkabir University of Technology Computer Engineering & Information Technology Department.
MECH 221 FLUID MECHANICS (Fall 06/07) Chapter 3: FLUID IN MOTIONS
Chapter 8 Rotational Equilibrium and Rotational Dynamics.
Numerical Hydraulics Wolfgang Kinzelbach with Marc Wolf and Cornel Beffa Lecture 1: The equations.
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.
Simulation and Animation
Computer graphics & visualization Rigid Body Simulation.
Motivation  Movie  Game  Engineering Introduction  Ideally  Looks good  Fast simulation  Looks good?  Look plausible  Doesn’t need to be exactly.
Conservation Laws for Continua
Spring Topic Outline for Physics 1 Spring 2011.
CEE 262A H YDRODYNAMICS Lecture 5 Conservation Laws Part I 1.
Animation of Fluids.
Chapter 9: Differential Analysis of Fluid Flow SCHOOL OF BIOPROCESS ENGINEERING, UNIVERSITI MALAYSIA PERLIS.
PTT 204/3 APPLIED FLUID MECHANICS SEM 2 (2012/2013)
A particle-gridless hybrid methods for incompressible flows
Prof. dr. A. Achterberg, Astronomical Dept., IMAPP, Radboud Universiteit.
1 Discretization of Fluid Models (Navier Stokes) Dr. Farzad Ismail School of Aerospace and Mechanical Engineering Universiti Sains Malaysia Nibong Tebal.
Chapter 03: Macroscopic interface dynamics Xiangyu Hu Technical University of Munich Part A: physical and mathematical modeling of interface.
Abj 4.2.2: Pressure, Pressure Force, and Fluid Motion Without Flow [Q2 and Q3] Area as A Vector Component of Area Vector – Projected Area Net Area.
© Fox, Pritchard, & McDonald Introduction to Fluid Mechanics Chapter 5 Introduction to Differential Analysis of Fluid Motion.
MAE 5360: Hypersonic Airbreathing Engines
CP502 Advanced Fluid Mechanics
CP502 Advanced Fluid Mechanics
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 발표 윤종철.
Physics 1: Mechanics Đào Ngọc Hạnh Tâm
MAE 5130: VISCOUS FLOWS Lecture 2: Introductory Concepts
Fluid Animation CSE 3541 By: Matt Boggus.
SO254 – Forces and the equation of motion
CE 3305 Engineering FLUID MECHANICS
Chapter 4 Fluid Mechanics Frank White
Continuum Mechanics (MTH487)
CE 3305 Engineering FLUID MECHANICS
MAE 5350: Gas Turbines Integral Forms of Mass and Momentum Equations
DIFFERENTIAL EQUATIONS FOR FLUID FLOW Vinay Chandwani (Mtech Struct.)
Part IV: Detailed Flow Structure Chap. 7: Microscopic Balances
M Friction.
Manipulator Dynamics 1 Instructor: Jacob Rosen
Mechanics Review – SEMESTER 1
Chapter 9: Differential Analysis of Fluid Flow
Today’s Lecture Objectives:
Partial Derivative - Definition
Introduction to Fluid Mechanics
MAE 5130: VISCOUS FLOWS Examples Utilizing The Navier-Stokes Equations
Continuum Mechanics for Hillslopes: Part IV
Subject Name: FLUID MECHANICS
Space Distribution of Spray Injected Fluid
Objective Numerical methods Finite volume.
topic8_NS_vectorForm_F02
1 Course Code: SECV1030 Course Name: Engineering Mechanics Module 1 : Static.
Introduction to Fluid Dynamics & Applications
MAE 3241: AERODYNAMICS AND FLIGHT MECHANICS
topic8_NS_vectorForm_F02
Part 5:Vorticity.
Physics 451/551 Theoretical Mechanics
Physics 451/551 Theoretical Mechanics
Introduction to Fluid Mechanics
Presentation transcript:

David Marshburn Comp 259 April 17, 2002 Fluid Dynamics David Marshburn Comp 259 April 17, 2002

Fluid properties Imagine a volume of fluid… position, velocity, acceleration viscosity μ density ρ

Fluid velocity Velocity is the physical property simulated for fluids… Why? We’re usually interested in what the fluid’s carrying. Advection. Velocity is denoted by u in fluid dynamics literature (even in graphics). fluid dynamicists already used a vee-like symbol for viscosity (the Greek letter nu). Thimk of smoke in air for an example of advection.

Taxonomy of Fluids Compressible vs. incompressible constancy of density Rotational vs. irrotational whether small volumes have angular velocity Viscous vs. inviscid whether shear forces are present Newtonian vs. non-Newtonian model for viscous force We will derive a model for incompressible, Newtonian, irrotational, viscous fluids.

Fluid dynamics In the beginning, there was Newton… F = ma So what forces are there on a fluid?

Forces on a Fluid Imagine a small volume of fluid… (so we get forces per unit volume) external or “body” forces (e.g., gravity) relative pressure “viscous friction” from other bits of fluid sliding by inertia (not really a force, but needs some special treatment)

Getting rid of volume… We want Newton’s 2nd in terms of forces per unit volume, so… F/V = m/V a but, m/V is just the density ρ, so… f/ρ = a We’ll talk about forces per unit volume hereafter.

Body forces… Gravity… Rigid objects… Other forces external to the fluid… Denote the conglomeration of these forces by g, a force per unit mass. Remember, we’re writing forces per unit volume. Yes, this formulation is tailored for applying gravitational forces.

Pressure Pressure (denoted p, a force per unit volume) in one tiny bit of fluid is relative to the pressure in neighboring tiny bits. If neighbors are at lower relative pressure, the fluid in our tiny volume is pulled out. Likewise, for neighbors with higher pressure, out fluid is pushed in.

Viscosity “Friction” from other bits of fluid sliding by. From Chorin & Marsden. B and B’ are two blobs of fluid

Viscosity For instance, we want the difference in z-velocity as we look in the x direction. This generalizes in all dimensions to the Laplacian. Note that this is the Laplacian for a vector-valued field, not a scalar-valued field and is. del squared A = del ( del dot A ) - del cross ( del cross A ). Note that this is the Laplacian for a vector-valued field, not a scalar-valued field.

Acceleration Our little bit of fluid is moving along at some velocity u. Two components of acceleration: temporal change in velocity motion of the bit of fluid the motion of the blob of fluid carries the velocity-bearing bit of fluid onward.

Acceleration Temporal change in velocity Movement of the bit of fluid (inertia) use the chain rule of u[x(t),y(t),z(t),t] Where the ui are the velocities in the x, y and z directions

Navier-Stokes equation #1 Putting this all together: Inertia Viscosity Acceleration Pressure External forces ν is μ/ρ and is called the kinematic viscosity. This is conservation of energy.

Navier-Stokes equation #2 We’re talking about incompressible fluids.. So, the velocity into our little bit of fluid must be the same as the velocity out… remember, the density is constant. if velocities were not balanced, material would accumulate in a fixed volume. This is conservation of mass. That the divergence is 0 states incompressibility.

“No-slip” condition At the rigid, stationary boundaries of a fluid, velocity is zero. (experimentally and mathematically) At non-stationary boundaries, the fluid velocity must be the same as that of the boundary.

Questions? Any questions about how we got to the Navier-Stokes equations?

Solving these… So, we have some differential equations… We have four equations and four unknowns What’s the problem? Second order Non-linear navier-stokes eqn 1 expands to 3 equations, one for each dimension, plus matter conservation is 4 equations. the 4 unknowns are the 3 components of velocity plus pressure.

Foster/Metaxas 1996 “Realistic Animation of Liquids” A finite differencing approximation with correction. Regular, rectilinear discretization

Foster/Metaxas 1996 Finite differencing approximation (1 dimension shown) Yes, it’s a mess… The point is that is the energy-conservation equation with all the differentials replaced by finite differences.

Foster/Metaxas 1996 Conservation of mass isn’t assured. Correction: Relax pressure and velocity until all cells satisfy both Navier-Stokes equations (to within some tolerance). means unconserved mass

Foster/Metaxas 1996 Each cell looks at its neighbors… So, stuff shouldn’t move more than one cell in a time step. Two possibilities: The largest velocity anywhere in the system determines an adaptive time step For some fixed time step, the simulation eventually blows up. This is the root of the instability. Pick a time step, and something will eventually go faster. This causes instability.

Stam 1999 “Stable Fluids” Important features: Semi-Lagrangian advection. Implicit solvers Projection

Stam 1999 Semi-Lagrangian advection (called the method of characteristics). Resolves the non-linearity To find the velocity as some point, trace the velocity field backwards in time from that point along the path p. rather than “move this stuff there”, this asks, “what moved here?”

Stam 1999 Method of Characteristics: A characteristic is a curve through a vector field on which a constant field element propagates. Given the equation: Turn the PDE into some ODEs by taking u=u(x(s),t(s)) and using the chain rule to find du/ds=0 Integrate with your favorite scheme.

Stam 1999 Implicit solver for: In implicit form, this is: Write this down as a finite difference equation and solve with the POIS3D linear solver from FISHPACK.

Stam 1999 Projection – to ensure that the mass conservation condition is met. The Helmholtz-Hodge Decompostion (a result from vector algebra): any vector field1 can be uniquely decomposed as: w and u are vector fields, u is divergence-free, and q is a scalar field. Solve for q and subtract if from the result. in this, q is any component of the velocity constraints: e.g., the gradient and curl go to zero at infinity. 1There are some “well-behaved” constraints on the field.

Stam 1999 These methods are chained together to solve the Navier-Stokes equations. Stability: stable for any time step In the advection step, the largest velocity generated is bounded by the maximum velocity in the earlier field. Each of these tools solves a different term from the Navier-Stokes equations, and projection ensures mass conservation.

References Chorin, Alexandre J. and Jerrold E. Marsden, A Mathematical Introduction to Fluid Mechanics. 3rd ed. Springer: 1993. Acheson, D.J. Elementary Fluid Dynamics. Oxford University Press: 1990. Foster, Nick, and Dimitri Metaxas. “Realistic Animation of Liquids.” Graphics Models and Image Processing. 58(5):471-483, 1996. Stam, Joe, “Stable Fluids.” SIGGRAPH 1999.