An Adaptive Stencil Linear Deviation Method for Wave Equations

Similar documents
The Total Variation Approach to Approximate Hyperbolic Wave Equations

CS205b/CME306. Lecture 9

Mid-Year Report. Discontinuous Galerkin Euler Equation Solver. Friday, December 14, Andrey Andreyev. Advisor: Dr.

An Investigation into Iterative Methods for Solving Elliptic PDE s Andrew M Brown Computer Science/Maths Session (2000/2001)

Concept of Curve Fitting Difference with Interpolation

Natural Quartic Spline

2 Computation with Floating-Point Numbers

2 Computation with Floating-Point Numbers

Introduction to Computational Mathematics

Four equations are necessary to evaluate these coefficients. Eqn

Numerical Methods for (Time-Dependent) HJ PDEs

Truncation Errors. Applied Numerical Methods with MATLAB for Engineers and Scientists, 2nd ed., Steven C. Chapra, McGraw Hill, 2008, Ch. 4.

Planting the Seeds Exploring Cubic Functions

30. Constrained Optimization

Development of a Maxwell Equation Solver for Application to Two Fluid Plasma Models. C. Aberle, A. Hakim, and U. Shumlak

Introduction to numerical algorithms

Visualizing diffraction of a loudspeaker enclosure

Unit 1 Algebraic Functions and Graphs

A-posteriori Diffusion Analysis of Numerical Schemes in Wavenumber Domain

Traveling Wave Analysis of Partial Differential Equations

Graphing Techniques. Domain (, ) Range (, ) Squaring Function f(x) = x 2 Domain (, ) Range [, ) f( x) = x 2

Space Filling Curves and Hierarchical Basis. Klaus Speer

Integrated Math I. IM1.1.3 Understand and use the distributive, associative, and commutative properties.

A Toolbox of Level Set Methods

Partial Differential Equations

Math 32, August 20: Review & Parametric Equations

Semester Final Report

Lecture 8. Divided Differences,Least-Squares Approximations. Ceng375 Numerical Computations at December 9, 2010

Scientific Computing: An Introductory Survey

A system of equations is a set of equations with the same unknowns.

MAT 003 Brian Killough s Instructor Notes Saint Leo University

2.4. A LIBRARY OF PARENT FUNCTIONS

MATLAB. Advanced Mathematics and Mechanics Applications Using. Third Edition. David Halpern University of Alabama CHAPMAN & HALL/CRC

Section 3.1 Graphing Using the Rectangular Coordinate System

Computational Fluid Dynamics as an advanced module of ESP-r Part 1: The numerical grid - defining resources and accuracy. Jordan A.

1-5 Parent Functions and Transformations

High Frequency Wave Scattering

Module 1: Introduction to Finite Difference Method and Fundamentals of CFD Lecture 6:

Lecture 3.2 Methods for Structured Mesh Generation

Driven Cavity Example

Asymptotic Error Analysis

Contents. Implementing the QR factorization The algebraic eigenvalue problem. Applied Linear Algebra in Geoscience Using MATLAB

Edge and local feature detection - 2. Importance of edge detection in computer vision

Beams. Lesson Objectives:

Section 18-1: Graphical Representation of Linear Equations and Functions

DOWNLOAD PDF BIG IDEAS MATH VERTICAL SHRINK OF A PARABOLA

Modeling Ground Water Problems Using the Complex Polynomial Method

Mathematical Methods 2019 v1.2

General Method for Exponential-Type Equations. for Eight- and Nine-Point Prismatic Arrays

Floating-point representation

The WENO Method in the Context of Earlier Methods To approximate, in a physically correct way, [3] the solution to a conservation law of the form u t

Von Neumann Analysis for Higher Order Methods

Chapter - 2: Geometry and Line Generations

1.2 Numerical Solutions of Flow Problems

CHAPTER 1. Introduction

k are within the range 0 k < k < π dx,

Introduction to Objective Analysis

Efficient View-Dependent Sampling of Visual Hulls

Announcements. Edges. Last Lecture. Gradients: Numerical Derivatives f(x) Edge Detection, Lines. Intro Computer Vision. CSE 152 Lecture 10

