Scientific Computing: An Introductory Survey

Similar documents
INTRODUCTION TO PDEs

AM 205: lecture 14. Last time: Boundary value problems Today: Numerical solution of PDEs

Tutorial 2. Introduction to numerical schemes

Introduction to Partial Differential Equations

Scientific Computing: An Introductory Survey

BOUNDARY-VALUE PROBLEMS IN RECTANGULAR COORDINATES

Additive Manufacturing Module 8

Partial Differential Equations

Numerical Methods for PDEs

Chapter 3 Second Order Linear Equations

Introduction to PDEs and Numerical Methods: Exam 1

Lecture 6: Introduction to Partial Differential Equations

Outline. 1 Partial Differential Equations. 2 Numerical Methods for PDEs. 3 Sparse Linear Systems

An Introduction to Numerical Methods for Differential Equations. Janet Peterson

Scientific Computing: An Introductory Survey

Basic Aspects of Discretization

KINGS COLLEGE OF ENGINEERING DEPARTMENT OF MATHEMATICS ACADEMIC YEAR / EVEN SEMESTER QUESTION BANK

Applied Mathematics 205. Unit III: Numerical Calculus. Lecturer: Dr. David Knezevic

A Note on Integral Transforms and Partial Differential Equations

2.29 Numerical Fluid Mechanics Spring 2015 Lecture 9

First order Partial Differential equations

Part 1. The diffusion equation

Chapter 5 Types of Governing Equations. Chapter 5: Governing Equations

Finite Differences for Differential Equations 28 PART II. Finite Difference Methods for Differential Equations

Lecture 42 Determining Internal Node Values

Outline. Scientific Computing: An Introductory Survey. Nonlinear Equations. Nonlinear Equations. Examples: Nonlinear Equations

7 Hyperbolic Differential Equations

University of Illinois at Urbana-Champaign College of Engineering

Method of Lines. Received April 20, 2009; accepted July 9, 2009

Introduction of Partial Differential Equations and Boundary Value Problems

Numerical Analysis of Differential Equations Numerical Solution of Parabolic Equations

Chapter 3. Second Order Linear PDEs

Lecture Notes on Partial Dierential Equations (PDE)/ MaSc 221+MaSc 225

Finite Difference Method

LINEAR SECOND-ORDER EQUATIONS

Scientific Computing: An Introductory Survey

Chapter Two: Numerical Methods for Elliptic PDEs. 1 Finite Difference Methods for Elliptic PDEs

CLASSIFICATION AND PRINCIPLE OF SUPERPOSITION FOR SECOND ORDER LINEAR PDE

Partial Differential Equations

2 Multidimensional Hyperbolic Problemss where A(u) =f u (u) B(u) =g u (u): (7.1.1c) Multidimensional nite dierence schemes can be simple extensions of

Introduction to Computational Fluid Dynamics

UNIVERSITY of LIMERICK OLLSCOIL LUIMNIGH

Discretization of PDEs and Tools for the Parallel Solution of the Resulting Systems

Numerical Schemes from the Perspective of Consensus

FDM for parabolic equations

Scientific Computing: An Introductory Survey

PDE Solvers for Fluid Flow

1.5 First Order PDEs and Method of Characteristics

Classification of partial differential equations and their solution characteristics

2.29 Numerical Fluid Mechanics Spring 2015 Lecture 13

Applied Math Qualifying Exam 11 October Instructions: Work 2 out of 3 problems in each of the 3 parts for a total of 6 problems.

Finite difference methods for the diffusion equation

MATH3203 Lecture 1 Mathematical Modelling and ODEs

Solution of Differential Equation by Finite Difference Method

Finite Difference Methods (FDMs) 2

Qualifying Examination

Lecture Introduction

Numerically Solving Partial Differential Equations

Before we look at numerical methods, it is important to understand the types of equations we will be dealing with.

LECTURE # 0 BASIC NOTATIONS AND CONCEPTS IN THE THEORY OF PARTIAL DIFFERENTIAL EQUATIONS (PDES)

Research Article Solution of the Porous Media Equation by a Compact Finite Difference Method

Finite Difference Method for PDE. Y V S S Sanyasiraju Professor, Department of Mathematics IIT Madras, Chennai 36

Last time: Diffusion - Numerical scheme (FD) Heat equation is dissipative, so why not try Forward Euler:

Index. higher order methods, 52 nonlinear, 36 with variable coefficients, 34 Burgers equation, 234 BVP, see boundary value problems

SOLVING ELLIPTIC PDES

Differential equations, comprehensive exam topics and sample questions

Partial Differential Equations II

Introduction to PDEs and Numerical Methods Lecture 1: Introduction

difference operators.

Numerical Methods for Engineers and Scientists

Math 251 December 14, 2005 Final Exam. 1 18pt 2 16pt 3 12pt 4 14pt 5 12pt 6 14pt 7 14pt 8 16pt 9 20pt 10 14pt Total 150pt

Introduction to Partial Differential Equations

Finite Difference Methods for

