Lecture 4.2 Finite Difference Approximation

Similar documents
Lecture 4.5 Schemes for Parabolic Type Equations

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

Exact and Approximate Numbers:

(a) Show that there is a root α of f (x) = 0 in the interval [1.2, 1.3]. (2)

The Fundamental Theorem of Calculus Part 3

MATH 108 REVIEW TOPIC 6 Radicals

Notation Nodes are data points at which functional values are available or at which you wish to compute functional values At the nodes fx i

PhysicsAndMathsTutor.com

Relevant self-assessment exercises: [LIST SELF-ASSESSMENT EXERCISES HERE]

Numerical Solutions to Partial Differential Equations

Numerical Solution Techniques in Mechanical and Aerospace Engineering

TImath.com Calculus. Topic: Techniques of Integration Derive the formula for integration by parts and use it to compute integrals

Exact Differential Equations. The general solution of the equation is f x, y C. If f has continuous second partials, then M y 2 f

Finite Difference Methods for Boundary Value Problems

Explicit Jump Immersed Interface Method: Documentation for 2D Poisson Code

2.29 Numerical Fluid Mechanics Fall 2009 Lecture 13

Numerical Integration (Quadrature) Another application for our interpolation tools!

Taylor Series and Series Convergence (Online)

Multiple Integration

EDEXCEL NATIONAL CERTIFICATE UNIT 28 FURTHER MATHEMATICS FOR TECHNICIANS OUTCOME 4 - CALCULUS TUTORIAL 2 - INTEGRATION

Further factorising, simplifying, completing the square and algebraic proof

Numerical Solutions to Partial Differential Equations

Numerical Analysis & Computer Programming

The embedded finite difference method for the Poisson equation in a domain with an irregular boundary and Dirichlet boundary conditions

Finite difference method for elliptic problems: I

APPLICATIONS OF FD APPROXIMATIONS FOR SOLVING ORDINARY DIFFERENTIAL EQUATIONS

lecture 7: Trigonometric Interpolation

A Propagating Wave Packet The Group Velocity

Finite Difference Methods (FDMs) 1

Euler-Maclaurin summation formula

Lesson 5.1 Exercises, pages

A Propagating Wave Packet The Group Velocity

Trigonometric. equations. Topic: Periodic functions and applications. Simple trigonometric. equations. Equations using radians Further trigonometric

Lesson 10.1 Polynomials

Basic Aspects of Discretization

MA3232 Numerical Analysis Week 9. James Cooley (1926-)

Interpolation Models CHAPTER 3

2.29 Numerical Fluid Mechanics Spring 2015 Lecture 4

ME Computational Fluid Mechanics Lecture 5

3.1: 1, 3, 5, 9, 10, 12, 14, 18

MATHEMATICS FOR ENGINEERING

SOLVING QUADRATICS. Copyright - Kramzil Pty Ltd trading as Academic Teacher Resources

Graphing Exponential Functions

SYLLABUS FOR ENTRANCE EXAMINATION NANYANG TECHNOLOGICAL UNIVERSITY FOR INTERNATIONAL STUDENTS A-LEVEL MATHEMATICS

Regent College Maths Department. Core Mathematics 4 Trapezium Rule. C4 Integration Page 1

Daily Lessons and Assessments for AP* Calculus AB, A Complete Course Page 584 Mark Sparks 2012

Monte Carlo Method for Finding the Solution of Dirichlet Partial Differential Equations

MARIS STELLA HIGH SCHOOL PRELIMINARY EXAMINATION 2

Chapter XX: 1: Functions. XXXXXXXXXXXXXXX <CT>Chapter 1: Data representation</ct> 1.1 Mappings

GG303 Lecture 15 10/6/09 1 FINITE STRAIN AND INFINITESIMAL STRAIN

CE 601: Numerical Methods Lecture 7. Course Coordinator: Dr. Suresh A. Kartha, Associate Professor, Department of Civil Engineering, IIT Guwahati.

Application of modified Leja sequences to polynomial interpolation

Markscheme November 2016 Mathematics Standard level Paper 1

3.6 Determinants. 3.6 Determinants 1

Lecture 18. Double Integrals (cont d) Electrostatic field near an infinite flat charged plate

Fixed Point Theorem and Sequences in One or Two Dimensions

Study Guide and Intervention. The Quadratic Formula and the Discriminant. Quadratic Formula. Replace a with 1, b with -5, and c with -14.

Module 3: BASICS OF CFD. Part A: Finite Difference Methods

CHAPTER 2 DIFFERENTIATION 2.1 FIRST ORDER DIFFERENTIATION. What is Differentiation?

High-order solution of elliptic partial differential equations in domains containing conical singularities

The Control-Volume Finite-Difference Approximation to the Diffusion Equation

Errors Intensive Computation

High-order ADI schemes for convection-diffusion equations with mixed derivative terms

Kasetsart University Workshop. Multigrid methods: An introduction

Linear Equations and Vectors