CHAPTER 3 WAVEFRONT RECONSTRUCTION METHODS. 3.1 Spatial Correlation Method

Guidelines for proper use of Plate elements

EC121 Mathematical Techniques A Revision Notes

Theoretical Background for OpenLSTO v0.1: Open Source Level Set Topology Optimization. M2DO Lab 1,2. 1 Cardiff University

An Efficient, Geometric Multigrid Solver for the Anisotropic Diffusion Equation in Two and Three Dimensions

1. Answer: x or x. Explanation Set up the two equations, then solve each equation. x. Check

Calculus I Review Handout 1.3 Introduction to Calculus - Limits. by Kevin M. Chevalier

8 Piecewise Polynomial Interpolation

The Immersed Interface Method

Interpolation by Spline Functions

Flank Millable Surface Design with Conical and Barrel Tools

Name Course Days/Start Time

Handout 4 - Interpolation Examples

Chapter 1 Polynomials and Modeling

Optimised corrections for finite-difference modelling in two dimensions

NIA CFD Seminar, October 4, 2011 Hyperbolic Seminar, NASA Langley, October 17, 2011

CS 450 Numerical Analysis. Chapter 7: Interpolation

Summer Review for Students Entering Pre-Calculus with Trigonometry. TI-84 Plus Graphing Calculator is required for this course.

Laboratory One Distance and Time

Image Processing

Direction Fields; Euler s Method

MATHEMATICAL ANALYSIS, MODELING AND OPTIMIZATION OF COMPLEX HEAT TRANSFER PROCESSES

A C 2 Four-Point Subdivision Scheme with Fourth Order Accuracy and its Extensions

Introduction to Programming for Engineers Spring Final Examination. May 10, Questions, 170 minutes

Introduction to PDEs: Notation, Terminology and Key Concepts

ME 261: Numerical Analysis. ME 261: Numerical Analysis

Surface Approximation and Interpolation via Matrix SVD

Element Quality Metrics for Higher-Order Bernstein Bézier Elements

(Refer Slide Time: 02:59)

Tuesday 22 January 2008 Afternoon Time: 1 hour 30 minutes

Unit 1 Day 4 Notes Piecewise Functions

CHAPTER 4 RAY COMPUTATION. 4.1 Normal Computation

UNIT 2 GRAPHIC PRIMITIVES

Finite Element Course ANSYS Mechanical Tutorial Tutorial 3 Cantilever Beam

Calculus II - Math 1220 Mathematica Commands: From Basics To Calculus II - Version 11 c

Final Report. Discontinuous Galerkin Compressible Euler Equation Solver. May 14, Andrey Andreyev. Adviser: Dr. James Baeder

Seven Techniques For Finding FEA Errors

Hyperbola for Curvilinear Interpolation

Section Functions. Function Notation. Is this a function?

Lecture 9. Curve fitting. Interpolation. Lecture in Numerical Methods from 28. April 2015 UVT. Lecture 9. Numerical. Interpolation his o

Adaptive Waveform Inversion: Theory Mike Warner*, Imperial College London, and Lluís Guasch, Sub Salt Solutions Limited

Transcription:

211 An Adaptive Stencil Linear Deviation Method for Wave Equations Kelly Hasler Faculty Sponsor: Robert H. Hoar, Department of Mathematics ABSTRACT Wave Equations are partial differential equations (PDEs) which are used to model nearly all finite speed wave transmissions, such as sound and radar. The PDEs describe how wave information propagates in time by modeling displacement from equilibrium. Ideally, the exact position of the wave is known at some point in time, and the position of the wave at future times needs to be determined. In practice, however, the exact position may only be known at a finite number of points in space. Therefore, numerical approximations are needed so that the position of the wave at a future time can be predicted. This research focuses on the numerical methods used for these approximations. THE WAVE EQUATION One example of a hyperbolic partial differential equation (PDE) is the acoustic wave equation. This PDE models a three dimensional wave which may travel in any direction. In [4], it is shown that the larger acoustic problem can be approximated by a collection of onedimensional, one-way wave equations which have the form u t+cu x=0 u(x,0)=f(x). (1) In this equation, c is the wave speed and u(x,t) measures the displacement of the wave from equilibrium at each point in space x and at each time t. This equation describes how the wave changes from one point in time to the next. Initially (t=0), the exact position of the wave is given by f(x), and the position of the wave at future times (t>0) must be determined. One added complication is that, in practice, only a finite amount of information is known initially (the value of u at a limited number of points). METHODS To approximate the value of the solution u at points in time after the initial time, the Taylor Series expansion [2,3,5] is used, u(x,t+ t)=u(x,t)+ t u t(x,t)+ ( t)2 utt(x,t)+... (2) 2! This implies that the value of a function at a later point in time may be determined, provided the derivative values are known at time t. Since the initial function is not known for all values, only a finite number of data points in space, the derivatives will need to be approximated. The initial data provides information in space, but at only a single time (t=0), making time derivative approximations difficult. From the PDE, (1), we know u t =-u x, (assuming c=1, which is not necessary, and is shown here to simplify the derivation) from which follows that

