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

Slides:



Advertisements
Similar presentations
AERSP 301 Finite Element Method
Advertisements

Partial Differential Equations
Numerical Methods for Partial Differential Equations CAAM 452 Spring 2005 Lecture 9 Instructor: Tim Warburton.
MANE 4240 & CIVL 4240 Introduction to Finite Elements
By S Ziaei-Rad Mechanical Engineering Department, IUT.
2. Numerical differentiation. Approximate a derivative of a given function. Approximate a derivative of a function defined by discrete data at the discrete.
1 Chapter 4 Interpolation and Approximation Lagrange Interpolation The basic interpolation problem can be posed in one of two ways: The basic interpolation.
BVP Weak Formulation Weak Formulation ( variational formulation) where Multiply equation (1) by and then integrate over the domain Green’s theorem gives.
12/21/2001Numerical methods in continuum mechanics1 Continuum Mechanics On the scale of the object to be studied the density and other fluid properties.
MANE 4240 & CIVL 4240 Introduction to Finite Elements Numerical Integration in 1D Prof. Suvranu De.
Weak Formulation ( variational formulation)
MECh300H Introduction to Finite Element Methods
7/2/ Differentiation-Discrete Functions Industrial Engineering Majors Authors: Autar Kaw, Sri Harsha Garapati.
MA/CS 375 Fall MA/CS 375 Fall 2002 Lecture 32.
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.
MANE 4240 & CIVL 4240 Introduction to Finite Elements
Numerical Methods for Partial Differential Equations CAAM 452 Spring 2005 Lecture 6 Various Finite Difference Discretizations for the Advection Equations.
Using Inverse Matrices Solving Systems. You can use the inverse of the coefficient matrix to find the solution. 3x + 2y = 7 4x - 5y = 11 Solve the system.
Finite element method 1 Finite Elements  Basic formulation  Basis functions  Stiffness matrix  Poisson‘s equation  Regular grid  Boundary conditions.
1 The Spectral Method. 2 Definition where (e m,e n )=δ m,n e n = basis of a Hilbert space (.,.): scalar product in this space In L 2 space where f * :
GENERALIZATION OF THE METHOD OF FINITE DIFFERENCES GENERALIZATION OF THE METHOD OF FINITE DIFFERENCES ARYASSOV, Gennady BARASKOVA, Tatjana GORNOSTAJEV,
MA/CS471 Lecture 8 Fall 2003 Prof. Tim Warburton
Section 2: Finite Element Analysis Theory
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.
Inverses and Systems Section Warm – up:
Finite Element Method.
Numerical Computation
1 Spring 2003 Prof. Tim Warburton MA557/MA578/CS557 Lecture 5a.
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.
MA/CS 375 Fall MA/CS 375 Fall 2002 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:
Discontinuous Galerkin Methods Li, Yang FerienAkademie 2008.
6. Introduction to Spectral method. Finite difference method – approximate a function locally using lower order interpolating polynomials. Spectral method.
1 MA/CS471 Lecture 7 Fall 2003 Prof. Tim Warburton
Scientific Computing General Least Squares. Polynomial Least Squares Polynomial Least Squares: We assume that the class of functions is the class of all.
1 Finite Elements. 2 Finite elements Formally identical to spectral technique Dependent variables expanded as linear combinations of basis local, non.
Engineering Analysis – Computational Fluid Dynamics –
MECN 3500 Inter - Bayamon Lecture 9 Numerical Methods for Engineering MECN 3500 Professor: Dr. Omar E. Meza Castillo
1 Spring 2003 Prof. Tim Warburton MA557/MA578/CS557 Lecture 24.
MECH4450 Introduction to Finite Element Methods
College Algebra Sixth Edition James Stewart Lothar Redlin Saleem Watson.
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.
CHAP 3 WEIGHTED RESIDUAL AND ENERGY METHOD FOR 1D PROBLEMS
Discretization Methods Chapter 2. Training Manual May 15, 2001 Inventory # Discretization Methods Topics Equations and The Goal Brief overview.
Advanced Engineering Mathematics, 7 th Edition Peter V. O’Neil © 2012 Cengage Learning Engineering. All Rights Reserved. CHAPTER 4 Series Solutions.
1 Spring 2003 Prof. Tim Warburton MA557/MA578/CS557 Lecture 17.
1 Spring 2003 Prof. Tim Warburton MA557/MA578/CS557 Lecture 13.
Approximating Derivatives Using Taylor Series and Vandermonde Matrices.
1 Spring 2003 Prof. Tim Warburton MA557/MA578/CS557 Lecture 19.
1 Chapter 4 Interpolation and Approximation Lagrange Interpolation The basic interpolation problem can be posed in one of two ways: The basic interpolation.
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.
/14:00 1 Literature Study Jeroen Wille.
Runge Kutta schemes Taylor series method Numeric solutions of ordinary differential equations.
Computational Physics (Lecture 3) PHY4370. Interpolation Computer is a system with finite number of discrete states. – In numerical analysis, the results.
X1X1 X2X2  Basic Kinematics Real Applications Simple Shear Trivial geometry Proscribed homogenous deformations Linear constitutive.
Development of source terms Resulting full Boltzmann Equation
Transfer Functions Convenient representation of a linear, dynamic model. A transfer function (TF) relates one input and one output: The following terminology.
Numerical Methods for Partial Differential Equations
EEE 431 Computational Methods in Electrodynamics
Advanced Numerical Methods (S. A. Sahu) Code: AMC 51151
Lecture 19 MA471 Fall 2003.
Presentation transcript:

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

