1 EEE 431 Computational Methods in Electrodynamics Lecture 4 By Dr. Rasime Uyguroglu

Slides:



Advertisements
Similar presentations
Courant and all that Consistency, Convergence Stability Numerical Dispersion Computational grids and numerical anisotropy The goal of this lecture is to.
Advertisements

Finite Difference Discretization of Hyperbolic Equations: Linear Problems Lectures 8, 9 and 10.
Computational Modeling for Engineering MECN 6040
Chapter 8 Elliptic Equation.
Parabolic Partial Differential Equations
Finite Element Method (FEM) Different from the finite difference method (FDM) described earlier, the FEM introduces approximated solutions of the variables.
Lecture 18 - Numerical Differentiation
CE33500 – Computational Methods in Civil Engineering Differentiation Provided by : Shahab Afshari
PART 7 Ordinary Differential Equations ODEs
CSE245: Computer-Aided Circuit Simulation and Verification Lecture Note 5 Numerical Integration Spring 2010 Prof. Chung-Kuan Cheng 1.
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.
Parabolic PDEs Generally involve change of quantity in space and time Equivalent to our previous example - heat conduction.
PDEs & Parabolic problems Jacob Y. Kazakia © Partial Differential Equations Linear in two variables: Usual classification at a given point (x,y):
Numerical Methods for Partial Differential Equations
Numerical Methods Marisa Villano, Tom Fagan, Dave Fairburn, Chris Savino, David Goldberg, Daniel Rave.
Types of Governing equations
CISE301: Numerical Methods Topic 9 Partial Differential Equations (PDEs) Lectures KFUPM (Term 101) Section 04 Read & CISE301_Topic9.
SE301: Numerical Methods Topic 9 Partial Differential Equations (PDEs) Lectures KFUPM Read & CISE301_Topic9 KFUPM.
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.
Ch 8.1 Numerical Methods: The Euler or Tangent Line Method
Tutorial 5: Numerical methods - buildings Q1. Identify three principal differences between a response function method and a numerical method when both.
Finite Differences Finite Difference Approximations  Simple geophysical partial differential equations  Finite differences - definitions  Finite-difference.
© Arturo S. Leon, BSU, Spring 2010
Introduction to Numerical Methods for ODEs and PDEs Methods of Approximation Lecture 3: finite differences Lecture 4: finite elements.
Numerical Methods on Partial Differential Equation Md. Mashiur Rahman Department of Physics University of Chittagong Laplace Equation.
Finite Element Method.
Lecture 3.
Numerical methods to solve parabolic PDEs. Mathematical models: 5° Classification Classification based on the type of the solution (except, usually, the.
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 ~ Roots of Equations ~ Open Methods Chapter 6 Credit:
10/27/ Differentiation-Continuous Functions Computer Engineering Majors Authors: Autar Kaw, Sri Harsha Garapati.
To Dream the Impossible Scheme Part 1 Approximating Derivatives on Non-Uniform, Skewed and Random Grid Schemes Part 2 Applying Rectangular Finite Difference.
Chapter 5: Numerical Methods in Heat Transfer
1 EEE 431 Computational Methods in Electrodynamics Lecture 3 By Dr. Rasime Uyguroglu.
Numerical Solution of the Diffusivity Equation. FAQReferencesSummaryInfo Learning Objectives Introduction Discrete Systems Taylor Series Approximation.
Finite Difference Methods Definitions. Finite Difference Methods Approximate derivatives ** difference between exact derivative and its approximation.
Engineering Analysis – Computational Fluid Dynamics –
Engineering Analysis – Computational Fluid Dynamics –
MECN 3500 Inter - Bayamon Lecture 9 Numerical Methods for Engineering MECN 3500 Professor: Dr. Omar E. Meza Castillo
1 EEE 431 Computational Methods in Electrodynamics Lecture 18 By Dr. Rasime Uyguroglu
1 EEE 431 Computational Methods in Electrodynamics Lecture 8 By Dr. Rasime Uyguroglu
FALL 2015 Esra Sorgüven Öner
Discretization Methods Chapter 2. Training Manual May 15, 2001 Inventory # Discretization Methods Topics Equations and The Goal Brief overview.
1 EEE 431 Computational Methods in Electrodynamics Lecture 7 By Dr. Rasime Uyguroglu
The story so far… ATM 562 Fovell Fall, Convergence We will deploy finite difference (FD) approximations to our model partial differential equations.
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.
3/23/05ME 2591 Numerical Methods in Heat Conduction Reference: Incropera & DeWitt, Chapter 4, sections Chapter 5, section 5.9.
1 LECTURE 6 Stability of Parabolic PDEs. 2 Aim of Lecture Last week we discussed Parabolic PDEs –Looked at Explicit and Implicit Methods –Advantages and.
1 EEE 431 Computational Methods in Electrodynamics Lecture 13 By Dr. Rasime Uyguroglu
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 Week 11 Numerical methods for ODEs 1.The basics: finite differences, meshes 2.The Euler method.
EEE 431 Computational Methods in Electrodynamics
EEE 431 Computational Methods in Electrodynamics
Lecture 4: Numerical Stability
Finite Difference Methods
Convection-Dominated Problems
Chapter 30.
21th Lecture - Advection - Diffusion
Numerical Solutions of Ordinary Differential Equations
Finite Volume Method for Unsteady Flows
ME/AE 339 Computational Fluid Dynamics K. M. Isaac Topic2_PDE
Topic 3 Discretization of PDE
Scientific Computing Partial Differential Equations Implicit Solution of Heat Equation.
topic4: Implicit method, Stability, ADI method
Topic 3 Discretization of PDE
topic4: Implicit method, Stability, ADI method
SKTN 2393 Numerical Methods for Nuclear Engineers
topic4: Implicit method, Stability, ADI method
6th Lecture : Numerical Methods
Topic 3 Discretization of PDE
Presentation transcript:

1 EEE 431 Computational Methods in Electrodynamics Lecture 4 By Dr. Rasime Uyguroglu

2 FINITE DIFFERENCE METHODS

3 Introduction In general real life EM problems cannot be solved by using the analytical methods, because: The PDE is not linear, The solution region is complex, The boundary conditions are of mixed types, The boundary conditions are time dependent, The medium is inhomogeneous or anisotropic.

4 Introduction For such complicated problems numerical methods must be employed. Finite Difference Method (FDM) is one of the available numerical methods which can easily be applied to solve PDE’s with such complexity. FDM, is easy to understand and apply.

5 Introduction FD techniques are based upon approximations of differential equations by finite difference equations. Finite difference approximations: have algebraic forms, Relate the value of the dependent variable at a point in the solution region to the values at some neighboring points.

6 Introduction Steps of finite difference solution: Divide the solution region into a grid of nodes, Approximate the given differential equation by finite difference equivalent, Solve the differential equations subject to the boundary conditions and/or initial conditions.

7 Introduction Rectangular Grid Pattern

8 Finite Difference Schemes The derivative of a given function f(x) can be approximated as:

9 Finite Difference Schemes f(x) x A P B

10 Finite Difference Schemes Estimate of second derivative of f(x) at P:

11 Finite Difference Schemes Or, by using Taylor Series:

12 Finite Difference Schemes Adding these equations: Assuming that higher order terms are neglected:

13 Finite Difference Schemes is the error introduced by truncating the series. It represents the terms that are not greater than.

14 Finite Difference Schemes Subtracting Eq.6 from Eq. 5 and neglecting terms of the order Error is second order. Eq. 3- Eq.4 are second order, Eq.1 and Eq. 2 are first order.

15 Finite Difference Schemes As long as the derivatives of f are well behaved and the step size is not too large, the central difference should be the most accurate of the other two. i.e. Backward and forward difference approximations.

16 Finite Difference Schemes The error in central difference decreases quadratically as the step size decreases, whereas the decrease is only linear for the other two formula. In general, CDF is to be preferred. Situations where the data is not available on both sides of the point where the numerical derivative is to be calculated are exceptions.

17 Finite Difference Schemes To apply the difference method to find the solution of a function the solution region is divided into rectangles:

18 Let the coordinates (x, t) of a typical grid point or a node be: The value of at a point: Finite Difference Schemes

19 Finite Difference Schemes Using this notation, the central difference approximations of at (i, j) are: First derivative:

20 Finite Difference Schemes Second derivative:

21 Finite Difference Schemes One dimensional example: Solve Subject to the boundary conditions: Assume

22 Finite Difference Schemes Solution: Discretization of the equation:

23 Finite Difference Schemes Since there is one unknown, one equation is enough to find this unknown.

24 Finite Difference Schemes If

25 Finite Difference Schemes f(1), f(2) and f(3) are unknowns. Therefore, three equations are written to find three unknowns.

26 Finite Difference Schemes For we have (N-1) unknowns and we need (N-1) equations to solve. The equation of the i th node is:

27 Finite Differencing of Parabolic PDE’s Consider the diffusion equation: Where k is a constant. Discretized equation:

28 Finite Difference Schemes Where Forward difference for t and central difference for x is used. Let:

29 Finite Difference Schemes We can write: This equation can be calculated in terms of boundary and initial conditions. This explicit formula can be used to find explicitly in terms of.

30 Stability Stability is important for the numerical solutions. A stable solution is only possible when (1-2r) is nonnegative. Or: Choose r=1/2. Then our equation becomes:

31 Stability Stability increases by applying an implicit formula. The formula is simple to apply but it is computationally slow. Crank and Nicholson’s formula:

32 Example (Cont.) Rewrite: Three known values on the left hand side and three unknown values on the right hand side.

33 The formula is valid for all finite values of r, chose r=1: Example (cont.)