16.920J/SMA 5212 Numerical Methods for PDEs Lecture 5 Finite Differences: Parabolic Problems B. C. Khoo Thanks to Franklin Tan SMA-HPC ©2002 NUS.

Slides:



Advertisements
Similar presentations
Finite Difference Discretization of Hyperbolic Equations: Linear Problems Lectures 8, 9 and 10.
Advertisements

Ch 7.7: Fundamental Matrices
Chapter 8 Elliptic Equation.
Uniform Treatment of Numerical Time-Integrations of the Maxwell Equations R. Horváth TU/e, Philips Research Eindhoven TU/e Eindhoven, 27th June, 2002 Scientific.
Parabolic Partial Differential Equations
Boyce/DiPrima 10th ed, Ch 10.1: Two-Point Boundary Value Problems Elementary Differential Equations and Boundary Value Problems, 10th edition, by William.
Quantum One: Lecture 3. Implications of Schrödinger's Wave Mechanics for Conservative Systems.
AMI 4622 Digital Signal Processing
Ch 5.2: Series Solutions Near an Ordinary Point, Part I
Ch 7.8: Repeated Eigenvalues
Transfer Functions Convenient representation of a linear, dynamic model. A transfer function (TF) relates one input and one output: The following terminology.
1 Lecture 11: Unsteady Conduction Error Analysis.
1 EE 616 Computer Aided Analysis of Electronic Networks Lecture 12 Instructor: Dr. J. A. Starzyk, Professor School of EECS Ohio University Athens, OH,
Introduction to Numerical Methods I
Parabolic PDEs Generally involve change of quantity in space and time Equivalent to our previous example - heat conduction.
Boyce/DiPrima 9th ed, Ch 11.2: Sturm-Liouville Boundary Value Problems Elementary Differential Equations and Boundary Value Problems, 9th edition, by.
Numerical Methods for Partial Differential Equations
1 Chapter 9 Differential Equations: Classical Methods A differential equation (DE) may be defined as an equation involving one or more derivatives of an.
1 10. Joint Moments and Joint Characteristic Functions Following section 6, in this section we shall introduce various parameters to compactly represent.
Chapter 3 Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Numerical Methods for Partial Differential Equations CAAM 452 Spring 2005 Lecture 6 Various Finite Difference Discretizations for the Advection Equations.
5.7 Impulse Functions In some applications, it is necessary to deal with phenomena of an impulsive nature—for example, voltages or forces of large magnitude.
Lecture 35 Numerical Analysis. Chapter 7 Ordinary Differential Equations.
Time-Domain Representations of LTI Systems
Chapter 8 With Question/Answer Animations 1. Chapter Summary Applications of Recurrence Relations Solving Linear Recurrence Relations Homogeneous Recurrence.
1 EEE 431 Computational Methods in Electrodynamics Lecture 4 By Dr. Rasime Uyguroglu
Scientific Computing Partial Differential Equations Implicit Solution of Heat Equation.
The Finite Element Method A Practical Course
Integration of 3-body encounter. Figure taken from
Numerical Methods for Partial Differential Equations CAAM 452 Spring 2005 Lecture 5 Summary of convergence checks for LMM and one-step time stepping Instructor:
5 5.2 © 2012 Pearson Education, Inc. Eigenvalues and Eigenvectors THE CHARACTERISTIC EQUATION.
Chapter 5 Eigenvalues and Eigenvectors 大葉大學 資訊工程系 黃鈴玲 Linear Algebra.
Programming assignment #2 Solving a parabolic PDE using finite differences Numerical Methods for PDEs Spring 2007 Jim E. Jones.
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.
Professor Walter W. Olson Department of Mechanical, Industrial and Manufacturing Engineering University of Toledo System Solutions y(t) t +++++… 11 22.
Diagonalization and Similar Matrices In Section 4.2 we showed how to compute eigenpairs (,p) of a matrix A by determining the roots of the characteristic.
PHYS 773: Quantum Mechanics February 6th, 2012
Engineering Analysis – Computational Fluid Dynamics –
Engineering Analysis – Computational Fluid Dynamics –
Large Timestep Issues Lecture 12 Alessandra Nardi Thanks to Prof. Sangiovanni, Prof. Newton, Prof. White, Deepak Ramaswamy, Michal Rewienski, and Karen.
Elementary Linear Algebra Anton & Rorres, 9 th Edition Lecture Set – 07 Chapter 7: Eigenvalues, Eigenvectors.
Eigenvalues The eigenvalue problem is to determine the nontrivial solutions of the equation Ax= x where A is an n-by-n matrix, x is a length n column.
1 EE 616 Computer Aided Analysis of Electronic Networks Lecture 12 Instructor: Dr. J. A. Starzyk, Professor School of EECS Ohio University Athens, OH,
Ch 10.6: Other Heat Conduction Problems
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Chapter 27.
Advanced Engineering Mathematics, 7 th Edition Peter V. O’Neil © 2012 Cengage Learning Engineering. All Rights Reserved. CHAPTER 4 Series Solutions.
Joint Moments and Joint Characteristic Functions.
Boundary-Value Problems in Rectangular Coordinates
ECE 576 – Power System Dynamics and Stability Prof. Tom Overbye Dept. of Electrical and Computer Engineering University of Illinois at Urbana-Champaign.
ERT 210/4 Process Control & Dynamics DYNAMIC BEHAVIOR OF PROCESSES :
1 Spring 2003 Prof. Tim Warburton MA557/MA578/CS557 Lecture 32.
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
Lecture 11 Alessandra Nardi
EEE 431 Computational Methods in Electrodynamics
Lecture 4: Numerical Stability
Laplace Transforms Chapter 3 Standard notation in dynamics and control
Finite Difference Methods
Chapter 30.
CHE 391 T. F. Edgar Spring 2012.
CSE 245: Computer Aided Circuit Simulation and Verification
Finite Volume Method for Unsteady Flows
Chapter 27.
Modern Control Systems (MCS)
Numerical Analysis Lecture 16.
topic4: Implicit method, Stability, ADI method
Signals and Systems Lecture 3
topic4: Implicit method, Stability, ADI method
Eigenvalues and Eigenvectors
Presentation transcript:

16.920J/SMA 5212 Numerical Methods for PDEs Lecture 5 Finite Differences: Parabolic Problems B. C. Khoo Thanks to Franklin Tan SMA-HPC ©2002 NUS

SMA-HPC ©2002 NUS 2 Outline Governing Equation Stability Analysis 3 Examples Relationship between σand λh Implicit Time-Marching Scheme Summary

Governing Equation Consider the Parabolic PDE in 1-D subject to If ≡ viscosity → Diffusion Equation If ≡ thermal conductivity → Heat Conduction Equation at, SMA-HPC ©2002 NUS 3

SMA-HPC ©2002 NUS 4 Stability Analysis Discretization Keeping time continuous, we carry out a spatial discretization of the RHS of There is a total of N+1 grid points such that

SMA-HPC ©2002 NUS 5 Stability Analysis Discretization Use the Central Difference Scheme for which is second-order accurate. Schemes of other orders of accuracy may be constructed.

SMA-HPC ©2002 NUS 6 Stability Analysis Discretization We obtain at Note that we need not evaluate are given as boundary conditions. at and sinceand

SMA-HPC ©2002 NUS 7 Stability Analysis Matrix Formulation Assembling the system of equations, we obtain

SMA-HPC ©2002 NUS 8 Stability Analysis PDE to Coupled ODEs Or in compact form We have reduced the 1-D PDE to a set of Coupled ODEs! where

SMA-HPC ©2002 NUS 9 Stability Analysis Eigenvalue and Eigenvector of Matrix A If A is a nonsingular matrix, as in this case, it is then possible to find a set of eigenvalues from. For each eigenvalue, we can evaluate the eigenvector consisting of a set of mesh point values, i.e.

SMA-HPC ©2002 NUS 10 Stability Analysis Eigenvalue and Eigenvector of Matrix A The (N-1) × (N- 1) matrix E formed by the (N-1) columns V j diagonalizes the matrix A by where 0 0

SMA-HPC ©2002 NUS 11 Stability Analysis Coupled ODEs to Uncoupled ODEs Starting from Premultiplication by yields

SMA-HPC ©2002 NUS 12 Stability Analysis Coupled ODEs to Uncoupled ODEs Continuing from Let and, we have which is a set of Uncoupled ODEs!

SMA-HPC ©2002 NUS 13 Stability Analysis Coupled ODEs to Uncoupled ODEs Expanding yields Since the equations are independent of one another, they can be solved separately. The idea then is to solve for and determine

SMA-HPC ©2002 NUS 14 Stability Analysis Coupled ODEs to Uncoupled ODEs Considering the case of independent of time, for the general equation, is the solution for Evaluating, Complementary (transient) solution Particular (steady-state) solution where

SMA-HPC ©2002 NUS 15 Stability Analysis Stability Criterion We can think of the solution to the semi-discretized problem as a superposition of eigenmodes of the matrix operator A. Each mode contributes a (transient) time behaviour of the form to the time-dependent part of the solution. Since the transient solution must decay with time, This is the criterion for stability of the space discretization (of a parabolic PDE) keeping time continuous. for all

SMA-HPC ©2002 NUS 16 Stability Analysis Use of Modal (Scalar) Equation It may be noted that since the solution is expressed as a contribution from all the modes of the initial solution, which have propagated or (and) diffused with the eigenvalue, and a contribution from the source term, all the properties of the time integration (and their stability properties) can be analysed separately for each mode with the scalar equation