212 HASLER u tt=u xx. Substituting this into the Taylor Series, we get the following expansion u(x,t+ t)=u(x,t)- t u x(x,t)+ ( t)2 uxx(x,t)-... (3) 2! This new equation provides a method of determining the position of the wave at later points in time in terms of space derivatives. Therefore, one of the primary focuses of the research involves approximating the space derivative u x and u xx. Finite differences [2,3] can be used to approximate derivatives using a finite number of data points. When using four points in space to approximate the u x, there are four finite difference approximations that could be used to approximate u x, each using different data sets (stencils). The four stencils that could be chosen are relative to the point that is to be approximated, say for example u x(x,t+ t) for a given value of x (denoted by in the following description). The first possible stencil contains the point at x, and the three points to the left ( ). The next stencil contains the point at x, two points to the left, and one to the right ( ). The third stencil contains one point to the left, and two to the right of x ( ). The fourth stencil contains the point at x and three points to the right ( ). For one-way waves that travel to the the right, this last stencil is not useful due to upwinding. Upwinding [1] requires that one always select a stencil at x that contains the point next to it in the direction in which the wave is coming. The method in which one selects from among the three remaining stencils may be used to determine derivative approximations, which is another primary interest in this research. ENO Method One method (developed in the mid 1990 s, see [4]) is referred to as the Essentially Non- Oscillatory (ENO) method. Each derivative will be approximated using one of the stencils presented above. The ENO method will choose the stencil by building it up, starting with the point at x, ( ). ENO will always choose to add the point next to it in the direction in which the wave is coming due to upwinding (with c>0, the stencil is now ). ENO then selects from two sets of three points. One set consists of the first two points plus the point to the left ( ), and the other set contains the first two points plus the point to the right ( ). If an interpolating parabola is generated for each of the two data sets, then ENO selects the set that forms the flatter (smaller in magnitude second derivative) parabola. At this point, only one more point needs be added to form the completed stencil. ENO adds either a point to the left of the selected three, or a point to the right, by selecting the data set that is interpolated by the cubic polynomial which has the smallest, in magnitude, third derivative. Note that two steps are needed to find four points to use. Linear Deviation Method As a result of this research, an alternative to the ENO method was found. This new method, the linear deviation method, selects the data with the least linear deviation and only uses one step to find four points to use (choosing one of the three upwind stencils outlined above). Once the upwind point is determined, this new method then uses the two points ( for c>0) to form a line. The two points to add are chosen by selecting the pair that has the least linear deviation (in the l 1 sense) from the line. In other words, the set of two points that are closest to the line. The amount of deviation from the line and each point is calculated by subtracting the value of the line at that point and the value of the data at that point, and then applying the absolute value. Next, the deviations are summed for the three sets of two points. The set with the least amount of summed linear deviations is chosen.

