Numerical Methods on Partial Differential Equation Md. Mashiur Rahman Department of Physics University of Chittagong Laplace Equation.

Slides:



Advertisements
Similar presentations
Computational Modeling for Engineering MECN 6040
Advertisements

THE DERIVATIVE AND THE TANGENT LINE PROBLEM
Taylor’s Theorem Section 9.3a. While it is beautiful that certain functions can be represented exactly by infinite Taylor series, it is the inexact Taylor.
CSE Differentiation Roger Crawfis. May 19, 2015OSU/CIS 5412 Numerical Differentiation The mathematical definition: Can also be thought of as the.
CISE301_Topic61 SE301: Numerical Methods Topic 6 Numerical Differentiation Lecture 23 KFUPM Read Chapter 23, Sections 1-2.
Numerical Computation
Lecture 18 - Numerical Differentiation
CE33500 – Computational Methods in Civil Engineering Differentiation Provided by : Shahab Afshari
Section 9.2a. Do Now – Exploration 1 on p.469 Construct a polynomial with the following behavior at : Since, the constant coefficient is Since, the coefficient.
PART 7 Ordinary Differential Equations ODEs
Chapter 19 Numerical Differentiation §Estimate the derivatives (slope, curvature, etc.) of a function by using the function values at only a set of discrete.
Computer-Aided Analysis on Energy and Thermofluid Sciences Y.C. Shih Fall 2011 Chapter 6: Basics of Finite Difference Chapter 6 Basics of Finite Difference.
ECIV 301 Programming & Graphics Numerical Methods for Engineers Lecture 5 Approximations, Errors and The Taylor Series.
1 Chapter 9 NUMERICAL SOLUTION OF PARTIAL DIFFERENTIAL EQUATIONS.
Dr. Jie Zou PHY Chapter 7 Numerical Differentiation: 1 Lecture (I) 1 Ref: “Applied Numerical Methods with MATLAB for Engineers and Scientists”, Steven.
The Islamic University of Gaza Faculty of Engineering Civil Engineering Department Numerical Analysis ECIV 3306 Chapter 23 Numerical Differentiation.
PART 7 Ordinary Differential Equations ODEs
NUMERICAL DIFFERENTIATION The derivative of f (x) at x 0 is: An approximation to this is: for small values of h. Forward Difference Formula.
The Finite Difference Method This section presents a quick overview bout the finite difference method. This method can be used to solve any partial differential.
Numerical Differentiation
Scientific Computing Partial Differential Equations Introduction and
1 EEE 431 Computational Methods in Electrodynamics Lecture 4 By Dr. Rasime Uyguroglu
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 ~ Roots of Equations ~ Open Methods Chapter 6 Credit:
CSE Differentiation Roger Crawfis Prepaid by:
Elliptic PDEs and the Finite Difference Method
Finite Difference Methods Definitions. Finite Difference Methods Approximate derivatives ** difference between exact derivative and its approximation.
Today’s class Numerical Differentiation Finite Difference Methods Numerical Methods Lecture 14 Prof. Jinbo Bi CSE, UConn 1.
Sensitivity derivatives Can obtain sensitivity derivatives of structural response at several levels Finite difference sensitivity (section 7.1) Analytical.
Engineering Analysis – Computational Fluid Dynamics –
Chap. 11 Numerical Differentiation and Integration
Finite Deference Method
Elliptic PDEs and Solvers
Numerical Solutions of Partial Differential Equations CHAPTER 16.
NUMERICAL DIFFERENTIATION or DIFFERENCE APPROXIMATION Used to evaluate derivatives of a function using the functional values at grid points. They are.
Solving Partial Differential Equation Numerically Pertemuan 13 Matakuliah: S0262-Analisis Numerik Tahun: 2010.
Taylor and MacLaurin Series Lesson 8.8. Taylor & Maclaurin Polynomials Consider a function f(x) that can be differentiated n times on some interval I.
MTH 253 Calculus (Other Topics) Chapter 11 – Infinite Sequences and Series Section 11.8 –Taylor and Maclaurin Series Copyright © 2009 by Ron Wallace, all.
The Finite-Difference Method Taylor Series Expansion Suppose we have a continuous function f(x), its value in the vicinity of can be approximately expressed.
1 Numerical Differentiation. 2  First order derivatives  High order derivatives  Examples.
EEE 431 Computational Methods in Electrodynamics
NUMERICAL DIFFERENTIATION Forward Difference Formula
Chapter 10 Limits and the Derivative
Finite Difference Methods
Dr. Md. Mashiur Rahman Department of Physics University of Chittagong
Numerical Differentiation
Advanced Numerical Methods (S. A. Sahu) Code: AMC 51151
Section 11.3 – Power Series.
Taylor series in numerical computations (review)
Sec:4.1 THE TAYLOR SERIES.
Class Notes 18: Numerical Methods (1/2)
Numerical Solutions of Ordinary Differential Equations
CSE Differentiation Roger Crawfis.
Chapter 23.
Taylor Polynomials & Approximation (9.7)
ME/AE 339 Computational Fluid Dynamics K. M. Isaac Topic2_PDE
For the geometric series below, what is the limit as n →∞ of the ratio of the n + 1 term to the n term?
Expressing functions as infinite series
Section 11.3 Power Series.
Topic 3 Discretization of PDE
CSE Differentiation Roger Crawfis.
Numerical differentiation
Sec 21: Analysis of the Euler Method
Section 11.6 – Taylor’s Formula with Remainder
Topic 3 Discretization of PDE
Finite Difference Method for Poisson Equation
30 – Instantaneous Rate of Change No Calculator
SKTN 2393 Numerical Methods for Nuclear Engineers
Numerical Methods on Partial Differential Equation
Chapter 2 Limits and the Derivative
Topic 3 Discretization of PDE
Presentation transcript:

