Partial Differential Equations

Similar documents
Simulation in Computer Graphics. Particles. Matthias Teschner. Computer Science Department University of Freiburg

Index. C m (Ω), 141 L 2 (Ω) space, 143 p-th order, 17

Numerical Methods for (Time-Dependent) HJ PDEs

CS205b/CME306. Lecture 9

Faculty of Mechanical and Manufacturing Engineering, University Tun Hussein Onn Malaysia (UTHM), Parit Raja, Batu Pahat, Johor, Malaysia

The Immersed Interface Method

Modeling and simulation the incompressible flow through pipelines 3D solution for the Navier-Stokes equations

Solving partial differential equations using the NAG Library

Application of Finite Volume Method for Structural Analysis

Module 1: Introduction to Finite Difference Method and Fundamentals of CFD Lecture 13: The Lecture deals with:

1.2 Numerical Solutions of Flow Problems

Traveling Wave Analysis of Partial Differential Equations

CHAPTER 1. Introduction

Nonoscillatory Central Schemes on Unstructured Triangular Grids for Hyperbolic Systems of Conservation Laws

course outline basic principles of numerical analysis, intro FEM

Computational Fluid Dynamics for Engineers

Fluid Simulation. [Thürey 10] [Pfaff 10] [Chentanez 11]

Chapter 6. Petrov-Galerkin Formulations for Advection Diffusion Equation

NIA CFD Seminar, October 4, 2011 Hyperbolic Seminar, NASA Langley, October 17, 2011

Numerical Analysis of Shock Tube Problem by using TVD and ACM Schemes

Adarsh Krishnamurthy (cs184-bb) Bela Stepanova (cs184-bs)

Simulation in Computer Graphics. Introduction. Matthias Teschner. Computer Science Department University of Freiburg

computational Fluid Dynamics - Prof. V. Esfahanian

Development of a Maxwell Equation Solver for Application to Two Fluid Plasma Models. C. Aberle, A. Hakim, and U. Shumlak

CME 345: MODEL REDUCTION

Outline. Level Set Methods. For Inverse Obstacle Problems 4. Introduction. Introduction. Martin Burger

Example 13 - Shock Tube

2D & 3D Finite Element Method Packages of CEMTool for Engineering PDE Problems

2.7 Cloth Animation. Jacobs University Visualization and Computer Graphics Lab : Advanced Graphics - Chapter 2 123

lecture 8 Groundwater Modelling -1

A numerical grid and grid less (Mesh less) techniques for the solution of 2D Laplace equation

Homogenization and numerical Upscaling. Unsaturated flow and two-phase flow

A Toolbox of Level Set Methods

Program: Advanced Certificate Program

MATLAB. Advanced Mathematics and Mechanics Applications Using. Third Edition. David Halpern University of Alabama CHAPMAN & HALL/CRC

INTERNATIONAL JOURNAL OF CIVIL AND STRUCTURAL ENGINEERING Volume 2, No 3, 2012

99 International Journal of Engineering, Science and Mathematics

Simulation in Computer Graphics. Deformable Objects. Matthias Teschner. Computer Science Department University of Freiburg

Continued Investigation of Small-Scale Air-Sea Coupled Dynamics Using CBLAST Data

Unstructured Mesh Generation for Implicit Moving Geometries and Level Set Applications

IMPROVING THE NUMERICAL ACCURACY OF HYDROTHERMAL RESERVOIR SIMULATIONS USING THE CIP SCHEME WITH THIRD-ORDER ACCURACY

NUMERICAL SIMULATION OF THE SHALLOW WATER EQUATIONS USING A TIME-CENTERED SPLIT-IMPLICIT METHOD

Final Report. Discontinuous Galerkin Compressible Euler Equation Solver. May 14, Andrey Andreyev. Adviser: Dr. James Baeder

Nonoscillatory Central Schemes on Unstructured Triangulations for Hyperbolic Systems of Conservation Laws

How TMG Uses Elements and Nodes

BACK AND FORTH ERROR COMPENSATION AND CORRECTION METHODS FOR REMOVING ERRORS INDUCED BY UNEVEN GRADIENTS OF THE LEVEL SET FUNCTION