213 The Linear Deviations method can also jump from two to five points using this same concept.when jumping from two points to four, this method is referred to as the 2-pt method, since 2 additional points are added. It follows that when jumping from two points to five, the method is referred to as the 3-pt method, since 3 additional points are added. While the 3-pt methods lead to similar results, only the 2-pt method will is discussed in detail. Calculating the Space Derivative With either method (ENO or the 2-pt Linear Deviation) the second derivative of u with respect to x (u xx ) can be approximate in two different ways. With each method (ENO or the 2- pt), one could first find u x and then again apply the same method to the u x data to arrive at an approximation to u xx. A second approach would be to modify the routines so that the second derivative is approximated directly using linear algebra [4]. The first approach requires nearly twice as many calculations, but attempts to adapt to the changes in the derivative as well as the changes in the function (data). Acceptable increases in computational complexity are those increases which lead to a better approximation. On certain waves, calculating the first derivative twice to approximate u xx leads to a better approximation, while on other waves, calculating the second derivative directly leads to a better approximation. Thus, examples of both types of waves are presented. Each wave will be approximated using ENO and 2-pt. ENO a and 2-pt a calculate the first derivative twice to get the second derivative. ENO b and 2- pt b use linear algebra to calculate the second derivative directly. It should be noted that it was unexpected that calculating the second derivative directly using linear algebra would give better approximations on certain waves. The stencils are chosen for ENO and Linear Deviation in a non-linear fashion. Since it is not linear, calculating the second derivative directly does not give the same results as calculating the first derivative twice. Even though it may seem that taking the derivative twice would better adapt to the data, on some waves this was shown to not be the case. Introduction to the Analysis To determine which method gives better results, the various methods were tested against a set of problems for which the exact solution is known. The approximation and the exact solution were compared using the l 1, l 2 and the l norms [2]. The l 1 norm sums the absolute value of the differences between the true solution and the approximation at each of the discrete spatial points. The l 2 norm calculates the sum of the squared differences between the true solution and the approximation (least squares), and the l norm finds the maximum difference between the true solution and the approximation (mini-max). Thus, error norms that are closer to zero imply better approximations. The primary determining factors for method comparison are the error norms and the amount of work (number of calculations needed) to calculate u x andu xx (all other aspects of the algorithms for each method were the same). ANALYSIS Eight data sets were used to test the methods for which the exact wave was known for all steps in time. Each data set consisted of discrete data. In the calculations, a grid spacing of x= 1 /101 and t = 2 x /5 were used. For each data problem, periodic boundary conditions were assumed and the approximation was compared to the initial data after two revolutions (with wave speed c=1, the exact solution would exactly match the initial data). Using the true solution, and the approximation arrived at by using a certain method moved from time step to

214 HASLER time step, comparisons can be made using the norms to see how well the solution is approximated. For reference, the linear deviation method is compared to ENO as the standard method. As mentioned before, two types of waves will be examined. The first is the ramp data set shown in Figure 1.This is a very simple data set that consists of four lines connected together. Where the lines are connected, the function is continuous, but not differentiable. This affects the convergence of the Taylor series expansion of the wave. Also, periodic boundary conditions are set so that when the wave reaches the right side of the box, it will wrap back into the left side of the box. Figure1 :The ramp function with x= 1 /101 and t = 2 x /5. Figure 2:ENO b and 2-pt b after 505 steps in time (2 revolutions) with x= 1 /101 and t = 2 x /5. Figure 2 contains a comparison of the true solution (the solid line), ENO b (the dotted dashed line) and 2-pt b (the dashed line). It is hard to visually distinguish between the two methods and the true solutions except at the corners where the original function is not differentiable. Since a visual comparison is difficult, the norms are presented in the following table. Norm ENO a ENO b 2-pt a 2-pt b l 1 1.8668 1.527 1.111 1.2269 l 2 0.3398 0.2879 0.2642 0.2502 l 0.1169 0.1008 0.0940 0.0910 From the above norms, it can be seen that the 2-pt b method outperforms the other methods. This can also be seen better visually if the errors of the methods are plotted. To find the error, the approximation is subtracted from the true solution and the resulting function is plotted. Therefore, the closer the approximation, the closer to zero the curve in the graph will be.

