• No results found

Summation-By-Parts in Time: The Second Derivative

N/A
N/A
Protected

Academic year: 2021

Share "Summation-By-Parts in Time: The Second Derivative"

Copied!
26
0
0

Loading.... (view fulltext now)

Full text

(1)

SUMMATION-BY-PARTS IN TIME: THE SECOND DERIVATIVE

JAN NORDSTR ¨OM AND TOMAS LUNDQUIST

Abstract. We analyze the extension of summation-by-parts operators and weak boundary conditions for solving initial boundary value problems involving second derivatives in time. A wide formulation is obtained by first rewriting the problem on first order form. This formulation leads to optimally sharp fully discrete energy estimates that are unconditionally stable and high order accurate. Furthermore, it provides a natural way to impose mixed boundary conditions of Robin type, including time and space derivatives. We apply the new formulation to the wave equation and derive optimal fully discrete energy estimates for general Robin boundary conditions, including nonreflecting ones. The scheme utilizes wide stencil operators in time, whereas the spatial operators can have both wide and compact stencils. Numerical calculations verify the stability and accuracy of the method. We also include a detailed discussion on the added complications when using compact operators in time and give an example showing that an energy estimate cannot be obtained using a standard second order accurate compact stencil.

Key words. time integration, second derivative approximation, initial value problem, high order

accuracy, wave equation, second order form, initial boundary value problems, boundary conditions, stability, convergence, finite difference, summation-by-parts operators, weak initial conditions

AMS subject classifications. 65L20, 65M06 DOI. 10.1137/15M103861X

1. Introduction. Hyperbolic partial differential equations on second order form

appear in many fields of applications, including electromagnetics, acoustics, and

gen-eral relativity; see, for example, [1, 16] and references therein. The most common

way of solving these equations has traditionally been to rewrite them on first order

form and apply well-established methods for solving first order hyperbolic problems.

For the time integration part, a popular choice due to its time reversibility is the

leap-frog method, especially for long time simulations of wave propagation problems.

This traditional approach does, however, have some disadvantages. Most notably it

increases the number of unknowns and requires a higher resolution in both time and

space [15]. Many attempts have been made to instead discretize the second order

derivatives directly with finite difference approximations. Various types of compact

difference schemes have been proposed, including, e.g., the classical St¨

ormer and

Nu-merov methods [10, 20, 12], as well as the Runge–Kutta-type one-step methods [10].

Of particular interest to us is the development of schemes based on high order

accurate operators in space obeying a summation-by-parts (SBP) rule together with

the weak simultaneous-approximation-term (SAT) penalty technique for boundary

conditions [6, 14]. The SBP-SAT technique in space in combination with well-posed

boundary conditions leads to energy stable semidiscrete schemes. By augmenting

the SBP-SAT technique in space with SBP-SAT in time, we arrive at a procedure

that leads in an almost automatic way to fully discrete schemes with unconditional

stability. For a comprehensive review of the SBP-SAT technique, see [22]. Even

Submitted to the journal’s Methods and Algorithms for Scientific Computing section September

8, 2015; accepted for publication (in revised form) March 9, 2016; published electronically May 26, 2016.

http://www.siam.org/journals/sisc/38-3/M103861.html

Department of Mathematics, Computational Mathematics, Link¨oping University, SE-581 83

Link¨oping, Sweden (jan.nordstrom@liu.se, tomas.lundquist@liu.se). The second author’s work was funded by the Swedish Research Council under grant 621-2012-1689.

A1561

(2)

though we focus on problems discretized by the SBP-SAT technique in space, we

stress that the methodology is completely general and suitable for other types of

semidiscrete energy stable spatial formulations.

In this paper we extend the SBP-SAT technique by using SBP operators also for

the second derivative in time, leading to an implicit time stepping scheme. A similar

technique was developed for first derivatives in [18, 13]. The main advantage of this

approach is that it leads to optimal fully discrete energy estimates, guaranteeing

un-conditional stability and low dissipation. The schemes thus obtained can be in global

or multistage form, or any combination of the two. A formulation using wide stencil

second derivative operators can be obtained by first rewriting the equation in first

order form and applying the SBP-SAT technique for first order initial value problems.

The wide second derivative operator is obtained by operating twice with a first

deriva-tive operator. We show that the resulting discretizations work perfectly together with

boundary conditions involving time derivatives and also lead to optimally sharp fully

discrete energy estimates.

For problems formulated on an infinite time domain, i.e., where no boundaries

are considered, we show that a stable scheme using compact stencils in time can be

derived from combining two one-sided approximations of the first order formulation.

Adding boundaries to the time domain with initial conditions, however, proves to be

a difficult problem, and we find that the standard compact finite difference schemes

are not appropriate for SBP-SAT discretizations of second time derivatives.

The organization of this paper is as follows. In section 2 we introduce the basic

technique by demonstrating the SBP-SAT method applied to a first order initial

value problem. We extend this in section 3, proposing an energy stable SBP-SAT

