Math background. Physics. Simulation. Related phenomena. Frontiers in graphics. Rigid fluids

Similar documents
Soft Bodies. Good approximation for hard ones. approximation breaks when objects break, or deform. Generalization: soft (deformable) bodies

Modeling, Simulating and Rendering Fluids. Thanks to Ron Fediw et al, Jos Stam, Henrik Jensen, Ryan

PDE Solvers for Fluid Flow

Game Physics. Game and Media Technology Master Program - Utrecht University. Dr. Nicolas Pronost

Fluid Animation. Christopher Batty November 17, 2011

An Overview of Fluid Animation. Christopher Batty March 11, 2014

( ) Notes. Fluid mechanics. Inviscid Euler model. Lagrangian viewpoint. " = " x,t,#, #

Conservation of Mass. Computational Fluid Dynamics. The Equations Governing Fluid Motion

Numerical methods for the Navier- Stokes equations

Dan s Morris s Notes on Stable Fluids (Jos Stam, SIGGRAPH 1999)

Chapter 5. The Differential Forms of the Fundamental Laws

Mathematical Theory of Non-Newtonian Fluid

Getting started: CFD notation

Partial Differential Equations II

Physically Based Simulations (on the GPU)

Lecture 1: Introduction to Linear and Non-Linear Waves

Discrete Projection Methods for Incompressible Fluid Flow Problems and Application to a Fluid-Structure Interaction

2. FLUID-FLOW EQUATIONS SPRING 2019

The Orchestra of Partial Differential Equations. Adam Larios

Entropy generation and transport

Fundamentals Physics

V (r,t) = i ˆ u( x, y,z,t) + ˆ j v( x, y,z,t) + k ˆ w( x, y, z,t)

Improvement of Calculation Stability for Slow Fluid Flow Analysis Using Particle Method *

Pressure corrected SPH for fluid animation

fluid mechanics as a prominent discipline of application for numerical

EULERIAN DERIVATIONS OF NON-INERTIAL NAVIER-STOKES EQUATIONS

Advection, Conservation, Conserved Physical Quantities, Wave Equations

d v 2 v = d v d t i n where "in" and "rot" denote the inertial (absolute) and rotating frames. Equation of motion F =

The Shallow Water Equations

Notes. Multi-Dimensional Plasticity. Yielding. Multi-Dimensional Yield criteria. (so rest state includes plastic strain): #=#(!

Chapter 3. Finite Difference Methods for Hyperbolic Equations Introduction Linear convection 1-D wave equation

CHAPTER 8 ENTROPY GENERATION AND TRANSPORT

Fluid Dynamics Exercises and questions for the course

Burgers equation - a first look at fluid mechanics and non-linear partial differential equations

Navier-Stokes equations

Physics-Based Animation

Daniel J. Jacob, Models of Atmospheric Transport and Chemistry, 2007.

Modeling using conservation laws. Let u(x, t) = density (heat, momentum, probability,...) so that. u dx = amount in region R Ω. R

Open boundary conditions in numerical simulations of unsteady incompressible flow

2. Conservation of Mass

FEniCS Course. Lecture 6: Incompressible Navier Stokes. Contributors Anders Logg André Massing

First, Second, and Third Order Finite-Volume Schemes for Diffusion

Math 575-Lecture Viscous Newtonian fluid and the Navier-Stokes equations

Diffusion / Parabolic Equations. PHY 688: Numerical Methods for (Astro)Physics

UNIVERSITY of LIMERICK

The Hopf equation. The Hopf equation A toy model of fluid mechanics

From the last time, we ended with an expression for the energy equation. u = ρg u + (τ u) q (9.1)

Fundamentals of Fluid Dynamics: Elementary Viscous Flow

Finite Volume Method

Hamiltonian aspects of fluid dynamics

Fundamentals of Fluid Dynamics: Ideal Flow Theory & Basic Aerodynamics