Ordinary Differential Equations

Chapter 5. Formulation of FEM for Unsteady Problems

LESSON 23: EXTREMA OF FUNCTIONS OF 2 VARIABLES OCTOBER 25, 2017

Block-Structured Adaptive Mesh Refinement

Module 1: Introduction to Finite Difference Method and Fundamentals of CFD Lecture 1: Finite Difference Method

x n+1 = x n f(x n) f (x n ), n 0.

MA/CS 615 Spring 2019 Homework #2

THE METHOD OF LINES FOR PARABOLIC PARTIAL INTEGRO-DIFFERENTIAL EQUATIONS

ENGI 4430 PDEs - d Alembert Solutions Page 11.01

Some notes about PDEs. -Bill Green Nov. 2015

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

Krylov single-step implicit integration factor WENO methods for advection-diffusion-reaction equations

M.Sc. in Meteorology. Numerical Weather Prediction

Computation Fluid Dynamics

Intro to Research Computing with Python: Partial Differential Equations

Lecture 9 Approximations of Laplace s Equation, Finite Element Method. Mathématiques appliquées (MATH0504-1) B. Dewals, C.

Mathematical Computing

CS 450 Numerical Analysis. Chapter 9: Initial Value Problems for Ordinary Differential Equations

Introduction to Partial Differential Equations

2.2. Methods for Obtaining FD Expressions. There are several methods, and we will look at a few:

Mathematical Methods - Lecture 9

Numerical Analysis and Methods for PDE I

MATH 425, FINAL EXAM SOLUTIONS

Chapter 10 Exercises

APPLICATIONS OF FD APPROXIMATIONS FOR SOLVING ORDINARY DIFFERENTIAL EQUATIONS

Partial Differential Equations

MATH 131P: PRACTICE FINAL SOLUTIONS DECEMBER 12, 2012

Transcription:

Scientific Computing: An Introductory Survey Chapter 11 Partial Differential Equations Prof. Michael T. Heath Department of Computer Science University of Illinois at Urbana-Champaign Copyright c 2002. Reproduction permitted for noncommercial, educational use only. Michael T. Heath Scientific Computing 1 / 105

Outline Partial Differential Equations 1 Partial Differential Equations 2 Michael T. Heath Scientific Computing 2 / 105

Partial Differential Equations Partial Differential Equations Characteristics Classification Partial differential equations (PDEs) involve partial derivatives with respect to more than one independent variable Independent variables typically include one or more space dimensions and possibly time dimension as well Michael T. Heath Scientific Computing 3 / 105

Partial Differential Equations Characteristics Classification Partial Differential Equations, continued For simplicity, we will deal only with single PDEs (as opposed to systems of several PDEs) with only two independent variables, either two space variables, denoted by x and y, or one space variable denoted by x and one time variable denoted by t Partial derivatives with respect to independent variables are denoted by subscripts, for example u t = u/ t u xy = 2 u/ x y Michael T. Heath Scientific Computing 4 / 105

Example: Advection Equation Partial Differential Equations Characteristics Classification Advection equation u t = c u x where c is nonzero constant Unique solution is determined by initial condition u(0, x) = u 0 (x), < x < where u 0 is given function defined on R We seek solution u(t, x) for t 0 and all x R From chain rule, solution is given by u(t, x) = u 0 (x c t) Solution is initial function u 0 shifted by c t to right if c > 0, or to left if c < 0 Michael T. Heath Scientific Computing 5 / 105

Example, continued Partial Differential Equations Characteristics Classification Typical solution of advection equation, with initial function advected (shifted) over time < interactive example > Michael T. Heath Scientific Computing 6 / 105

Classification of PDEs Partial Differential Equations Characteristics Classification Order of PDE is order of highest-order partial derivative appearing in equation For example, advection equation is first order Important second-order PDEs include Heat equation : u t = u xx Wave equation : u tt = u xx Laplace equation : u xx + u yy = 0 Michael T. Heath Scientific Computing 8 / 105

Classification of PDEs, continued Partial Differential Equations Characteristics Classification Second-order linear PDEs of general form au xx + bu xy + cu yy + du x + eu y + fu + g = 0 are classified by value of discriminant b 2 4ac b 2 4ac > 0: hyperbolic (e.g., wave equation) b 2 4ac = 0: parabolic (e.g., heat equation) b 2 4ac < 0: elliptic (e.g., Laplace equation) Michael T. Heath Scientific Computing 9 / 105

Classification of PDEs, continued Partial Differential Equations Characteristics Classification Classification of more general PDEs is not so clean and simple, but roughly speaking Hyperbolic PDEs describe time-dependent, conservative physical processes, such as convection, that are not evolving toward steady state Parabolic PDEs describe time-dependent, dissipative physical processes, such as diffusion, that are evolving toward steady state Elliptic PDEs describe processes that have already reached steady state, and hence are time-independent Michael T. Heath Scientific Computing 10 / 105

Time-dependent PDEs usually involve both initial values and boundary values Michael T. Heath Scientific Computing 11 / 105