implementation of second order problems. We obtain the discrete formulation by

applying a first derivative SBP operator twice, thus resulting in a wide stencil scheme.

In section 4 we apply the new method to the wave equation with general mixed

Robin boundary conditions, demonstrating that it also leads to optimal fully discrete

energy estimates. In section 5 we address the possibility of using a compact stencil

formulation for the second derivative in time. Section 6 deals with the spectrum and

existence of solutions for the first- and second order forms, respectively. Numerical

calculations demonstrating the stability and accuracy of the newly developed method

are presented in section 7. Finally, in section 8, conclusions are drawn.

2. First derivative approximations. We start by introducing the SBP-SAT

technique for solving initial value problems of first order. A complete description of

this time integration technique can be found in [18, 13]. Consider the scalar constant

coefficient problem:

(1)

u

t

+ λu = 0,

0

≤ t ≤ T,

where λ is a real constant. An energy estimate is obtained by multiplying (1) with u

and then integrating over the domain. Assuming an initial value given by u(0) = f ,

we get

(2)

u(T )

2

+ 2λ

u

2L2

= f

2

,

where the L

2

norm is defined as

u

2L 2

=



T

0

u

2

dt.

The estimate (2) is the target for the numerical approximation. We introduce a

discrete grid t = (0, Δt, . . . , T ) with uniform spacing Δt = T /N and a corresponding

discrete solution 

u = (u

0

, u

1

, . . . , u

N

). The discrete time derivative approximation is

(3)

obtained by using a finite difference first derivative operator in SBP form. We define

(3)



u

t

= D

1



u,

where the SBP property is given by

(4)

D

1

= P

−1

Q,

Q + Q

T

= B,

P = P

T

> 0.

In (4), we have B = 

e

N



e

TN

− e

0



e

T0

, where 

e

0

= (1, 0, . . . , 0)

T

and 

e

N

= (0, . . . ,

0, 1)

T

. It now remains to impose the initial condition in a stable way by a penalty

term.

The fully discrete approximation of (1) becomes

(5)



u

t

+ λ

u = P

−1

τ (u

0

− f)e

0

.

We choose τ =

−1 and apply the energy method by multiplying (5) from the left with



u

T

P and then adding the transpose. This yields, after adding and subtracting f

2

,

(6)

u

2N

+ 2λ

u

2P

= f

2

− (u

0

− f)

2

.

The discrete norm is defined as

u

2P

= 

u

T

P 

u, and the estimate (6) mimics the

continuous target (2), only introducing a small additional damping term.

Although the SBP-SAT discretization above is presented for global finite

differ-ence operators in SBP form, we showed in [13] that the time interval can be divided

into an arbitrary number of subdomains, allowing for a multistage formulation of the

method that reduces the number of unknowns in each solution step. Other operators

on SBP form, such as spectral element operators [5], can be used to reduce the

num-ber of unknowns even further. See also [7] for an overview of the possible ways to

construct SBP operators, including a generalized approach. It should finally be noted

that the resulting time integration schemes can in fact be shown to form a subset of

implicit Runge–Kutta schemes [4].

3. Wide second derivative approximations. As a first test problem for

treating second order derivatives in time, we extend the scalar constant coefficient

case to the second order equation:

(7)

u

tt

+ α

2

u

t

+ β

2

u = 0,

0

≤ t ≤ T,

where α

2

and β

2

are positive real constants. For this problem, an energy estimate

is obtained by multiplying with u

t

and then integrating over the domain. Given two

initial conditions u(0) = f and u

t

(0) = g, the energy method yields the estimate

(8)

u

t

(T )

2

+ β

2

u(T )

2

+ 2α

2

u

t



2L

2

= g

2

+ β

2

f

2

,

which is the target for our discrete energy estimate.

Since we multiply (7) with the time derivative of the solution, we can impose

the second initial condition u

t

(0) = g in a stable way with the standard penalty

technique used for the first order equation in (5). However, implementing the first

initial condition u(0) = f is more complicated and needs careful treatment. We

start by transforming (7) into a system of first order differential equations. Setting

u

t

= v and applying the SBP-SAT technique for first order systems as described in

the previous section, we get

(9)

D

1



u

− v = P

−1

τ

0

(u

0

− f)e

0

,

D

1



v + α

2



v + β

2

u = P



−1

τ

0t

(v

0

− g)e

0

.

(4)

We note that the first equation in (9) above can be used to define a modified discrete

first derivative, with the weak SAT condition added to it. Indeed, we let ˜



u

t

= 

v,

which gives

(10)



u

˜

t

= 

u

t

− P

−1

τ

0

(u

0

− f)e

0

,

where 

u

t

= D

1



u as in (3). Note also that the modified discrete first derivative ˜



u

t

has

the same order of accuracy as 

u

t

. Inserting (10) into the second equation in (9) leads

to

(11)



u

˜

tt

+ α

2



˜

u

t

+ β

2



u = P

−1

τ

0t

((˜

u

0

)

t

− g)e