Numerical Methods on Partial Differential Equation Md. Mashiur Rahman Department of Physics University of Chittagong Laplace Equation

Finite Difference Md. Mashiur RahmanTuesday, June 09, 2015 Department of Physics, CU. Slide: 02/10 Expansion of a function f(x) about a point x = a in an infinite series of terms involving derivatives of the function f(x) evaluated at that point. Taylor Series : ƒ ( n ) ( a ) denotes the n th derivative of ƒ evaluated at the point x = a. English Mathematician (1685 – 1731) R n ( x ) denotes the Remainder after n terms: [ ]: closed interval ( ): open interval If a = 0, then Taylor series is called Maclaurin series.

Finite Difference Md. Mashiur RahmanTuesday, June 09, 2015 Department of Physics, CU. Slide: 03/10 Expansion of a function f(x+h) about a point x : Taylor Series : O ( h ) denotes the terms involving h and its higher degree. By rearranging, Forward Finite Difference approximation  O ( h ) is known as Local Truncation Error.  Local truncation error is proportional to the step-size ( h ).

Finite Difference Md. Mashiur RahmanTuesday, June 09, 2015 Department of Physics, CU. Slide: 04/10 Expansion of a function f(x – h ) about a point x : Taylor Series : By rearranging, backward Finite Difference approximation  O ( h ) is known as Local Truncation Error.  Local truncation error is proportional to the step-size ( h ).

Finite Difference Md. Mashiur RahmanTuesday, June 09, 2015 Department of Physics, CU. Slide: 05/10 Subtracting f(x + h ) from f(x – h ) : Taylor Series : By rearranging, central Finite Difference approximation  For central approximation, Local Truncation Error is of the order of h 2. For both the forward and backward approximation, it is O(h). So, central approximation gives better approximation for the 1 st order derivative.

Finite Difference Md. Mashiur RahmanTuesday, June 09, 2015 Department of Physics, CU. Slide: 06/10 Geometrical interpretation :  So, there is a huge difference between derivative and finite difference. x f(x) f(x+h) f(x-h) f’(x) Forward:Backward: Central: Derivative: f(x) = slope Smaller the step-size, Better the approximation. x x+h x–h h h

Finite Difference Md. Mashiur RahmanTuesday, June 09, 2015 Department of Physics, CU. Slide: 07/10 Adding f(x + h ) from f(x – h ) : Double derivative : By rearranging, Double Derivative of FD approximation  Local Truncation Error is of the order of h 2.

Finite Difference Method Md. Mashiur RahmanTuesday, June 09, 2015 Department of Physics, CU. Slide: 08/10 FDM transforms derivatives into Finite Difference. Derivatives apply for continuous function. Finite Difference requires functional values at different points. So, non-continuous space is enough for FD. This is done dividing the space into number of equal sections. x y h k Discretization Mesh/Grid Mesh-point /Grid-point Mesh-lines /Grid-lines

Laplace Equation Md. Mashiur RahmanTuesday, June 09, 2015 Department of Physics, CU. Slide: 09/10 This is a 2D problem and so, xy- plane is enough. xy- plane has to be divided into some grids. For simplicity, let grid-sizes in both directions are equal h = k.  Elliptic:  Time independent problem  Solution: u(x, y) = ? x y h h Solutions u(x, y) have to be determined at grid points. x = ih, i = 0, 1, 2, 3, ….. y = jh, j = 0, 1, 2, 3, ….. Grid points: (i, j)

Laplace Equation Md. Mashiur RahmanTuesday, June 09, 2015 Department of Physics, CU. Slide: 010/10 In the Grid representation: x y h h x = ih, i = 0, 1, 2, 3, ….. y = jh, j = 0, 1, 2, 3, ….. Solutions at grid-point (i, j): Double derivatives :

Laplace Equation Md. Mashiur RahmanTuesday, June 09, 2015 Department of Physics, CU. Slide: 011/10 x = ih, i = 0, 1, 2, 3, ….. y = jh, j = 0, 1, 2, 3, ….. Laplace equation becomes : In the Grid representation: x y Standard Five-Point Formula (Five-point stencil) Value of u at any grid point is the average of its values at four neighbouring points to left, right, up & down.

Laplace Equation Md. Mashiur RahmanTuesday, June 09, 2015 Department of Physics, CU. Slide: 012/10 Laplace equation remains invariant under rotation of 45 . Diagonal Five-Point Formula: x y Value of u at any grid point is the average of its values at four diagonal points. Error in Diagonal formula is FOUR TIMES than that in Standard formula. Standard Five-point Formula should be preferred, if possible.

Numerical Methods for PDE Md. Mashiur RahmanTuesday, June 09, 2015 Department of Physics, CU. Slide: 013/10 What we have learnt:  Finite Difference Method  Transformation of Laplace Equation in FDM Next class:  Solution of Laplace equation