arxiv:math-ph/ v1 10 Jan 2005

α x x 0 α x x f(x) α x x α x ( 1) f(x) x f(x) x f(x) α x = α x x 2

Sparse Linear Systems. Iterative Methods for Sparse Linear Systems. Motivation for Studying Sparse Linear Systems. Partial Differential Equations

University of Alberta ENGM 541: Modeling and Simulation of Engineering Systems Laboratory #5

Course. Print and use this sheet in conjunction with MathinSite s Maclaurin Series applet and worksheet.

Maths A Level Summer Assignment & Transition Work

Computer Problems for Taylor Series and Series Convergence

AE/ME 339. K. M. Isaac Professor of Aerospace Engineering. December 21, 2001 topic13_grid_generation 1

Geometric Modeling Summer Semester 2010 Mathematical Tools (1)

MTH 3311 Test #1. order 3, linear. The highest order of derivative of y is 2. Furthermore, y and its derivatives are all raised to the

Page No.1. MTH603-Numerical Analysis_ Muhammad Ishfaq

Chapter 5 HIGH ACCURACY CUBIC SPLINE APPROXIMATION FOR TWO DIMENSIONAL QUASI-LINEAR ELLIPTIC BOUNDARY VALUE PROBLEMS

Numerical Method for Solving Second-Order. Fuzzy Boundary Value Problems. by Using the RPSM

Fourier Analysis Fourier Series C H A P T E R 1 1

OCR 06 Algebra (Higher)

Suggested Problems for Math 122

Chapter 5 FINITE DIFFERENCE METHOD (FDM)

APPLICATIONS OF DIFFERENTIATION

Time: 1 hour 30 minutes

18.303: Introduction to Green s functions and operator inverses

Lab on Taylor Polynomials. This Lab is accompanied by an Answer Sheet that you are to complete and turn in to your instructor.

CHAPTER 3a. INTRODUCTION TO NUMERICAL METHODS

Numerical Analysis of Differential Equations Numerical Solution of Elliptic Boundary Value


Composition of and the Transformation of Functions

Mathematical Methods for Numerical Analysis and Optimization

Chapter 4 Page 1 of 16. Lecture Guide. Math College Algebra Chapter 4. to accompany. College Algebra by Julie Miller

CLASS IX MATHS CHAPTER REAL NUMBERS

= V I = Bus Admittance Matrix. Chapter 6: Power Flow. Constructing Ybus. Example. Network Solution. Triangular factorization. Let

1. Introduction. Consider the Navier Stokes equations ηu t ν 2 u + (u grad) u + grad p = f div u = 0 (1.1)

Name of the Student: Unit I (Solution of Equations and Eigenvalue Problems)

Core Mathematics 2 Unit C2 AS

The Simple Harmonic Oscillator

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

AP Calculus BC Chapter 8: Integration Techniques, L Hopital s Rule and Improper Integrals

Transcription:

Lecture 4. Finite Difference Approimation 1

Discretization As stated in Lecture 1.0, there are three steps in numerically solving the differential equations. They are: 1. Discretization of the domain by placing a large number of nodes with help of grid generation techniques, as discussed in Module 3.. Approimating (or discretizing) the governing equations at the nodes identified in Step 1. 3. Solving the algebraic equations obtained in Step using direct or iterative methods. In this and in the following few lectures, finite difference method is chosen for the purpose of discretizing the governing equations.

Finite Difference Method Finite difference method computes the solution numerically at a predefined set of discrete points in the structured grid of a computational domain. These discrete points along with their inter connections are called nodal points of the grid or mesh. The procedure of identifying the grid points (or grid) for a given domain is called the discretization of the domain, which is the first step in the finite difference method. 3

In Module 3, various grid generation techniques have been highlighted. However for the regular domains chosen to eplain the finite difference method, placing nodal points uniformly and connecting them by straight lines gives the required grid therefore, we may not use the procedures given in the Module 3. For eample, the discretization of a one dimensional domain that is, an interval, can be realized as shown in Fig. 4..1 Fig. 4..1 Discretization of an interval 4

In this discretization, a set of uniformly distributed points 0, 1,. n are identified such that 0 = a, n = b and i i-1 = for i = 1,, n, as shown in Fig. 4..1. Where, is the step length. A uniform grid means the distance between any two consecutive points i and i-1 is constant. Otherwise, the discretization is called non-uniform. The coordinate of any mesh point in Fig. 4..1, is computed using i a i* i 0,1,... n (4..1) Function value u at any point i is represented by u i ui i 0,1,... n 5

If Ω is a rectangular two-dimension domain bounded by [a,b] [c,d], then it can be discretized as shown in Fig. 4... Fig. 4.. Discretization of a rectangular domain The coordinates of any point p( i,y j ) are obtained using i 0 i *, i 0,1,,..., n, y j y 0 j * y, j 0,1,,..., m (4..) 6