0

,

where the modified discrete second derivative is defined by applying the first derivative

operator again on ˜



u

t

:

(12)



u

˜

tt

= D

1



u

˜

t

.

With the choice τ

0

= τ

0t

=

−1, the discrete energy method (multiplying (11)

from the left with ˜



u

Tt

P ) now gives

(13)

((˜

u

N

)

t

)

2

+ β

2

u

2N

+ 2α

2

˜u

t



P2

= h

2

+ β

2

f

2

− ((˜u

0

)

t

− g)

2

− β

2

(u

0

− f)

2

,

which is very similar to the continuous estimate (8).

We have proved the following.

Proposition

1. The approximation (11) with τ

0

= τ

0t

=

−1 and the modified

first derivative (10) is an unconditionally stable approximation of the initial value

problem (7) with the two initial conditions u(0) = f and u

t

(0) = g.

Remark 2. Note that the additional complications that prompted the modified

first derivative above are due to the initial value problem. If a boundary value problem

had been considered with the conditions u = f , u = g posed at different boundaries,

the standard SBP-SAT technique could have been used. Note also that the choice τ

0

=

τ

0t

=

−1 is a special choice that leads to the clean estimate (13). The approximation

is stable for τ

0

≤ −1/2 and τ

0t

≤ −1/2.

Remark 3. Note that in order to apply the discrete energy method, a clear

sep-arate definition of the first derivative is needed. This is straightforward as long as

we use the wide operator D

21

to approximate the second derivative in the definition

of ˜

u

tt

in (12). The question arises whether an energy estimate can be obtained also

for a compact formulation applied to an initial value problem. We will return to this

question in section 5.

3.1. Multiblock/stage formulation. So far we have considered the

applica-tion of the SBP-SAT technique to discretize second order problems in time as a global

method; i.e., we solve (7) on the entire time interval of interest through a singe fully

coupled equation system. However, it is often advantageous to divide the problem into

smaller time intervals, thus reducing the number of unknowns in each step. In this

section we consider the two-block case. The extension to a fully multistage version is

completely analogous.

Consider problem (7) divided into two time-slots

u

tt

+ α

2

u

t

+ β

2

u = 0,

0

≤ t ≤ t

i

,

v

tt

+ α

2

v

t

+ β

2

v = 0,

t

i

≤ t ≤ T,

(5)

with the same initial conditions as in the one domain formulation. We define the

modified discrete first derivatives as

(14)

˜



u

t

= D

1



u

− P

−1

τ

L

(u

N

− v

0

)

e

N

− P

−1

τ

0

(u

0

− f)e

0

,

˜



v

t

= D

1



v

− P

−1

τ

R

(v

0

− u

N

) 

d

0

,

where τ

L

and τ

R

are additional SAT penalty parameters forcing the solutions u

N

and

v

0

toward each other. The unit vectors 

e

N

and 

d

0

both correspond to the time t = t

i

.

An SBP-SAT discretization of the two-block problem is

D

1



u

˜

t

+ α

2

u



˜

t

+ β

2



u = P

−1

τ

Lt

((˜

u

N

)

t

− (˜v

0

)

t

)

e

N

+ P

−1

τ

0t

((˜

u

0

)

t

− g)e

0

,

D

1



v

˜

t

+ α

2



v

˜

t

+ β

2



v = P

−1

τ

Rt

((˜

v

0

)

t

− (˜u

N

)

t

) 

d

0

,

where τ

Lt

and τ

Rt

force (u

N

)

t

and (v

0

)

t

toward each other. We set τ

0

= τ

0t

=

−1 as

before.

The energy method now yields

˜



u

Tt



u

t

+ α

2

u



˜

Tt

P ˜



u

t

+ β

2



u

Tt

P 

u + β

2

u

0

(u

0

− f) − β

2

τ

L

u

N

(u

N

− v

0

)

= τ

Lt

u

N

)

t

((˜

u

N

)

t

− (˜v

0

)

t

)

− (˜u

0

)

t

((˜

u

0

)

t

− g),

˜



v

tT



v

t

+ α

2



˜

v

Tt

P ˜



v

t

+ β

2



v

tT

P 

v

− β

2

τ

R

v

0

(v

0

− u

N

)

= τ

Rt

v

0

)

t

((˜

v

0

)

t

− (˜u

N

)

t

),

which can be rewritten as

((˜

v

t

)

M

)

2

+ β

2

v

M2

+ 2α

2

(

˜u

t



2P

+

˜v

t



2P

) = h

2

+ β

2

f

2

− ((˜u

0

)

t

− g)

2

− β

2

(u

0

− f)

2

+ β

2



u

N

v

0



T



−1 + 2τ

L

−τ

L

− τ

R

−τ

L

− τ

R

1 + 2τ

R

 

u

N

v

0



+



u

N

)

t

v

0

)

t



T



−1 + 2τ

Lt

−τ

Lt

− τ

Rt

−τ

Lt

− τ

Rt

1 + 2τ