NDT&E Methods: UT. VJ Technologies CAVITY INSPECTION. Nondestructive Testing & Evaluation TPU Lecture Course 2015/16.

2 Equations of Motion

The Embedded Boundary Integral Method (EBI) for the Incompressible Navier-Stokes equations

A Robust Preconditioned Iterative Method for the Navier-Stokes Equations with High Reynolds Numbers

Computational Astrophysics

INTRODUCTION TO PDEs

Lagrangian acceleration in confined 2d turbulent flow

Week 6 Notes, Math 865, Tanveer

5.1 Fluid momentum equation Hydrostatics Archimedes theorem The vorticity equation... 42

6.2 Governing Equations for Natural Convection

Candidates must show on each answer book the type of calculator used. Log Tables, Statistical Tables and Graph Paper are available on request.

Lecture 3: 1. Lecture 3.

A Study on Numerical Solution to the Incompressible Navier-Stokes Equation

Navier-Stokes Equation: Principle of Conservation of Momentum

1 Introduction to Governing Equations 2 1a Methodology... 2

Basic concepts in viscous flow

Chapter 2. General concepts. 2.1 The Navier-Stokes equations

Lecture 3: The Navier-Stokes Equations: Topological aspects

Two-Dimensional Unsteady Flow in a Lid Driven Cavity with Constant Density and Viscosity ME 412 Project 5

- Marine Hydrodynamics. Lecture 4. Knowns Equations # Unknowns # (conservation of mass) (conservation of momentum)

Quick Recapitulation of Fluid Mechanics

Probability density function (PDF) methods 1,2 belong to the broader family of statistical approaches

Stochastic Simulation of Complex Fluid Flows

Additive Manufacturing Module 8

Lagrangian Dynamics & Mixing

Simulation of T-junction using LBM and VOF ENERGY 224 Final Project Yifan Wang,

PDEs, part 1: Introduction and elliptic PDEs

Implementation of 3D Incompressible N-S Equations. Mikhail Sekachev

Partitioned Methods for Multifield Problems

CS 542G: The Poisson Problem, Finite Differences

A unifying model for fluid flow and elastic solid deformation: a novel approach for fluid-structure interaction and wave propagation

Topics in Fluid Dynamics: Classical physics and recent mathematics

Runge-Kutta-Chebyshev Projection Method

AA214B: NUMERICAL METHODS FOR COMPRESSIBLE FLOWS

ASTR 320: Solutions to Problem Set 2

A PRACTICALLY UNCONDITIONALLY GRADIENT STABLE SCHEME FOR THE N-COMPONENT CAHN HILLIARD SYSTEM

3. FORMS OF GOVERNING EQUATIONS IN CFD

In this section, mathematical description of the motion of fluid elements moving in a flow field is

7 EQUATIONS OF MOTION FOR AN INVISCID FLUID

Diffusion Equation and Mean Free Path

Marching on the BL equations

Vorticity and Dynamics

A semi-implicit non-hydrostatic covariant dynamical kernel using spectral representation in the horizontal and a height based vertical coordinate

Differential relations for fluid flow

Stability of Shear Flow

J. Liou Tulsa Research Center Amoco Production Company Tulsa, OK 74102, USA. Received 23 August 1990 Revised manuscript received 24 October 1990

1 Introduction. J.-L. GUERMOND and L. QUARTAPELLE 1 On incremental projection methods

CHAPTER 7 SEVERAL FORMS OF THE EQUATIONS OF MOTION

Experience with DNS of particulate flow using a variant of the immersed boundary method

Transcription:

Fluid dynamics

Math background Physics Simulation Related phenomena Frontiers in graphics Rigid fluids

Fields Domain Ω R2 Scalar field f :Ω R Vector field f : Ω R2

Types of derivatives Derivatives measure how something changes due to its parameters Temporal derivatives Spatial derivatives gradient operator divergence operator Laplacian operator f t f = [ f x, f y ] T f = f x x + f y y 2 f = ( f) = 2 f x + 2 f y