Further, the dependent variable u at any point P is represented using u i,j = u( i, y j ). A similar etension can be carried out for higher dimensional domains. For grid generation in arbitrary domains, refer to Module 3. The second step is the discretization of the governing equations. To realize this, there are several methods. In the present lecture, the Taylor series based method is highlighted. Consider a function u which depends on the independent variable in the interval [a, b]. 7

Let the function u be sufficiently smooth (differentiable) and it has values u i and u i + 1 at any two neighboring points, i and i + 1 respectively. By using Taylor series epansion, u i + 1 can be epressed in terms of u i and its higher derivatives as 3 ui 1 u i ui ui ui ui! 3! where the superscript stands for a derivative with respect to.... (4..3) From equation (4..3), u i can be written as u 1 u u i i i ui ui...! 3! ui 1 ui 1 O( ) ui O( ) (4..4) 8

where δ + is the forward difference operator defined by δ + u i = u i+1 u i Equation (4..4) is the first approimation to u at the node i. In this approimation ui! 3! ui... is the error. This error is called Truncation error, in which leading term. ui! is the Since the degree of the step size is one in the leading term of the error, (4..4) is a first order approimation for u. 9

The order of approimation is an important concept in the process of discretization which gives an immediate insight about what kind of accuracy can be epected from the scheme. Similarly, one can also write 3 u i 1 ui 1 ui ui ui ui! 3!... (4..5) ' 1 1 u u i u i i ui ui... ui O( )! 3! (4..6) where δ - is the backward difference operator defined by δ - u i = u i u i-1. Eq. (4..5) is again first order as the degree of the step size in the leading term of the error is also one. 10

From (4..5) and (4..4) (subtracting (4..5) from (4..4)) one can write 3 5 u 1 1 v i ui ui ui u... 3! 5! i (4..7) 1 1 u 0 ( i ui 1 ui 1 ui ui O ) 6 (4..8) Here, δ 0 is called the central difference operator defined by δ 0 u i = u i+1 u i-1. Equation (4..8) is a second order accurate approimation for u as the leading term of the error has in second degree. 11

Alternatively, adding (4..4) and (4..5) gives 4 u 1 1 iv i ui ui ui u...! 4! i ui 1 ui ui 1 iv 1 i i i u u u O( ) 1 (4..9) (4..10) where δ is the central difference operator for second derivative which is a second order accurate approimation. 1

Numerical Implementation The finite difference approimations (4..4), (4..6), (4..8), and (4..10) can be used to replace the first and second order derivative terms of a differential equation to convert it into a difference (possibly linear algebraic) equation at every nodal point of the interior of the domain. Note that the central approimation (4..8) is one order better accurate than the forward (4..4) and backward (4..6) approimations. To understand the implementation, consider the following boundary value problem (BVP). d u du d d u sin(ln ) 0, 1, u(1) 1and u() (4..11) 13

The analytical solution of the BVP Eq. (4..11) is.03831 u( ) 1.10869 3sin log( ) 5cos log 34 (4..1) The finite difference solution of Eq. (4..11) is obtained by replacing its first and second order derivative terms of with (4..7) and (4..8), respectively to get ui 1 ui ui 1 ui 1 ui 1 O( ) u sin log( ) 0 i i i i for i 1,,..., n 1 (4..13) Note that at node numbers 0 and n, we have boundary conditions and the given differential equation may not be valid at these points, therefore, at these nodes we have (from the boundary conditions) u 0 = 1.0 and u n =.0 (4..14)

Equation (4..13) has n-1 equations in n+1 variables, therefore adding Eq. (4..14) closes the system to solve for the unknowns u i, for i = 1,,..., n-1. Rearranging the terms in (4..13) gives 1 1 1 1 u 1 1 sin log( ) i u ( ) i u i i i i i i 1,,... n 1 (4..15) Equation (4..15) is a linear system with tri-diagonal coefficient matri. Solving such linear algebraic systems is the third and final step of the numerical schemes. (Refer Module 5). 15

After solving Eq. (4..15) with step lengths ( ) 1/40, 1/80 and 1/160, the absolute errors in the numerical solution are computed and compared in the Fig. 4..3 Fig. 4..3 Comparison absolute errors with three distinct discretizations 16

The corresponding infinity error norms, obtained using are u u Eact 3.8134 10-06, 9.5413 10-07,.3854 10-07, respectively for the step lengths 1/40, 1/80 and 1/160. It is clear from this demonstration that the accuracy is improved as the number of points is increased. The decimal place accuracy obtained with second order approimations is quite satisfactory, however, if one wishes to further improve the accuracy, higher order approimations to the derivatives can be obtained. Therefore, the topic of discussion in the net lecture is the higher 17 order finite difference approimation.

Eercise Problems Find a second order finite difference approimation for the PDE u uv v 1 1 0 c c y c y Find the truncation error in the above problem Generate a uniform grid in the circular region r <= 1. Describe the implementation of derivative boundary conditions using finite differences 18

Summary of Lecture 4. Finite difference approimations for partial derivatives are introduced in this lecture. END OF LECTURE 4. 19