Programming assignment #2 Solving a parabolic PDE using finite differences Numerical Methods for PDEs Spring 2007 Jim E. Jones.

Slides:



Advertisements
Similar presentations
Finite Difference Discretization of Elliptic Equations: 1D Problem Lectures 2 and 3.
Advertisements

Partial Differential Equations
Chapter 9 Approximating Eigenvalues
Numerical Methods for Partial Differential Equations CAAM 452 Spring 2005 Lecture 9 Instructor: Tim Warburton.
Chapter 8 Elliptic Equation.
Asymptotic error expansion Example 1: Numerical differentiation –Truncation error via Taylor expansion.
Matrices & Systems of Linear Equations
1cs542g-term High Dimensional Data  So far we’ve considered scalar data values f i (or interpolated/approximated each component of vector values.
Eigenvalues and eigenvectors
5. Topic Method of Powers Stable Populations Linear Recurrences.
MECH300H Introduction to Finite Element Methods Lecture 2 Review.
Ch 7.3: Systems of Linear Equations, Linear Independence, Eigenvalues
Lecture 34 - Ordinary Differential Equations - BVP CVEN 302 November 28, 2001.
MECH300H Introduction to Finite Element Methods Lecture 10 Time-Dependent Problems.
Parabolic PDEs Generally involve change of quantity in space and time Equivalent to our previous example - heat conduction.
Tutorial 10 Iterative Methods and Matrix Norms. 2 In an iterative process, the k+1 step is defined via: Iterative processes Eigenvector decomposition.
Ordinary Differential Equations (ODEs) 1Daniel Baur / Numerical Methods for Chemical Engineers / Implicit ODE Solvers Daniel Baur ETH Zurich, Institut.
6 6.3 © 2012 Pearson Education, Inc. Orthogonality and Least Squares ORTHOGONAL PROJECTIONS.
5 5.1 © 2012 Pearson Education, Inc. Eigenvalues and Eigenvectors EIGENVECTORS AND EIGENVALUES.
Dirac Notation and Spectral decomposition
Ordinary Differential Equations (ODEs)
MATH 685/ CSI 700/ OR 682 Lecture Notes Lecture 10. Ordinary differential equations. Initial value problems.
Dominant Eigenvalues & The Power Method
Numerical Methods for Partial Differential Equations CAAM 452 Spring 2005 Lecture 6 Various Finite Difference Discretizations for the Advection Equations.
Scientific Computing Matrix Norms, Convergence, and Matrix Condition Numbers.
Boyce/DiPrima 9th ed, Ch 7.3: Systems of Linear Equations, Linear Independence, Eigenvalues Elementary Differential Equations and Boundary Value Problems,
CIS 540 Principles of Embedded Computation Spring Instructor: Rajeev Alur
Numerical Computations in Linear Algebra. Mathematically posed problems that are to be solved, or whose solution is to be confirmed on a digital computer.
Introduction to Numerical Methods for ODEs and PDEs Methods of Approximation Lecture 3: finite differences Lecture 4: finite elements.
1 Iterative Solution Methods Starts with an initial approximation for the solution vector (x 0 ) At each iteration updates the x vector by using the sytem.
ME451 Kinematics and Dynamics of Machine Systems Numerical Solution of DAE IVP Newmark Method November 1, 2013 Radu Serban University of Wisconsin-Madison.
Linear algebra: matrix Eigen-value Problems
Lecture 3.
1 EEE 431 Computational Methods in Electrodynamics Lecture 4 By Dr. Rasime Uyguroglu
Scientific Computing Partial Differential Equations Implicit Solution of Heat Equation.
Numerical Methods for Partial Differential Equations CAAM 452 Spring 2005 Lecture 5 Summary of convergence checks for LMM and one-step time stepping Instructor:
Computing Eigen Information for Small Matrices The eigen equation can be rearranged as follows: Ax = x  Ax = I n x  Ax - I n x = 0  (A - I n )x = 0.
Orthogonalization via Deflation By Achiya Dax Hydrological Service Jerusalem, Israel
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.
MECH593 Introduction to Finite Element Methods Eigenvalue Problems and Time-dependent Problems.
Engineering Analysis – Computational Fluid Dynamics –
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.
Large Timestep Issues Lecture 12 Alessandra Nardi Thanks to Prof. Sangiovanni, Prof. Newton, Prof. White, Deepak Ramaswamy, Michal Rewienski, and Karen.
Numerical Analysis – Eigenvalue and Eigenvector Hanyang University Jong-Il Park.
Meeting 18 Matrix Operations. Matrix If A is an m x n matrix - that is, a matrix with m rows and n columns – then the scalar entry in the i th row and.
1 Spring 2003 Prof. Tim Warburton MA557/MA578/CS557 Lecture 24.
L 7: Linear Systems and Metabolic Networks. Linear Equations Form System.
Final Project Topics Numerical Methods for PDEs Spring 2007 Jim E. Jones.
What is Matrix Multiplication? Matrix multiplication is the process of multiplying two matrices together to get another matrix. It differs from scalar.
Krylov-Subspace Methods - I Lecture 6 Alessandra Nardi Thanks to Prof. Jacob White, Deepak Ramaswamy, Michal Rewienski, and Karen Veroy.
Department of Mathematics Numerical Solutions to Partial Differential Equations Ch 12. Applied mathematics. Korea University.
1 Spring 2003 Prof. Tim Warburton MA557/MA578/CS557 Lecture 25.
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 1.3 © 2016 Pearson Education, Ltd. Linear Equations in Linear Algebra VECTOR EQUATIONS.
ALGEBRAIC EIGEN VALUE PROBLEMS
CIS 540 Principles of Embedded Computation Spring Instructor: Rajeev Alur
EEE 431 Computational Methods in Electrodynamics
Programming assignment #1. Solutions and Discussion
Matrix Operations SpringSemester 2017.
Finite Volume Method for Unsteady Flows
2. Matrix Algebra 2.1 Matrix Operations.
Scientific Computing Partial Differential Equations Implicit Solution of Heat Equation.
Objectives Multiply two matrices.
Maths for Signals and Systems Linear Algebra in Engineering Lectures 13 – 14, Tuesday 8th November 2016 DR TANIA STATHAKI READER (ASSOCIATE PROFFESOR)
Matrix Operations SpringSemester 2017.
Programming assignment #2 Results. Numerical Methods for PDEs
Programming assignment #1 Solving an elliptic PDE using finite differences Numerical Methods for PDEs Spring 2007 Jim E. Jones.
Presentation transcript:

Programming assignment #2 Solving a parabolic PDE using finite differences Numerical Methods for PDEs Spring 2007 Jim E. Jones

The Problem Reference: Burden and Faires, Numerical Analysis, Ch12

The Problem Reference: Burden and Faires, Numerical Analysis, Ch12 PDE Boundary conditions Initial conditions

Last lecture we will looked at three methods Forward Difference method (explicit) Backward difference method (implicit) Crank-Nicolson method (implicit)

Time stepping formula Forward Difference method i j h k Let

Time stepping formula Backward Difference Method i j h k Let

Time stepping formula Crank-Nicolson Method i j h k

Time stepping formula All Methods Time stepping corresponds to matrix multiplication Approximations are generated by repeated application of T

If the initial conditions are perturbed, the perturbed approximation is And their difference is Stability

Following the material from ODEs we will say that a numerical method is stable if perturbations in the initial conditions give rise to perturbations in the computed solution that do not grow without bound. We want d k to be bounded for all k. Stability

Following the material from ODEs we will say that a numerical method is stable if perturbations in the initial conditions give rise to perturbations in the computed solution that do not grow without bound. We want d k to be bounded for all k. Stability What properties of the matrix T do we need to guarantee d k doesn’t grow without bound?

Following the material from ODEs we will say that a numerical method is stable if perturbations in the initial conditions give rise to perturbations in the computed solution that do not grow without bound. We want d k to be bounded for all k. Stability We need the right analogue of absolute value which is what we had for the scalar case in the ODE slides.

A vector norm is a function ||x|| from R n to R with the following properties: Review: Vector Norms

Review: Common Vector Norms

A matrix norm is a function ||A|| from the set of n x n matrices to R with the following properties: Review: Matrix Norms

Any vector norm ||x|| defines a corresponding matrix norm via: And for this natural, matrix norm and its corresponding vector norm we have the following inequality Review: Natural Matrix Norms

The infinity norm of a matrix is the maximum row sum of the absolute values of its entries. The one norm of a matrix is the maximum column sum of the absolute values of its entries. Review: Common Natural Matrix Norms

The spectral radius  (A) of a matrix is the largest eigenvalue in absolute value The two norm of a matrix is related to the spectral radius and if A is symmetric Review: Spectral Radius and Two Norm

Following the material from ODEs we will say that a numerical method is stable if perturbations in the initial conditions give rise to perturbations in the computed solution that do not grow without bound. Stability We need conditions to guarantee

Stability of Forward Differences using infinity norm.

If r > ½ Unstable Else Stable

Stability of Forward Differences using two norm.

Eigenvalues and Eigenvectors on nxn matrix T

Stability requires spectral radius bounded by one If r > ½ Unstable Else Stable Same result as infinity norm

Assignment #2 Forward Difference method (explicit) Backward difference method (implicit) Crank-Nicolson method (implicit) Assignment #2 will is due Wednesday Feb 21. You will code up these three methods for a particular problem and look at accuracy and stability issues.

PDE solution is: The Burden and Faires text contains results for this example Assignment #2

Your job is to experiment with different values of h and k. Do your best to investigate numerically some of the issues we’ve talked about in the lecture. Stability: Run at least two problems with forward differences. One that satisfies the stability condition and one that does not. Comment on your observations. We’ve not seen it yet, but the other two methods are unconditionally stable. Convergence: Backward and Forward differencing has truncation error O(k+h 2 ). Crank-Nicolson is O(k 2 +h 2 ). Calculate the errors you see and comment on how they agree, or not, with these truncation error results. Comparison: Comment on the relative strengths and weaknesses of the three methods. Assignment #2