Numerical Integration CSE245 Lecture Notes. Content Introduction Linear Multistep Formulae Local Error and The Order of Integration Time Domain Solution.

Slides:



Advertisements
Similar presentations
Differential Equations Brannan Copyright © 2010 by John Wiley & Sons, Inc. All rights reserved. Chapter 08: Series Solutions of Second Order Linear Equations.
Advertisements

SE301: Numerical Methods Topic 8 Ordinary Differential Equations (ODEs) Lecture KFUPM Read , 26-2, 27-1 CISE301_Topic8L8&9 KFUPM.
Computational Modeling for Engineering MECN 6040
CSE245: Computer-Aided Circuit Simulation and Verification Lecture Note 5 Numerical Integration Prof. Chung-Kuan Cheng 1.
Computational Methods in Physics PHYS 3437
Numerical Computation
Today’s class Romberg integration Gauss quadrature Numerical Methods
2. Numerical differentiation. Approximate a derivative of a given function. Approximate a derivative of a function defined by discrete data at the discrete.
CSE245: Computer-Aided Circuit Simulation and Verification Lecture Note 5 Numerical Integration Spring 2010 Prof. Chung-Kuan Cheng 1.
1 EE 616 Computer Aided Analysis of Electronic Networks Lecture 12 Instructor: Dr. J. A. Starzyk, Professor School of EECS Ohio University Athens, OH,
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.
1 EE 616 Computer Aided Analysis of Electronic Networks Lecture 12 Instructor: Dr. J. A. Starzyk, Professor School of EECS Ohio University Athens, OH,
UCSD CSE245 Notes -- Spring 2006 CSE245: Computer-Aided Circuit Simulation and Verification Lecture Notes Spring 2006 Prof. Chung-Kuan Cheng.
ECIV 301 Programming & Graphics Numerical Methods for Engineers Lecture 5 Approximations, Errors and The Taylor Series.
NUMERICAL SOLUTION OF ORDINARY DIFFERENTIAL EQUATIONS
Numerical Solution of Ordinary Differential Equation
MATH 685/ CSI 700/ OR 682 Lecture Notes Lecture 10. Ordinary differential equations. Initial value problems.
Numerical solution of Differential and Integral Equations PSCi702 October 19, 2005.
Numerical Solutions to ODEs Nancy Griffeth January 14, 2014 Funding for this workshop was provided by the program “Computational Modeling and Analysis.
Ch 8.1 Numerical Methods: The Euler or Tangent Line Method
Boyce/DiPrima 9th ed, Ch 8.4: Multistep Methods Elementary Differential Equations and Boundary Value Problems, 9th edition, by William E. Boyce and Richard.
Lecture 35 Numerical Analysis. Chapter 7 Ordinary Differential Equations.
CSE245: Computer-Aided Circuit Simulation and Verification Lecture Note 2: State Equations Prof. Chung-Kuan Cheng.
EE3561_Unit 8Al-Dhaifallah14351 EE 3561 : Computational Methods Unit 8 Solution of Ordinary Differential Equations Lesson 3: Midpoint and Heun’s Predictor.
Modeling and simulation of systems Numerical methods for solving of differential equations Slovak University of Technology Faculty of Material Science.
Chapter 8-Infinite Series Calculus, 2ed, by Blank & Krantz, Copyright 2011 by John Wiley & Sons, Inc, All Rights Reserved.
1 EEE 431 Computational Methods in Electrodynamics Lecture 4 By Dr. Rasime Uyguroglu
Integration of 3-body encounter. Figure taken from
Boyce/DiPrima 9 th ed, Ch 5.1: Review of Power Series Elementary Differential Equations and Boundary Value Problems, 9 th edition, by William E. Boyce.
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. ~ Ordinary Differential Equations ~ Stiffness and Multistep.
+ Numerical Integration Techniques A Brief Introduction By Kai Zhao January, 2011.
Numerical Methods.
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.
Engineering Analysis – Computational Fluid Dynamics –
MECN 3500 Inter - Bayamon Lecture 9 Numerical Methods for Engineering MECN 3500 Professor: Dr. Omar E. Meza Castillo
Large Timestep Issues Lecture 12 Alessandra Nardi Thanks to Prof. Sangiovanni, Prof. Newton, Prof. White, Deepak Ramaswamy, Michal Rewienski, and Karen.
© Imperial College London Numerical Solution of Differential Equations 3 rd year JMC group project ● Summer Term 2004 Supervisor: Prof. Jeff Cash Saeed.
Circuits Theory Examples Newton-Raphson Method. Formula for one-dimensional case: Series of successive solutions: If the iteration process is converged,
1 EE 616 Computer Aided Analysis of Electronic Networks Lecture 12 Instructor: Dr. J. A. Starzyk, Professor School of EECS Ohio University Athens, OH,
Announcements Read Chapters 11 and 12 (sections 12.1 to 12.3)
Chapter 5. Ordinary Differential Equation
Elliptic PDEs and Solvers
Today’s class Ordinary Differential Equations Runge-Kutta Methods
Lecture 40 Numerical Analysis. Chapter 7 Ordinary Differential Equations.
ECE 576 – Power System Dynamics and Stability Prof. Tom Overbye Dept. of Electrical and Computer Engineering University of Illinois at Urbana-Champaign.
Sec 21: Generalizations of the Euler Method Consider a differential equation n = 10 estimate x = 0.5 n = 10 estimate x =50 Initial Value Problem Euler.
Lecture 39 Numerical Analysis. Chapter 7 Ordinary Differential Equations.
NUMERICAL DIFFERENTIATION or DIFFERENCE APPROXIMATION Used to evaluate derivatives of a function using the functional values at grid points. They are.
Department of Mathematics Numerical Solutions to Partial Differential Equations Ch 12. Applied mathematics. Korea University.
Solving Ordinary Differential Equations
Computational Fluid Dynamics Lecture II Numerical Methods and Criteria for CFD Dr. Ugur GUVEN Professor of Aerospace Engineering.
Ordinary Differential Equations
Finite Difference Methods
ECE 576 – Power System Dynamics and Stability
CSE 245: Computer Aided Circuit Simulation and Verification
CSE245: Computer-Aided Circuit Simulation and Verification
Class Notes 18: Numerical Methods (1/2)
Numerical Solutions of Ordinary Differential Equations
Numerical Analysis Lecture 45.
CSE 245: Computer Aided Circuit Simulation and Verification
Chapter 26.
5.1 Power Series Method Section 5.1 p1.
CSE245: Computer-Aided Circuit Simulation and Verification
Numerical Analysis Lecture 37.
Numerical Analysis Lecture 38.
Introduction CSE 541.
EE 616 Computer Aided Analysis of Electronic Networks Lecture 12
Modeling and Simulation: Exploring Dynamic System Behaviour
Presentation transcript:

Numerical Integration CSE245 Lecture Notes

Content Introduction Linear Multistep Formulae Local Error and The Order of Integration Time Domain Solution of Linear Networks

Introduction Transient analysis is to obtain the transient response of the circuits. Equations for transient analysis are usually differential equations. Numerical integration: calculate the approximate solutions X n. Linear multistep formulae are the primary numerical integration method.

Linear Multistep Formulae Differential equations are X = F(X) Assume values X n-1, X n-2, …, X n-k and derivatives X n-1, X n-2, …, X n-k are known, the solution X n and X n can be approximated by a polynomial of these values:   i X n-i + h   i X n-i = 0 i=0 k k

Linear Multistep Formulae There are two distinct classes LMS:  Explicit predictors ---  0 = Xn is the only unknown variable  Implicit ---  0  X n, X n are all unknown variables.

Linear Multistep Formulae Three simplest LMS formulae:  The forward Euler  The backward Euler  Trapezoidal

Linear Multistep Formulae The forward Euler X n – X n-1 – h X n-1 = 0 where  0 = 1,  1 = -1,  0 = 0,  1 = -1 t n-1 tntn X n-1 XnXn X(t n ) X(t) t

Linear Multistep Formulae The backward Euler X n – X n-1 – h X n = 0 where  0 = 1,  1 = -1,  0 = -1,  1 = 0 It is an implicit representation. We may assume some initial value for X n and iterate to approximate the solution X n and X n.

Linear Multistep Formulae Trapezoidal X n – X n-1 – h (X n + X n-1 )/2= 0 where  0 = 1,  1 = -1,  0 = -1/2,  1 = -1/2 It is also an implicit representation. X n, X n can be obtained through some iterative procedure.