Rt

 

u

N

)

t

v

0

)

t



.

A stable and conservative interface treatment requires that the following conditions

must be fulfilled (for a proof, see [6]):

(15)

τ

L

= τ

R

+ 1,

τ

R

≤ −

1

2

,

τ

Lt

= τ

Rt

+ 1,

τ

Rt

≤ −

1

2

.

In particular, the choice τ

R

= τ

Rt

=

−1 gives the sharp estimate

((˜

v

t

)

M

)

2

+ β

2

v

M2

+ 2α

2

(

 ˜

u

t



2P L

+ ˜

v

t



2 PR

) = g

2

+ β

2

f

2

− ((˜u

0

)

t

− g)

2

− β

2

(u

0

− f)

2

− ((˜u

N

)

t

− (˜v

0

)

t

)

2

− β

2

(u

N

− v

0

)

2

.

Remark 4. The choice τ

R

= τ

Rt

=

−1 also leads to τ

L

= τ

Lt

= 0 and hence makes

the left domain completely uncoupled to the right one, enabling a multiblock/stage

procedure.

By generalizing the derivation above we can prove the following.

Proposition

5. The multiblock/stage approximation of the initial value problem

(7) with initial conditions u(0) = f and u

t

(0) = g obtained by using (i) the penalty

(6)

coefficients τ

0

= τ

0t

=

−1 for the initial conditions, (ii) modified first derivatives for

the interface connection as in (14), and (iii) interface penalty coefficient as in (15) is

an unconditionally stable approximation.

Remark 6. The multiblock/stage formulation introduces an extra amount of

damping at each block boundary when compared to the global formulation for all

stable penalty parameters, except for τ

R

= τ

Rt

=

−1/2, where the damping is zero.

4. Space-time discretizations with mixed boundary conditions. The

technique presented above for the test equation (7) extends in a natural way to general

second order initial boundary value problems, including mixed boundary conditions

with both time and space derivatives. To illustrate this, we consider the constant

coefficient wave equation in one space dimension, with homogenous Robin boundary

conditions:

u

tt

= β

2

u

xx

,

0

≤ x ≤ 1, 0 ≤ t ≤ T,

u(x, 0) = f (x),

u

t

(x, 0) = g(x),

(16)

au

t

(0, t)

− u

x

(0, t) = 0,

au

t

(1, t) + u

x

(1, t) = 0.

The choice a = 0 corresponds to Neumann conditions, a

→ ∞ to Dirichlet conditions,

and a = 1/β to nonreflecting artificial boundary conditions [8]. Even more general

boundary conditions can also be considered [16].

To get an energy estimate for (16), we multiply with u

t

and integrate in space.

After accounting for the boundary conditions, we get

(17)

d

dt

(

u

t



2

+ β

2

u

x



2

) =

−aβ

2

(u

t

(0, t)

2

+ u

t

(1, t)

2

),

where

 ·  is the L

2

norm in space defined by

u

2

=



01

u

2

dt. Thus, we have an

energy estimate if a > 0. Finally, by time integration we obtain an estimate of the

solution at the final time

(18)

u

t

(

·, T )

2

+

u

x

(

·, T )

2

=

g

2

+

f

x



2

− aβ

2

(

u

t

(0,

·)

2L

2

+

u

t

(1,

·)

2L2

),

where

 · 

L2

as before is the L

2

norm in time.

4.1. The semidiscrete formulation. As the first step to approximate (16) we

introduce a semidiscrete solution on the spatial grid 

x = (0, Δx, . . . , 1) with uniform

spacing Δx = 1/M . We also define the restriction of the data f and h to this grid.

Thus, let



u(t) = (u

0

(t), u

1

(t), . . . , u

M

(t))

T

,



f = (f (0), f (Δx), . . . , f (1))

T

,



g = (g(0), g(Δx), . . . , g(1))

T

.

For convenience, we also introduce notation for the numerical derivatives of the

solu-tion and data vectors:



u

x

= D

x



u,



u

xx

= D

x



u

x

,

f



x

= D

x

f ,



(7)

where D

x

= P

x−1

Q

x

is an SBP operator; i.e., we have Q

x

+ Q

xT

= B

x

= 

e

Mx



e

TMx



e

0x



e

T0x

, where 

e

0x

= (1, 0, . . . , 0)

T

and 

e

Mx

= (0, . . . , 0, 1)

T

, in analogy with (14).

For future reference we also introduce the traditional compact second order

deriva-tives in space which have the form

(19)



u

xx

= D

2



u = P

−1

(

−M + BS)u,

where M + M

T

≥ 0, and S approximates the first derivative at the boundaries.

Remark 7. In the rest of the paper, the notation D

1

, D

x

, D

t

is interchangeably

used for the SBP operator approximating the first derivative. The subscripts indicate

a general coordinate direction, the x-direction and the t-direction, respectively. The

wide second derivate is denoted D

21

and the compact second derivative D

2

.

The SBP-SAT method in space now yields



u

tt