An Investigation into Iterative Methods for Solving Elliptic PDE s Andrew M Brown Computer Science/Maths Session (2000/2001)

C. A. D. Fraga Filho 1,2, D. F. Pezzin 1 & J. T. A. Chacaltana 1. Abstract

Computer Project 3. AA Computational Fluid Dyanmics University of Washington. Mishaal Aleem March 17, 2015

Advective and conservative semi-lagrangian schemes on uniform and non-uniform grids

Shallow Water Equations:Variable Bed Topography Adam Riley Computer Science (with Industry) 2011/2012

Imaging of flow in porous media - from optimal transport to prediction

Skåne University Hospital Lund, Lund, Sweden 2 Deparment of Numerical Analysis, Centre for Mathematical Sciences, Lund University, Lund, Sweden

Comparison of different solvers for two-dimensional steady heat conduction equation ME 412 Project 2

Topology optimization of heat conduction problems

Contents. I The Basic Framework for Stationary Problems 1

Level set methods Formulation of Interface Propagation Boundary Value PDE Initial Value PDE Motion in an externally generated velocity field

Animation of Fluids. Animating Fluid is Hard

Chapter 1 - Basic Equations

An introduction to Partial Differential Equations. Computer Graphics CMU /15-662, Fall 2016

Fluent User Services Center

Acknowledgements. Prof. Dan Negrut Prof. Darryl Thelen Prof. Michael Zinn. SBEL Colleagues: Hammad Mazar, Toby Heyn, Manoj Kumar

Finite element method - tutorial no. 1

The Level Set Method. Lecture Notes, MIT J / 2.097J / 6.339J Numerical Methods for Partial Differential Equations

Traveling Wave Analysis of Partial Differential Equations

BASICS OF FLUID MECHANICS AND INTRODUCTION TO COMPUTATIONAL FLUID DYNAMICS

Lax-Wendroff and McCormack Schemes for Numerical Simulation of Unsteady Gradually and Rapidly Varied Open Channel Flow

Continuum-Microscopic Models

An explicit feature control approach in structural topology optimization

A-posteriori Diffusion Analysis of Numerical Schemes in Wavenumber Domain

SELECTIVE ALGEBRAIC MULTIGRID IN FOAM-EXTEND

AS 5850 Finite Element Analysis

Use of CFD in Design and Development of R404A Reciprocating Compressor

Large-Scale Simulations on Parallel Computers!

arxiv: v1 [math.na] 26 Jun 2014

Computational Fluid Dynamics

Finite element methods

MATHEMATICAL ANALYSIS, MODELING AND OPTIMIZATION OF COMPLEX HEAT TRANSFER PROCESSES

NUMERICAL VISCOSITY. Convergent Science White Paper. COPYRIGHT 2017 CONVERGENT SCIENCE. All rights reserved.

A Comparison of Some Numerical Methods for the Advection-Diffusion Equation

Simulation of Flow Development in a Pipe

Lagrangian methods and Smoothed Particle Hydrodynamics (SPH) Computation in Astrophysics Seminar (Spring 2006) L. J. Dursi

ACCURACY OF NUMERICAL SOLUTION OF HEAT DIFFUSION EQUATION

TWO-DIMENSIONAL FEM MODELING OF SEISMIC WAVE PROPAGATION IN COAL SEAM. By Hongliang Wang

The DRM-MD integral equation method for the numerical solution of convection-diffusion

Implicit versus Explicit Finite Volume Schemes for Extreme, Free Surface Water Flow Modelling

Level Set Methods and Fast Marching Methods

ATM 298, Spring 2013 Lecture 4 Numerical Methods: Horizontal DiscreDzaDons April 10, Paul A. Ullrich (HH 251)

Particle-based Fluid Simulation

High-Order Numerical Algorithms for Steady and Unsteady Simulation of Viscous Compressible Flow with Shocks (Grant FA )

Overview of Traditional Surface Tracking Methods

The Development of a Navier-Stokes Flow Solver with Preconditioning Method on Unstructured Grids

Mid-Year Report. Discontinuous Galerkin Euler Equation Solver. Friday, December 14, Andrey Andreyev. Advisor: Dr.

PHYSICALLY BASED ANIMATION

Microprocessor Thermal Analysis using the Finite Element Method

Traffic flow optimization on roundabouts

