Introduction to Numerical Methods I

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

Finite Difference Discretization of Hyperbolic Equations: Linear Problems Lectures 8, 9 and 10.
An Introduction to Numerical Methods
Finite differences Finite differences.
PARMA UNIVERSITY SIMULATIONS OF THE ISOLATED BUILDING TEST CASE F. AURELI, A. MARANZONI & P. MIGNOSA DICATeA, Parma University Parco Area delle Scienze.
Chapter 8 Elliptic Equation.
Remark: foils with „black background“ could be skipped, they are aimed to the more advanced courses Rudolf Žitný, Ústav procesní a zpracovatelské techniky.
Numerical Integration of Partial Differential Equations (PDEs)
Total Recall Math, Part 2 Ordinary diff. equations First order ODE, one boundary/initial condition: Second order ODE.
Level Set Formulation for Curve Evolution Ron Kimmel Computer Science Department Technion-Israel Institute of Technology Geometric.
Atms 4320 Lab 2 Anthony R. Lupo. Lab 2 -Methodologies for evaluating the total derviatives in the fundamental equations of hydrodynamics  Recall that.
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.
Consider the initial boundary value problem Weak Formulation Matrix Form Semidiscrete problem.
Introduction to Numerical Methods I
Numerical Methods for Partial Differential Equations
Finite Difference Methods to Solve the Wave Equation To develop the governing equation, Sum the Forces The Wave Equation Equations of Motion.
Numerical Schemes for Advection Reaction Equation Ramaz Botchorishvili Faculty of Exact and Natural Sciences Tbilisi State University GGSWBS,Tbilisi, July.
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 Lecture 9 Instructor: Tim Warburton.
Numerical Methods for Partial Differential Equations CAAM 452 Spring 2005 Lecture 6 Various Finite Difference Discretizations for the Advection Equations.
Numerical Methods for Partial Differential Equations
Numerical Methods for Partial Differential Equations CAAM 452 Spring 2005 Lecture 8 Instructor: Tim Warburton.
P. Ackerer, IMFS, Barcelona About Discontinuous Galerkin Finite Elements P. Ackerer, A. Younès Institut de Mécanique des Fluides et des Solides,
Tutorial 5: Numerical methods - buildings Q1. Identify three principal differences between a response function method and a numerical method when both.
Taylor-Galerkin Schemes
Hyperbolic PDEs Numerical Methods for PDEs Spring 2007 Jim E. Jones.
The Finite Volume Method
Variants of the 1D Wave Equation Jason Batchelder 6/28/07.
1 Spring 2003 Prof. Tim Warburton MA557/MA578/CS557 Lecture 5a.
Lecture 3.
1 EEE 431 Computational Methods in Electrodynamics Lecture 4 By Dr. Rasime Uyguroglu
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:
1 Chien-Hong Cho ( 卓建宏 ) (National Chung Cheng University)( 中正大學 ) 2010/11/11 in NCKU On the finite difference approximation for hyperbolic blow-up problems.
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.
Solving an elliptic PDE using finite differences Numerical Methods for PDEs Spring 2007 Jim E. Jones.
Engineering Analysis – Computational Fluid Dynamics –
Numerical Methods for Partial Differential Equations CAAM 452 Spring 2005 Lecture 12 Instructor: Tim Warburton.
Numerical methods 1 An Introduction to Numerical Methods For Weather Prediction by Mariano Hortal office 122.
AMS 691 Special Topics in Applied Mathematics Lecture 8
Finite Difference Schemes Dr. DAI Min. Type of finite difference scheme Explicit scheme – Advantage There is no need to solve a system of algebraic equations.
The story so far… ATM 562 Fovell Fall, Convergence We will deploy finite difference (FD) approximations to our model partial differential equations.
Lecture 2. Finite Difference (FD) Methods Conservation Law: 1D Linear Differential Equation:
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 Spring 2003 Prof. Tim Warburton MA557/MA578/CS557 Lecture 28.
Lecture I & II: Foundations of Numerical HydroDynamics
The Finite-Difference Method Taylor Series Expansion Suppose we have a continuous function f(x), its value in the vicinity of can be approximately expressed.
PDE Methods for Image Restoration
EEE 431 Computational Methods in Electrodynamics
Lecture 4: Numerical Stability
Convection-Dominated Problems
Chapter 30.
Modeling of Traffic Flow Problems
ივანე ჯავახიშვილის სახელობის
Applications of Lattice Methods
21th Lecture - Advection - Diffusion
Finite Volume Method for Unsteady Flows
Hyperbolic Equations IVP: u(x,0) = f(x), - < x <  IBVP:
Convergence in Numerical Science
Brief introduction to Partial Differential Equations (PDEs)
topic4: Implicit method, Stability, ADI method
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
6th Lecture : Numerical Methods
Numerical Modeling Ramaz Botchorishvili
Time Response, Stability, and
Presentation transcript:

Introduction to Numerical Methods I

Finite difference approximation to derivatives

Consider a smooth function g(x). Taylor’s theorem reads: In particular: Short course on: Numerical methods for hyperbolic equations and applications-Trento, Italia-June 7th to 18th, 2004

Finite difference approximation of PDEs: FTCS Discretise the x-t domain into a finite number of M+1 points, I=0,…,M

Now approximate partial derivatives. Use finite differences: Then the PDE is replaced by a finite difference approximate operator:

Introduce the dimensionless number: The Courant-Friedrichs-Lewy number or CFL number, or Courant number Note that c is a dimensionless quantity, it is the ratio of two velocities: Finally, the FTCS scheme reads: Stencil This formula allows us to calculate explicitly the evolution in time of discrete approximate values of the solution at every point, except for i=0 and i=M.

Convergence Our ultimate goal is to construct schemes that converge, that is schemes that approach the true solution of the PDE when the mesh size tends to zero. Lax’s Equivalence theorem says that: the only schemes that are CONVERGENT are those that are CONSISTENT and STABLE We must therefore work on CONSISTENCY AND STABILITY.

Local truncation error Consider a particular scheme: FTCS. The numerical analogue of the PDE is the approximate operator: We define the local truncation error:

The FTCS is a first-order scheme Assuming the solution is sufficiently smooth we Taylor expand and obtain: Noting that: The FTCS is a first-order scheme In general, if the local truncation error of a scheme is of the form: Then the scheme is said to be k-th order accurate in time and l-th order accurate in space.

Consistency For example, for the FTCS scheme we have A numerical scheme is said to be consistent with the PDE being discretized if the local truncation error tends to zero as the mesh size tends to zero. For example, for the FTCS scheme we have Therefore FTCS is consistent wit the PDE

Stability of a numerical method. If a method is consistent with the PDE, then all we need to bother is stability. One view of stability is that of unbounded growth of errors as the numerical scheme evolves the solution in time. Another view of stability is that of controlling spurious oscillations Stability in the sense on unbounded growth can be analysed by a variety of methods A popular method is the von Neumann method One performs a Fourier decomposition of the error. It is sufficient to consider a single component.

Stability analysis of the FTCS Thus FTCS is unstable under all circumstances: UNCONDITIONALLY UNSTABLE (useless).

Godunov’s first-order upwind scheme Approximate derivatives in by then The scheme reads Illustrate the stencil

Local truncation error: The finite difference operator is: Substitution of the exact solution into the approximate opetaror gives: Assuming sufficient smoothness and Taylor expanding: The scheme is first-order accurate in space and time

and the stability condition becomes Stability analysis and the stability condition becomes The CFL condition of Courant condition Given wave speed and mesh spacing the time step is determined from the stability condition

The stencil (upwind) t n+1 o n o o x True domain of dependency Numerical domain of dependency The exact solution is the value on the characteristic where is the foot of the characteristic at time

For appropriate choices of the point lies between and Assume a linear interpolation between and Evaluation of gives which is the Godunov scheme

The “downwind” scheme Approximate derivatives in by then The scheme reads Exercise: derive the local truncation error. Is the scheme consistent ? Exercise: show that this scheme is unconditionally unstable.

General Form of the First-Order Upwind Scheme For the upwind scheme is For both and define: The scheme reads: Exercise: show that the upwind scheme for negative speed is conditionally stable

Fully discrete and semi-discrete schemes If the time derivative is left in its continuous form Semi-discrete The method of lines

Explicit scheme and implicit schemes Exercise: construct the fully discrete implicit version of FTCS

Monotone Schemes A monotone scheme satisfies: Monotone schemes for the linear advection equation with constant speed of propagation are those whose coefficients are non-negative. Example: The Godunov upwind scheme.

More Schemes Conditionally stable Monotone Modified equation has The Lax-Friedrichs scheme (LF) Conditionally stable Monotone Modified equation has LF may also be seen as the FTCS scheme (unstable) with replaced by Note the shape of the stencil.

The Godunov Centred Scheme Stencil Conditionally stable Monotone for Oscillatory for This is an interesting example of a first-order scheme that is NOT MONOTONE.

The Lax-Wendroff Scheme (LW) Stencil Conditionally stable Non-monotone (verify by inspection)

Conditionally stable: The FORCE scheme stencil Conditionally stable: Monotone Modified equation: © Toro 2004