= β

2



u

xx

+ P

x−1

σ

0

(a(

u

t

)

0

− (u

x

)

0

)

e

0x

+ P

x−1

σ

M

(a(

u

t

)

M

+ (

u

x

)

M

)

e

0x

,



u(x, 0) = 

f ,

(20)



u

t

(x, 0) = 

g.

Note that we have used the wide stencil operator D

x2

for convenience to approximate

the second spatial derivative. The extension to compact stencil operators in space of

the form (19) poses no problem [16].

Multiplying (20) from the left with 

u

Tt

P

x

gives



u

Tt

P

x



u

tt

= β

2



u

tT

Q

x



u

x

+ σ

0

(

u

t

)

0

(a(

u

t

)

0

− (u

x

)

0

) + σ

M

(

u

t

)

M

(a(

u

t

)

M

+ (

u

x

)

M

)

=

− β

2

(D

x



u

t

)

T

P

x



u

x

+ a(σ

0

(

u

2t

)

0

+ σ

M

(

u

2t

)

M

)

+ (β

2

+ σ

M

)(u

t

)

M

(u

x

)

M

− (β

2

+ σ

0

)(u

t

)

0

(u

x

)

0

,

where we have used the SBP property Q

x

= B

x

− Q

Tx

. Note that, since the time

derivative is left continuous, we can change the order of differentiation in the first

term of the right-hand side above as

−β

2

(D

x



u

t

)

T

P

x



u

x

=

−β

2

(

u

x

)

Tt

P

x



u

x

=

β

2

2

d

dt

u

x



Px

.

(21)

The choice σ

0

= σ

M

=

−β

2

now leads to

(22)

d

dt

(

u

t



Px

+ β

2

u

x



Px

). =

−aβ

2

((

u

t

)

20

+ (

u

t

)

2M

).

Note that the relation (22) is completely analogous to the continuous (17). Finally,

integrating in time yields

(23)

u

t

(T )



Px

+ β

2

u

x

(T )



Px

=

g

Px

+ β

2

 f

x



Px

− aβ

2



T 0

(u

t

)

0



2 L2

+

(u

t

)

M



2L2

dt,

which mimics (18).

(8)

Remark 8. The wide second derivative approximation in (20) can be replaced with

a compact approximation of the form (19). The estimate for the compact operator

corresponding to (23) becomes



u

t

(T )

T

P

x



u

t

(T ) + β

2



u(T )

T

M

x



u(T ) = 

g

T

P

x



g + β

2

f



T

M

x

f



− aβ

2



T 0

((u

2t

)

0

+ (u

2t

)

M

)dt.

In other words, no problems occur, which is contrary to the case with compact

oper-ators in time, as will be discussed later.

4.2. The fully discrete formulation. Next, we introduce the fully discrete

solution vector 

U together with the corresponding numerical derivatives with respect

to time and space:



U

t

= (D

t

⊗ I

x

) 

U ,

U



x

= (I

t

⊗ D

x

) 

U ,

U



xx

= (I

t

⊗ D

x

) 

U

x

,

where D

t

= P

t−1

Q

t

and D

x

= P

x−1

Q

x

as before are SBP operators, and I

t

and I

x

are

unit matrices of dimensions N + 1 and M + 1, respectively. In direct analogy with (9),

(10), and (12), we also define modified time derivatives with the first initial condition

built in:

(24)

U



˜

t

= 

U

t

− (P

t

⊗ P

x

)

−1

T

0

,

U



˜

tt

= (D

t

⊗ I

x

)

U



˜

t

.

The penalty term in (24) is given by T

0

= τ

0

(I

t

⊗ P

x

)(

e

0t

⊗ (U|

t=0

− f)), where



U

|

t=0

= (

e

T0t

⊗ I

x

) 

U is the solution at the first grid point in time.

The fully discrete SBP-SAT approximation of (16) can now be written as

(25)

U



˜

tt

= β

2

U



xx

+ (P

t

⊗ P

x

)

−1

(T

0t

+ Σ),

where the initial and boundary conditions are imposed by

(26)

T

0t

= τ

0t

(I

t

⊗ P

x

)(

e

0t

⊗ (

U



˜

t

|

t=0

− g)),

Σ = σ

0

(P

t

⊗ I

x

)((a

U



˜

t

|

x=0

− U

x

|

x=0

)

⊗ e

0x

)

+ σ

M

(P

t

⊗ I

x

)((a

U



˜

t

|

x=1

+ 

U

x

|

x=1

)

⊗ e

Mx

).

In (24) and (26), we have used



U

|

t=0

= (

e

T0t

⊗ I

x

) 

U ,

U



˜

t

|

t=0

= (

e

T0t

⊗ I

x

)

U



˜

t

,

˜



U

t

|

x=0

= (I

t

⊗ e

T0x

)

U



˜

t

,

U



˜

t

|

x=1

= (I

t

⊗ e

TMx

)

U



˜

t

,



U

x

|

x=0

