CSE245: Computer-Aided Circuit Simulation and Verification

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

CSE245: Computer-Aided Circuit Simulation and Verification Lecture Note 5 Numerical Integration Prof. Chung-Kuan Cheng 1.
Ordinary Differential Equations
Lecture 18 - Numerical Differentiation
CSE245: Computer-Aided Circuit Simulation and Verification Lecture Note 2: State Equations Prof. Chung-Kuan Cheng 1.
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,
CSE245:Lec4 02/24/2003. Integration Method Problem formulation.
Numerical Integration CSE245 Lecture Notes. Content Introduction Linear Multistep Formulae Local Error and The Order of Integration Time Domain Solution.
Lecture on Stiff Systems (Section 1-6 of Chua and Lin) ECE 546 Jan. 15, 2008.
Solutions for Nonlinear Equations
1 EE 616 Computer Aided Analysis of Electronic Networks Lecture 12 Instructor: Dr. J. A. Starzyk, Professor School of EECS Ohio University Athens, OH,
CSE245:Lecture12 Advisor: C.K. Cheng Date: 02/13/03.
UCSD CSE245 Notes -- Spring 2006 CSE245: Computer-Aided Circuit Simulation and Verification Lecture Notes Spring 2006 Prof. Chung-Kuan Cheng.
CISE-301: Numerical Methods Topic 1: Introduction to Numerical Methods and Taylor Series Lectures 1-4: KFUPM.
Numerical Solution of Ordinary Differential Equation
MATH 685/ CSI 700/ OR 682 Lecture Notes Lecture 10. Ordinary differential equations. Initial value problems.
1 Chapter 6 Numerical Methods for Ordinary Differential Equations.
Numerical Solutions to ODEs Nancy Griffeth January 14, 2014 Funding for this workshop was provided by the program “Computational Modeling and Analysis.
Professor Walter W. Olson Department of Mechanical, Industrial and Manufacturing Engineering University of Toledo Solving ODE.
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.
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.
1 EEE 431 Computational Methods in Electrodynamics Lecture 4 By Dr. Rasime Uyguroglu
Modelling & Simulation of Chemical Engineering Systems Department of Chemical Engineering King Saud University 501 هعم : تمثيل الأنظمة الهندسية على الحاسب.
Integration of 3-body encounter. Figure taken from
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. ~ Ordinary Differential Equations ~ Stiffness and Multistep.
7. Introduction to the numerical integration of PDE. As an example, we consider the following PDE with one variable; Finite difference method is one of.
+ Numerical Integration Techniques A Brief Introduction By Kai Zhao January, 2011.
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,
Numerical Analysis – Differential Equation
Introduction to the Runge-Kutta algorithm for approximating derivatives PHYS 361 Spring, 2011.
1 EE 616 Computer Aided Analysis of Electronic Networks Lecture 12 Instructor: Dr. J. A. Starzyk, Professor School of EECS Ohio University Athens, OH,
CSE245: Computer-Aided Circuit Simulation and Verification Lecture Note 2: State Equations Spring 2010 Prof. Chung-Kuan Cheng.
Ch 8.2: Improvements on the Euler Method Consider the initial value problem y' = f (t, y), y(t 0 ) = y 0, with solution  (t). For many problems, Euler’s.
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.
Ordinary Differential Equations
1/14  5.2 Euler’s Method Compute the approximations of y(t) at a set of ( usually equally-spaced ) mesh points a = t 0 < t 1
Lecture 39 Numerical Analysis. Chapter 7 Ordinary Differential Equations.
Solving Ordinary Differential Equations
Lecture 11 Alessandra Nardi
Numerical Methods for Partial Differential Equations
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)
SE301: Numerical Methods Topic 8 Ordinary Differential Equations (ODEs) Lecture KFUPM (Term 101) Section 04 Read , 26-2, 27-1 CISE301_Topic8L4&5.
CSE 245: Computer Aided Circuit Simulation and Verification
CSE245: Computer-Aided Circuit Simulation and Verification
CSE245: Computer-Aided Circuit Simulation and Verification
Chapter 26.
Sec 21: Analysis of the Euler Method
ECE 576 POWER SYSTEM DYNAMICS AND STABILITY
SE301: Numerical Methods Topic 8 Ordinary Differential Equations (ODEs) Lecture KFUPM (Term 101) Section 04 Read , 26-2, 27-1 CISE301_Topic8L2.
ECE 576 POWER SYSTEM DYNAMICS AND STABILITY
Overview Class #2 (Jan 16) Brief introduction to time-stepping ODEs
SE301: Numerical Methods Topic 8 Ordinary Differential Equations (ODEs) Lecture KFUPM Read , 26-2, 27-1 CISE301_Topic8L3 KFUPM.
MATH 175: Numerical Analysis II
6th Lecture : Numerical Methods
Chapter 2 A Survey of Simple Methods and Tools
EE 616 Computer Aided Analysis of Electronic Networks Lecture 12
CISE-301: Numerical Methods Topic 1: Introduction to Numerical Methods and Taylor Series Lectures 1-4: KFUPM CISE301_Topic1.
Presentation transcript:

CSE245: Computer-Aided Circuit Simulation and Verification Lecture Notes 6 Numerical Integration Spring 2006 Prof. Chung-Kuan Cheng UCSD CSE 245 Notes – SPRING 2006

Numerical Integration: Outline One-step Method for ODE (IVP) Forward Euler Backward Euler Trapezoidal Rule Equivalent Circuit Model Convergence Analysis Linear Multi-Step Method Time Step Control UCSD CSE 245 Notes – SPRING 2006

Ordinary Difference Equaitons N equations, n x variables, n dx/dt. Typically analytic solutions are not available  solve it numerically UCSD CSE 245 Notes – SPRING 2006

Numerical Integration Forward Euler Backward Euler Trapezoidal UCSD CSE 245 Notes – SPRING 2006

Numerical Integration: State Equation Forward Euler Backward Euler UCSD CSE 245 Notes – SPRING 2006

Numerical Integration: State Equation Trapezoidal UCSD CSE 245 Notes – SPRING 2006

Equivalent Circuit Model-BE Capacitor + + + C - - - January 16, 2019

Equivalent Circuit Model-BE Inductor + + - + L - - January 16, 2019

Equivalent Circuit Model-TR Capacitor + + + C - - - January 16, 2019

Equivalent Circuit Model-TR Inductor + + - + L - - January 16, 2019

Summary of Basic Concepts Trap Rule, Forward-Euler, Backward-Euler All are one-step methods xk+1 is computed using only xk, not xk-1, xk-2, xk-3... Forward-Euler is the simplest No equation solution explicit method. Backward-Euler is more expensive Equation solution each step implicit method most stable (FE/BE/TR) Trapezoidal Rule might be more accurate More accurate but less stable, may cause oscillation UCSD CSE 245 Notes – SPRING 2006

Stabilities Froward Euler January 16, 2019

FE region of absolute stability Forward Euler ODE stability region Im(z) Difference Eqn Stability region Region of Absolute Stability Re(z) -1 1 UCSD CSE 245 Notes – SPRING 2006

Stabilities Backward Euler January 16, 2019

BE region of absolute stability Backward Euler Im(z) Difference Eqn Stability region Re(z) -1 1 Region of Absolute Stability UCSD CSE 245 Notes – SPRING 2006

Stabilities Trapezoidal January 16, 2019

Consistency + Stability Convergence Consistency: A method of order p (p>1) is consistent if Stability: A method is stable if: Convergence: A method is convergent if: Consistency + Stability Convergence UCSD CSE 245 Notes – SPRING 2006

A-Stable Dahlqnest Theorem: An A-Stable LMS (Linear MultiStep) method cannot exceed 2nd order accuracy The most accurate A-Stable method (smallest truncation error) is trapezoidal method. UCSD CSE 245 Notes – SPRING 2006

Convergence Analysis: Truncation Error Local Truncation Error (LTE): At time point tk+1 assume xk is exact, the difference between the approximated solution xk+1 and exact solution x*k+1 is called local truncation error. Indicates consistancy Used to estimate next time step size in SPICE Global Truncation Error (GTE): At time point tk+1, assume only the initial condition x0 at time t0 is correct, the difference between the approximated solution xk+1 and the exact solution x*k+1 is called global truncation error. Indicates stability UCSD CSE 245 Notes – SPRING 2006

LTE Estimation: SPICE Taylor Expansion of xn+1 about the time point tn: Taylor Expansion of dxn+1/dt about the time point tn: Eliminate term in above two equations we get the trapezoidal rule LTE UCSD CSE 245 Notes – SPRING 2006

Time Step Control: SPICE We have derived the local truncation error the unit is charge for capacitor and flux for inductor Similarly, we can derive the local truncation error in terms of (1) the unit is current for capacitor and voltage for inductor Suppose ED represents the absolute value of error that is allowed per time point. That is together with (1) we can calculate the time step as UCSD CSE 245 Notes – SPRING 2006

Time Step Control: SPICE (cont’d) DD3(tn+1) is called 3rd divided difference, which is given by the recursive formula UCSD CSE 245 Notes – SPRING 2006