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

Slides:



Advertisements
Similar presentations
Stable Fluids A paper by Jos Stam.
Advertisements

Finite Difference Discretization of Elliptic Equations: 1D Problem Lectures 2 and 3.
Finite Difference Discretization of Hyperbolic Equations: Linear Problems Lectures 8, 9 and 10.
Example Project and Numerical Integration Computational Neuroscience 03 Lecture 11.
Numerical Methods for Partial Differential Equations CAAM 452 Spring 2005 Lecture 9 Instructor: Tim Warburton.
Computational Modeling for Engineering MECN 6040
Chapter 8 Elliptic Equation.
1 Spring 2003 Prof. Tim Warburton MA557/MA578/CS557 Lecture 29.
Parabolic Partial Differential Equations
Ordinary Differential Equations
1cs542g-term Notes  Even if you’re not registered (not handing in assignment 1) send me an to be added to a class list.
Total Recall Math, Part 2 Ordinary diff. equations First order ODE, one boundary/initial condition: Second order ODE.
CSE245: Computer-Aided Circuit Simulation and Verification Lecture Note 5 Numerical Integration Spring 2010 Prof. Chung-Kuan Cheng 1.
AE/ME 339 Computational Fluid Dynamics (CFD) K. M. Isaac Professor of Aerospace Engineering.
1 Lecture 11: Unsteady Conduction Error Analysis.
Lecture 34 - Ordinary Differential Equations - BVP CVEN 302 November 28, 2001.
Introduction to Numerical Methods I
Ordinary Differential Equations (ODEs) 1Daniel Baur / Numerical Methods for Chemical Engineers / Implicit ODE Solvers Daniel Baur ETH Zurich, Institut.
Ordinary Differential Equations (ODEs)
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 Solution of Ordinary Differential Equation
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
Systems of Linear Equations Iterative Methods
Most physically significant large-scale atmospheric circulations have time scales on the order of Rossby waves but much larger than the time scales.
1 MA557/MA578/CS557 Numerical Partial Differential Equations Spring 2002 Prof. Tim Warburton
Lecture 22 MA471 Fall Advection Equation Recall the 2D advection equation: We will use a Runge-Kutta time integrator and spectral representation.
1 Spring 2003 Prof. Tim Warburton MA557/MA578/CS557 Lecture 5a.
Boundary Value Problems and Least Squares Minimization
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.
Scientific Computing Partial Differential Equations Implicit Solution of Heat Equation.
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 Spring 2003 Prof. Tim Warburton MA557/MA578/CS557 Lecture 8.
1 MA/CS471 Lecture 7 Fall 2003 Prof. Tim Warburton
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.
Introduction to Level Set Methods: Part II
Engineering Analysis – Computational Fluid Dynamics –
MECN 3500 Inter - Bayamon Lecture 9 Numerical Methods for Engineering MECN 3500 Professor: Dr. Omar E. Meza Castillo
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.
1 Spring 2003 Prof. Tim Warburton MA557/MA578/CS557 Lecture 24.
1 Spring 2003 Prof. Tim Warburton MA557/MA578/CS557 Lecture 23.
Lecture 21 MA471 Fall 03. Recall Jacobi Smoothing We recall that the relaxed Jacobi scheme: Smooths out the highest frequency modes fastest.
Numerical methods 1 An Introduction to Numerical Methods For Weather Prediction by Mariano Hortal office 122.
Final Project Topics Numerical Methods for PDEs Spring 2007 Jim E. Jones.
Discretization Methods Chapter 2. Training Manual May 15, 2001 Inventory # Discretization Methods Topics Equations and The Goal Brief overview.
Partial Derivatives Example: Find If solution: Partial Derivatives Example: Find If solution: gradient grad(u) = gradient.
1 Spring 2003 Prof. Tim Warburton MA557/MA578/CS557 Lecture 34.
1 Spring 2003 Prof. Tim Warburton MA557/MA578/CS557 Lecture 30.
1 Spring 2003 Prof. Tim Warburton MA557/MA578/CS557 Lecture 17.
Solving Scalar Linear Systems A Little Theory For Jacobi Iteration
1 Spring 2003 Prof. Tim Warburton MA557/MA578/CS557 Lecture 19.
1 Spring 2003 Prof. Tim Warburton MA557/MA578/CS557 Lecture 25.
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.
Programming assignment # 3 Numerical Methods for PDEs Spring 2007 Jim E. Jones.
Lecture 11 Alessandra Nardi
Numerical Methods for Partial Differential Equations
Lecture 19 MA471 Fall 2003.
Scientific Computing Partial Differential Equations Implicit Solution of Heat Equation.
Numerical Analysis Lecture14.
topic4: Implicit method, Stability, ADI method
6th Lecture : Numerical Methods
Programming assignment #1 Solving an elliptic PDE using finite differences Numerical Methods for PDEs Spring 2007 Jim E. Jones.
Presentation transcript:

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

2 Heat Equation Recall Lecture 17 where we derived the advection- diffusion equation in 1D. The same type of derivation for the diffusion process of a concentrate C yields in 2D:

3 Discretization of the Laplacian The LDG, semidiscrete, equation satisfies: Zero Dirichlet boundary conditions (concentration pinned to zero at boundary): Zero Neumann boundary conditions (insulated boundaries):

4 Heat Equation Our first approach will be an explicit time integration of the equation (using zero Neumann bc):