Math background Physics Simulation Related phenomena Frontiers in graphics Rigid fluids

Representation Density ρ :Ω [0, 1] Domain Ω Velocity u :Ω R 3

Coffee cup equation Navier-Stokes Momentum equation u t = (u )u 1 ρ p + s 2 u + f Incompressibility condition u =0 u: velocity p: pressure s: kinematic viscosity f: body force ρ: fluid density

Momentum equation Each particle represents a little blob of fluid with mass m, a volume V, and a velocity u The acceleration of the particle a Du Dt The Newton s law m Du Dt = F

Forces acting on fluids Gravity: mg Pressure: - p Imbalance of higher pressure Viscosity: µ u Force that makes particle moves at average speed dynamic viscosity coefficient: µ

Momentum equation The movement of a blob of fluid m Du Dt Divide by volume ρ Du Dt = mg V p + Vµ u = ρg p + µ u Rearrange equation giving Navier-Stoke Du Dt + 1 p = g + s u ρ

Lagrangian v.s. Eulerian Lagrangian point of view describes motion as points travel around space over time Eulerian point of view describes motion as the change of velocity field in a stationary domain Lagrangian approach is conceptually easier, but Eulerian approach makes the spatial gradient easier to compute/approximate

Material derivative Dq Dt = q t + u q x + v q y + w q z d q(t, x) = q dt t = q t + q u = Dq Dt + q dx dt

Advection Advection describe how quantity, q, moves with the velocity field u Density Velocity Dρ Dt = ρ t + u ρ Du Dt = u t + u u

Advection momentum equation Du Dt + 1 p = g + s u ρ Advection Projection Diffusion Body force u t = (u )u 1 ρ p + s 2 u + f u =0

Density advection ρ t = (u )ρ

Velocity advection u t = (u )u 1 ρ p + s 2 u + f s.t. u =0

Projection Advection Projection Diffusion Body force u t = (u )u 1 ρ p + s 2 u + f u =0

Divergence free u > 0? u < 0?

Divergence free u = 0

Projection u t = (u )u 1 ρ p + s 2 u + f s.t. u =0

Diffusion Advection Projection Diffusion Body force u t = (u )u 1 ρ p + s 2 u + f u =0

High viscosity fluids

Dropping viscosity Viscosity plays a minor role in most fluids Numeric methods introduce errors which can be physically reinterpreted as viscosity Fluid with no viscosity is called inviscid

Body force Advection Projection Diffusion Body force u t = (u )u 1 ρ p + s 2 u + f u =0

External forces Gravity Heat Surface tension User-specified forces (stirring coffee)

Boundary conditions Solid walls The fluid cannot go in and out of it Control the normal velocity Free surfaces Air can be represented as a region where the pressure is zero Do not control the velocity at the surface

Solid boundary Velocity at the boundary u ˆn = u solid ˆn No-slip condition: u = u solid Pressure at the boundary Make the fluid incompressible AND enforce the solid boundary condition

Physics recap Physical quantity represented as fields Navier-Stokes PDE describes the dynamics

Math background Physics Simulation Related phenomena Frontiers in graphics Rigid fluids

Challenges What is the representation for fluids? represent velocity and pressure What is the equation of motion for fluids? approximate Navier-Stokes in a discrete domain compute Navier-Stokes efficiently

Grid structure p i,j+1 v i,j+1/2 p i 1,j u i 1/2,j p i,j u i+1/2,j p i+1,j v i,j 1/2 p i,j 1

Explicit integration Solving for the differential equation explicitly, namely u t = (u )u 1 ρ p + s 2 u + f u t+1 = u t + h u(t) You get this...

Explicit integration

Stable fluids Invented by Jos Stam Simple, fast, and unconditionally stable

Splitting methods Suppose we had a system x t = f(x) =g(x)+h(x) We define simulation function S f S f (x, t) :x(t) x(t)+ tf(x) Then we could define S f (x, t) :x(t + t) =S g (x, t) S h (x, t)