Semidiscrete Methods One way to solve time-dependent PDE numerically is to discretize in space but leave time variable continuous Result is system of ODEs that can then be solved by methods previously discussed For example, consider heat equation with initial condition u t = c u xx, 0 x 1, t 0 and boundary conditions u(0, x) = f(x), 0 x 1 u(t, 0) = 0, u(t, 1) = 0, t 0 Michael T. Heath Scientific Computing 12 / 105

Semidiscrete Finite Difference Method Define spatial mesh points x i = i x, i = 0,..., n + 1, where x = 1/(n + 1) Replace derivative u xx by finite difference approximation u xx (t, x i ) u(t, x i+1) 2u(t, x i ) + u(t, x i 1 ) ( x) 2 Result is system of ODEs y i(t) = c ( x) 2 (y i+1(t) 2y i (t) + y i 1 (t)), where y i (t) u(t, x i ) i = 1,..., n From boundary conditions, y 0 (t) and y n+1 (t) are identically zero, and from initial conditions, y i (0) = f(x i ), i = 1,..., n We can therefore use ODE method to solve IVP for this system this approach is called Method of Lines Michael T. Heath Scientific Computing 13 / 105

Method of Lines Partial Differential Equations Method of lines uses ODE solver to compute cross-sections of solution surface over space-time plane along series of lines, each parallel to time axis and corresponding to discrete spatial mesh point Michael T. Heath Scientific Computing 14 / 105

Fully Discrete Methods Fully discrete methods for PDEs discretize in both time and space dimensions In fully discrete finite difference method, we replace continuous domain of equation by discrete mesh of points replace derivatives in PDE by finite difference approximations seek numerical solution as table of approximate values at selected points in space and time Michael T. Heath Scientific Computing 20 / 105

Fully Discrete Methods, continued In two dimensions (one space and one time), resulting approximate solution values represent points on solution surface over problem domain in space-time plane Accuracy of approximate solution depends on step sizes in both space and time Replacement of all partial derivatives by finite differences results in system of algebraic equations for unknown solution at discrete set of sample points Discrete system may be linear or nonlinear, depending on underlying PDE Michael T. Heath Scientific Computing 21 / 105

Fully Discrete Methods, continued With initial-value problem, solution is obtained by starting with initial values along boundary of problem domain and marching forward in time step by step, generating successive rows in solution table Time-stepping procedure may be explicit or implicit, depending on whether formula for solution values at next time step involves only past information We might expect to obtain arbitrarily good accuracy by taking sufficiently small step sizes in time and space Time and space step sizes cannot always be chosen independently of each other, however Michael T. Heath Scientific Computing 22 / 105

Example: Heat Equation Consider heat equation u t = c u xx, 0 x 1, t 0 with initial and boundary conditions u(0, x) = f(x), u(t, 0) = α, u(t, 1) = β Define spatial mesh points x i = i x, i = 0, 1,..., n + 1, where x = 1/(n + 1), and temporal mesh points t k = k t, for suitably chosen t Let u k i denote approximate solution at (t k, x i ) Michael T. Heath Scientific Computing 23 / 105

Heat Equation, continued Replacing u t by forward difference in time and u xx by centered difference in space, we obtain u k+1 i u k+1 i = u k i + c u k i t t ( ( x) 2 u k i+1 2u k i + u k i 1 = c uk i+1 2uk i + uk i 1 ( x) 2, or ), i = 1,..., n Stencil : pattern of mesh points involved at each level Michael T. Heath Scientific Computing 24 / 105

Heat Equation, continued Boundary conditions give us u k 0 = α and uk n+1 = β for all k, and initial conditions provide starting values u 0 i = f(x i), i = 1,..., n So we can march numerical solution forward in time using this explicit difference scheme Local truncation error is O( t) + O(( x) 2 ), so scheme is first-order accurate in time and second-order accurate in space < interactive example > Michael T. Heath Scientific Computing 25 / 105

Example: Wave Equation Consider wave equation u tt = c u xx, 0 x 1, t 0 with initial and boundary conditions u(0, x) = f(x), u(t, 0) = α, u t (0, x) = g(x) u(t, 1) = β Michael T. Heath Scientific Computing 26 / 105

Example: Wave Equation, continued u k+1 i With mesh points defined as before, using centered difference formulas for both u tt and u xx gives finite difference scheme u k+1 i 2u k i + uk 1 i ( t) 2 = 2u k i u k 1 i +c = c uk i+1 2uk i + uk i 1 ( x) 2, or ( ) t 2 ( ) u k i+1 2u k i + u k i 1, i = 1,..., n x Michael T. Heath Scientific Computing 27 / 105

Wave Equation, continued Using data at two levels in time requires additional storage We also need u 0 i and u1 i to get started, which can be obtained from initial conditions u 0 i = f(x i ), u 1 i = f(x i ) + ( t)g(x i ) where latter uses forward difference approximation to initial condition u t (0, x) = g(x) < interactive example > Michael T. Heath Scientific Computing 28 / 105