SMA-HPC ©2002 NUS 17 Stability Analysis Use of Modal (Scalar) Equation The spatial operator A is replaced by an eigenvalue λ, and the above modal equation will serve as the basic equation for analysis of the stability of a time-integration scheme (yet to be introduced) as a function of the eigenvalues λof the space-discretization operators. This analysis provides a general technique for the determination of time integration methods which lead to stable algorithms for a given space discretization.

SMA-HPC ©2002 NUS 18 Example 1 Continuous Time Operator Consider a set of coupled ODEs (2 equations only):

SMA-HPC ©2002 NUS 19 Example 1 Continuous Time Operator Proceeding as before, or otherwise (solving the ODEs directly), we can obtain the solution Where and are eigenvalues of A and and are eigenvectors pertaining to and respectively. As the transient solution must decay with time, it is imperative that

SMA-HPC ©2002 NUS 20 Example 1 Discrete Time Operator Suppose we have somehow discretized the time operator on the LHS to obtain where the superscript n stands for the n th time level, then Since A is independent of time, Where and

SMA-HPC ©2002 NUS 21 Example 1 Discrete Time Operator As where Where are constants.

SMA-HPC ©2002 NUS 22 Example 1 Comparison Comparing the solution of the semi-discretized problem where time is kept continuous to the solution where time is discretized The difference equation where time is continuous has exponential solution. The difference equation where time is discretized has power solution.

SMA-HPC ©2002 NUS 23 Example 1 Comparison In equivalence, the transient solution of the difference equation must decay with time, i.e. for this particular form of time discretization.

SMA-HPC ©2002 NUS 24 Example 2 Consider a typical modal equation of the form where is the eigenvalue of the associated matrix A. (For simplicity, we shall henceforth drop the subscript j). We shall apply the “leapfrog” time discretization scheme given as Substituting into the modal equation yields where Leapfrog Time Discretization

SMA-HPC ©2002 NUS 25 Example 2 Leapfrog Time Discretization Time Shift Operator Solution of u consists of the complementary solution c n, and the particular solution p n, i.e. There are several ways of solving for the complementary and particular solutions. One way is through use of the shift operator S and characteristic polynomial. The time shift operator S operates on c n such that

SMA-HPC ©2002 NUS 26 Example 2 Leapfrog Time Discretization Time Shift Operator The complementary solution c n satisfies the homogenous equation characteristic polynomial

SMA-HPC ©2002 NUS 27 Example 2 Leapfrog Time Discretization Time Shift Operator The solution to the characteristic polynomial is The complementary solution to the modal equation would then be The particular solution to the modal equation is Combining the two components of the solution together, σ 1 and σ 2 are the two roots

SMA-HPC ©2002 NUS 28 Example 2 Leapfrog Time Discretization Stability Criterion For the solution to be stable, the transient (complementary) solution must not be allowed to grow indefinitely with time, thus implying that is the stability criterion for the leapfrog time discretization scheme used above.

SMA-HPC ©2002 NUS 29 Example 2 Leapfrog Time Discretization Stability Diagram The stability diagram for the leapfrog (or any general) time discretization scheme in the σ-plane is Region of Stability Im(σ) Re(σ)

SMA-HPC ©2002 NUS 30 Example 2 Leapfrog Time Discretization In particular, by applying to the 1-D Parabolic PDE the central difference scheme for spatial discretization, we obtain which is the tridiagonal matrix.

SMA-HPC ©2002 NUS 31 Example 2 Leapfrog Time Discretization According to analysis of a general triadiagonal matrix B(a,b,c), the eigenvalues of the B are The most “dangerous” mode is that associated with the eigenvalue of largest magnitude which can be plotted in the absolute stability diagram.

SMA-HPC ©2002 NUS 32 Example 2 Leapfrog Time Discretization Absolute Stability Diagram for σ As applied to the 1-D Parabolic PDE, the absolute stability diagram for σis σ 1 with h increasing Region of stability σ 2 at h = Δt = 0 Unit circle σ 1 at h = Δt = 0 Re(σ) Im(σ) Region of instability σ 2 with h increasing

SMA-HPC ©2002 NUS 33 Stability Analysis Some Important Characteristics Deduced A few features worth considering: 1.Stability analysis of time discretization scheme can be carried out for all the different modes. 2. If the stability criterion for the time discretization scheme is valid for all modes, then the overall solution is stable (since it is a linear combination of all the modes). 3. When there is more than one root σ, then one of them is the principal root which represents an approximation to the physical behaviour. The principal root is recognized by the fact that it tends towards one as. (The other roots are spurious, which affect the stability but not the accuracy of the scheme.)

