1 Spring 2003 Prof. Tim Warburton MA557/MA578/CS557 Lecture 5a.

Slides:



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

Finite Difference Discretization of Hyperbolic Equations: Linear Problems Lectures 8, 9 and 10.
Numerical Methods for Partial Differential Equations CAAM 452 Spring 2005 Lecture 9 Instructor: Tim Warburton.
Mathematics1 Mathematics 1 Applied Informatics Štefan BEREŽNÝ.
CSE Differentiation Roger Crawfis. May 19, 2015OSU/CIS 5412 Numerical Differentiation The mathematical definition: Can also be thought of as the.
Numerical Computation
Atms 4320 Lab 2 Anthony R. Lupo. Lab 2 -Methodologies for evaluating the total derviatives in the fundamental equations of hydrodynamics  Recall that.
Lecture 3: Integration. Integration of discrete functions
Chapter 5 Integration.
Introduction to Numerical Methods I
MULTIPLE INTEGRALS Double Integrals over General Regions MULTIPLE INTEGRALS In this section, we will learn: How to use double integrals to.
Numerical Methods for Partial Differential Equations CAAM 452 Spring 2005 Lecture 11 Instructor: Tim Warburton.
Numerical Methods for Partial Differential Equations CAAM 452 Spring 2005 Instructor: Tim Warburton.
Numerical Methods for Partial Differential Equations CAAM 452 Spring 2005 Lecture 9 Instructor: Tim Warburton.
Numerical Methods for Partial Differential Equations CAAM 452 Spring 2005 Lecture 2 Instructor: Tim Warburton.
Numerical Methods for Partial Differential Equations CAAM 452 Spring 2005 Lecture 6 Various Finite Difference Discretizations for the Advection Equations.
Definition: the definite integral of f from a to b is provided that this limit exists. If it does exist, we say that is f integrable on [a,b] Sec 5.2:
Numerical Methods for Partial Differential Equations CAAM 452 Spring 2005 Lecture 8 Instructor: Tim Warburton.
Ch 8.1 Numerical Methods: The Euler or Tangent Line Method
Integrals 5.
Chaos Identification For the driven, damped pendulum, we found chaos for some values of the parameters (the driving torque F) & not for others. Similarly,
DOUBLE INTEGRALS OVER GENERAL REGIONS
MA/CS471 Lecture 8 Fall 2003 Prof. Tim Warburton
Numerical Methods for Partial Differential Equations CAAM 452 Spring 2005 Lecture 3 AB2,AB3, Stability, Accuracy Instructor: Tim Warburton.
1 Spring 2003 Prof. Tim Warburton MA557/MA578/CS557 Lecture 21.
1 EEE 431 Computational Methods in Electrodynamics Lecture 4 By Dr. Rasime Uyguroglu
1 Spring 2003 Prof. Tim Warburton MA557/MA578/CS557 Lecture 31.
Numerical Methods for Partial Differential Equations CAAM 452 Spring 2005 Lecture 5 Summary of convergence checks for LMM and one-step time stepping Instructor:
1 Spring 2003 Prof. Tim Warburton MA557/MA578/CS557 Lecture 8.
1 MA/CS471 Lecture 7 Fall 2003 Prof. Tim Warburton
1 Discretization Methods Dr. Farzad Ismail School of Aerospace and Mechanical Engineering Universiti Sains Malaysia Nibong Tebal Pulau Pinang Week.
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.
Copyright © 2005 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 5 Integration.
Numerical Methods.
Engineering Analysis – Computational Fluid Dynamics –
In the previous section, we studied positive series, but we still lack the tools to analyze series with both positive and negative terms. One of the keys.
Barnett/Ziegler/Byleen Business Calculus 11e1 Chapter 13 Review Important Terms, Symbols, Concepts 13.1 Antiderivatives and Indefinite Integrals A function.
1 Spring 2003 Prof. Tim Warburton MA557/MA578/CS557 Lecture 24.
1 Spring 2003 Prof. Tim Warburton MA557/MA578/CS557 Lecture 23.
Numerical Methods for Partial Differential Equations CAAM 452 Spring 2005 Lecture 12 Instructor: Tim Warburton.
In Chapters 6 and 8, we will see how to use the integral to solve problems concerning:  Volumes  Lengths of curves  Population predictions  Cardiac.
INTEGRALS We saw in Section 5.1 that a limit of the form arises when we compute an area. We also saw that it arises when we try to find the distance traveled.
Lecture 40 Numerical Analysis. Chapter 7 Ordinary Differential Equations.
1 Spring 2003 Prof. Tim Warburton MA557/MA578/CS557 Lecture 17.
Ordinary Differential Equations
1 Spring 2003 Prof. Tim Warburton MA557/MA578/CS557 Lecture 19.
Lecture 39 Numerical Analysis. Chapter 7 Ordinary Differential Equations.
The story so far… ATM 562 Fovell Fall, Convergence We will deploy finite difference (FD) approximations to our model partial differential equations.
1 Spring 2003 Prof. Tim Warburton MA557/MA578/CS557 Lecture 25.
1 Spring 2003 Prof. Tim Warburton MA557/MA578/CS557 Lecture 32.
1 Spring 2003 Prof. Tim Warburton MA557/MA578/CS557 Lecture 28.
TH EDITION LIAL HORNSBY SCHNEIDER COLLEGE ALGEBRA.
PARAMETRIC EQUATIONS Sketch Translate to Translate from Finds rates of change i.e. Find slopes of tangent lines Find equations of tangent lines Horizontal.
Area/Sigma Notation Objective: To define area for plane regions with curvilinear boundaries. To use Sigma Notation to find areas.
Numerical Methods for Partial Differential Equations
EEE 431 Computational Methods in Electrodynamics
Introduction to Numerical Methods I
Taylor series in numerical computations (review, cont.)
Question Find the derivative of Sol..
CSE 245: Computer Aided Circuit Simulation and Verification
Roots of equations Class VII.
5.3 Higher-Order Taylor Methods
topic4: Implicit method, Stability, ADI method
Numerical Analysis Lecture 2.
MATH 175: Numerical Analysis II
Ch5 Initial-Value Problems for ODE
topic4: Implicit method, Stability, ADI method
Chapter 5 Integration Section R Review.
Presentation transcript:

1 Spring 2003 Prof. Tim Warburton MA557/MA578/CS557 Lecture 5a

2 Homework 2 correction Q4) Implement the numerical approximation of: By:

3 Homework 2 cont Q4 cont) For N=10,40,160,320,640,1280 run to t=10, with: dx = (8/(N-1)) dt = dx/6 Use On the same graph, plot t on the horizontal axis and error on the vertical axis. The graph should consist of a sequence of 6 curves – one for each choice of dx. Comment on the curves. NOTE: For the purposes of this test we define error as:

4 Lecture 5 We will define stability for a numerical scheme and investigate stability for the upwind scheme. We will compare this scheme with a finite difference scheme. We will consider alternative ways to approximate the flux functions.

5 Basic Upwind Finite Volume Method Approximate time derivative and look for solution Note we must supply a value for the left most average at each time step: Recall Approximate fluxes with upwind flux

6 Convergence We have constructed a physically reasonable numerical scheme to approximate the advection equation. However, we need to do some extra analysis to determine how good at approximating the true PDE the discrete scheme is. Let us suppose that the i’th subinterval cell average of the actual solution to the PDE at time T=n*dt is denoted by

7 Error Equation The goal is to estimate the difference of the exact solution and the numerically obtained solution at some time T=n*dt. So we are interested in the error: For the given finite volume scheme dt and dx will be related in a fixed manner (i.e. dt = Cdx for some C, independent of dx). Suppose we let and then the scheme is said to be of order s.

8 Norms and Definitions We define the discrete p-norms: We say that the scheme is convergent at time T in the norm ||.|| if: It is said to be accurate of order s if:

9 Local Truncation Error Suppose at the beginning of a time step we actually have the exact solution -- one question we can ask is how large is the error committed in the evaluation of the approximate solution at the end of the time step. i.e. choose Then We expand about x i,t n with Taylor series:

10 Estimating Truncation Error Inserting the formulas for the expanded q’s:

11 Estimating Truncation Error Removing canceling terms:

12 Estimating Truncation Error Simplifying:

13 Final Form Using the definition of q Using that:

14 Interpretation of Consistency So the truncation error is O(dx) under the assumption that dt/dx is a constant.. This essentially implies that the numerical solution diverges from the actual solution by an error of O(dx) every time step. If we assume that the solution q is smooth enough then the truncation error converges to zero with decreasing dx. This property is known as consistency.

15 Error Equation We define the error variable: We next define the numerical iterator N: Then: So the new error consists of the action of the numerical scheme on the previous error and the error commited in the approximation of the derivatives.

16 Abstract Scheme Without considering the specific construction of the scheme suppose that the numerical N operator satisfies: i.e. N is a contraction operator in some norm then…

17 Estimating Error in Terms of Initial Error and Cumulative Truncation Error

18 Error at a Time T (independent of dx,dt) If the method is consistent (and the actual solution is smooth enough) then: As dx -> 0 the initial error ->0 and consequently the numerical error at time T tends to zero with decreasing dx (and dt).

19 Specific Case: Stability and Consistency for the Upwind Finite Volume Scheme We already proved that the upwind FV scheme is consistent. We still need to prove stability of.

20 Stability in the Discrete 1-norm So here’s the interesting story. In the case of a zero boundary condition then we automatically observe that the operator is a contraction operator.

21 Boundary Condition Suppose are two numerical solutions with Then: i.e. if we are spot on with the left boundary condition the N iterator is indeed a contraction.

22 Relaxation on Stability Condition Previous contraction condition on the numerical iterator N A less stringent condition is: Where alpha is a constant independent of dt as dt->0

23 Relaxation on Stability Condition In this case the stability analysis yields:

24 Interpretation Relaxing the stability yields a possible exponential growth – but this growth is independent of T so if we reduce dt (and dx) then the error will decay to zero for fixed T.

25 Next Lecture (6) Alternative flux formulations Alternative time stepping schemes