High Order Difference Approximations For LEE SBP Scheme
High Order Difference Approximations For LEE SBP Scheme
Abstract
The computers of today make it possible to do direct simulation of
aeroacoustics, which is very computationally demanding since a very high
resolution is needed.
In the present thesis we study issues of relevance for aeroacoustic sim-
ulations. Paper A considers standard high order difference methods. We
study two different ways of applying boundary conditions in a stable way.
Numerical experiments are done for the 1D linearized Euler equations.
In paper B we develop strictly stable difference methods which give
smaller dispersion errors than standard central difference methods. The
new methods are applied to the 1D wave equation.
Finally in Paper C we apply the new difference methods to aeroacoustic
simulations based on the 2D linearized Euler equations.
Taken together, the methods presented here are strictly stable by con-
struction. They lead to better approximation of the wave number, which
in turn results in a smaller L2 -error than obtained by previous methods
found in the literature. The results are valid when the problem is not
fully resolved, which usually is the case for large scale applications.
Acknowledgments
First, I want to thank my supervisors Bernhard Müller and Mickael Tuné
for all your support, and thoroughness in reviewing my work.
Finally, I wish to thank all the people at TDB for creating a good
atmosphere, and supporting many interesting discussions.
2
List of Appended Papers
This thesis is a summary of the following papers. References to the papers
are made using the capital letter associated with each paper.
Paper A Stefan Johansson. Numerical Solution of the Linearized Euler
Equations Using High Order Finite Difference Operators with the
Summation by Parts Property. Report 2002-034, Department of
Information Technology, Uppsala University, Uppsala, 2002 (revised
version, March 2003).
Paper B Stefan Johansson. High Order Finite Difference Operators with
the Summation by Parts Property Based on DRP Schemes. Report
2004-036, Department of Information Technology, Uppsala Univer-
sity, Uppsala, 2004 Submitted to BIT.
Paper C Stefan Johansson. High Order Summation by Parts Opera-
tor Based on a DRP Scheme Applied to 2D Aeroacoustics. Report
2004-050, Department of Information Technology, Uppsala Univer-
sity, Uppsala, 2004.
Some numerical experiments from Paper A were presented by the au-
thor at the 10th International Congress on Sound and Vibration (2003)
[7], together with work done by Bernhard Müller. Preliminary experi-
ments using the new method from Paper B were included in joint pa-
pers with Bernhard Müller presented by Müller at EUROMECH Collo-
quium 449, Chamonix, France 2003 [6] and in Proceedings of 4th EC-
COMAS Congress 2004, Jyväskylä, Finland [8]. The paper presented at
EUROMECH will appear in Comptes Rendus Mecanique (2004/2005).
3
Contents
Summary
Paper A
Paper B
Paper C
4
1 Introduction
The development of methods for approximate solution of partial differ-
ential equations accelerated after the second world war due to the rapid
development of computers that made it possible to solve non trivial prob-
lems. Partial differential equations are used by scientists to model wave
propagation, heat transfer, fluid flow around rigid objects and many other
applications.
Numerical analysis for partial differential equations, the subject of
this thesis, is the art of approximating a partial differential equation,
and thereafter solving the resulting algebraic problem. There are several
alternative approaches to do the approximation. We have chosen the
finite difference method, i.e., the variables are represented at grid points
and derivatives are approximated using Taylor expansions. The reason
for choosing finite difference methods is that they are relatively easy to
implement, and in explicit form they are in most cases more efficient for
wave propagation problems than for example the finite element method.
The computers of today make it possible to do direct simulation of
aeroacoustics, which is very computationally demanding since a very high
resolution is needed [13]. The application of aeroacoustics includes simu-
lation of noise emitted from cars and airplanes. An example of such an
application is the study by Johan Westerlund [15] where he studied rocket
launch noise from a simplified model of the Arianne V rocket. A picture
of acoustic pressure just before lift off is shown in Figure 1.
100
100
90
80
80
70
60
x
60
50
40
40
20 30
20
0
−60 −40 −20 0 20 40 60 10
y
Figure 1: Solution for acoustic pressure measured in dB, when the frequency is
33 Hz.
5
study two different ways to apply boundary conditions in a stable way.
Numerical experiments are done for the 1D linearized Euler equations.
In paper B we develop strictly stable difference methods which give
smaller dispersion errors than standard central difference methods. The
new methods are applied to the 1D wave equation.
Finally in Paper C we apply the new difference methods to aeroacoustic
simulations based on the 2D linearized Euler equations.
deiωjh ũ 1 ³ iω(j+1)h ´
= e ũ − eiω(j−1)h ũ ⇒
dt 2h
dũ 1 ³ iωh −iωh ´ dũ i
= e e ũ ⇒ = sin(ωh)ũ (3)
dt 2h dt h
6
.
It follows from Parseval’s relation kũk = kuk that the L2 -norm of u is
constant in time, because
i
ũ(ω, t) = e h sin(ωh)t ũ(ω, 0) ⇒ kũ(ω, t)k = kũ(ω, 0)k (4)
⇒ ku(·, t)k
|{z} = ku(·, 0)k (5)
P arseval
d
kuk = (u, ut )h + (ut , u)h = (u, D0 u)h + (D0 u, u)h =
dt
− 2hu0 u−1 + 2huN uN −1 = 0 (6)
7
3 Paper A
In this paper high order difference schemes with the summation by parts
(SBP) property were studied [11].
To use a SBP operator to discretize an initial boundary value problem
(IVBP) the analytical boundary conditions must be imposed in a way
that does not destroy the SBP property.
Currently there are two methods described in the literature, the pro-
jection method and the simultaneous approximation term (SAT) method.
The theory of the projection method can be found in [10] and is out-
lined here. Olsson’s idea was that the boundary condition is fulfilled by
projecting the discrete solution of the initial value problem to the vector
space where the boundary condition is fulfilled. Using SBP operators he
could give an energy estimate for the semi-discrete case.
Let the boundary condition be written in the form
LT v = g (7)
ut + cux = 0 (9)
were c is the advection speed. The projection method for the semi discrete
problem becomes
8
nor CPU time to solve the problem for the isentropic linearized Euler
equations.
A comparison between initial data of different regularity was also per-
formed, C 0 initial data and C ∞ initial data to be precise. As one may
suspect the C 0 initial data lead to a solution with high frequency oscilla-
tions, but the oscillations did not affect the order of accuracy. Howewer
for non linear problems artificial dissipation has to be used to damp the
oscillations which otherwise could grow exponentially [4].
4 Paper B
In aeroacustics Dispersion Relation Preserving schemes (DRP) [14] have
been given a lot of interest because the schemes have smaller dispersion
error than standard finite difference schemes. The price you have to pay
for that is to lower the formal accuracy of the method. Since the SBP
method studied on Paper A is proven stable the question arises: Can we
use DRP schemes instead of standard finite difference schemes in the SBP
operator? The answer is yes, and the paper deals with the derivation of
such difference operators.
Lets first explain the DRP schemes. If the formal accuracy of a fi-
nite difference method is lowered by two orders a free parameter is given
that can be chosen such that the wave number is approximated better.
The dimensionless
P wave number for the stencil −αl . . . − α1 0 α1 . . . αl is
hk̃ = lj=1 2αj sin(hk). The approximation of the wave number is good
for small wave numbers and gets worse for larger wave numbers. The free
parameter φ can be chosen such that DRP schemes gives a good approx-
imation for larger wave numbers than standard finite difference schemes.
For example one can minimize
Z π/2
E(φ) = |hk − hk̃(φ)|2 d(hk) (14)
−π/2
,
where k and k̃ are the exact and the approximate wave numbers, respec-
tively. Figure 2 shows the approximate wave number for the 2nd and
6th order standard centered difference schemes and also a 4th order DRP
scheme.
9
3.5
2.5
Approximate wave number
1.5
0.5
0
0 0.5 1 1.5 2 2.5 3 3.5
kh
q0,0 q0,1 ... q0,2τ −1
.. ..
q1,0 0 . . qτ −1,2τ 0 ...
.. .. .. .. ..
. . . q2τ −2,2τ −1 . . 0 ...
q2τ −1,0 ... q2τ −1,2τ −2 0 q2τ −1,2τ ... q2τ −1,3τ 0 ...
10
conditions on HQ makes it possible to find closed expressions for Q and
H.
The summation by parts operators for DRP schemes were tested for
the 1D wave equation in first order form
µ ¶ µ ¶
1 0 uI
ut + ux = 0, u = ,
0 −1 uII
0 ≤ x ≤ 1, t ≥ 0,
The methods used in the numerical experiment were the second, third
and fourth order DRPSBP methods, also denoted SBP-τ − 2τ (2(τ + 1)).
For the SBP-4-8(10) the free parameters were used to reduce the spectral
radius of the method and therefore making it possible to use larger time
steps. The parameters found reduced the spectral radius by about a factor
of 10.
The global order of accuracy is given in Table 1 and is in agreement
with theory, saying that the global accuracy is one order higher than the
accuracy at the boundaries if the order in the interior is at least one order
higher than the accuracy at the boundaries [3].
Table 1: Order of accuracy for uI using SBP 2-4(6), SBP 3-6(8) and SBP
4-8(10) for the 1D test case at t = 1.5.
5 Paper C
The 2D linearized Euler equations in conservative form [1] are used as a
model of sound propagation. Denoting density ρ, velocity in x-direction
u, in y-direction v, specific total energy E, specific total entalphy H and
pressure p. The equations are formulated in the variables ρ0 , (ρu)0 , (ρv)0
and (ρE)0 that are perturbations of a reference state ρ0 , ρ0 u0 , ρ0 v0 , ρ0 E0 .
11
ρ0 (ρu)0
∂ 0
(ρu)0 + ∂
ρ0 u0 u0 + (ρu)0 u0 + p0
+
∂t (ρv) ∂x ρ0 v0 u0 + (ρv)0 u0
(ρE)0 0
ρ0 H0 u + (ρH) u0 0
(ρv)0
∂ ρ0 u0 v 0 + (ρu)0 v0
=0 (15)
∂y ρ 0 0
0 v0 v + (ρv) v0 + p
0
0 0
ρ0 H0 v + (ρH) v0
(ρu)0 − ρ0 u0
u0 = (16)
ρ0
µ ¶
1 ¡ ¢
p0 = (γ − 1) (ρE)0 − 2 (ρu)0 · u0 − ρ0 u0 · u0 (17)
2
x2 +y 2
p0 (x, y, 0) = e−log(2) 9 (18)
2 2 (x−67)2 +y 2
0 −log(2) x +y
9
−log(2) 25
ρ (x, y, 0) = e + 0.1e (19)
(x−67)2 +y 2
u0 (x, y, 0) = 0.04ye −log(2) 25 (20)
(x−67)2 +y 2
v 0 (x, y, 0) = −0.04(x − 67)e −log(2) 25 (21)
.
result in an acoustic pulse first located at the center and propagating
with the speed of sound in all directions transported by the mean veloc-
ity and entropy and vorticity waves propagating with the mean velocity
originating near the right boundary.
The results were compared with those obtained with a third order SBP
operator SBP-3-6 based on a sixth order standard central finite difference
stencil.
The 2D linearized Euler equations were solved using those SBP opera-
tors to discretize x and y derivatives and using the standard fourth order
Runge-Kutta method to discretize the time derivative.
The numerical results for the 2D linearized Euler equations show that
the better approximation of the wave number for the DRP based SBP
operator of fourth order (second order near the boundary) results in a
smaller L2 -error than for a SBP operator based on standard sixth order
(third order near the boundary) stencil. The results are valid when the
problem is not fully resolved, which usually is the case for large scale
applications.
12
Application of a sixth order filter affects the good wave approximation
of the DRPSPB operator. That problem can be solved by using a filter or
artificial dissipation that apply less dissipation for wave numbers hk < π/2
than the present filter.
The development and implementation of accurate non reflecting bound-
ary conditions is future work.
References
[1] M. Billson, L.-E. Eriksson, and L. Davidson. Acoustic Source
Terms for the Linear Euler Equations on Conservative Form. In
8th AIAA/CAES Aeroacoustics Conference, Breckenridge, Colorado,
(2002). AIAA Paper 2002-2582.
[2] M.H. Carpenter, D. Gottlieb, and S. Abarbanel. Time-Stable Bound-
ary Conditions for Finite-Difference Schemes Solving Hyperbolic
Systems: Methodology and Application to High-Order Compact
Schemes. J. Comp. Phys., 111:220–236, (1994).
[3] B. Gustafsson. The Convergence Rate for Difference Approxima-
tions to Mixed Initial Boundary Value Problems. Math. Comp.,
29(130):396–406, (1975).
[4] B. Gustafsson, H.-O. Kreiss, and J. Oliger. Time Dependent Problems
and Difference Methods. John Wiley & Sons, New York, (1995).
[5] B. Gustafsson, H.-O. Kreiss, and A. Sundström. Stability Theory of
Difference Approximations for Mixed Initial Boundary Value Prob-
lems. II. Math. Comp., 26(119):649–686, (1972).
[6] B. Müller and S. Johansson. Strictly Stable High Order Difference
Approximations for Computational Aeroacoustics. In Computational
Aeroacoustics: From Acoustic Sources Modeling to Far-Field Radi-
ated Noise Prediction”, EUROMECH Colloquium 449, (2003).
[7] B. Müller and S. Johansson. Strictly Stable High Order Difference
Approximations for the Euler Equations. In Proceedings of the Tenth
International Congress on Sound and Vibration, (2003).
[8] B. Müller and S. Johansson. Strictly Stable High Order Difference
Approximations for Low Mach Number Aeroacoustics. In P. Neit-
taanmäki, T. Rossi, K. Majava, and O. Pironneau, editors, ECCO-
MAS 2004, (2004).
[9] C. L. Müller. High order accurate numerical solution of the lin-
earized Euler equations for sound propagation in the atmosphere.
Master’s thesis, Uppsala University, Department of Scientific Com-
puting, (2004).
[10] P. Olsson. Summation by Parts, Projections, and Stability. I. Math.
Comp., 64:1035–1065, (1995).
[11] B. Strand. Summation by Parts for Finite Difference Approximations
for d/dx. J. Comp. Phys., 110:47–67, (1994).
[12] C.K.W. Tam. Benchmark Problems and Solutions. In J.C. Hardin,
J.R. Ristorcelli, and C.K.W. Tam, editors, ICASE/LaRCWorkshop
on Benchmark Problems in Computational Aeroacoustics (CAA),
(1995). NASA CP 3300.
[13] C.K.W Tam. Computational aeroacoustics: Issues and methods.
AIAA J., 33:1788–1796, (1995).
13
[14] C.K.W Tam and J. C. Webb. Dispersion-Relation-Preserving Finite
Difference Schemes for Computational Acoustics. J. Comp. Phys.,
107:262–281, (1993).
[15] J. Westerlund. High order Simulation of Rocket Launch Noise. Mas-
ter’s thesis, Uppsala University, Department of Scientific Computing,
(2002).
14
Paper A
Paper B
Paper C
NUMERICAL SOLUTION OF THE
LINEARIZED EULER EQUATIONS USING
HIGH ORDER FINITE DIFFERENCE
OPERATORS WITH THE SUMMATION BY
PARTS PROPERTY
Stefan Johansson
1 Introduction
Most natural phenomena of interest are governed by partial differential equa-
tions (PDEs), yet no general technique is known to find the exact solution to
a given well-posed PDE. Therefore numerical methods have been used even
long before the birth of digital computers, see for example the work by L. F.
Richardson [9].
PDEs governing acoustics often require high order methods to reach accuracy
requirements: low dissipation and dispersion errors, cf. Tam [11].
To exemplify there are large scale disparities between the eddy scale l and
the acoustic wavelength λ ∼ lM −1 , where M is the Mach number. There are
also large energy density disparities between the hydrodynamic near field and
the acoustic far field cf. [4].
A technique that can be used to avoid resolving the different scales was
proposed by Lighthill [7] in the 1950’s where one first solves the flow field and
uses that solution as a source term to the wave equation to get the acoustic
field.
The linearized Euler equations have received interest since they can be used
to model refractional effects and reflections at solid boundaries cf. M. Billson
et al. [1]. Direct simulation of these phenonema has come into reach for our
computers only in recent years.
In the numerical experiments I have studied isentropic and non isentropic
sound propagation, governed by the linearized Euler equations in one space di-
mension. Discretization was done with a finite difference method, more precisely
with a high order summation by parts operator (SBP) [6][10]. The boundary
conditions were imposed with the simultaneous approximation term method
(SAT) introduced by Carpenter et al. [2] and in some cases by the projection
method described by Olsson [8]. The classical four step Runge-Kutta method
was used for time marching.
The most important advantage of the summation by parts operators is that
they lead to strictly stable high order finite difference methods.
The goal of this investigation was to check the accuracy of the summation
by parts operator for the linearized Euler equations and to compare the simul-
taneous approximation term method and the projection method both used to
impose boundary conditions.
2
2 The governing equations
The 1D nonlinear Euler equations read
ut + Aux = 0 (1)
where u is the velocity, p is the pressure and ρ is the density. Time is denoted
by t, x is the space coordinate and γ is the ratio of specific heats, here γ = 1.4
for air. We then linearize around the mean values (R, U, P ). We replace u by
U + ²u0 and analogous for p and ρ, and neglect high order terms of O(²2 ) and
get
u0t + Bu0x = 0 (3)
where u0 = (ρ0 , u0 , p0 )T and
U R 0
B= 0 U 1/R (4)
0 γP U
with inverse
0 −1/2 1/(2Ra)
R−1 = 1 0 −1/a2 (6)
0 1/2 1/(2Ra)
where a = γP/R is the speed of sound. The linearized Euler equations are often
used to model sound propagation.
To simplify things we can assume that the change in entropy is zero, the so
called isentropic case. Then
µ ¶γ µ ¶ γ−1
γ
p ρ T
= = (7)
p∞ ρ∞ T∞
where µ ¶
U a
C= (9)
a U
3
and u0 = (u0 , ρ0 )T . U , a, u0 and ρ0 are the mean flow velocity, mean speed of
sound, velocity and density perturbations, respectively. In the following, the
prime 0 to indicate perturbation variables will be omitted i.e. from here on, we
use the notation u = u0 and ρ = ρ0 , if not stated otherwise. The eigenvalues of
A are U − a and U + a, and the corresponding eigenvectors are the columns in
µ ¶
1 1 1
R= √ . (10)
2 1 −1
Define w = R−1 u0 then we can multiply the above systems (3) and (8) from
the left by R−1 to get
wt + Λwx = 0 (11)
where Λ is a diagonal matrix containing the eigenvalues λi of B and C, respec-
tively.
The reason for transforming the system is to be able to use the SAT method
described in section 5 for implementing non-reflecting boundary conditions and
derive exact solutions.
We have for the simplest hyperbolic equation, sometimes called the Kreiss equa-
tion,
ut = ux (13)
the following energy growth
1 d||u||2 1
= (u, ut ) = (u, ux ) = [u2 ]ba . (14)
2 dt 2
That is the energy growth in time is governed by the boundary values. In the
last step, we used integration by parts
where
(u, v)h = huT Hv, where h is the step size. (17)
Since equation (16) is the discrete analogue of equation (15), it is called
summation by parts property.
4
An example of such an operator D and scalar product H is
−1 1 0 ... 0
.. .. 0.5 0 ... 0
−0.5 0 0.5 . . 0 1 0
1
. .. . .. . .. .. . .. .. .. ..
D= 0 0 ,H = . . . . .
h
. . 0 1 0
.. . . −0.5 0 0.5
0 ... 0 0.5
0 ... 0 −1 1
Operators if this kind were described by Kreiss and Scherer [6], and high order
operators were later constructed by Strand [10]. High order operators D have
the following structure: in the interior a standard centered high order finite dif-
ference stencil is used and near the boundary when the standard stencil cannot
be used, a small dense matrix is used instead. E.g. the boundary matrix giving
third order is 6 × 9. The stencil giving sixth order and that boundary matrix
giving third order are given in the Appendix. For diagonal norms H Strand [10]
constructed matrices Q giving order s = 1, . . . , 4 corresponding to stencils of
order 2s in the interior.
4 Projection method
To apply high order operators of the SBP type to an initial boundary value
problem (IVBP) the analytical boundary conditions must be satisfied in a cer-
tain way in order not to destroy the SBP property. Currently there are two
popular methods, the projection method and the simultaneous approximation
term (SAT) method. The latter method will be described in the next section.
The theory of the projection method can be found in [8] and is outlined here.
Olsson’s idea was that the boundary condition was fulfilled by projecting the
discrete solution to the initial value problem to the vector space where it is
fulfilled. Using SBP operators he could give an energy estimate for the semi-
discrete case.
Let the boundary condition be written in the form
LT v = g (18)
where I is the identity matrix, defines a projection with the following properties
• P2 = P
• HP = PT H
• v = Pv ⇔ LT v = 0.
Given the linear advection equation
ut + cux = 0 (20)
5
were c is the advection speed. The projection method for the semi discrete
problem becomes
vt + PcDv = 0 (21)
v(0) = f (22)
where f is the initial condition. In general the right hand side in (21) involves
time derivatives of g, but in our case it is zero because we implement non-
reflecting boundary conditions.
Given two matrices Am,n and Bp,q . The Kronecker product ⊗ is defined as
a1,1 B . . . a1,n B
.. ..
A⊗B= . . .
am,1 B . . . am,n B
For systems the projection method can be expressed using the Kronecker prod-
uct
vt + D ⊗ Bv = 0 (25)
h00 and hN N are the first and last elements of the norm matrix H and Λ± =
1
2 (Λ ± |Λ|), with |Λ| = diag(|λi |). Non-reflecting boundary conditions are im-
plemented by Φ0 (t) = ΦN (t) = 0
6
6 The classical Runge-Kutta method for ODE’s
Using a summation by parts operator in the system
ut + Aux = 0 (28)
gives a large system of ODE’s
vt = Pv (29)
d
were P is a discrete approximation of −A dx .
To solve this system we use the classical Runge-Kutta method [3], which is
fourth order accurate.
v (1) = vn (30)
1
v (2) = v n + ∆tPv (1) (31)
2
1
v (3) = v n + ∆tPv (2) (32)
2
v (4) = v n + ∆tPv (3) (33)
µ ¶
1 (1) 1 (2) 1 (3) 1 (4)
v n+1 = n
v + ∆t Pv + Pv + Pv + Pv . (34)
6 3 3 6
7 Numerical experiments
The test cases are now described in more detail. The equations used are the
linearized isentropic Euler equations(8) and the linearized Euler equations (3),
with a sine pulse in the isentropic case and a Gaussian in the non-isentropic
case.
7
Some wiggles were observed in the solution see section 7.3, these can be
damped using artificial dissipation. This is often necessary when using finite
difference methods with no inherent dissipation as with the present SBP oper-
ators.
The time instants were chosen such that for the first time both waves were
inside the computational domain, for the second time t = 0.75 one had reached
the boundary and in the last case the first wave had left the domain and the
second had reached the other boundary. In some test runs the computation
continued until T = 20 to check for long time stability. Some small wiggles were
observed in the solution due to the fact that no artificial dissipation was added
to the numerical scheme, and also due to the fact that the initial condition has
a discontinuous first derivative. In more realistic test cases artificial dissipation
has to be added to damp high frequency oscillations.
Results using the projection method can be seen in table 1. The convergence
rate is computed with respect to a grid with half as many points. The columns
give the results from three time instants 0.25, 0.75 and 1.5.
Table 1: Order of accuracy for SBP 3-6 using the projection method for the
isentropic Euler equations
# of grid points / Time 0.25 0.75 1.5
100
200 4.7253 4.0004 3.9834
400 4.4069 4.0140 4.0369
800 4.2376 4.0138 4.0453
Table 2: Order of accuracy for SBP 3-6 using the simultaneous approximation
term method for the isentropic Euler equations
# of grid points / Time 0.25 0.75 1.5
100
200 4.7253 4.0004 3.9885
400 4.4069 4.0140 4.0779
800 4.2376 4.0138 4.0961
For both the projection and SAT method we observe an overall forth order
accuracy, as should be expected. More surprising is that the order of accuracy
is not close to six when no wave has reached the boundary. Later experiments
indicated that reason for the lower accuracy was caused by the non-smooth
initial condition, cf. section 7.3.
8
Figure 1: Acoustic velocity and error fields for the isentropic linearized 1D Euler
equations using 400 points in the x-direction.
Figure 2: Density perturbations and error fields for the isentropic linearized 1D
Euler equations using 400 points in the x-direction.
The large errors observed at the boundaries in figures 1 and 2 were unex-
pected, because one had expected an error at the boundary that was comparable
to the error inside the computational domain. Future investigation will deal with
this problem.
9
Figure 3: Acoustic velocity end error fields for the non isentropic linearized 1D
Euler equation using 400 points in the x-direction, respectively.
The wave in figure 3 is moving to the left and therefore corresponds to the
eigenvalue U − a. The only Riemann invariant that is non zero with the initial
values used is the one corresponding to the same eigenvalue. The characteristic
variables are given by multiplying the primitive variables i.e. ρ, u, and p with
the inverse of the eigenvector matrix from the left.
Table 3: Order of accuracy for SBP 3-6 using the simultaneous approximation
term method for the non-isentropic Euler equations, with left going acoustic
wave.
# of grid points /Time 0.25 0.75 1.5
100
200 5.8772 5.7965 3.9386
400 5.8238 5.7486 3.9602
800 5.6634 5.5458 3.9678
In table 3 the time instants 0.25, 0.75 and 1.5 were the same as for the
isentropic case for convenience. For the first two time instants the wave is still
inside the domain, and has left at the third. Now we observe about sixth order
of accuracy, when no information has reached the boundary as we should expect.
where the parameters are chosen as, α = 1 and β = 250. The Mach number is
chosen to be 0.5.
10
Figure 4: Acoustic velocity and error fields for the non isentropic linearized 1D
Euler equation using 400 points in the x-direction, respectively.
The wave in figure 4 is moving to the right and therefore corresponds to the
eigenvalue U + a. The only Riemann invariant that is non zero with the initial
values used is the one corresponding to the same eigenvalue.
Table 4: Order of accuracy for SBP 3-6 using the simultaneous approximation
term method for the non-isentropic Euler equations, with right going acoustic
wave.
# of grid points /Time 0.05 0.15 0.3
100
200 5.9284 5.9189 3.9354
400 5.9424 5.9353 3.9585
800 5.8441 5.8203 3.9667
The reason for using different time instants was the greater speed of the right
going wave. So in order to capture it inside the domain smaller time instants had
to be used. At the first two time instants 0.05 and 0.15 the wave is still inside
the domain and at the last instant 0.3 it has left the computational domain.
As before we compare the numerical solution with the exact solution and the
results are similar to the isentropic case. Except of course the observed close to
sixth order accuracy when the wave was still inside the domain cf. table 4.
11
Figure 5: Acoustic density and error fields for the non isentropic linearized 1D
Euler equation using 400 points in the x-direction, respectively.
Table 5: Order of accuracy for SBP 3-6 using the simultaneous approximation
term method for the non-isentropic Euler equations, with right going entropy
wave.
# of grid points /Time 0.25 0.75 1.5
hline 100
200 5.9243 5.9148 4.0473
400 5.9324 5.9253 4.0852
800 5.8960 5.8899 4.0885
In the above experiment see figure 5 and table 5, we have chosen the initial
condition such that only one Riemann invariant, namely entropy, was non-zero.
All three test cases for the non-isentropic Euler equations displayed sixth
order accuracy and fourth order when the wave reaches the boundary as theory
predicts. Also the wiggles that were observed in the isentropic case with the non-
smooth initial condition were not observed and are discussed in the following
section.
and the initial density perturbation ρ0 is set to zero. As before the Mach number
M = U/a was chosen to be 0.5.
12
1
Truncated sin4
Gaussian
0.9
0.8
0.7
0.6
0.5
y
0.4
0.3
0.2
0.1
0
0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1
x
Figure 6: The two initial conditions, solid for the truncated sin4 curve and
dashed for the Gaussian curve.
Due to the discontinuity in the first derivative there are wiggles in the so-
lution as can be seen in Fig. 7. The discontinuity leads to high frequency
oscillations in the Fourier domain that cannot be represented by the finite dif-
ference method.
These wiggles are not present when we use the C ∞ initial data that were
used in the non isentropic case
2
u0 (x, 0) = αe(−β(x−0.5) )
13
Time: 0.555 Time: 1.555
0.3 0.2
Truncated sin4
Gaussian
0.2
0.1
0.1
0
0
−0.1
−0.1
u
u
−0.2
Truncated sin4
−0.2 Gaussian
−0.3
−0.3
−0.4
−0.4
−0.5 −0.5
0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1 0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1
x x
(a) The fastest acoustic wave is (b) The second, slower acoustic
leaving the domain, notice the wave is leaving, and again notice
wiggles at the right boundary. the wiggles at the left boundary
this time.
−3 Time: 2.155
x 10
6
Truncated sin4
Gaussian
0
u
−2
−4
−6
0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1
x
Figure 7: Numerical solution using different initial data, solid denotes the one
with truncated sin4 and dashed the Gaussian curve.
We have seen the high frequency oscillations that occur in the numerical
solution when using the truncated sin4 curve as initial condition. These oscil-
lations are most likely the cause of the fact that sixth order accuracy was not
observed when no wave had reached the boundary in the isentropic case.
14
For the SBP 3-6, the error is about one order of magnitude smaller until the
wave reaches the boundary were the error has a jump. When the wave leaves
the boundary the accuracy is not sixth order as it was in the interior but fourth
order.
When using the SBP 1-2 it is also apparent that the error grows linearly
with time, this can also be seen when zooming in on 9. This can be observed
with all finite difference methods.
0.2
0.1
−0.1
−0.2
6
Time 2 1
0.8
0.6
0.4
0 0.2 x
0
Figure 8: The error with time for the density with 100 and 400 points using
SBP 1-2.
−3
x 10
4
−2
−4
6
2 1
0.8
0.6
0.4
Time 0 0.2
0
x
Figure 9: The error with time for the density with 100 and 400 points using
SBP 3-6.
15
now given by
2
u0 (x, 0) = αe(−β(x−0.5) )
(45)
2
p0 (x, 0) = −αe(−β(x−0.5) )
(46)
2
0 (−β(x−0.5) )
ρ (x, 0) = αe (47)
where the parameters are chosen as α = 1 and β = 250.
In the previous test cases for the non-isentropic Euler equations there are
now three waves present a left and a right going acoustic wave and a right going
entropy wave.
The same behavour is observed as for the three test cases for the linear non-
isentropic Euler equations with Mach number 0.5. That is that there are some
problems at the boundaries which were not anticipated. Other then that the
only difference is that the calculations must be run for longer time in order to
let the slowest wave leave the domain, namely the entropy wave.
8 Conclusions
The summation by parts operators of overall fourth order are used together
with the projection method and the simultaneous approximation term method
to implement the boundary conditions and the classical fourth order Runge-
Kutta method for time-stepping. The isentropic linearized 1D Euler equations
and the non isentropic linearized 1D Euler equations are considered. Note that
the projection method was not used for the non isentropic linearized Euler
equations.
No noticeable differences were observed between the projection or simulta-
neous approximation term method, neither in accuracy or time to solve the
problem for the isentropic linearized Euler equations.
A comparison between summation by parts operators with different orders
of accuracy showed that a 50 % increase in computation time for the high order
method reduced the error by about two orders magnitude compared with the
second-order method.
The errors of the reflected numerical waves are considerably larger then
the errors of the outgoing physical waves. These problems at the boundary
16
that were observed with the high order method were not anticipated. However,
when the same method and boundary conditions were implemented for the scalar
Kreiss equation, the same problem at the boundary was found. One possible
explanation of the problem is that the discrete method allows for unphysical
waves traveling in the wrong direction, which the boundary conditions will not
handle properly. Further investigations will be conducted to determine the
source of the problem.
9 Appendix
The SBP operator with sixth order accuracy in the interior and third near the
boundary (SBP 3-6) has a standard centered finite difference operator in the
interior of D
1 3 3
D(j, j − 3) = − , D(j, j − 2) = , D(j, j − 1) = − ,
60h 20h 4h
3 3
D(j, j) = 0, D(j, j + 1) = , D(j, j + 2) = − ,
4h 20h
1
D(j, j + 3) = for j = 7, . . . , N − 6
60h
H is a diagonal matrix with ones in the diagonal except for some elements
in the beginning and end of the diagonal. In this case the first ones read
13649/43200 12013/8640 2711/4320 5359/4320 7877/8640 and 43801/43200,
and in reverse order at the end.
Below is the boundary operator for D in the SBP 3-6 operator, namely
D(1:6,1:9) = Q/h. The indices refer to indices in D but the same operator is
located in the bottom right half corner with opposite sign and the elements are
in a different order as the MATLAB code shows.
D(N-5:N,N-8:N) = -Q(6:-1:1,9:-1:1)/h;
Q( 1 , 1 )= −1.5825335189391164188
Q( 1 , 2 )= 1.9968007424231323418
Q( 1 , 3 )= .47988863653014872884 ∗ 10−2
Q( 1 , 4 )= −.66986592424353432486
Q( 1 , 5 )= .25079981439421691455
Q( 1 , 6 )= 0
Q( 1 , 7 )= 0
Q( 1 , 8 )= 0
Q( 1 , 9 )= 0
Q( 2 , 1 )= −.45374732928216654180
Q( 2 , 2 )= 0
Q( 2 , 3 )= .20413995948833208469
Q( 2 , 4 )= .42505341435666916396
Q( 2 , 5 )= −.19379006076750187297
Q( 2 , 6 )= .18344016204667166126 ∗ 10−1
Q( 2 , 7 )= 0
Q( 2 , 8 )= 0
Q( 2 , 9 )= 0
Q( 3 , 1 )= −.24160826263371449650 ∗ 10−2
17
Q( 3 , 2 )= −.45229312676749047092
Q( 3 , 3 )= 0
Q( 3 , 4 )= .23791958686831427518
Q( 3 , 5 )= .34541374646501905816
Q( 3 , 6 )= −.12862412393950571745
Q( 3 , 7 )= 0
Q( 3 , 8 )= 0
Q( 3 , 9 )= 0
Q( 4 , 1 )= .17061018846799776078
Q( 4 , 2 )= −.47641039995023947254
Q( 4 , 3 )= −.12035827579772345587
Q( 4 , 4 )= 0
Q( 4 , 5 )= .42710082726876904895
Q( 4 , 6 )= −.14377682403433476395 ∗ 10−1
Q( 4 , 7 )= .13435342414629595074 ∗ 10−1
Q( 4 , 8 )= 0
Q( 4 , 9 )= 0
Q( 5 , 1 )= −.86915492361728238331 ∗ 10−1
Q( 5 , 2 )= .29554398882823409928
Q( 5 , 3 )= −.23775972239854428505
Q( 5 , 4 )= −.58114341331302103170
Q( 5 , 5 )= 0
Q( 5 , 6 )= .75652321103635055647
Q( 5 , 7 )= −.16452964326520248826
Q( 5 , 8 )= .18281071473911387584 ∗ 10−1
Q( 5 , 9 )= 0
Q( 6 , 1 )= 0
Q( 6 , 2 )= −.25155437851495019140 ∗ 10−1
Q( 6 , 3 )= .79610054564964270222 ∗ 10−1
Q( 6 , 4 )= .17590922581676217438 ∗ 10−1
Q( 6 , 5 )= −.68025083141176381057
Q( 6 , 6 )= 0
Q( 6 , 7 )= .73970913906075203762
Q( 6 , 8 )= −.14794182781215040752
Q( 6 , 9 )= .16437980868016711947 ∗ 10−1
18
References
[1] M. Billson, L.-E. Eriksson, and L. Davidson. Acoustics Source Terms for
the Linear Euler Equations on Conservative Form. AIAA Paper, 2002-2582,
2002.
[2] M.H. Carpenter, D. Gottlieb, and S. Abarbanel. Time-Stable Bound-
ary Conditions for Finite-Difference Schemes Solving Hyperbolic Systems:
Methodology and Application to High-Order Compact Schemes. J. Comp.
Phys., 111:220–236, (1994).
[3] G. Dahlquist and Å. Björck. Numerical Methods. Prentice-Hall, 1974.
[4] Crighton D.G. Computational Aeroacoustics For Low Mach Number Flows.
In J.C. Hardin and M.Y. Hussaini, editors, Computational Aeroacoustics,
ICASE/NASA LaRC Series, 1995.
[5] B. Gustafsson. The Convergence Rate for Difference Approximations to
Mixed Initial Boundary Value Problems. Math. Comp., 29(130):396–406,
(1975).
[6] H.-O. Kreiss and G. Scherer. Finite Element and Finite Difference Meth-
ods for Hyperbolic Partial Differential Equations. In C. De Boor, editor,
Mathematical Aspects of Finite Elements in Partial Differential Equations.,
pages 195–211. Academic Press, Inc., (1974).
[7] J. Lighthill. On sound generated aerodynamically. I. General theory. Proc.
of the Royal Soc. of London A, 211:564–587, (1952).
[8] P. Olsson. Summation by Parts, Projections, and Stability. I. Math. Comp.,
64:1035–1065, (1995).
[9] L.F. Richardson. The Approximate Arithmetical Solution by Finite Dif-
ferences of Physical Problems involving Differential Equations, with an
Application to the Stresses in a Masonry Dam. Philo. Trans. of the Royal
Soc. of London, 210:307–357, (1910).
[10] B. Strand. Summation by Parts for Finite Difference Approximations for
d/dx. J. Comp. Phys., 110:47–67, (1994).
[11] C.K.W Tam. Computational aeroacoustics: Issues and methods. AIAA J.,
33:1788–1796, (1995).
19
Paper B
HIGH ORDER FINITE DIFFERENCE OPERATORS WITH
THE SUMMATION BY PARTS PROPERTY BASED ON DRP
SCHEMES
Stefan Johansson
Division of Scientific Computing
Department of Information Technology
Uppsala University
P.O. Box 337
SE 75105 Uppsala
Sweden
Abstract.
Strictly stable high order finite difference methods based on Tam and Webb’s dis-
persion relation preserving schemes have been constructed. The methods have been
implemented for a 1D hyperbolic test problem, and the theoretical order of accuracy
is observed.
1 Introduction
Computational aeroacoustics (CAA) has been given increased interest because of
the need to better control noise levels from aircrafts, trains, cars, etc. due to in-
creased transport and stricter regulations from authorities. Other applications range
from simulating sound propagation in the atmosphere to improved design of musical
instruments.
Much of the current effort in CAA involves the development of schemes for approx-
imating derivatives in a way that better preserves the physics of wave propagation, a
phenomenon of less significance in typical aerodynamic computations. An example of
such a scheme is the Dispersion Preserving Relation (DRP) scheme proposed by Tam
and Webb [5].
In scientific computing it is imperative that the numerical methods are stable. A
good approximation of the wave propagation requires high order methods and for
difference methods problems arise when applying boundary conditions. To accurately
prescribe boundary conditions the simultaneous approximation term (SAT) method [1]
can be used if the space derivatives are discretized by a summation by parts (SBP)
operator proposed by Kreiss and Scherer [3].
In this paper SBP operators are derived for DRP type schemes, which together with
the SAT method lead to strictly stable methods.
2 Theory
In recent years, central difference methods of the type proposed by Tam and Webb [5]
called Dispersion Preserving Relation schemes (DRP) have attracted interest in aeroa-
coustics. The formal accuracy of the method is lowered to get a better approximation
of the wave number.
2
Another development in the theory of finite difference methods is high order opera-
tors Q = h1 H −1 B with the summation by parts property (SBP) developed by Strand
[4], i.e. B + B T = diag(−1, 0, . . . , 0, 1), with a discrete norm H and step size h. A
consequence is that a stability proof done by the energy method for the continuous
problem is valid for the semi-discrete problem if a SBP operators are used.
What we have done is to construct a SBP operator for difference schemes of DRP
type. The motivation has been to combine the good wave resolution of DRP schemes
with the good stability properties of SBP operators when using using SAT to prescribe
boundary conditions in a strictly stable way, first shown by Carpenter et al. [1].
Consider the discrete function v approximating the continuous function u on {xj }N 0
where xj = hj, h = 1/N and let vj denote v(xj ). A classical central finite difference
method approximating du/dx at xm is
l
1X
(Qv)j = αj (vm+j − vm−j ) (2.1)
h j=1
where αk , k = 1 . . . l are chosen such that the accuracy is of order 2l.
Tam and Webb [5] proposed that the accuracy is lowered to 2(l − 1) leaving a free
parameter and then minimize the wave number error
Z π/2
|hk − hk̃|2 d(hk) (2.2)
−π/2
where k and k̃ are the exact and the approximate wave numbers, respectively.
A comparison between standard centered finite difference methods and DRP schemes
is given in figure 2.1. Noticeable is that the fourth order DRP scheme derived from
a sixth order standard scheme approximates the wave number about as well as the
eighth order standard scheme. In figure 2.2 it can be seen that the DRP schemes in an
interval near kh = 1 lies strictly above the line defining the exact group velocity. The
approximation of the wave number and group velocity can be improved for hk < 2 by
choosing a larger interval to optimize over in equation 2.2, at the expense of a poorer
approximation for kh > 2.
3
3.5
2.5
approximate wave number
2
g
f
d e
1.5
c
b
1
a
0.5
0
0 0.5 1 1.5 2 2.5 3 3.5
kh
Figure 2.1: Approximate wave number vs exact for 2nd order standard centered
difference method (SC2) (a) (dotted), SC4 (b), SC6 (c), SC8 (d) (dashed) and
DRP schemes with order four (e) six (f) and eight (g) (solid).
4
1.5
0.5
0
Approximate group velocity
−0.5
−1 a
−1.5
b
−2
c
−2.5 d
e
f
−3
g
−3.5
0 0.5 1 1.5 2 2.5 3 3.5
kh
Figure 2.2: Approximate group velocity vs exact for 2nd order standard centered
difference method (SC2) (a) (dotted), SC4 (b), SC6 (c), SC8 (d) (dashed) and
DRP schemes with order four (e) six (f) and eight (g) (solid).
We have for the simplest hyperbolic equation, sometimes called the Kreiss equation,
ut = ux , x ∈ [0, 1], t ≥ 0
u(x, 0) = f (x) , x ∈ [0, 1] (3.2)
u(1, t) = g(t) t ≥ 0
where
(u, v)h = huT Hv. (3.5)
duj
The matrix Q is a banded matrix were row j approximate . Of course Q has to be
dx
modified at the l first and l last rows, where l is equal to or larger than the bandwidth
of Q. The matrix H is a modified identity matrix, its l first elements are modified.
Since equation (3.4) is the discrete analogue of integration by parts, it is called the
summation by parts property.
An example of such an operator Q and scalar product H is
−1 1 0 ... 0
0.5 0 . . . 0
.. ..
−0.5 0
0.5 . .
0 1 0
1 . .
Q= 0 . .. . .. . ..
, H = . . . . . . . .
.
0 . . . . .
h
.. .. 0 1 0
. . −0.5 0 0.5 0 . . . 0 0.5
0 ... 0 −1 1
Operators if this kind were described by Kreiss and Scherer [3], and high order
operators were later constructed by Strand [4]. High order operators Q have the
following structure: in the interior a centered high order finite difference stencil is
used and near the boundary where the stencil cannot be used, a small dense matrix is
used instead.
Given a DRP scheme of order 2τ with coefficients αj , j = 1 . . . τ + 1 a summation by
parts operator Q which is accurate of order τ near the boundary and a diagonal norm
matrix H with property that h(HQ + (HQ)T ) = diag(−1, 0, . . . , 0, 1) will be derived.
d
For simplicity we approximate dx for x = [0, ∞) and let h = 1. The difference
operator Q has to be modified for rows 1 . . . 2τ .
In order for HQ to be nearly antisymmetric and have the SBP property the following
relation must hold
= − 12
h0,0 q0,0
h0,0 q0,1 +h1,1 q1,0 = 0
h0,0 q0,2 −α2 =0 (3.6)
h1,1 q1,2 −α1 =0
h1,1 q1,3 −α2 =0
First order accuracy near the boundary leads to two equation systems
½
q0,0 + q0,1 + q0,2 = 0
(3.7)
q1,0 + q1,2 + q1,3 = 0
½
q0,1 + 2q0,2 = 1
(3.8)
2q1,2 + 3q1,3 = 1
Using the conditions for antisymmetry of HQ and multiplying the first equation in
each system by h0,0 and the second equation by h1,1 yields,
For τ > 2 the system of equations for HQ is undetermined thus leading to free param-
eters, one for τ = 3 and three for τ = 4. The free parameters were initially chosen such
that the bandwidth of Q was minimized, but as is seen in figure 3.1 the spectral radius
for the fourth order method is very large and leads to a restrictive CFL condition.
The spectral radius of Q can be made smaller if the three parameters are chosen as
[0.502, −0.1, 0.799], which are close to the values that minimize the bandwidth. These
values were found by trail and error.
The eigenvalues in figure 3.1 were computed using MATLAB, and a computation in
exact arithmetic using MAPLE showed that all eigenvalues are imaginary for SBP-2-
4(6). Computations for the other SBP operators were unfortunately too time consum-
ing to complete.
The original operators by Strand [4] are denoted by SBP-τ -2τ and the new ones
SBP-τ -2τ -(σ). The number in parenthesis denote the order of the difference method
7
modified for better wave approximation, in this article σ = 2(τ + 1). The operators
that have been derived are SBP-1-2(4), SBP-2-4(6) SBP-3-6(8) and SBP-4-8(10), where
Tam and Webb’s DRP scheme corresponds to SBP-2-4(6) in the interior. They can be
found in the appendix.
0.015
0.01
0.01
0.005
0.005
Im
Im
0 0
−0.005
−0.005
−0.01
−0.01
−0.015
−0.015 −0.02
−1 −0.5 0 0.5 1 1.5 −8 −6 −4 −2 0 2 4 6 8
Re x 10
−7 Re −4
x 10
0.02
0.15
0.015
0.1
0.01
0.05
0.005
Im
Im
0 0
−0.005
−0.05
−0.01
−0.1
−0.015
−0.15
−0.02
−0.2 −0.025
−1.5 −1 −0.5 0 0.5 1 1.5 −1 −0.8 −0.6 −0.4 −0.2 0 0.2 0.4 0.6 0.8 1
Re −4
x 10 Re −4
x 10
4 Numerical experiments
The summation by parts operators for DRP schemes were tested for the hyperbolic
system
uI
µ ¶ µ ¶
1 0
ut + ux = 0, u = ,
0 −1 uII
0 ≤ x ≤ 1, t ≥ 0,
The boundary conditions were imposed using the simultaneous approximation term
(SAT) method [1].
In the SAT method one does not impose the exact boundary conditions (b.c.) which
might destroy the SBP property and therefore strict stability. Instead the boundary
conditions are imposed as a penalty term at the same accuracy as the discretization.
In our case, the SAT formulation reads
µ ¶ µ ¶
1 0 1 1 0
vt + Q ⊗ v = − H −1 ⊗ P (4.1)
0 −1 h 0 1
where v = (v0I , v0II , . . . , vN
I II T
, vN ) denotes the numerical approximation of the exact
solution u, and the matrix P which is imposing the boundary conditions and reads
1 −1 0 ... 0 0
0 0 ... 0 0
.. .. .. ..
P = (4.2)
. . . .
0 0 ... 0 0
0 0 ... 0 −1 1
Table 4.1: Order of accuracy for uI using SBP 2-4 and SBP 2-4(6) for the 1D
test case at t = 1.5.
Table 4.2: Order of accuracy for uI using SBP 3-6(8) for the 1D test case at
t = 1.5.
Table 4.3: Order of accuracy for uI using SBP 4-8(10) for the 1D test case at
t = 1.5.
The orders of accuracy for SBP-2-4 (SBP operator, 2nd order near boundaries, 4th
order standard scheme in interior) and SBP-2-4(6) (SBP operator, 2nd order near
boundaries, 4th order DRP scheme derived from 6th order standard scheme in interior)
agree with theory, saying that the global order of accuracy for a finite difference scheme
is at most one order higher than the accuracy at the boundaries [2].
5 Conclusions
New strictly stable high order finite difference methods have been developed. They
are based on dispersion relation preserving type schemes proposed Tam and Webb [5]
and strictl stability is guaranteed by requiring that the methods have the summation
by parts property introduced by Kreiss and Scherer [3].
The methods have been developed using MAPLE and implemented in MATLAB.
Numerical experiments show that the order of accuracy corresponds to theory.
10
6 Appendix
6.1 SBP operators with diagonal norm and minimal bandwidth
6.1.1 Second order at the boundary, SBP-2-4(6)
A SBP operator with a fourth order DRP finite difference operator in the interior
and second order near the boundary (SBP 2-4(6)) has the following centered finite
difference operator in the interior of hQ
hQ(j, j−4) = −α4 , hQ(j, j−3) = −α3 , hQ(j, j−2) = −α2 , hQ(j, j−1) = −α1 ,
hQ(j, j) = 0,
hQ(j, j+1) = α1 , hQ(j, j+2) = α2 , hQ(j, j+3) = α3 hQ(j, j+4) = α4 for j = 9, . . . , N −8
11
α1 = 0.8331572598964345 α2 = −0.2331572598964345
α3 = 0.05230549233656718 α4 = −0.005939804278316752
H is a diagonal matrix with ones in the diagonal except for the first and last six
elements of the diagonal. In this case the first six elements read
α1 = 0.85710439841851208608 α2 = −0.26526216962115666981
α3 = 0.074805208507138722005 α4 = −0.014448456841621349730
α5 = 0.0013596285337740972877
H is a diagonal matrix with ones in the diagonal except for the first and last eight
elements of the diagonal. In this case the first eight elements read
6.2 Modified SBP-4-8(10) operator with diagonal norm and smaller spectral
radius
q00 = -1.695766991157320 q01 = 2.291032605468909
q10 = -0.4426726432456110 q11 = 0
q20 = 0.5330534182148309 q21 = -2.407040818496168
q30 = -0.1184427737693269 q31 = 0.6618843657314521
q40 = 1.830612773966382 q41 = -8.288032061663463
q50 = -0.6245601110692797 q51 = 2.709330688538044
q60 = 0.3850559271659521 q61 = -1.714360699440487
q70 = -0.05705219972778544 q71 = 0.2742239481189889
q02 = -0.4639662012147939 q03 = 0.7228532812132124
q12 = 0.4048092994116597 q13 = - 0.7805039834619138
q22 = 0 q23 = 11.03207597325678
q32 = -1.573371461527950 q33 = 0
q42 = 14.02365705116605 q43 = -10.10065328335495
q52 = -4.343572255913729 q53 = 3.002892932574174
q62 = 2.860630607831792 q63 = - 2.082622244166414
q72 = -0.4973385909142549 q73 = 0.3800614179644372
q04 = - 2.553891864910215 q05 = 2.70983565186940
q14 = 2.234132119994110 q15 = - 2.27133994516961
q24 = -22.47769049395616 q25 = 21.6521061372589
q34 = 2.308946619504642 q35 = - 2.13484805031142
q44 = 0 q45 = 3.77017058952430
q54 = - 1.212267071714534 q55 = 0
q64 = 0.6108231151820283 q65 = - 0.690362730945967
q74 = - 0.06793041339961766 q75 = 0.0990714324530388
q06 = - 1.20540452249925 q07 = 0.1953080412300543
q16 = 1.03696146986553 q17 = -0.1813863173941616
q26 = -10.2885737022032 q27 = 1.956069485925045
q36 = 1.06826234200632 q37 = -0.2131866118947915
q46 = - 1.37062437516525 q47 = 0.1666886279744916
q56 = 0.498101251671513 q57 = -0.07816772353808257
q66 = 0 q67 = 0.8513566887329923
q76 = - 0.778525470347940 q77 = 0
q08 = 0 q09 = 0
q18 = 0 q19 = 0
q28 = 0 q29 = 0
q38 = 0.0007555702610770257 q39 = 0
q48 = -0.03512461897276456 q49 = 0.003305296525213877
q58 = 0.05847352857794642 q59 = -0.01129402979947775
q68 = -0.2873839347920289 q69 = 0.08104365275464091
q78 = 0.8491456051312209 q79 = -0.2627990311996895
15
q010 = 0 q011 = 0
q110 = 0 q111 = 0
q210 = 0 q211 = 0
q310 = 0 q311 = 0
q410 = 0 q411 = 0
q510 = 0.001062790673425422 q511 = 0
q610 = -0.01565339823898801 q611 = 0.00147301591647824960
q710 = 0.0741105916175047861 q711 = -0.0143142931603533612
q012 = 0
q112 = 0
q212 = 0
q312 = 0
q412 = 0
q512 = 0
q612 = 0
q712 = 0.001347003464450247
16
REFERENCES
1. M.H. Carpenter, D. Gottlieb, and S. Abarbanel. Time-Stable Boundary Conditions
for Finite-Difference Schemes Solving Hyperbolic Systems: Methodology and Appli-
cation to High-Order Compact Schemes. J. Comp. Phys., 111:220–236, (1994).
2. B. Gustafsson, H.-O. Kreiss, and J. Oliger. Time Dependent Problems and Difference
Methods. John Wiley & Sons, New York, (1995).
3. H.-O. Kreiss and G. Scherer. Finite Element and Finite Difference Methods for
Hyperbolic Partial Differential Equations. In C. De Boor, editor, Mathematical As-
pects of Finite Elements in Partial Differential Equations., pages 195–211. Academic
Press, Inc., (1974).
4. B. Strand. Summation by Parts for Finite Difference Approximations for d/dx. J.
Comp. Phys., 110:47–67, (1994).
5. C.K.W Tam and Webb J. C. Dispersion-Relation-Preserving Finite Difference
Schemes for Computational Acoustics. J. Comp. Phys., 107:262–281, (1993).
Paper C
HIGH ORDER SUMMATION BY PARTS
OPERATOR BASED ON A DRP SCHEME
APPLIED TO 2D AEROACOUSTICS
Stefan Johansson
Abstract
A strictly stable high order finite difference method based on Tam
and Webb’s dispersion relation preserving scheme in the interior has been
verified for a 2D aeroacoustic problem. Results show that the method
gives lower dispersion error than a similar method derived by Strand [11],
which is based on standard sixth order difference approximation in the
interior, when boundary effects are not important.
1 Introduction
Numerical simulation of wave propagation problems has been studied us-
ing computers for the last 50 years and is still actively studied. For the
last 10 years computational aeroacoustics (CAA) has emerged as a sub-
field. In CAA sound generation and sound propagation are modeled by
the Navier-Stokes or Euler equations. High accuracy is required due to
long time integration, leading to the need of highly accurate numerical
methods.
Tam and Webb introduced Dispersion Preserving Relation (DRP) sche-
mes [13] that give a better approximation of the wave number than stan-
dard finite difference schemes, thus giving a smaller dispersion error.
One of the more difficult problems for finite difference approximation
is how to apply numerical boundary conditions in a stable way. One ap-
proach proposed by Kreiss and Scherer called summation by parts (SBP)
[7] is to devise methods that give the same energy estimate as for the
continuous problem. Thus, the SBP methods are strictly stable by con-
struction and one does not have to use the algebraically difficult GKS
theory [5] to prove stability.
High accuracy and strict stability have been combined in [6], where
theoretical results and experimental verification were presented for a model
problem in 1D. The main contribution of the present paper is the appli-
cation of the resulting method to aeroacoustic wave propagation in 2D
[12]. The propagation of acoustic, entropy and vorticity waves is com-
puted using the linearized 2D Euler equations. In addition we discuss the
application of numerical dissipation where the damping does not affect
the better resolution of the DRP method compared to a standard finite
difference method.
The outline of the paper is as follows. In Section 2, we introduce the
2D linearized Euler equations to model sound propagation. In Section 3,
the theory for a scalar test case in 1D is recapitulated, using the energy
method to give an energy estimate for the continuous problem and ex-
plaining summation by parts which gives the same estimate in a discrete
norm, cf. [4]. A discussion on how to apply artificial dissipation to Disper-
sion Relation Preserving schemes is given as well. In Section 4 numerical
results that verify the numerical method are presented for a problem in
computational aeroacoustics.
ρ0 (ρu)0
∂ 0
(ρu)0 + ∂
ρ0 u0 u0 + (ρu)0 u0 + p0
+
∂t (ρv) ∂x ρ0 v0 u0 + (ρv)0 u0
(ρE)0 0
ρ0 H0 u + (ρH) u0 0
(ρv)0
∂ ρ0 u0 v 0 + (ρu)0 v0
=0 (1)
∂y ρ0 v0 v 0 + (ρv)0 v0 + p0
ρ0 H0 v 0 + (ρH)0 v0
(ρu)0 − ρ0 u0
u0 = (2)
ρ0
µ ¶
0 0 1¡ 0 0 ¢
p = (γ − 1) (ρE) − 2 (ρu) · u0 − ρ u0 · u0 (3)
2
3 Theory
To make the paper self-contained the theory for a scalar test problem in
1D is recapitulated below.
2
3.1 Energy Method
A sufficient condition for well-posedness for an initial boundary value
problem is to give a bound on the solution in terms of the initial value
and boundary data, an energy estimate.
For example, introduce the L2 scalar product and norm
Z 1
(u, v) = uv dx , ||u||2 = (u, u). (4)
0
We have for the simplest hyperbolic equation, sometimes called the Kreiss
equation
ut = ux , x ∈ [0, 1], t ≥ 0
u(x, 0) = f (x) , x ∈ [0, 1] (5)
u(1, t) = g(t) t ≥ 0
the following energy estimate
d||u||2
= (u, ut )+(ut , u) = (ux , u)+(u, ux ) = [u2 ]10 = g 2 (t)−u2 (0, t). (6)
dt
That leads to an estimate on the norm of u in terms of the initial and
boundary data [4].
d||u||2H
= (u, ut )H +(ut , u)H = (u, Qu)H +(Qu, u)H = uT (HQ+(HQ)T )u
dt
(7)
The same estimate as in the continuous is given if (u, Qu)H + (Qu, u)H =
[u2 ]10 , or equivalent HQ + (HQ)T = diag(−1, 0, . . . , 0, 1). This property
is called summation by parts (SBP).
Operators with this property were proposed by Kreiss and Scherer
[7] and extended to high order by Strand [11]. In [6] SBP operators
for difference schemes of Dispersion Relation Preserving (DRP) schemes
described in Section 3.3 type were developed.
where k and k̃ are the exact and the approximate wave numbers, respec-
tively.
3
A comparison between standard centered finite difference methods and
the DRP schemes is given in Figure (1). The straight line shows the exact
non-dimensional wave number hk. The dotted, dotted-dashed and dashed
lines show the approximate non-dimensional wave numbers hk̃ for different
schemes. As seen the fourth order DRP scheme derived from the sixth
order standard centered difference method gives a good approximation for
the non-dimensional wave numbers up to about π/2 whereas the standard
sixth order method gives a good approximation up to about 1.2. The
details of the present fourth order DRP scheme and 6th, 8th order DRP
schemes can be found in [6].
3.5
2.5
Approximate wave number
1.5
0.5
0
0 0.5 1 1.5 2 2.5 3 3.5
kh
4
idea used for filters proposed by [14].
1+p/2 p
Damping charcteristics of V + (−1/2) δ V
1
p=2
p=4
0.9 p=6
p=8
0.8
0.7
0.6
Fourier transform
0.5
0.4
0.3
0.2
0.1
0
0 0.5 1 1.5 2 2.5 3 3.5
k∆x
d
kukH = (ut , u)H + (u, ut )H = (Qu + Su, u)H + (u, Qu + Su)H =
dt
uT (HQ + (HQ)T + S + S T )u (9)
5
coustic test problem. The results were compared with those obtained with
a SBP operator based on a standard central finite difference stencil.
The 2D linearized Euler equations described in Section 2 were solved
using those SBP operators to discretize x and y derivatives and using
the standard fourth order Runge-Kutta method to discretize the time
derivative.
A benchmark problem was chosen from [12], choosing u0 = 0.5, v0 = 0
with the following initial condition
x2 +y 2
p0 (x, y, 0) = e−log(2) 9 (10)
2 2 (x−67)2 +y 2
−log(2) x +y
ρ0 (x, y, 0) = e 9 + 0.1e−log(2) 25 (11)
(x−67)2 +y 2
u0 (x, y, 0) = 0.04ye −log(2) 25 (12)
(x−67)2 +y 2
0 −log(2)
v (x, y, 0) = −0.04(x − 67)e 25 (13)
6
significant damping for wave numbers hk < π/2 cf. Figure 2, which affects
the higher resolution of the DRP based SBP method.
0.1
0.08
0.06
0.04
0.02
−0.02
−0.04
−0.06
100
50 100
50
0
0
−50
−50
−100 −100
y
x
Figure 3: Surface plot of acoustic density at time 40, without filtering, top:
N=101, bottom: N=201.
7
DRPSBP24, T=40, NlK, N=100, ρ
0.1
Exact
Numerical
0.08
0.06
0.04
0.02
ρ
−0.02
−0.04
−0.06
−100 −80 −60 −40 −20 0 20 40 60 80 100
x
0.06
0.04
0.02
ρ
−0.02
−0.04
−0.06
−0.08
−100 −80 −60 −40 −20 0 20 40 60 80 100
x
8
DRPSBP24, T=40, NlK, N=200, ρ
0.12
Exact
Numerical
0.1
0.08
0.06
0.04
ρ
0.02
−0.02
−0.04
−0.06
−100 −80 −60 −40 −20 0 20 40 60 80 100
x
0.08
0.06
0.04
ρ
0.02
−0.02
−0.04
−0.06
−100 −80 −60 −40 −20 0 20 40 60 80 100
x
9
DRPSBP24, T=40, 0lK, N=100, ρ
0.1
Exact
Numerical
0.08
0.06
0.04
0.02
ρ
−0.02
−0.04
−0.06
−100 −80 −60 −40 −20 0 20 40 60 80 100
x
0.06
0.04
0.02
ρ
−0.02
−0.04
−0.06
−100 −80 −60 −40 −20 0 20 40 60 80 100
x
Figure 6: Numerical solution of ρ0 at time 40, N = 101, sixth order filter, top:
DRPSBP-2-4, bottom: SBP-3-6.
10
DRPSBP24, T=40, 0lK, N=200, ρ
0.1
Exact
Numerical
0.08
0.06
0.04
0.02
ρ
−0.02
−0.04
−0.06
−100 −80 −60 −40 −20 0 20 40 60 80 100
x
0.06
0.04
0.02
ρ
−0.02
−0.04
−0.06
−100 −80 −60 −40 −20 0 20 40 60 80 100
x
Figure 7: Numerical solution of ρ0 at time 40, N = 201, sixth order filter, top:
DRPSBP-2-4, bottom: SBP-3-6.
11
DRPSBP-2-4 SBP-3-6
L2-error along the x-axis in ρ 0.00431254 0.00788948
L2-error along the x-axis in p 0.00431147 0.00788902
L2-error along the x-axis in u 0.00428112 0.00649726
DRPSBP-2-4 SBP-3-6
L2-error along the x-axis in ρ 0.00049776 0.00047037
L2-error along the x-axis in p 0.00049762 0.00047037
L2-error along the x-axis in u 0.00049358 0.00046720
DRPSBP-2-4 SBP-3-6
L2-error along the x-axis in ρ 0.01022241 0.01020396
L2-error along the x-axis in p 0.01018905 0.01017082
L2-error along the x-axis in u 0.00991698 0.00986553
DRPSBP-2-4 SBP-3-6
L2-error along the x-axis in ρ 0.00118599 0.00114419
L2-error along the x-axis in p 0.00118562 0.00114392
L2-error along the x-axis in u 0.00117612 0.00113471
DRPSBP-2-4 SBP-3-6
L2-error along the x-axis in ρ 0.00444214 0.00723430
L2-error along the x-axis in p 0.00436382 0.00723236
L2-error along the x-axis in u 0.00372037 0.00676451
DRPSBP-2-4 SBP-3-6
L2-error along the x-axis in ρ 0.00074894 0.00063326
L2-error along the x-axis in p 0.00071616 0.00063313
L2-error along the x-axis in u 0.00071466 0.00063204
12
DRPSBP-2-4 SBP-3-6
L2-error along the x-axis in ρ 0.00903172 0.00910053
L2-error along the x-axis in p 0.00885448 0.00895898
L2-error along the x-axis in u 0.00879172 0.00881355
DRPSBP-2-4 SBP-3-6
L2-error along the x-axis in ρ 0.00148481 0.00138574
L2-error along the x-axis in p 0.00147850 0.00138488
L2-error along the x-axis in u 0.00147532 0.00138194
The numerical results for the 2D linearized Euler equations show that
the better approximation of the wave number for the DRP based SBP
operator of fourth order (second order near the boundary) results in a
smaller L2 -error than for a SBP operator based on standard sixth order
(third order near the boundary) stencil. The results are valid when the
problem is not fully resolved, which usually is the case for large scale
applications.
Application of a sixth order filter affects the good wave approximation
of the DRPSPB operator. That problem can be solved by using a filter or
artificial dissipation that apply less dissipation for wave numbers hk < π/2
than the present filter.
13
References
[1] M. Billson, L.-E. Eriksson, and L. Davidson. Acoustic Source
Terms for the Linear Euler Equations on Conservative Form. In
8th AIAA/CAES Aeroacoustics Conference, Breckenridge, Colorado,
(2002). AIAA Paper 2002-2582.
[2] C. Bogey and C. Bailly. A family of low dispersive and low dissipative
explicit schemes for flow and noise computations. J. Comp. Phys.,
194(1):194–214, (2004).
[3] L.-E. Eriksson. Boundary conditions for artificial dissipation opera-
tors. Technical Report FFA TN 1984-53, The Aeronautical Reaserch
Institute of Sweden, (1984).
[4] B. Gustafsson, H.-O. Kreiss, and J. Oliger. Time Dependent Problems
and Difference Methods. John Wiley & Sons, New York, (1995).
[5] B. Gustafsson, H.-O. Kreiss, and A. Sundström. Stability Theory of
Difference Approximations for Mixed Initial Boundary Value Prob-
lems. II. Math. Comp., 26(119):649–686, (1972).
[6] S. Johansson. High Order Finite Difference Operators with the Sum-
mation by Parts Property Based on DRP Schemes. Technical Report
2004-035, Uppsala University, Department of Scientific Computing,
2004.
[7] H.-O. Kreiss and G. Scherer. Finite Element and Finite Differ-
ence Methods for Hyperbolic Partial Differential Equations. In
C. De Boor, editor, Mathematical Aspects of Finite Elements in Par-
tial Differential Equations., pages 195–211. Academic Press, Inc.,
(1974).
[8] K. Mattsson, M. Svärd, and J. Nordström. Stable and Accurate
Artificial Dissipation. J. Sci. Comp., 21(1):57–79, (2004).
[9] B. Müller and S. Johansson. Strictly Stable High Order Difference
Approximations for Low Mach Number Aeroacoustics. In P. Neit-
taanmäki, T. Rossi, K. Majava, and O. Pironneau, editors, ECCO-
MAS 2004, 2004.
[10] C. L. Müller. High order accurate numerical solution of the lin-
earized Euler equations for sound propagation in the atmosphere.
Master’s thesis, Uppsala University, Department of Scientific Com-
puting, (2004).
[11] B. Strand. Summation by Parts for Finite Difference Approximations
for d/dx. J. Comp. Phys., 110:47–67, (1994).
[12] C.K.W. Tam. Benchmark Problems and Solutions. In J.C. Hardin,
J.R. Ristorcelli, and C.K.W. Tam, editors, ICASE/LaRCWorkshop
on Benchmark Problems in Computational Aeroacoustics (CAA),
(1995). NASA CP 3300.
[13] C.K.W Tam and J. C. Webb. Dispersion-Relation-Preserving Finite
Difference Schemes for Computational Acoustics. J. Comp. Phys.,
107:262–281, (1993).
[14] M. R. Visbal and D. V. Gaitonde. High-Order-Accurate Methods
for Complex Unsteady Subsonic Flows. AIAA J., 37(10):1231–1239,
(1999).
14