SMA-HPC ©2002 NUS 34 Stability Analysis Some Important Characteristics Deduced 4. By comparing the power series solution of the principal root to, one can determine the order of accuracy of the time discretization scheme. In this example of leapfrog time discretization, and compared to is identical up to the second order of. Hence, the above scheme is said to be second-order accurate.

SMA-HPC ©2002 NUS 35 Example 3 Euler-Forward Time Discretization Stability Analysis Analyze the stability of the explicit Euler-forward time discretization as applied to the modal equation into the modal equation, we obtain Substituting where

SMA-HPC ©2002 NUS 36 Example 3 Euler-Forward Time Discretization Stability Analysis Making use of the shift operator S The Euler-forward time discretization scheme is stable if characteristic polynomial Therefore and or bounded bys.t. in the -plane.

SMA-HPC ©2002 NUS 37 Example 3 Euler-Forward Time Discretization Stability Diagram The stability diagram for the Euler-forward time discretization in the -plane is Region of Stability Unit Circle Im( ) Re( )

SMA-HPC ©2002 NUS 38 Example 3 Euler-Forward Time Discretization Absolute Stability Diagram As applied to the 1-D Parabolic PDE, Im(σ) Re(σ) σleaves the unit circle at λh = −2 The stability limit for largest σwith h increasing

SMA-HPC ©2002 NUS 39 σ = σ(λh) Relationship betweenσandλh Thus far, we have obtained the stability criterion of the time discretization scheme using a typical modal equation. We can generalize the relationship between σand λh as follows: Starting from the set of coupled ODEs Apply a specific time discretization scheme like the “leapfrog” time discretization as in Example 2

SMA-HPC ©2002 NUS 40 σ = σ(λh) Relationship betweenσandλh The above set of ODEs becomes Introducing the time shift operator S Premultiplying E -1 on the LHS and RHS and introducing I=EE -1 operating on

SMA-HPC ©2002 NUS 41 σ = σ(λh) Relationship betweenσandλh Putting we obtain which is a set of uncoupled equations. Hence, for each j, j = 1,2,….,N-1,

SMA-HPC ©2002 NUS 42 σ = σ(λh) Relationship betweenσandλh Note that the analysis performed above is identical to the analysis carried out using the modal equation All the analysis carried out earlier for a single modal equation is applicable to the matrix after the appropriate manipulation to obtain an uncoupled set of ODEs. Each equation can be solved independently for and the 's can then be coupled through.

SMA-HPC ©2002 NUS 43 σ = σ(λh) Relationship betweenσandλh Hence, applying any “consistent” numerical technique to each equation in the set of coupled linear ODEs is mathematically equivalent to 1. Uncoupling the set, 2. Integrating each equation in the uncoupled set, 3. Re-coupling the results to form the final solution. These 3 steps are commonly referred to as the ISOLATION THEOREM

SMA-HPC ©2002 NUS 44 Implicit Time- Marching Scheme Thus far, we have presented examples of explicit time-marching methods and these may be used to integrate weakly stiff equations. Implicit methods are usually employed to integrate very stiff ODEs efficiently. However, use of implicit schemes requires solution of a set of simultaneous algebraic equations at each time-step (i.e. matrix inversion), whilst updating the variables at the same time. Implicit schemes applied to ODEs that are inherently stable will be unconditionally stable or A-stable.

SMA-HPC ©2002 NUS 45 Euler-Backward Implicit Time- Marching Scheme Consider the Euler-backward scheme for time discretization Applying the above to the modal equation for Parabolic PDE yields

SMA-HPC ©2002 NUS 46 Euler-Backward Implicit Time- Marching Scheme Applying the S operator, the characteristic polynomial becomes The principal root is therefore which, upon comparison with is only first-order accurate. The solution is

SMA-HPC ©2002 NUS 47 Euler-Backward Implicit Time- Marching Scheme For the Parabolic PDE, λis always real and < 0. Therefore, the transient component will always tend towards zero for large n irregardless of h (≡Δt). The time-marching scheme is always numerically stable. In this way, the implicit Euler/Euler-backward time discretization scheme will allow us to resolve different time-scaled events with the use of different time-step sizes. A small time-step size is used for the short time- scaled events, and then a large time-step size used for the longer time-scaled events. There is no constraint on h max.

SMA-HPC ©2002 NUS 48 Euler-Backward Implicit Time- Marching Scheme However, numerical solution of u requires the solution of a set of simultaneous algebraic equations or matrix inversion, which is computationally much more intensive/expensive compared to the multiplication/ addition operations of explicit schemes.

SMA-HPC ©2002 NUS 49 Summary Stability Analysis of Parabolic PDE  ■ Uncoupling the set.  ■ Integrating each equation in the uncoupled set → modal equation.  ■ Re-coupling the results to form final solution. Use of modal equation to analyze the stability |σ(λh)| < 1. Explicit time discretization versus Implicit time discretization.