215 Figure 3:Error ineno a and 2-pt b after 505 steps in time (2 revolutions) with x= 1 /101 and t = 2 x /5. Figure 3 contains the error plots for the methods that approximate the second derivative with respect to space by calculating the first derivative twice (the subscript a methods). The error for ENO a is the dashed line and the error for 2-pt a is the solid line. From this graph, it can be seen that the 2-pt a method yields a better approximation then ENO a, a fact observed in the norm table Figure 4 contains the error plots for the methods that approximate the second derivative with respect to space by using linear algebra to calculate it directly. Figure 4: Error ineno b and 2-pt b after 505 steps in time (2 revolutions) with x= 1 /101 and t = 2 x /5. The error for ENO b is the dashed line and the error for 2-pt b is the solid line. From the graph, it can be seen that the 2-pt b method has a closer approximation then ENO b. This is also shown in the norms. It should be noted that the 2-pt b method outperforms the other methods. This is desirable because compared to the ENO methods, linear deviation methods take less calculations since they jump from two points to four in just one step rather than two. This is also good because the 2-pt b method takes fewer calculations then 2-pt a due to calculating the second derivative directly in one step instead of two. So, all in all, the 2-pt b method takes the least Figure 5: Step function with x= 1 /101 and t = 2 x /5.

216 HASLER Figure 6: ENO a and 2-pt a after 505 steps in time (2 revolutions) with x= 1 /101 and t = 2 x /5. computations of the four methods and yields the best error norms. As mentioned earlier, some waves are approximated better using approximations that calculate the second spatial derivative by taking the first derivative twice. One such wave is the step function shown in Figure 5. The step function consists of 3 lines, which are not connected (there are vertical jumps in Figure 7: Error in ENO b and 2-pt b after 505 steps in time (2 revolutions) with x= 1 /101 and t = 2 x /5. the data). This function is neither continuous nor differentiable at the points where the jumps occur. This too affects the convergence of the Taylor Series expansion of the wave. Figure 6 contains a comparison of the true solution (the solid line), ENOa (the dotted dashed line) and 2-pt a (the dashed line). With this graph, it can be seen which method does better. The norms associated with the various approximations are contained in the following table. Figure 8: Error in ENO a and 2-pt a after 505 steps in time (2 revolutions) with x= 1 /101 and t = 2 x /5.

217 Norm ENO a ENO b 2-pt a 2-pt b l 1 5.9266 5.2826 4.7778 4.8951 l 1 1.3114 1.2784 1.1953 1.2758 l 0.4941 0.5458 0.4851 0.5703 Figure 7 contains the graphs of the errors involved with the methods that approximate the second derivative with respect to space by using linear algebra to calculate it directly (the subscript b methods). The error for ENO b is the dashed line and the error for 2-pt b is the solid line. The norms show that the 2-pt b method does better on the first two norms, but ENO b does better on the infinity norm. Figure 8 contains the errors for the methods that approximate the second derivative with respect to space by calculating the first derivative twice. The error for ENOa is the dashed line and the error for 2-pt a is the solid line. From this graph, it can be seen that the 2-pt a method has a closer approximation than ENO a. Recall that since 2-pt a jumps from using two points to four in only one step, it requires fewer calculations then ENO a. Therefore, it can be said that 2-pt a outperforms ENO a. CONCLUSIONS The various methods described in this paper were applied to a number of different wave data sets. It was found that certain waves are better approximated using different methods. It should be noted, however, that all waves were better approximated using the linear deviation methods rather than the ENO methods. This is desirable since linear deviation methods are less complex and require fewer computations. Even though the linear deviation methods do not give highly significant gains in accuracy, it was possible to increase the accuracy (as compared to ENO) with fewer computations. Some preliminary research has been completed using the 3-pt method that jumps from two points to five points by adding 3 additional points. By comparing the error norms produced, the linear deviation methods were again shown to outperform the ENO methods, again with fewer computations. REFERENCES 1. Bleistein, Numerical Methods for Wave Phenomena, Academic Press, 1984. 2. Burden and Fares, Numerical Analysis, Sixth Edition, Brooks/Cole, 1997. 3. Cheney and Kincaid, Numerical Mathematics and Computing, Third Edition, Brooks/Cole, 1994. 4. Hoar, An Adaptive Stencil Finite Difference Method for First Order Linear Hyperbolic Systems, PhD Thesis, Montana State University, 1995. 5. Riley, Bruce An Introduction to Computational Mathematics, University of Wisconsin- La Crosse, Spring 1998.