CFD-1. Introduction: What is CFD? T. J. Craft. Msc CFD-1. CFD: Computational Fluid Dynamics

Free Surface Flow Simulations

Direct Numerical Simulation of a Low Pressure Turbine Cascade. Christoph Müller

On the order of accuracy and numerical performance of two classes of finite volume WENO schemes

Transcription:

Simulation in Computer Graphics Partial Differential Equations Matthias Teschner Computer Science Department University of Freiburg

Motivation various dynamic effects and physical processes are described by partial differential equations PDEs e.g., wave propagation, advection, diffusion we consider PDEs that describe the time rate of change of a quantity at fixed positions University of Freiburg Computer Science Department Computer Graphics - 2

Motivation this is a short overview of a large research field in mathematics and physics applied to the fields of animation and computer graphics goals: you know what a PDE is you know PDEs for specific effects you know how to solve theses PDFs with finite differences University of Freiburg Computer Science Department Computer Graphics - 3

Outline introduction 1D advection mathematical background definition types boundary conditions numerical solution methods examples advection diffusion wave equation University of Freiburg Computer Science Department Computer Graphics - 4

Advection simulation of temperate evolution consider temperature at position and time start with known temperatures at time 0: consider some wind speed how to compute at arbitrary position and time University of Freiburg Computer Science Department Computer Graphics - 5

Advection Equation in 1D consider temperature change within a small time step at a fixed position temperature is only advected no additional effects T depends on two variables (space and time) / t denotes the time derivative / x denotes the space derivative University of Freiburg Computer Science Department Computer Graphics - 6

Analytical Solution define an initial condition temperature distribution at all positions at time 0 at a position and time is obtained by shifting the temperature distribution at time 0 by the distance University of Freiburg Computer Science Department Computer Graphics - 7

Numerical Solution with Finite Differences Discretization consider / sample the function at discrete positions with distance and discrete times with time step approximate the partial derivatives with finite differences University of Freiburg Computer Science Department Computer Graphics - 8

Numerical Solution with Finite Differences Approximate Computation of T can be solved for from the initial condition, temperature is known at all sample positions at some time i.e., for all positions, we can compute if we have computed for all positions, we can compute and so on University of Freiburg Computer Science Department Computer Graphics - 9

Numerical Solution with Finite Differences Boundary Conditions at time, the temperature is known at sample positions: however, the computation of the temperature at requires the temperature at setting boundary conditions / define missing values e.g., periodic boundaries temperature leaving/entering the right-hand side of the simulation domain, enters/leaves the left-hand side of the domain University of Freiburg Computer Science Department Computer Graphics - 10

Outline introduction 1D advection mathematical background definition types boundary conditions numerical solution methods examples advection diffusion wave equation University of Freiburg Computer Science Department Computer Graphics - 11

Definition a partial differential equation PDE describes the behavior of an unknown multivariable function partial derivatives of, e.g. the function and the independent variables, e.g. using example: notation ordinary differential equations are a special case for functions that depend on one variable University of Freiburg Computer Science Department Computer Graphics - 12

PDEs in Physics independent variables are static problems: (1D), (2D), (3D) dynamic problems: (1D+1), (2D+1), (3D+1) unknown functions are scalars, e.g. temperature, density vectors, e.g. displacement, velocity University of Freiburg Computer Science Department Computer Graphics - 13

PDE Classification order given by the highest order of a partial derivative linearity the function and its partial derivatives only occur linearly coefficients may be functions of independent variables e.g. second-order linear PDE of function with two independent variables general form non-linear example University of Freiburg Computer Science Department Computer Graphics - 14

PDE Classification second-order PDEs can be classified into hyperbolic parabolic elliptic classification is geometrically motivated is characterized by different mathematical and physical behavior determines type of required boundary conditions University of Freiburg Computer Science Department Computer Graphics - 15

PDE Classification hyperbolic time-dependent processes reversible, not evolving to a steady state undiminished propagation e.g., wave motion parabolic time-dependent processes irreversible, evolving to a steady state dissipative e.g., heat diffusion elliptic time-independent already in a steady state University of Freiburg Computer Science Department Computer Graphics - 16