2 Discontinuous Galerkin Scheme Recall that under sufficient conditions (i.e. smoothness) on an interval we obtained the density advection PDE We again divide the pipe into sections divided by x 1,x 2,…,x N. On each section we are going to solve a weak version of the advection equation.

3 In the i’th cell we will calculate an approximation of q, denoted by. Typically, this will be a p’th order polynomial on the i’th interval. We will solve the following weak equation for i=1,..,N-1 x1x1 x2x2 x3x3 xNxN x N-1

4 Discretization of P p In order to work with the DG scheme we need to choose a basis for P p and formulate the scheme as a finite dimensional problem We expand the density in terms of the Legendre polynomials

5 Discretization of P p The scheme: Becomes:

6 Simplify, simplify Starting with: We define two matrices:

7 Then: Becomes:

8 Questions This raises the following questions how can we compute M nm and D nm We will need some of the following results.

9 The Legendre Polynomials (used to discretize P p ) Let’s introduce the Legendre polynomials. The Legendre polynomials are defined as eigenfunctions of the singular Sturm-Liouville problem:

10 Closed Form Formula for L m If we choose L m (1) =1 then: Examples: Warning: this is not a stable way to compute the value of a Legendre polynomial (unstable as m increases)

11 Stable Formula for Computing L m We can also use the following recurrence relation to compute L m Starting with L 0 =1 L 1 =x we obtain: This is a more stable way to compute the Legendre polynomials at some x.

12 The Rodriguez Formula We can also obtain the m’th order Legendre polynomial using the Rodriguez formula:

13 Orthogonality of the Legendre Polynomials The Legendre polynomials are orthogonal to each other: Since 2m < m+p

14 Miscellaneous Relations

15 Differentiation Suppose we have a Legendre expansion for the density in a cell: We can find the coefficients of the Legendre expansion for the derivative of the function as: where:

16 Coefficient Differentiation Matrix i.e. if we create a vector of the Legendre coefficients for rho in the I’th cell then we can compute the Legendre coefficients of the derivative of rho in the I’th cell by pre-multiplying the vector of coefficients with the matrix:

17 The D Matrix We can use a simple trick to compute D Recall: We use:

18 The Vandermonde Matrix It will be convenient for future applications to be able to transform between data at a set of nodes and the Legendre coefficients of the p’th order polynomial which interpolates the data at these nodes. Consider the I’th cell again, but imagine that there are p+1 nodes in that cell then we have: Notice that the Vandermonde matrix defined by is square and we can obtain the coefficients by multiplying both sides by the inverse of V

19 Vandermonde Reiterate: –that the inverse of the Vandermonde matrix is very useful for transforming nodal data to Legendre coefficients –that the Vandermonde matrix is very useful for transforming Legendre coefficients to nodal data

20 Results So Far 0<=n,j,m<=p Mass matrix: Coeff. Differentiation Stiffness matrix Vandermonde matrix

21 Homework 3 Q1) Code up a function (LEGENDRE) which takes a vector x and m as arguments and computes the m’th order Legendre polynomial at x using the stable recurrence relation. Q2) Create a function (LEGdiff) which takes p as argument and returns the coefficient differentiation matrix D Q3) Create a function (LEGmass) which takes p as argument and returns the mass matrix M

22 Homework 3 cont Q4) Create a function LEGvdm which returns the following matrix: Q5) Test them with the following matlab routine: 3)Compute the Chebychev nodes 4)Build the Vandermonde matrix using the Chebychev nodes and Legendre polynomials 7)Build the coefficient differentiation matrix 9) Build the Legendre mass matrix 12) Evaluate x^m at the Chebychev nodes 14) Compute the Legendre coefficients 16) Multiply by Dhat (i.e. differentiate in coeff space) 18) Evaluate at the nodes 20) Compute the error in the derivative

23 Homework 3 cont Q5cont) Explain the output from this test case

24 Next Lecture (9) We will put everything together to build a 1D DG scheme for advection…