Local Error Two crucial concepts  Local error --- the error introduced in a single step of the integration routine.  Global error--- the overall error caused by repeated application of the integration formula.

Local Error X(t) t Global error and local error Converging flow Diverging flow

Local Error Two types of error in each step:  Round-off error --- due to the finite- precision (floating-point) arithmetic.  Truncation error --- caused by truncation of the infinite Taylor series, present even with infinite-precision arithmetic.

Local Error and Order of Integration Local error E k for LMS E k = X(t n ) + E k can be expanded into Taylor series. If the coefficients of the first pth derivatives are zero, the order of integration is p.   i X(t n-i ) + h   i X(t n-i ) i=1 k i=0 k

Order of Integration Let X(t) = ((t n -t)/h) l and t n – t n-i = ih, Ek = For pth order integration, the first p+1 elements (l = 0, 1, …, p) will all be zeros: l = 0 l = 1 … l = p   i ((t n -t n-i )/h) l + h (-l/h)   i ((tn-tn-i)/h) l-1 i=0 k k   i = 0 i=0 k  (  i i -  i ) = 0 i=0 k  [(  i i - p  i )i p-1 ] = 0 i=0 k

Order of Integration The forward Euler  0 = 1,  1 = -1,  0 = 0,  1 = -1 Sol = 0  0 +  1 = 1 + (-1) = 0; l = 1  0  0 +  1  1 -  0 -  1 = 1  0 + (-1)  – (-1) = 0; l = 2(  1   1)  1 = ((-1)   (-1))  1 = 1  0; The forward Euler is 1th order.

Order of Integration The backward Euler  0 = 1,  1 = -1,  0 = -1,  1 = 0 Sol = 0  0 +  1 = 1 + (-1) = 0; l = 1  0  0 +  1  1 -  0 -  1 = 1  0 + (-1)  1 - (-1) - 0 = 0; l = 2(  1   1)  1 = ((-1)   0)  1 = -1  0; The backward Euler is 1th order.

Order of Integration Trapezoidal  0 = 1,  1 = -1,  0 = -1/2,  1 = -1/2 Sol = 0  0 +  1 = 1 + (-1) = 0; l = 1  0  0 +  1  1 -  0 -  1 = 1  0 + (-1)  1 - (-1/2) – (-1/2) = 0; l = 2(  1   1)  1 = ((-1)   (-1/2))  1 = 0; l = 3(  1   1)  12 = ((-1)   (-1/2))  1 = 1/2  0; The trapezoidal method is 2th order

Order of Integration The algorithm for defining  and  : --- Choose p, the order of the numerical integration method needed; --- Choose k, the number of previous values needed; --- Write down the (p+1) equations of pth order accuracy; --- Choose other (2k-p) constrains of the coefficients  and  ; --- Combine and solve above (2k+1) equations; --- Get the result coefficients  and .

Solution of Linear Networks Combine the differential equations for linear networks and the numerical integration equations: MX = -GX + Pu   i X n-i + h   i X n-i = 0 i=0 k k (1) (2)

Solution of Linear Networks (1)  X n + h  0 X n +  X n + h  0 X n + b = 0  X n = (-1/h  0 )( X n + b) (2)+(3)  M[(-1/h  0 )( X n + b)] = -GX n + Pu  (-1/h  0 ) X n = -GX n + Pu + (M/h  0 )b   i X n-i + h   i X n-i = 0 i=1 k k (3)

Solution of Linear Networks For capacitance C v c = i c  C [(-1/h  0 )( v c + b c )] = i c  (-C/h  0 ) v c – (C/h  0 ) b c = i c icic vcvc vcvc icic – (C/h  0 ) b c (-C/h  0 ) 

Solution of Linear Networks For inductance L i l = v l  L [(-1/h  0 )( i l + b l )] = v l  (-L/h  0 ) i l – (L/h  0 ) b l = v l ilil vlvl + - ilil – (L/h  0 ) b l (-L/h  0 ) vlvl 

References CK. Cheng, John Lillis, Shen Lin and Norman Chang “ Interconnect Analysis and Synthesis ”, Wiley and Sons, 2000 Jiri Vlach and Kishore Singhal “ Computer Methods for Circuit Analysis and Design ”, 1983