5 Explicit Numerical Heat Equation The trouble is that the discrete diffusion matrix has a large spectral radius: We do know that (using the integration by parts formula for the DG operator) that the operator is non-positive. We also need to fit the eigenspectrum in the appropriate stability region:

6

7 We also know that all the eigenvalues are non-positive real numbers and dt*rho(A) must fit in the stability region..

8 Comment We have shown that using an explicit time integration scheme may require very small time steps… The root cause of this is that information diffuses through the data domain very quickly.. We will investigate some schemes which solve globally coupled systems.

9 Backwards Euler Time Integration Suppose we consider the backwards Euler scheme: Iterator:

10 Backwards Euler Time Integration Suppose we consider the backwards Euler scheme: Thus the only conditions for stability are: However, accuracy depends on dt. The discretization of the time derivative has a first order truncation error:

11 Crank-Nicholson We replace the right hand side of the discrete scheme with:

12 Diagonalize If we apply a change of basis so that the inv(M)*L is diagonal then we decouple the iterator into a sequence of independent scalar iterators:

13 Quick Result We can bound the iteration multiplier: As long as both the eigenvalues and dt are non-negative then the multiplier is bounded by one and the scheme is stable. We have previously shown that L is a non-negative operator.

14 Crank-Nicholson Accuracy We can briefly compute the temporal accuracy:

15 ESDIRK4 A new implicit RK scheme with a lower triangle Butcher tableau has been proposed by Carpenter et al. The linear system to invert at each sub stage is the same. The RK scheme comes with an embedded scheme to provide s’th order and (s-1)’th order time approximations:

16 4 th Order ESDIRK4 Implicit RK Scheme initializer + 5 stages Iterator: (Ctilde are intermediate values of C, Chat6 is the embedded 3 rd order approximation of Cn+1)

17 4 th Order ESDIRK4 Implicit RK Scheme Iterator: (Ctilde are intermediate values of C, Chat5 is the embedded 3 rd order approximation of Cn+1)

18 4 th Order ESDIRK4 Implicit RK Scheme If L is a linear operator then:

19 Coefficients Gamma = 1/4 a 21 = 1/4 a 31 = 8611/62500 a 32 = -1743/31250 a 41 = / a 42 = / a 43 = / a 51 = / a 52 = / a 53 = / a 54 = / bhat 1 = / bhat 2 = 0 bhat 3 = / bhat 4 = / bhat 5 = / bhat 6 = 61727/ b 1 = 82889/ b 2 = 0 b 3 = 15625/83664 b 4 = 69875/ b 5 = -2260/8211

20 Implementation Details As they are computed we are required to store Ctilde1, Ctilde2, …, Ctilde6 until the end of the 6 th ESDIRK stage. Each stage 2,3,4,5,6 requires the solution of the same linear system, with different data on the right hand side. Chat6 may be computed without solving a linear system. The systems can be solved using an iterative (say conjugate gradient) method. i.e. the L matrix does not need to be computed and stored. We need to be able to compute (M+dt*gamma*L)*x for a given vector x. ||Ctilde6-Chat6|| will give an estimate of the difference between a 3 rd order and the 4 th order approximation in time. This can be used to estimate the error made in this time step and can suggest a change in dt.

21 Solving the System We are going to use an iterative method to solve the following sequence of symmetric matrix problems:

22 Summary of Temporal Implicit Schemes Backwards Euler is unconditionally stable for non- negative diffusion parameter D (i.e. any dt>=0) and first order in dt. Crank-Nicholson is unconditionally stable for non- negative diffusion parameter D (i.e. any dt>=0) and second order in dt. ESDIRK4 – generalizes to fourth order in dt.

23 Homework 10 Q1) Modify/use the umDIFFUSION.zip files to solve the diffusion equation with the following time integrators: a) Backwards Euler b) Crank-Nicholson c) ESDIRK4 Q2) Create a domain and determine convergence rates in h for p=1,3,5,7 for a small dt (i.e. make sure the convergence does not bottom out above 1e-10). Repeat for two of the above time integrators. Q3) Choose p=7 and h small and verify rates of convergence in dt for integration to some fixed time T. Use the one time integrator you did not use in Q2.

24 Homework 10 This homework can be completed in pairs or individually. This homework is due Monday 04/21/03 Remember – no more than 5 questions will be replied to for this homework.

25 Driver for Backwards Euler Diffusion Scheme ( umDIFFUSIONdemo.m )

26 Time Loop (umDIFFUSIONrun.m) 1-12) Set parameters 14-16) Set initial conditions 19) Set solver parameters 22-40) Time stepping loop 28) Solves linear system using conjugate gradient 32-40) Plot solution and compute integral of C

27 umDIFFUSIONop.m Set up storage for computing: (M*C +dt*gamma*D* L*C)

28 umDIFFUSIONop.m 15-25) compute qx,qy using Neumann bcs 27-40) compute div(qx,qy) using Dirichlet bcs 42-48) compute (M*C+gamma*dt*D*L*C)

29 Demo Run

30 Discussion of Final Project Now is the time to ready your final projects. Submit a one page description of the PDE you intend to discretize with DG by 04/21/03 This is a proposal and may be rejected – requiring a resubmission or assignment of a set of PDEs. Include: –List of PDEs to be discretized –List boundary conditions and initial conditions to be discretized –Relevance to your own research (if any) –List of group members (max 3, with one proposal per group) –Interesting issues (application of PML, creation of specific PML, specific physical application/model…)