= (I

t

⊗ e

T0x

) 

U

x

,

U



x

|

x=1

= (I

t

⊗ e

TMx

) 

U

x

to identify the solution components on the boundaries of the computational domain.

The fully discrete energy estimate is obtained by first multiplying (25) from the

left with

U



˜

tT

(P

t

⊗ P

x

), which yields

˜



U

tT

(Q

t

⊗ P

x

)

U



˜

t

= β

2

U



˜

tT

(P

t

⊗ Q

x

) 

U

x

+

U



˜

tT

(T

0t

+ Σ).

(9)

The SBP property of Q

t

and Q

x

now leads to

1

2

˜



U

tT

(B

t

⊗ P

x

)

U



˜

t

= β

2

U



˜

tT

(P

t

⊗ (B

x

− Q

Tx

)) 

U

x

+

U



˜

tT

(T

0t

+ Σ)

= β

2

U



˜

tT

(P

t

⊗ B

x

) 

U

x

− β

2

((I

t

⊗ D

x

)

U



˜

t

)

T

(P

t

⊗ P

x

) 

U

x

+

U



˜

tT

(T

0t

+ Σ).

(27)

Next, we rewrite the second term on the right-hand side of (27) above by changing the

order of numerical differentiation, using the commutivity of the Kronecker products

and the SBP property. We get, in analogy with the technique used for integrating

(21) in time,

− β

2

((I

t

⊗ D

x

)

U



˜

t

)

T

(P

t

⊗ P

x

) 

U

x

=

− β

2

((Q

t

⊗ D

x

) 

U )

T

(I

t

⊗ P

x

) 

U

x

+ β

2

τ

0

e



0t

⊗ (D

x

( 

U

|

t=0

− f))

T

(I

t

⊗ P

x

) 

U

x

=

1

2



U

xT

(B

t

⊗ P

x

) 

U

x

+ β

2

τ

0

(U

x

|

t=0

− f

x

)

T

P

x

U



x

|

t=0

.

(28)

Moreover, the penalty terms in (27) simplify by (26) to

˜



U

tT

T

0t

= τ

0t

U



˜

t

|

Tt=0

P

x

(

U



˜

t

|

t=0

− g),

(29)

˜



U

tT

Σ = σ

0

U



˜

t

|

Tx=0

P

t

(a

U



˜

t

|

x=0

− U

x

|

x=0

)

+ σ

M

U



˜

t

|

Tx=1

P

t

(a

U



˜

t

|

x=1

+ 

U

x

|

x=1

).

(30)

Inserting (28)–(30) into (27) now gives

˜



U

t

|

Tt=T

P

x

U



˜

t

|

t=T

+ β

2

U



x

|

Tt=T

P

x

U



x

|

t=T

=

U



˜

t

|

Tt=0

P

x

U



˜

t

|

t=0

+ β

2

U



x

|

Tt=1

P

x

U



x

|

t=0

− 2(β

2

+ σ

0

)

U



˜

t

|

Tx=0

P

t

U



x

|

x=0

+ 2(β

2

+ σ

M

)

U



˜

t

|

Tx=1

P

t

U



x

|

x=1

+ 2a(σ

0

U



˜

t

|

Tx=0

P

t

|

U



˜

t

|

x=0

+ σ

M

U



˜

t

|

Tx=1

P

t

|

U



˜

t

|

x=1

)

+ 2β

2

τ

0

( 

U

x

|

t=0

− f

x

)

T

P

x

U



x

|

t=0

+ 2τ

0t

U



˜

t

|

Tt=0

P

x

(

U



˜

t

|

t=0

− g).

Finally, by choosing the penalty parameters as τ

0

= τ

0t

=

−1 and σ

0

= σ

M

=

−β

2

, we arrive at the estimate

˜



U

t

|

Tt=T

P

x

U



˜

t

|

t=T

+ β

2

U



x

|

Tt=T

P

x

U



x

|

t=T

= 

g

T

P

x



g + β

2

f



xT

P

x

f



x

− aβ

2

(

U



˜

t

|

x=0T

P

t

|

U



˜

t

|

x=0

+

U



˜

t

|

Tx=1

P

t

|

U



˜

t

|

x=1

)

− (

U



˜

t

|

t=0

− g)

T

P

x

(

U



˜

t

|

t=0

− g)

(31)

− β

2

( 

U

x

|

t=0

− f

x

)

T

P

x

( 

U

x

|

t=0

− f

x

),

which mimics both the continuous estimate (18) and the semidiscrete energy estimate

(23).

We have proved the following.

(10)

Proposition

9. The fully discrete approximation (25) of (16) with initial and

boundary conditions imposed by (26) and penalty coefficients τ

0

= τ

0t

=

−1, σ

0

=

σ

M

=

−β

2

is unconditionally stable.

Remark 10. By replacing the wide second derivative in space with a compact

approximation of the form (19), we get the following estimate:

˜



U

t

|

Tt=T

P

x

U



˜

t

|

t=T

+ β

2

U



|