Splitting methods u t = (u )u 1 ρ p + s 2 u + f w 0 = u(x, t) add force Advect Diffuse Project w 0 (x) w 1 (x) w 2 (x) w 3 (x) w 4 (x) u(x, t+δt) = w 4

Splitting methods u t = (u )u 1 ρ p + s 2 u + f w 0 = u(x, t) add force Advect Diffuse Project w 0 (x) w 1 (x) w 2 (x) w 3 (x) w 4 (x) u(x, t+δt) = w 4

Body forces

Splitting methods u t = (u )u 1 ρ p + s 2 u + f w 0 = u(x, t) add force Advect Diffuse Project w 0 (x) w 1 (x) w 2 (x) w 3 (x) w 4 (x) u(x, t+δt) = w 4

Advection

Numerical dissipation Semi-Lagrangian advection tend to smooth out sharp features by averaging the velocity field The numerical errors result in a different advection equation solved by semi-largrangian q t + u q x = u x 2 q x 2 Smooth out small vortices in inviscid fluids

Splitting methods u t = (u )u 1 ρ p + s 2 u + f w 0 = u(x, t) add force Advect Diffuse Project w 0 (x) w 1 (x) w 2 (x) w 3 (x) w 4 (x) u(x, t+δt) = w 4

Diffusion Solve for the effect of viscosity w 2 t = ν 2 w 2 Use an implicit method for stable result (I ν t 2 )w 3 (x) =w 2 (x)

Splitting methods u t = (u )u 1 ρ p + s 2 u + f w 0 = u(x, t) add force Advect Diffuse Project w 0 (x) w 1 (x) w 2 (x) w 3 (x) w 4 (x) u(x, t+δt) = w 4

Projection P( )

Projection Projection step subtracts off the pressure from the intermediate velocity field w 3 w 4 = w 3 t 1 ρ p project(δt, u) must satisfies two conditions: divergence free: u t+1 =0 boundary velocity: u t+1 ˆn = u solid ˆn

Boundary conditions Dirichlet boundary condition for free surfaces Neumann boundary condition for solid walls u t+1 i+1/2,j = u i+1/2,j t 1 ρ since p i+1,j p i,j x u t+1 i+1/2,j = u solid p i,j u i+1/2,j p i+1,j p i+1,j = p i,j + ρ x t (u i+1/2,j u solid )

Divergence-free condition p i,j+1 u t+1 i+1/2,j ut+1 i 1/2,j x + vt+1 i,j+1/2 vt+1 i,j 1/2 x =0 replace u t+1 i+1/2,j (and other terms) v i,j+1/2 p i 1,j p i,j p i+1,j u i 1/2,j u i+1/2,j with u i+1/2,j t 1 ρ p i+1,j p i,j x v i,j 1/2 p i,j 1 result in a discrete Poisson equation t ρ ( ) ( 4pi,j p i+1,j p i,j+1 p i 1,j p i,j 1 ui+1/2,j u i 1/2,j x 2 = x + v i,j+1/2 v i,j 1/2 x )

The pressure equations If grid cell (i, j + 1) is in air and (i+1, j) is a solid p i,j+1 v i,j+1/2 replace p i,j+1 with zero p i 1,j u i 1/2,j p i,j u i+1/2,j p i+1,j t ρ replace p i+1,j with the value from Neumann condition p i,j + ρ x t (u i+1/2,j u solid ) 0 ( ) ( 4pi,j p i+1,j p i,j+1 p i 1,j p i,j 1 ui+1/2,j u i 1/2,j x 2 = x v i,j 1/2 p i,j 1 + v i,j+1/2 v i,j 1/2 x )

Solve a linear system Ap = b Construct matrix A: diagonal entry: # of non-solid neighbors off-diagonal: 0 if the neighbor is non-fluid cell and -1 if the neighbor is fluid cell A is symmetric positive definite Use preconditioned conjugate gradient