Boundary Conditions generally, many functions solve a PDE physical applications expect one solution is typically defined in a simulation domain the physical solution is required to satisfy certain conditions on the boundary of initial condition Dirichlet condition Neumann condition University of Freiburg Computer Science Department Computer Graphics - 17

Numerical Solution - Overview Governing Equations IC / BC Discretization System of Algebraic Equations Equation (Matrix) Solver Approx. Solution continuous form Finite Difference Finite Volume Finite Element Discrete Nodal Values e.g., CG Spectral Boundary Element University of Freiburg Computer Science Department Computer Graphics - 18

Discretization time derivatives finite differences spatial derivatives finite differences FDM, finite elements FEM, finite volumes FVM example 1D advection continuous form discretizing the time derivative with FD discretizing the spatial derivative with FD algebraic equation University of Freiburg Computer Science Department Computer Graphics - 19

2D Sampling function is reconstructed at fixed sample positions at fixed time points simplest case: sampling of on a regular grid e.g., 2D+1 dimensions grid spacing and time step University of Freiburg Computer Science Department Computer Graphics - 20

2D Finite Difference Approximations time derivative time marching spatial derivatives forward scheme backward scheme central scheme if information moves from left to right, backward is upwind, otherwise forward is upwind upwind is typically preferred University of Freiburg Computer Science Department Computer Graphics - 21

2D Finite Difference Approximations higher-order derivatives, e.g. higher-order approximations, e.g. University of Freiburg Computer Science Department Computer Graphics - 22

Explicit Solution Schemes - 1D Advection advection equation upwind simple stability rule information must not travel more than one grid cell per time step CFL number time step should be sufficiently small to result in discretization solver (solution scheme) University of Freiburg Computer Science Department Computer Graphics - 23

Explicit Solution Schemes - 1D Advection downwind centered, FTCS (forward time centered space) Leap-frog University of Freiburg Computer Science Department Computer Graphics - 24

Explicit Solution Schemes - 1D Advection Lax-Wendroff Beam-Warming Lax-Friedrich University of Freiburg Computer Science Department Computer Graphics - 25

Outline introduction 1D advection mathematical background definition types boundary conditions numerical solution methods examples advection diffusion wave equation University of Freiburg Computer Science Department Computer Graphics - 26

Advection in 2D and 3D 1D advection generally, the velocity is a vector with direction and length spatial derivative of in direction 2D 3D therefore, University of Freiburg Computer Science Department Computer Graphics - 27

2D Finite Difference Solution Scheme advection equation discretization solution scheme variant velocity can vary with the location PDE still first order and linear University of Freiburg Computer Science Department Computer Graphics - 28

Diffusion in 1D density describes the concentration of a substance in a tube with cross section conduction law: the mass flow through an area (flux) is prop. to the neg. gradient of the density normal to k - conductivity University of Freiburg Computer Science Department Computer Graphics - 29

Diffusion in 2D and 3D equation Laplace operator intuition for second spatial derivative constant gradient, i.e., has no effect 2D 3D Flux, no change Flux, positive change University of Freiburg Computer Science Department Computer Graphics - 30

2D Finite Difference Solution Scheme diffusion equation discretization solution scheme intuition if the average value of the neighboring cells is larger than the cell value, the value increases and vice versa University of Freiburg Computer Science Department Computer Graphics - 31

Wave Equation in 1D Vibrating string function is the displacement of the string normal to assuming small displacement and constant stress force acting normal to cross section is component in -direction Newton s Second Law for an infinitesimal segment University of Freiburg Computer Science Department Computer Graphics - 32

Wave Equation in 2D and 3D 1D wave equation 2D: 3D: 2D finite difference solution scheme c speed of wave propagation University of Freiburg Computer Science Department Computer Graphics - 33

Demo combination of wave equation, advection, and diffusion wave equation advection equation diffusion equation update rule (spatial derivatives not discretized) University of Freiburg Computer Science Department Computer Graphics - 34

Literature Alan Jeffrey, Applied Partial Differential Equations An Introduction, Academic Press, Amsterdam, ISBN 0-12-382252-1 John D. Anderson, Computational Fluid Dynamics The Basics with Applications, McGraw-Hill Inc., New York, ISBN 0-07-001685-2 University of Freiburg Computer Science Department Computer Graphics - 35