Tt=T

M

x

U



|

t=T

= 

g

T

P

x



g + β

2

f



T

M

x

f



− aβ

2

(



˜

U

t

|

Tx=0

P

t

|

U



˜

t

|

x=0

+

U



˜

t

|

Tx=1

P

t

|

U



˜

t

|

x=1

)

− (

U



˜

t

|

t=0

− g)

T

P

x

(

U



˜

t

|

t=0

− g)

− β

2

( 

U

|

t=0

− f)

T

M

x

( 

U

|

t=0

− f),

which corresponds to (31). Again, no complications occur, unlike the case with

com-pact operators in time that will be discussed next.

Remark 11. Proposition 9 opens up the possibility for using more general

non-reflecting boundary conditions (which typically contain time derivatives) and prove

stability by using the energy method. Normally one has to use normal mode

analy-sis, which is significantly more complicated and essentially limited to one-dimensional

problems; see [8, 9].

5. Compact second derivative approximations. The wide second

deriva-tive approximations discussed so far in this paper have been derived through a first

order reformulation of the problem. In this section we investigate the implications of

extending the technique to compact formulations of the second derivative.

5.1. An infinite domain formulation. We begin by considering the test

prob-lem (1) on an unbounded interval, ignoring any influence from boundaries of the

com-putational domain. Using one-sided difference operators D

+

and D

instead of the

central scheme used in (9) leads to one of the following two compact schemes:

D

+

D



u + α

2

D



u + β

2



u = 0,

(32)

D

D

+



u + α

2

D

+



u + β

2



u = 0,

(33)

where D

+

D

= D

D

+

is a symmetric and compact second derivative difference

scheme. The energy method applied directly on either (32) or (33) results in at least

one term with positive sign in the right-hand side, since D

+

and D

have elements

with opposite signs along the diagonal. Instead we combine (32) and (33) into the

following modified equation:

(34)

D

+

D



u + α

2

D

0



u + β

2



u = 0,

where D

0

= (D

+D

+

)/2 is a central difference approximation. Note that the compact

operator in (34) remains unchanged. The energy method (multiplying (34) with the

central first derivative (D

0



u)

T

from the left) now yields

(35)



u

T

(D

T0

D

+

D

)

u + α

2

(D

0



u)

T

(D

0



u) + β

2



u

T

D

0



u = 0.

To conclude that the scheme is stable, we first need the following lemma.

Lemma

12. Let A and B be two infinite matrices both consisting of a constant

finite length interior stencil centered around the main diagonal. Then A and B

com-mute, i.e., AB = BA.

(11)

Proof. See Appendix A.

Adding the transpose to (35) now gives

(36)



u

T

(D

0T

D

+

D

+ D

+

D

D

0

)

u + 2α

2

(D

0



u)

T

(D

0



u) + β

2



u

T

(D

0

+ D

0T

)

u = 0.

We first note that D

0

+D

T0

= 0, since the central difference scheme is skew-symmetric.

Moreover, since D

0

and D

+

D

are both infinite matrices with constant diagonals,

we get from Lemma 12 that D

0T

D

+

D

+ D

+

D

D

0

= D

0T

D

+

D

+ D

0

D

+

D

=

(

−D

0

+ D

0

)D

+

D

= 0. Consequently, the only remaining part of (36) is

(37)

2

(D

0



u)

T

(D

0



u) = 0,

which mimics (8), except for the boundary terms that we do not consider here. This

technique for constructing a compact approximation thus works perfectly in the

in-terior of a time domain. However, adding weak initial conditions will introduce

diffi-culties that are hard, possibly even impossible, to overcome.

5.2. Compact summation-by-parts operators. We start this section with

a short review of the construction of compact second derivative operators for space

approximations with the SBP-SAT technique. Getting an energy estimate in these

applications requires operators that mimic the following integral property of the

con-tinuous derivative:

(38)



b

a

uu

xx

dx = u(b)u

x

(b)

− u(a)u

x

(a)



b

a

u

2x

dx.

For wide second derivative approximations defined by 

u

x

= D

1



u and 

u

xx

= D

1



u

x

,

where D

1

is an SBP first derivative operator, a discrete counterpart of (38) follows

directly:



u

T

P 

u

xx

= 

u

T

Q

u

x

= 

u

T

(B

− Q

T

)

u

x

= u

N

(u

x

)

N

− u

0

(u

x

)

0

− u

Tx

P 

u

x

,

which corresponds to (38).

For the compact second operators of the form (19) we get



u

T

P 

u

xx

= 

u

T

B(S

u)

1

2



u

T

(M + M

T

)

u,

which mimics (38) in the sense that we get an approximation of the boundary terms

along with a damping term, leading to stability. An even closer similarity to (38) is

obtained with so-called compatible operators, defined by M = D

T1

P D

1

+ R, where

R + R

T

≥ 0 is a small additional damping term, giving



u

T

P 

u

xx

= 

u

T

B(S

u)

− (D

1



u)

T

P (D

1



u)

1

2



u

T

(R + R

T

)

u.

Such compatible operators are in particular needed for problems with combinations

of mixed and pure second derivatives, for which they were originally developed [17,

14]. Note that the wide operator D

21

corresponds to the compatible form with zero

additional damping, S = D

1

, and D

21

= P

−1

(

−Q

T

D

1

+ BD

1

) = P

−1

(

−D

1T

P D

1

+

BD

1

).

In contrast to (38) required for second order space approximations, we instead

need to approximate the following integral identity:

(39)



T 0

u

t

u

tt

dt =

1

2

(u

t

(T )

2

− u

t

(0)

2

)

(12)

for second order time approximations. Using the wide stencil approximation 

u

tt

=

D

1



u

t

, where 

u

t

= D

1



u, we get the following discrete estimate:



u

Tt

P 

u

tt

= 

u

Tt

Q

u

t

=

1

2



u

T t

B

u

t

,

which mimics (39).

The standard compact definition 

u

tt

= D

2



u, where D

2

is defined in (19), does,

however, not automatically lead to an estimate. Assuming S = D

1

, we get

(40)



u

Tt

P 

u

tt

=

1

2



u

T t

B

u

t

+

1

2



u

T

(

−D

T 1

M

− M

T

D

1

+ D

T1

BD

1

)

u,

where 

u

T

(

−D

1T

M

− M

T

D

1

+ D

T1

BD

1

)

u is an indefinite term even if M + M

T

≥ 0.

The compatible form M = D

1T

P D

1

+ R does not improve the situation but leads to

a simpler expression than (40). Indeed, we get



u

Tt

P 

u

tt

=

1

2



u

T

t

B

u

t

− u

T

(D

1T

R + R

T

D

1

)

u,

which requires D

T1

R + R

T

D

1

to be a negative semidefinite matrix, since the second

derivative u

tt

resides on the left-hand side of the original equation.

To summarize, we get an estimate that mimics (39) with additional damping if

the discrete second derivative can be written on the following form:

(41)



u

tt

= D

2



u = D

1



u

t

− P

−1

R

u,

where D

2

= P

−1

(

−D

T1

P D

1

− R + BD

1

) = D

21

− P

−1

R, and where D

T1

R + R

T

D

1

is

a negative semidefinite matrix. Except for a rather extreme single example (shown

in Appendix B), we have not yet been able to construct any other operator for which

D

1T

R+R

T

D

1

≥ 0. Furthermore, even if this could be done, the imposition of the weak

initial conditions introduces additional complications that we believe are impossible

to overcome. We discuss this in detail in Appendix B.

6. Spectrum and existence of solutions. The first and second order

formu-lations lead to different matrix properties of the fully discretized system. That will

be investigated next.

6.1. The initial value problem. We let ˜

D

1

= D

1

+

e

0



e

T0

denote a discrete first

derivative operator augmented with a boundary correction of the optimal magnitude

(corresponding to the choices τ, τ

0

, τ

0t

=

−1 in sections 2 and 3). Although a proof

only exists for the second order accurate case, there are strong reasons to assert that

the spectrum of ˜

D

1

lies strictly in the right half-plane for all classical SBP operators

(see Assumption 1 in [18]).

The system matrix of the discretized initial value problem on first order form (9)

can now be written as

A

1

=



˜

D

1

−I

β

2

I

D

˜

1



,

where we for simplicity let α

2

= 0. Let λ = a + bi be an eigenvalue to ˜

D

1

with

corresponding eigenvector φ = x + iy, i.e.,

˜

D

1

x = ax

− by,

D

˜

1

y = bx + ay.

References

Related documents

Uppfattningar om allvarlighetsgrad utifrån respondentens kön och självkänsla Studiens andra frågeställning löd; “Hur skiljer sig manliga och kvinnliga studenters uppfattningar

Marken överfors sedan med de olika kombinationerna av hjul och band, med och utan belastning bild 9: A Band, belastad B Dubbelhjul, belastad C Enkelhjul, belastad D Band, obelastad

Ett bra alternativ skulle kunna vara att kunna använda sig av email eller mms för att förmedla information till exempel kallelser, till personer som inte kan tyda skriven text.

Evaluation of the new apparatus for test method 2 of ENV 1187 New definition of damaged area Confirmation of consistence of test results at SP Confirmation of the turbulence of

Enligt artikel 17(1) DSM-direktivets ordalydelse utför en onlineleverantör en överföring till allmänheten när den (1) omfattas av direktivet enligt definitionen i artikel 2(6)

Figure 4.5 shows how the existing variables browser is used to expose interactive simulation variables red from the embedded server to the user.. The motivation behind is that the

Nedan följer en kort beskrivning av tillvägagångssättet för en fallstudie utifrån Creswell (2007) och Stake (1995). Till att börja med måste forskaren fastställa om

Figure 3.19 shows the electric field magnitude and charge density along the electrode axis.. Figure 3.20 shows the electric field magnitude as a function of the