Diagonal-norm upwind SBP operators

Similar documents
Optimal diagonal-norm SBP operators

Efficient wave propagation on complex domains

Well-posedness, stability and conservation for a discontinuous interface problem: an initial investigation.

REVIEW OF SUMMATION-BY-PARTS SCHEMES FOR INITIAL-BOUNDARY-VALUE PROBLEMS

Stable and high-order accurate finite difference schemes on singular grids

NUMERICAL SOLUTION OF THE LINEARIZED EULER EQUATIONS USING HIGH ORDER FINITE DIFFERENCE OPERATORS WITH THE SUMMATION BY PARTS PROPERTY

Generalised Summation-by-Parts Operators and Variable Coefficients

SUMMATION-BY-PARTS IN TIME: THE SECOND DERIVATIVE

Finite difference method for elliptic problems: I

PDEs, part 3: Hyperbolic PDEs

7 Hyperbolic Differential Equations

Partial differential equations

Stable and compact finite difference schemes

Boundary Conditions for a Divergence Free Velocity-Pressure Formulation of the Incompressible Navier-Stokes Equations

Spectral analysis of the incompressible Navier-Stokes equations with different boundary conditions

Discontinuous Galerkin Methods

Convergence of Summation-by-Parts Finite Difference Methods for the Wave Equation

Characterizing the Accuracy of Summation-by-Parts Operators for Second-Derivatives with Variable-Coefficients

Part 1. The diffusion equation

Finite Differences for Differential Equations 28 PART II. Finite Difference Methods for Differential Equations

Edwin van der Weide and Magnus Svärd. I. Background information for the SBP-SAT scheme

Stable boundary treatment for the wave equation on second-order form

On the Convergence Rates of Energy- Stable Finite-Difference Schemes

A Stable and Accurate Davies-like Relaxation Procedure using Multiple Penalty Terms for Lateral Boundary Conditions

ENO and WENO schemes. Further topics and time Integration

Well-posedness, Stability and Conservation for a Discontinuous Interface Problem

Fully Discrete Energy Stable High Order Finite Difference Methods for Hyperbolic Problems in Deforming Domains: An Initial Investigation

Semi-Lagrangian Formulations for Linear Advection Equations and Applications to Kinetic Equations

Numerical Solutions to Partial Differential Equations

Numerical Solutions to Partial Differential Equations

ON THE BENEFIT OF THE SUMMATION-BY-PARTS PROPERTY ON INTERIOR NODAL SETS

Numerical Solutions to Partial Differential Equations

New Diagonal-Norm Summation-by-Parts Operators for the First Derivative with Increased Order of Accuracy

COUPLING REQUIREMENTS FOR WELL POSED AND STABLE MULTI-PHYSICS PROBLEMS

High Order Accurate Runge Kutta Nodal Discontinuous Galerkin Method for Numerical Solution of Linear Convection Equation

Lecture 3 Partial Differential Equations

Abstract Simulations of sound pressure levels are often used as a decision basis when planning location for e.g wind turbines. In previous work, an e

13 PDEs on spatially bounded domains: initial boundary value problems (IBVPs)

arxiv: v1 [math.na] 21 Nov 2017

PDEs, part 1: Introduction and elliptic PDEs

Numerical Methods for PDEs

Relaxation methods and finite element schemes for the equations of visco-elastodynamics. Chiara Simeoni

Basics on Numerical Methods for Hyperbolic Equations

Inverse Lax-Wendroff Procedure for Numerical Boundary Conditions of. Conservation Laws 1. Abstract

Numerical Methods for Conservation Laws WPI, January 2006 C. Ringhofer C2 b 2

Numerical methods for the Navier- Stokes equations

Positivity-preserving high order schemes for convection dominated equations

HIGH-ORDER ACCURATE METHODS BASED ON DIFFERENCE POTENTIALS FOR 2D PARABOLIC INTERFACE MODELS

30 crete maximum principle, which all imply the bound-preserving property. But most

A Multi-Dimensional Limiter for Hybrid Grid

A note on accurate and efficient higher order Galerkin time stepping schemes for the nonstationary Stokes equations

Relevant self-assessment exercises: [LIST SELF-ASSESSMENT EXERCISES HERE]

Lecture Introduction

Strict Stability of High-Order Compact Implicit Finite-Difference Schemes: The Role of Boundary Conditions for Hyperbolic PDEs, I

HIGH-ORDER ACCURATE METHODS BASED ON DIFFERENCE POTENTIALS FOR 2D PARABOLIC INTERFACE MODELS

Numerical Analysis and Methods for PDE I

A High-Order Discontinuous Galerkin Method for the Unsteady Incompressible Navier-Stokes Equations

Global Maxwellians over All Space and Their Relation to Conserved Quantites of Classical Kinetic Equations

Defect-based a-posteriori error estimation for implicit ODEs and DAEs

A Bound-Preserving Fourth Order Compact Finite Difference Scheme for Scalar Convection Diffusion Equations

12 The Heat equation in one spatial dimension: Simple explicit method and Stability analysis

Zonal modelling approach in aerodynamic simulation

[2] (a) Develop and describe the piecewise linear Galerkin finite element approximation of,

Lucio Demeio Dipartimento di Ingegneria Industriale e delle Scienze Matematiche

Basic Aspects of Discretization

A Central Compact-Reconstruction WENO Method for Hyperbolic Conservation Laws

A recovery-assisted DG code for the compressible Navier-Stokes equations

Advection / Hyperbolic PDEs. PHY 604: Computational Methods in Physics and Astrophysics II

Partial Differential Equations

Hydraulic Modelling for Drilling Automation

Chapter 3. Finite Difference Methods for Hyperbolic Equations Introduction Linear convection 1-D wave equation

Some Background Material

Partial Differential Equations

Applied Mathematics 205. Unit III: Numerical Calculus. Lecturer: Dr. David Knezevic

Numerical Analysis of Differential Equations Numerical Solution of Elliptic Boundary Value

Block-Structured Adaptive Mesh Refinement

A positivity-preserving high order discontinuous Galerkin scheme for convection-diffusion equations

MONOTONE SCHEMES FOR DEGENERATE AND NON-DEGENERATE PARABOLIC PROBLEMS

New developments for increased performance of the SBP-SAT finite difference technique

Time stepping methods

A very short introduction to the Finite Element Method

A Provable Stable and Accurate Davies-like Relaxation Procedure Using Multiple Penalty Terms for Lateral Boundaries in Weather Prediction

Fourier analysis for discontinuous Galerkin and related methods. Abstract

arxiv: v1 [physics.comp-ph] 30 Sep 2015

Table of Contents. II. PDE classification II.1. Motivation and Examples. II.2. Classification. II.3. Well-posedness according to Hadamard

NUMERICAL COMPUTATION OF A VISCOUS FLOW AROUND A CIRCULAR CYLINDER ON A CARTESIAN GRID

A matrix over a field F is a rectangular array of elements from F. The symbol

AA214B: NUMERICAL METHODS FOR COMPRESSIBLE FLOWS

A High Order Conservative Semi-Lagrangian Discontinuous Galerkin Method for Two-Dimensional Transport Simulations

ELEMENTARY LINEAR ALGEBRA

Partitioned Methods for Multifield Problems

Saul Abarbanel; Half a century of scientific work. Bertil Gustafsson, Uppsala University

A Hybrid Method for the Wave Equation. beilina

On the Standard Linear Viscoelastic model

Self-similar solutions for the diffraction of weak shocks

LECTURE # 0 BASIC NOTATIONS AND CONCEPTS IN THE THEORY OF PARTIAL DIFFERENTIAL EQUATIONS (PDES)

Linear Hyperbolic Systems

Strong Stability-Preserving (SSP) High-Order Time Discretization Methods

PDE Solvers for Fluid Flow

Numerical Methods for Partial Differential Equations CAAM 452. Spring 2005

Transcription:

Diagonal-norm upwind SBP operators Ken Mattsson June 8, 16 Abstract High-order accurate first derivative finite difference operators are derived that naturally introduce artificial dissipation. The boundary closures are based on the diagonal-norm summation-by-parts (SBP) framework and the boundary conditions are imposed using a penalty (SAT) technique, to guarantee linear stability for a large class of initial boundary value problems. These novel first derivative SBP operators have a non-central difference stencil in the interior, and come in pairs (for each order of accuracy). The resulting SBP-SAT approximations lead to fully explicit ODE systems. The accuracy and stability properties are demonstrated for linear first- and second-order hyperbolic problems in 1D, and for the compressible Euler equations in D. The newly derived first derivative SBP operators lead to significantly more robust and accurate numerical approximations, compared with the usage of (previously derived) central difference first derivative SBP operators. Key words: finite difference methods, artificial dissipation, high-order accuracy, stability, boundary treatment 1 Introduction It is well known that higher order methods (as compared to first- and secondorder accurate methods) capture wave dominated phenomena more efficiently since they allow a considerable reduction in the degrees of freedom, for a given error tolerance. In particular, high-order finite difference methods Department of Information Technology, Uppsala University, P O Box 337, S-751 5 Uppsala, Sweden. telephone: +46-18-4717631, telefax: +46-18-5349, E mail: ken.mattsson@it.uu.se 1

(HOFDMs) are ideally suited for problems of this type. (See the pioneering paper by Kreiss and Oliger [13] concerning hyperbolic problems.) The major difficulty with HOFDM is to obtain a stable boundary treatment, something that has received considerable past attention concerning hyperbolic and parabolic problems. (For examples, see [14, 3, 3, 1, 3, 1].) Roughly speaking, the numerical difficulties increase with the order of the spatial (and temporal) derivatives. For wave-dominated problems, in particular, it is imperative to use finite difference approximations that do not allow growth in time a property termed strict stability [9]. A robust and well-proven high-order finite difference methodology, for well-posed initial boundary value problems (IBVP), is to combine summationby-parts (SBP) operators [1, 31, 18] and either the simultaneous approximation term (SAT) method [4], or the projection method [7, 8, 19, 9] to impose boundary conditions (BC). Recent examples of the SBP-SAT approach can be found in [11, 16,, 5, 8, 4]. The SBP operators found in literature (see for example [1, 31, 18,, 3, 5]) are essentially central finite difference stencils closed at the boundaries with a careful choice of one-sided difference stencils, to mimic the underlying integration-by-parts formula in a discrete norm. SBP operators for various derivative orders can be constructed by repeated application of a centraldifference first derivative SBP operator, here denoted D 1. For example, D 1 D 1 is a second derivative SBP operator, and is denoted a wide stencil second derivative SBP operator in the present study. For linear IBVP with smooth data (here referring either to physical data or the underlying curvilinear grid) an SBP-SAT approximation constructed from D 1 operators yields a strictly stable and accurate approximation. For IBVP with non-smooth data (or nonlinear problems), the exclusive usage of D 1 operators in combination with SAT (or projection) does not guarantee strict stability. For nonlinear first order hyperbolic or hyperbolic-parabolic IBVP (such as the Navier-Stokes equation) the addition of artificial dissipation (AD) is most often necessary, to damp spurious oscillations. Adding robust and accurate AD is however far from trivial, and most often involves tuning of free parameters. It is imperative that the addition of AD does not destroy the linear stability and accuracy properties, which in practice requires a very careful boundary closure of the added AD. How to add AD to traditional (central difference) SBP-SAT approximations based on D 1 was analysed in []. For second order hyperbolic IBVP a well-known cure to supress spurious oscillations (when non-smooth features are present) is to employ compatible narrow-stencil second derivative SBP operators (see for example [1, ]), instead of using a wide-stencil approximation based on D 1. The narrowstencil second derivative SBP operators are very accurate, but perhaps less

straightforward to implement in large-scale D or 3D problems involving mixed variable coefficient second derivative terms (see for example [38, 7]). The main motivation in [6] for introducing dual-pair SBP operators was to introduce damping of spurious oscillations when discretising second order hyperbolic equations. The dual-pair SBP operators are first derivative operators with non-central finite difference stencils in the interior. In [6] up to 8th order accurate dual-pair SBP operators are mentioned, but only the 4th order accurate case is presented explicitly. To obtain stability the dual-pair SBP operators are combined with the projection method in [6]. In the present study, dual-pair SBP operators with an additional stability constraint are derived, and further combined with the SAT method for imposing BC. These novel SBP operators are here referred to as upwind SBP operators since they naturally introduce AD when combined with flux-splitting techniques for hyperbolic systems. (The dual-pair SBP operators in [6] do not have this property.) The novel upwind SBP operators lead to highly robust and accurate discretisations of hyperbolic problems, corroborated through numerical computations of both linear and nonlinear problems. The usefulness for hyperbolic-parabolic systems such as the Navier-Stokes equations, is indicated through stability proofs. In Section the novel upwind SBP definition is presented, including details of the necessary steps in the derivation. In Section 3 the SBP-SAT method is introduced for linear first- and second-order hyperbolic problems in 1D. In Section 4 the accuracy and stability properties of the newly developed upwind SBP operators are verified and compared to previously derived central difference SBP operators, by performing numerical simulations. The stability analysis is extended to D hyperbolic-parabolic systems in Section 5. Verification of accuracy and stability by numerical long-time simulations of an analytic D Euler vortex on a multiblock grid is presented in Section 6. Section 7 summarizes the work. The upwind SBP operators are presented in the Appendix. The finite difference method Previously derived SBP operators (see for example[1, 31, 18,, 16, 15, 3, 5]) are essentially central finite difference stencils closed at the boundaries with a careful choice of one-sided difference stencils, to mimic the underlying integration-by-parts formula in a discrete norm. In the present paper the SBP operators are addressed by the accuracy of the interior finite difference stencil. Finite difference SBP operators may be further categorised by the structure of their norm: a) diagonal, b) diagonal interior with block boundary 3

closures, c) fully banded. In the present study the focus is on the derivation of a novel type of diagonal-norm first derivative SBP operator, with a noncentral interior stencil. The motivation is to naturally (,i.e., without tuning of free parameters) introduce AD without ruining linear stability..1 Definitions The following definitions are needed later in the present study. Let u, v L [x l, x r ] where u T = [u (1),, u (),..., u (k) ] and v T = [v (1),, v (),..., v (k) ] are real-valued vector functions with k components. Let the inner product be defined by (u, v) A = x r x l u T A(x) v dx, A(x) = A T (x) >, and let the corresponding norm be u A = (u, u). The domain (x l x x r ) is discretized using the following m equidistant grid points: x i = x l + (i 1) h, i = 1,,..., m, h = xr x l m 1. The following vectors will be used frequently: x = [x 1, x,..., x m 1, x m ] T, x q = 1 q! [xq 1, x q,..., x q m 1, x q m] T 1 = x = [1, 1,..., 1, 1] T, = [,,...,, ] T e 1 = [1,,..., ] T, e m = [,...,, 1] T, B = e m e T m e 1 e T 1. (1) The following definition is important for the stability analysis, Definition.1 Let L = x r x l denote the width of the domain, and h = L m 1 the grid-spacing. A symmetric positive definite matrix H defines a discrete norm if 1 T H1 = L, independent of the number of grid-points m. The analysis in the present study will utilise the Kronecker product, c, D c,q 1 D C D =.., c p 1, D c p 1,q 1 D where C is a p q matrix and D is an m n matrix. Two useful rules for the Kronecker product are (A B)(C D) = (AC) (BD) and (A B) T = A T B T. 4

The approximate solution vector is given by v T = [v (1), v (),..., v (k) ], where v (j) = [v (j) 1, v (j),..., v m (j) ] is the discrete solution vector of the jth component. Let I k denote the unit matrix of size k k and A the projection of A(x) onto the block diagonals. H = Ik H defines a discrete norm, since H defines a discrete norm. An inner product for discrete real-valued vector functions u, v R k m is defined by (u, v) HA = u T A H v. The corresponding norm is v HA = vt HA v. Remark The matrix product HA defines a norm if and only if HA is symmetric and positive definite and H defines a discrete norm. For variable A(x) this can only be guaranteed if the discrete norm H is a diagonal matrix (see [33] for a detailed study on this). Variable coefficients are often present due to the underlying physics or the geometry requiring the introduction of curvilinear grids. The following 3 definitions are central to the present study: Definition. An explicit pth-order accurate finite difference scheme with minimal stencil width for the Cauchy problem is denoted a pth-order accurate narrow-stencil. Definition.3 A difference operator D 1 = H 1 ( Q + B ) approximating / x, using a pth-order accurate interior stencil, is said to be a pth-order diagonal-norm first-derivative SBP operator if the diagonal matrix H defines a discrete norm, and Q + Q T =. Definition.4 A difference operator D (a) = H 1 ( M (a) + a m e m d 1;m a 1 e 1 d 1;1 ) approximating / x ( a / x), where a >, using a pth-order accurate stencil in the interior, is said to be a pth-order diagonal-norm secondderivative SBP operator if the diagonal matrix H defines a discrete norm, M (a) = (M (a) ) T, d 1;1 v u x and d 1;m v u x L are finite difference approximations of the first derivative at the left and right boundary points. The matrix B and the vectors e 1 and e m are defined in (1). In the present study, narrow-stencil SBP operators will be referred to as traditional SBP operators. Traditional first derivative SBP operators were first derived in [1, 31], and later improved in [16, 15]. Similarly, traditional second derivative SBP operators were derived in []. (Recently, high-order accurate traditional SBP operators for third and fourth derivatives were derived [3].) For the constant coefficient case, D (a) = a D where D is an approximation of / x. High-order accurate traditional D operators were derived in [18]. The following lemma (first introduced in [17]) is central to the present study: 5

second-order fourth-order sixth-order 1.585649.18787156 Table 1: α 1 in Eq. for the diagonal-norm second-, fourth- and sixth-order accurate diagonal-norm second-derivative SBP operators. Lemma.5 The dissipative part M (a) of a second-derivative SBP operator has the following property: v T M (a) v = h α 1 (d 1;1 v) + h α 1 (d 1;m v) + v T M a 1 a (a) v, () m where M (a) is symmetric and positive semi-definite, and α 1 a positive constant, independent of h. For the special but important case of constant coefficients (a = 1) the numerically derived values of α 1 for the traditional diagonal-norm second-, fourthand sixth-order accurate D operators are presented in Table 1. (For the analysis of the variable coefficient case, see [38].) Remark For a wide-stencil diagonal-norm second derivative SBP operator D (a), it is trivial to show that α 1 = h 1, 1 and α m = h m, m in Lemma.5, where h 1, 1 and h m, m are the first and last elements in the norm matrix H.. Upwind SBP operators In a recent paper [6] a modified first derivative SBP definition is introduced. The SBP operators presented in [6] are here referred to as dual-pair SBP operators, and are employing non-central interior stencils. For completeness the general definition of dual-pair SBP operators is restated below: Definition.6 The difference operators D + = H 1 ( Q + + B ) and D = H 1 ( Q + B ) approximating / x, using pth-order accurate interior stencils, are said to be pth-order diagonal-norm dual-pair SBP operators if the diagonal matrix H defines a discrete norm, and Q + + Q T =. The interior difference stencil of the dual-pair SBP operators derived in [6] were skewed by two grid-cells, as compared to a central stencil. The Definition.6 is more general as it could encompass more or less skewness (for example one or three grid-cells, instead of two). The motivation in [6] for introducing dual-pair SBP operators was to introduce damping of spurious oscillations when discretising second order hyperbolic equations. It is wellknown that odd order finite difference schemes using a central finite difference 6

stencil (for example in traditional first derivative SBP operators) do not damp spurious oscillations, that are typically triggered by unresolved features in the solution or by non-smooth coefficients. In the present study, a subclass of diagonal-norm dual-pair SBP operators is introduced, here referred to as upwind SBP operators, with an additional stability constraint necessary when applied to first order hyperbolic systems and hyperbolic-parabolic systems (such as the Navier-Stokes equations). The following new definition is one of the main results of the present study: Definition.7 The difference operators D + = H 1 ( Q + + B ) and D = H 1 ( Q + B ) approximating / x, using pth-order accurate interior stencils, are said to be pth-order diagonal-norm upwind SBP operators if the diagonal matrix H defines a discrete norm, Q + + Q T =, and Q + + Q T + = S is negative semi-definite. Hence, upwind SBP operators are dual-pair SBP operators with the additional requirement that Q + +Q T + = S is negative semi-definite. This additional constraint will naturally introduce artificial dissipation when combining upwind SBP operators and flux-splitting techniques, when discretising first order hyperbolic (or hyperbolic-parabolic) systems. (The dual-pair SBP operators in [6] do not have this property.) In the present study, upwind SBP operators of both odd- and even-orders will be derived, up to 9th order. (For the odd order cases, the interior stencil is skewed by one grid-cell, while the even order cases are skewed by two grid-cells such as in [6].) A few useful relations involving diagonal-norm first derivative upwind SBP operators are given, ( ) D + +D = H 1 Q+ +Q + B = H ( ) 1 Q + B = D1, ( ) ( ) D + D = H 1 Q+ Q = H 1 Q+ +Q T + = H 1 S, (3) HD = (D + ) T H + B, HD + = (D ) T H + B, where Q = Q T and S = S T. Hence D ++D is a first derivative SBP operator with a central finite difference scheme in the interior, and D + D is a negative definite finite difference operator (that will act as an artificial dissipation operator). Let the diagonal matrix A be the projection of some smooth function a > onto the diagonal. The following relations are useful in the coming 7

stability analysis, D (a) D (a) = D + AD = H 1 ( D HAD T + BAD ), + = D AD + = H 1 ( D+HAD T + + BAD + ), D (a) + = D(a) +D(a) + = H 1 ( DT HAD +D+ T HAD + + BA D ++D ). (4) Hence, D, (a) D (a) and D (a) + are all diagonal-norm second-derivative SBP operators according to Definition.4. The following new definition is one of the main results of the present study: Definition.8 Let the diagonal matrix A be the projection of some smooth function a > onto the diagonal. The difference operators D (a) = D + AD and D (a) + = D AD + approximating / x ( a / x), where D + and D are pth-order diagonal-norm upwind SBP operators, are said to be pth-order diagonal-norm second-derivative upwind SBP operators. In the present study the focus is on diagonal-norm SBP operators, and from now on diagonal norm will be omitted when referring to the various SBP operators. To elucidate the difference between traditional SBP operators and upwind SBP operators consider the following problem, θu t = au x + (γu x ) x, x l x x r, t, (5) where a > is a constant coefficient, and θ >, γ > are time-independent parameters (that can depend on x). (Here also assuming initial data u(x, ) = f(x).) Multiplying (5) by u, integrating by parts (IBP) and adding the transpose leads to, d dt u θ = BT + DI, (6) where the boundary terms (BT ) and the dissipation (DI) are given by, BT = (au + uγu x ) xr (au + uγu x ) x l, DI = u x γ. (7) The semi-discrete approximation of (5) using a traditional first derivative SBP operator D 1 is given by, Θv t = ad 1 v + D 1 ΓD 1 v, t, (8) 8

where the diagonal matrices Θ and Γ are the projections of θ and γ onto the diagonals, respectively. Multiply (8) by v T H and add the transpose to obtain, d dt v HΘ = BT h + DI h, (9) where the semi-discrete boundary terms (BT h ) and the dissipation (DI h ) are given by, BT h = (av m + v m γ m (D 1 v) m ) (av 1 + v 1 γ 1 (D 1 v) 1 ), DI h = (D 1 v) T HΓ(D 1 v). (1) Eq. 9 exactly mimics Eq. 6, except for the highest frequency mode, often referred to as the π-mode. It is well-known that the π-mode is unaltered by centered difference approximations of odd orders, (see for example [, ]). The interior stencil of traditional first derivative SBP operators are central difference approximations. For nonlinear problems (here assuming a = a(u)) or problems with non-smooth coefficients, some type of AD is required to damp the π-mode. The semi-discrete approximation of (5), now using the upwind SBP operators D + and D is given by, Θv t = ad + v + D + ΓD v, t, (11) where a >. (The case where a < would instead have ad v, for the convective term.) Multiply (11) by v T H and add the transpose to obtain, d dt v HΘ = BT h + DI h + AD h, (1) where the semi-discrete artificial damping (AD h ), the boundary terms (BT h ) and the dissipation (DI h ) are given by, BT h = (av m + v m γ m (D v) m ) (av 1 + v 1 γ 1 (D v) 1 ), DI h = (D v) T HΓ(D v), AD h = a v T (Q + + Q T +)v. (13) Eq. 1 exactly mimics Eq. 6, even in the presens of the π-mode, since the interior stencil of D is a non-central difference stencil. The additional AD h term introduces efficient damping even when γ (that governs the physical dissipation or diffusion of the problem) is small (or zero). To summarise: the major difference between employing traditional and upwind SBP operators is that upwind SBP operators introduce AD. Both types of SBP operators mimic the IBP property. 9

.3 Construction of SBP operators For the reader interested in the construction of the upwind SBP operators, the procedure will be outlined in some detail. First some definitions are needed, before motivating the necessary order of steps. Let D = H 1 ( Q+ B ) denote either a traditional SBP operator (i.e., D 1, given by Definition.3) or an upwind SBP operator (i.e., D ±, given by Definition.7). The following two new definitions are central to the present study. Definition.9 Let x q be the projection of the polynomial xq q! onto the dis- ) x q crete grid-points, i.e., a vector denoted x. Let e (q) = Hx q 1 ( Q + B be the qth order error vector. We say that D is pth-order if e(q) vanishes for q = 1... p, in the interior and for q = 1... s/, at the boundaries where s = p when p is even and s = p 1 when p is odd. Definition.1 Let x q be the projection of the polynomial xq onto the discrete grid-points, i.e., a vector denoted x. Let e (q) = Hx q 1 Q + q (! ) B x q be the qth order error vector. The discrete l -norm of the error e (q) is defined as e (q) h = h et (q) e (q). It is important to understand that the formal boundary accuracy alone does not dictate the expected convergence rate of the numerical approximation. The expected convergence rate can be shown by a careful error analysis (not presented in the present study). This is summarised in the following remark: Remark In [37] it is shown that a pointwise stable approximation of an IBVP involving derivatives up to order q yields a convergence rate of order q + r, where r is the order of accuracy at the boundaries. Let p denote the internal accuracy of a diagonal-norm SBP operator (both traditional and upwind). For the cases when p is even the boundary closure is restricted to p/th-order accuracy (see [18]), i.e., e (p/+1) is the leading order error. For the odd orders cases the leading order error is given by e ((p 1)/+1). This implies that the convergence rate drops to (r + 1)th order for first order hyperbolic problems, and (r + )th order for parabolic problems and second order hyperbolic problems, where r denotes the boundary accuracy. As an example, the 8th and 9th order upwind SBP operators have r = 4. In the present study pointwise stability is not proven, but the numerical convergence studies presented in Sections 4 and 6 indicate that the expected convergence rates (from the assumption of pointwise stability) are obtained. 1

Let p denote the interior accuracy. The construction of even-order diagonalnorm upwind (or traditional) SBP operators (up to 8th order) require at least p boundary points with p/th order accurate boundary stencils. Similarly, the odd-order (upwind) cases (up to 9th order), require at least p 1 boundary points with (p 1)/th order accurate boundary stencils..3.1 Procedure The first step when building SBP operators is to make sure that the symmetry requirements for the various matrices involved are met, and at the same time include sufficiently many unknowns in the boundary closures to fulfill the accuracy requirements. The SBP operators are derived using Maple, a symbolic math software (although any software with symbolic math tools can be used). The interior stencil of the upwind SBP operator D + of order p (and p + 1) starts from the central narrow-stencil of order p +. Then subtract h p+1 α p ( + ) p/+1 to get rid of the outer grid-point to the left. Here ± are the standard forward and backward finite difference operators and the parameter α p varies with the order of accuracy. This yields a p + 1 order accurate skewed stencil, and represents the interior stencil of the (p + 1)th order upwind SBP operator D +. To obtain the interior stencil of the pth order upwind SBP operator D +, continue to subtract hp β p ( + ) p/ to get rid of the next outer most term to the left. Hence, the scheme will now be off-centered by two grid-points. 11

The structure of Q + is given by the Ansatz: q 1, 1 q 1,... q 1, s q, 1... q, s... q s +1.. q s, 1 q s,... q s, s q 1...... q n s... q q 1... q s +1......... q n s... q q 1... q s. +1..... q s, s q s 1, s... q 1, s... q s, s 1... q1, s 1 q n s.. q s, 1... q 1, 1.. Let p denote the internal order of accuracy. In the present study, upwind SBP operators of orders p =, 4, 6, 8 (even order cases) and p = 3, 5, 7, 9 (odd order cases) are derived. For the odd order cases let s = p 1 and n = in the above matrix structure, and for the even order cases let s = p and n = 1. To obtain sth-order accurate boundary closures in both D + and D at least s boundary points are needed, i.e., s s in the above Ansatz. In the present study operators with minimum number of boundary points are presented, i.e., s = s. The norm is given by the Ansatz H = h diag(h 1,..., h s, 1..., 1, h s,..., h 1 ). Since Q is given by the relation Q = Q T +, it is enough to present the coefficients in Q + and H, see Appendix. The unknown in Q + and H are tuned to obey the accuracy requirements for both D + and D, presented in Definition.9. Here it is imperative that H be positive definite. There are free parameters left after imposing the accuracy and symmetry conditions, when p > 3. The 4th (and 5th) order upwind case have free parameters, the 6th (and 7th) order have 4 free parameters and the 8th (and 9th) have 9 free parameters. Remark The traditional first derivative SBP operators have less free parameters to tune compared with the corresponding upwind SBP operators. The traditional 6th and 8th order cases have 1 and 3 free parameters, respectively. 1

When tuning these free parameters it is imperative to choose them such that the upwind SBP operators: 1) fulfil the extra requirement that Q + + Q T = S is negative semi-definite, and ) have the most accurate boundary closures possible, by minimising the leading order error norm in Definition.1. Remark For the nd and 3rd order upwind SBP operators, there are no free parameters if s = s in the above ansatz. However, it is of course possible to extend the number of unknowns at the boundaries by allowing s > s, to obtain free parameters. The free parameters can then be tuned to obtain a possibly more accurate boundary closure, although the formal order of accuracy can not be improved [16]. A careful numerical study (not presented here) showed that the nd order upwind SBP operators with s =, compared to the corresponding SBP operators with s = 3 gave almost identical convergence results. Similarly, for the 3rd order case, upwind SBP operators with s =, s = 3 and s = 4 were derived. However, it turned out that they gave almost identical convergence results. Hence, only upwind SBP operators with s = s are presented in the Appendix. In the present study upwind SBP operators up to 9th order accuracy are derived, optimised for accuracy. The operators are presented in Appendix. Q + and H for the 3rd order case (when m = 7) are presented below, Q + = 1 1 5 1 3 4 1 6 5 1 1 3 1 1 6 1 1 3 1 1 6 1 1 3 1 1 6 1 1 3 1 1 6 5 1 3 4, H = h 5 1 13 1 1 1 1 13 1. 5 1 1 1 5 1 3 Semi-discrete analysis in 1D 3.1 Flux-splitting Consider u t = Au x, x l x x r, t, (14) where A = A T is a constant coefficient matrix of size k k. (Here also assuming initial data u(x, ) = f(x).) Multiplying Eq. 18 by u T, integrating by parts and adding the transpose leads to, d dt u = u T r Au r u T l Au l. (15) 13

Here u T l, r = [u(1) l, r,..., u(k) l, r ] are the unknowns at the left and right boundary, respectively. Before proceeding to the semi-discrete approximation the convective term Au is split into two parts with positive and negative running characteristics, respectively (often referred to as flux splitting). The idea is to split A into a positive and a negative part, i.e. A = A + + A. Here it is assumed that the eigenvalues of A + are non-negative, and that the eigenvalues of A are non-positive. This can be done in a number of ways, but they all require diagonalizing A, i.e., A = T T ΛT, where the diagonal matrix Λ holds the eigenvalues to A. Define A ± = T T (Λ ± Σ) T = A ± R, where Σ is a symmetric positive definite matrix such that A + is positive (semi-) definite and A negative (semi-) definite. Note that R by construction is symmetric and positive (semi-) definite. Let α denote the absolute value of the largest (in magnitude) eigenvalue of A and let Λ denote a matrix with the absolute values of the eigenvalues on the diagonal. A common flux-splitting is to use Σ = αi k, i.e., A ± = T T (Λ ± αi k ) T = A ± αi k, (16) referred to as Lax Friedrich flux-splitting. Here R = αi k. Another choice is to use Σ = Λ, i.e., A ± = T T (Λ ± Λ ) T = A ± A, (17) referred to as Steger-Warming flux splitting. Here R = A. The hyperbolic system (14) can be written, u t = A + u x + A u x, x l x x r, t, (18) utilizing the flux splitting. A semi-discrete finite difference approximation of (18) using upwind SBP operators is given by v t = (A + D + ) v + (A D ) v ( = A D ) + + D v + = (A D 1 ) v + ( R H 1 S ) v. ( R D + D ) v (19) Hence, the combination of upwind SBP operators and flux splitting is equivalent to employing a central-difference first derivative SBP operator (see 14

Definition.3) to the non-split form (14), with the addition of artificial dissipation. Note that there are no free parameters to tune in the AD term (R H 1 S) v. Multiplying Eq. 19 by v T I k H and adding the transpose yields, v T (I k H)v t + v T t (I k H)v = v T ( A + (Q + + Q T + + B) ) v + v ( T A (Q + Q T + B) ) v ( ) A = v T (Q + + Q T + + Q + Q T ) v ( ) R + v T (Q + + Q T + Q Q T ) v + v T (A B)v ( ) A = v T (Q + + Q T + Q T + Q + ) v ( ) R + v T (Q + + Q T + + Q T + + Q + ) v + v T (A B)v = ( R (Q + + Q T +) ) v + v T (A B)v d dt v H = v T (R S) v + v r Av r v l Av l. Hence, the continuous energy estimate () is mimicked with the addition of artificial dissipation v T (R S) v. S = (Q + + Q T +) is negative semi-definite by construction (see Definition.7), and parameter free. 3. First order hyperbolic systems How to achieve a stable finite difference approximations in 1-D, by combining the upwind SBP operators and the SAT method of imposing the physical BC is here presented. Consider the following hyperbolic system, where u t = Au x, x l x x r, t u = f, x l x x r, t =, () A = [ ] 1 1 Here performing Steger-Warming flux splitting, [ ] [ ] [ ] 1 1 1 1 Λ =, A =, A 1 1 + = 1 1 15. (1), A = [ ] 1 1 1 1.

Multiplying the first equation in () by u T, integrating by parts and adding the transpose leads to, d dt u = u T r Au r u T l Au l = u (1) r u () r u (1) l u () l. () Here u T l, r = [u(1) l, r ] are the unknowns at the left and right boundary, respectively. The eigenvalues of A are ±1 and one boundary condition at each boundary should be specified. There are many possibilities but here the focus is on Dirichlet BC. One set of well-posed BC is for example l, r u () u (1) l u (1) = g l (t) r = g r (t), (3) where g l, r (t) are the boundary data at the left and right boundary, respectively. The semi-discrete approximation of (3) is given by v (1) v m (1) 1 = ( ) e (1) e T 1 v = gl (t) = ( ) e (1) e T m v = gr (t), (4) where e (1) = [1 ] and e 1, m are given by (1). The semi-discrete problem using the SBP-SAT method reads ( ) v t = (A + D + ) v + (A D ) v + τ l H 1 e 1 v (1) 1 g l (t) + τ r H 1 e m ( v (1) m g r (t) ), (5) where τ l, r = [τ (1) l, r, τ () l, r ]T are the penalty vectors at the left and right boundary, respectively. The following lemma is central to the present study. Lemma 3.1 The scheme (5) is stable if D ± are upwind first derivative SBP operators, τ () l = 1, τ r () = 1, and τ (1) l, r hold. Proof Multiplying the homogeneous version of (5) by v T I H and adding 16

the transpose yields, v T (I H)v t + v T t (I H)v = v T (A + (Q + + Q T +))v + v T (A (Q + Q T ))v = v T ( A S)v T v 1 Av 1 + v m Av m = v T ( A S)v T τ (1) l v (1) 1 v (1) 1 τ () l v (1) 1 v () 1 τ r (1) v m (1) v m (1) τ r () v m (1) v m () d dt v H = (1 τ () l )v (1) 1 v () 1 (1 + τ r () )v m (1) v m () τ (1) l v (1) 1 v (1) 1 τ r (1) v m (1) v m (1) + v T ( A S)v T. In the last step Definition.7 is used. Stability follows if τ () l = 1, τ r () = 1 and τ (1) l, r, such that d dt v H = τ (1) l (v (1) 1 ) τ (1) r (v (1) m ) + v T ( A S)v T. The upwind SBP operators thus introduce an artificial dissipation term v T ( A S)v T. The stability analysis with a traditional SBP operator (simply replace D ± by D 1 every where) results in the following energy estimate d dt v H = τ (1) l (v (1) 1 ) τ (1) r (v (1) m ). Remark The free SAT parameters τ (1) l, r = τ (1) in lemma 3.1 strongly affect the numerical efficiency (referring to spectral radius and accuracy). A careful numerical study show (although not presented here) that the optimal value is given by τ (1) = 1. This is the value chosen in the numerical computations of (5). The CFL number dt/h, where dt is the time-step and h the spatial gridstep when time-stepping the ODE system given by (5) is proportional to the spectral radius of P h, where P = (A + D + ) + (A D ) + τ l H 1 e 1 e T 1 + τ r H 1 e m e T m. The eigenvalues of P h, employing both traditional and upwind SBP operators are presented in Figure 1, where m = 51. In table the corresponding spectral radii are presented. 17

Operator p= p=4 p=6 p=8 traditional (order p) 1. 1.37 1.8 1.7 upwind (order p) 4.1.61..7 upwind (order p+1) 1.53 1.61 1.7 1.9 Table : The spectral radius of P h for the various SBP discretisations of (5). Im 1.5 1.5 -.5-1 -1.5-1.5 1 Eigenvalues, m = 51 Upwind Upwind 4 Upwind 6 Upwind 8-4 -3.5-3 -.5 - -1.5-1 -.5 Re Eigenvalues, m = 51 Im 1.5 1.5 -.5-1 -1.5 Eigenvalues, m = 51 Upwind 3 Upwind 5 Upwind 7 Upwind 9-1.4-1. -1 -.8 -.6 -.4 -. Re 1.5 1 Eigenvalues, m = 51 Im.5 -.5 Traditional Upwind Upwind 3 Im.5 -.5 Traditional 8 Upwind 8 Upwind 9-1 -1.5 - -4-3.5-3 -.5 - -1.5-1 -.5 Re -1-1.5-1.8-1.6-1.4-1. -1 -.8 -.6 -.4 -. Re Figure 1: Comparing the eigenvalues of P h for the various SBP discretisations of (5). 18

3.3 Second order hyperbolic systems Consider the second order wave equation on piecewise continuous media, a (l) u (l) tt = (b (l) u (l) x ) x, 1 x, t a (r) u (r) tt = (b (r) u (r) x ) x, x 1, t b (l) u (l) x = b (r) u (r) x, u (l) = u (r), x =, t u (l) x =, x = 1, t u (r) x =, x = 1, t u (l) = f (l), u (l) t =, 1 x, t = u (r) = f (r), u (r) t =, x 1, t =, (6) where a (l) a (r), b (l) b (r). Here u (l, r) denote the solutions corresponding to the left and right domains respectively, and f (l, r) the corresponding initial data. (A detailed analysis of this particular problem is described in [17].) The following coordinate transformations, ( ) e x = x(ξ) = ξ (ξ+ 5 4 l ), ξ [ 1, ], e ( 1+ 4 5 ) x = x(ξ) = ξ ( e (ξ 4 5 ) e (1 4 5 ) ) l, ξ [, 1], (7) are introduced in the left and right domains, respectively. Here l is a nonnegative integer, where the case l = corresponds to the Cartesian case. A larger value of l leads to a denser clustering of grid-points close to the interface and the outer boundaries. The problem (6) transforms to ã (l) u (l) tt = ( b (l) u (l) ξ ) ξ, 1 ξ, t ã (r) u (r) tt = ( b (r) u (r) ξ ) ξ, ξ 1, t b(l) u (l) ξ = b (r) u (r) ξ, u (l) = u (r), ξ =, t u (l) ξ =, ξ = 1, t u (r) ξ =, ξ = 1, t u (l) = f (l), u (l) t =, 1 ξ, t = u (r) = f (r), u (r) t =, ξ 1, t =, (8) in curvilinear coordinates, where ã (l, r) = a (l, r) (l, r) x ξ and b (l, r) = b (l, r) (l, r) /x ξ. The semi-discrete approximation of the continuity conditions u (l) = u (r) and b (l) u (l) ξ = b (r) u (r) ξ can be written, I 1 e T mv (l) e T 1 v (r) =, I (l) b m e m d 1; m v (l) (r) b 1 e 1 d 1; 1 v (r) =, (9) 19

where v (l, r) are the solution vectors corresponding to the left and right domains respectively, and b 1, m the boundary values of b l, r (ξ), at the interface. (l, r) The left and right domains are discretized using m grid points. (a) Let D denote either a traditional or upwind (diagonal-norm) second derivative SBP operator. The SBP-SAT method for (8) is given by, Ã (l) v (l) tt = D ( b (l) ) v (l) +τh 1 e m (I 1 ) +βh 1 b(l) m d T 1; m(i 1 ) +γh 1 e m (I ) H 1 b(l) 1 e 1 d 1; 1 v (l) Ã (r) v () tt = D ( b (r) ) v (r) τh 1 e 1 (I 1 ) βh 1 b(r) 1 d T 1; 1(I 1 ) γh 1 e 1 (I ) +H 1 b(r) m e m d 1; m v (r). (3) The following Lemma was first stated in [17]: Lemma 3. The scheme (3) is stable if D( b (l, r) ) are diagonal-norm SBP operators and γ = 1, β = 1, and τ b (l) + b (r) 4α 1 hold. h The proof can be found in [17]. The values for α 1 utilizing the second derivative upwind SBP operators is given by the first and last boundary elements (h 1 and h m ) in the norm matrix H (see Appendix). 4 Computations 4.1 First order hyperbolic system Consider the hyperbolic system, defined by () and (3). The accuracy of the SBP-SAT approximation (5) will be verified against an analytic solution, where a narrow Gaussian pulse is propagated and reflected at the boundaries. The following Gaussian profiles, ( θ (1) (x, t) = exp x t ) (, θ () (x, t) = exp x t ), r r are introduced where r defines the width of the Gaussian. Let L = x r x l denote the width of the domain. The initial data is set to: u (1) t (x, ) =, (x, ) =, and u () t u (1) (x, ) = θ () (x, ) θ (1) (x, ), u () (x, ) = θ () (x, ) + θ (1) (x, ).

The analytic solution of () and (3) with the above provided initial data is given by, u (1) (x, t) = θ (1) (x, L t) θ () (x, L t), u () (x, t) = θ (1) (x, L t)+θ () (x, L t), after the Gaussian pulses have been reflected at the boundaries, i.e., when t [L L/4, L + L/4]. In the numerical simulations (see Figure ) r =.1 and x l = 1, x r = 1. The numerical approximations are integrated to t = 1.8 using the 4th order Runge-Kutta method, with a time step dt =.1 h. (There is little difference between the time-step restrictions using the traditional and upwind SBP operators.) The waves reach the boundaries around t =.9. In Tables 3, 4 and 5 the convergence results using the traditional and upwind SBP operators (both even and odd orders) are compared. 1.8.6.4. -. -.4 -.6 -.8-1 Numerical solution at t =.9 v (1) v () -1 -.5.5 1 x 1.8.6.4. -. -.4 -.6 -.8-1 Numerical solution at t = 1.8 v (1) v () -1 -.5.5 1 x Figure : The numerical solutions at t =.9 and t = 1.8, solving (5), using the 9th order upwind SBP operator. Here m = 1. m log l (nd) q log l (4th) q log l (6th) q log l (8th) q 51 -.9. -.76. -1.9. -.91. 11 -.59 1. -1.68 3.5 -. 3.4 -.14 4.6 1-1.1 1.69 -.81 3.79-3.11 3.69-4.9 6.5 41-1.69 1.96-3.89 3.58-4.9 3.91-5.54 4.8 81 -.9. -4.88 3.7-5.49 3.98-6.98 4.78 Table 3: log(l errors) and convergence rates solving (5) using different traditional SBP operators. 1

m log l (nd) q log l (4th) q log l (6th) q log l (8th) q 51 -.33. -.87. -1.4. -1.9. 11 -.5.57-1.63.5 -.71 4.9 -.98 5.61 1 -.86 1. -.74 3.68-4.49 5.9-5.53 8.48 41-1.4 1.78-3.9 3.95-6.3 5.78-8.4 9.54 81-1.99 1.97-5.1 3.98-8. 5.88-11.3 8.73 Table 4: log(l errors) and convergence rates solving (5) using different even order upwind SBP operators. m log l (3rd) q log l (5th) q log l (7th) q log l (9th) q 51 -.7. -1.1. -1.4. -1.31. 11-1.4 1.73 -. 3.66 -.76 5.5 -.96 5.49 1 -..53-3.65 4.8-4.83 6.9-5.41 8.15 41 -.87.9-5.15 5. -6.96 7.5-8.6 8.8 81-3.77.98-6.66 5.1-9.7 7.4-1.76 8.95 Table 5: log(l errors) and convergence rates solving (5) using different odd order upwind SBP operators. Remark The convergence results presented in Tables 4 and 5 show higher than expected convergence rates (see the previous remark in Section.3). This unexpected behaviour is also seen in Tables 7 and 8, for a second order hyperbolic problem. This is something to address in a coming study. 4. Second order hyperbolic problem The accuracy of the discontinuous media treatment with the SBP-SAT method, given by (3) will be verified against an analytic solution. A narrow Gaussian pulse is propagated across the discontinuous media interface to verify the accuracy of the transmission and reflection properties at the interface. The initial data is given by ) u(x, ) = exp ( (x x), u t (x, ) =, r where x determines the position and r determines the width of the Gaussian profile. In the present study x = 1 and r 4 = 1. Hence, the initial 3 Gaussian profile is centred at x =.5 in the left sub-domain where the media parameters are given by a (l), b (l). The speed of sound and the acoustic impedance in the left and right subdomains are given by c (l, r) = a (l, r), b (l, r)

σ (l, r) = a (l, r) b (l, r). For t > the initial Gaussian profile splits into one leftgoing and one right-going Gaussian wave (see Figure 3) propagating with speed c (l), i.e., the analytic solution is given by u(x, t) = 1 ( exp (x ) (x + c (l) t)) + 1 ( r exp (x ) (x c (l) t)), r assuming that the waves have not yet reached the left boundary or the interface. At t = x (in the present study t c (l) =.5), the right-going wave hits the media interface at x = and splits into a reflected wave and a transmitted wave, see Figure 3. The transmission (T ) and reflection (R) coefficients are given by T = σ(l), R = σ(l) σ (r). σ (l) +σ (r) σ (l) +σ (r) Hence, at t > t the analytic solution consists of a left-going wave (with speed c (l) and amplitude 1 ) from the initial condition, a reflected wave with amplitude R moving (with speed c(l) ) to the left from the interface at x =, and a transmitted right-going wave with amplitude T propagating with speed c (r). The analytic solution is given by ( ) ) u (l) = 1 exp (x (x+c (l) t)) + ( R exp (x+c(l) (t t )) x [ 1, ], ( r r u (r) = T exp (31) (c(l) (x c (r) (t t ))) (c (r) r ), x [, 1], ) assuming that left-going and right-going waves have not yet reached the outer boundaries. In the numerical simulations a (l) = 1, b (l) = 1, a (r) = and b (r) = 8 are chosen. A curvilinear grid is used by setting l = in (7). At the outer boundaries homogeneous Neumann boundary conditions are imposed. The numerical approximations are integrated to t =.5 using the 4th order Runge-Kutta method, with a time step dt =.5 h. (There is little difference between the time-step restrictions using the traditional and upwind SBP operators.) In Tables 6, 7 and 8 the results using the traditional and upwind SBP operators are compared. m log l (nd) q log l (4th) q log l (6th) q 51-1.16. -1.47. -1.67. 11-1.5 1.13 -.3.56 -.78 3.74 1 -. 1.74-3.36 3.77-4.45 5.58 41 -.61 1.98-4.55 3.97-6. 5.91 81-3.1. -5.75 3.99-8. 5.98 Table 6: log(l errors) and convergence rates solving (3) using different traditional SBP operators. On a grid defined by (7) with l =. 3

.5.4.3..1 -.1 -. -.3 Numerical solution at t =.1.5.4.3..1 -.1 -. -.3 Numerical solution at t =.5-1 -.5.5 1 x -1 -.5.5 1 x Figure 3: The numerical solutions at t =.1 and t =.5, solving (3) on a grid defined by (7) with l = and m = 1, using the 5th order upwind SBP operator. m log l (nd) q log l (4th) q log l (6th) q log l (8th) q 51 -.9. -1.19. -1.67. -1.74. 11 -.99.4-1.64 1.54 -.6.1 -.83 3.64 1-1.3 1. -.5.86-3.55 4.3-4.45 5.43 41-1.74 1.48-3.6 3.73-5. 5.57-6.66 7.36 81 -.31 1.89-4.8 3.94-6.99 5.9-9. 7.85 Table 7: log(l errors) and convergence rates solving (3) using different even order upwind SBP operators. On a grid defined by (7) with l =. m log l (3rd) q log l (5th) q log l (7th) q log l (9th) q 51-1.19. -1.31. -1.46. -1.49. 11-1.68 1.66 -.7.57 -.39 3.14 -.66 3.95 1 -.61 3.11-3.55 4.97-4.38 6.65-5.11 8. 41-3.78 3.89-5.3 5.87-6.71 7.77-8. 9.63 81-4.97 3.98-7.11 5.97-9.1 7.94-1.86 9.5 Table 8: log(l errors) and convergence rates solving (3) using different odd order upwind SBP operators. On a grid defined by (7) with l =. 4

5 Analysis in D 5.1 Definitions The following definition will be used in subsequent sections: Definition 5.1 Let x = (x, y) denote grid coordinates in two dimensions. Denote the D bounding box x l x x r, y b y y t by x Ω, and the line x = x r, y b y y t by x δω East. A grid-function u restricted to x δω East will be denoted u E. The domain Ω is discretized with an (m x +1) (m y +1)-point equidistant grid defined as x i = x l + (i 1)h x, i =, 1,..., m x, h x = xr x l m x 1, y j = y b + (j 1)h y, j =, 1,..., m y, h y = yt y b m y 1. In the following, k denotes the number of unknowns in the underlying continuous PDE. The numerical approximation at grid point (x i, y j ) x i,j is a 1 k-vector denoted v i,j. The tensor product derivations are more transparent by redefining the component vector v i,j as a vector of vectors. Specifically, define a discrete solution vector v T = [v 1, v,..., v mx ], where v p = [v p,1, v p,,..., v p,my ] is the solution vector at x p along the y-direction, see Figure 4. To distinguish whether a D difference operator P is operating in the x- or the y-direction, the notations P x and P y is used, respectively. The following D operators are frequently used: D x = I k D 1 I my, D y = I k I mx D 1 D x = I k D I my, D y = I k I mx D D x+ = I k D + I my, D y+ = I k I mx D + S x = I k S I my, S y = I k I mx S B x = I k B I my, B y = I k I mx B H x = I k H I my, H y = I k I mx H e W est = I k e 1 I my, e South = I k I mx e 1 e East = I k e mx I my, e North = I k I mx e my, (3) where D 1, D, D +, S, B and H are the 1-D operators introduced in Section. I mx, I my and I k are identity matrices of appropriate sizes, and e 1, e mx and e my are 1D boundary vectors defined by (1). Further introduce the D norm operators H = H x H y, and Ĥ = I H. To simplify notation further introduce v W = e T W est v, v E = e T East v, v S = e T South v, v N = e T North v. 5

δω North ( δω West ( Ω( δω East ( V 1 ( V ( V m ( δω North ( Figure 4: Notation for the computational domain in D. Two following D relations are useful in the coming D semi-discrete analysis, (H x H y )(D D + ) = ( D + I mx ) T (H x H y )(I my D + ) = (D x+ ) T HDy+ (H x H y )(D + D ) = ( D I mx ) T (H x H y )(I my D ) = (D x ) T HDy. 5. Parabolic systems Consider the D hyperbolic-parabolic system (with k unknowns): u t = A 1 u x +A u y + ( ) C 11 u x + C 1 u +( y C x 1 u x + C u y, x Ω. (33) )y To simplify notation introduce, [ ] C11 C C = 1, û = C 1 C Parabolicity requires that (C + C T ) is positive semidefinite. Consider the following boundary conditions at the 4 boundaries (East, West, North, South): [ ux u y ]. Φ East u + C 11 u x + C 1 u y = g, x Ω East Φ W est u C 11 u x C 1 u y = g, x Ω W est Φ North u + C 1 u x + C u y = g, x Ω North Φ South u C 1 u x C u y = g, x Ω South, (34) 6

here assuming that (33) is completely parabolic (see for example [18]). Remark Other types of well-posed boundary conditions, like Dirichlet can also be imposed. However, the main focus in the present study is the derivation of upwind SBP operators. The analysis of the boundary treatment with SAT is independent of the type of SBP operator employed. For a detailed analysis how to impose BC using SBP-SAT for the compressible Navier- Stokes equations (which is an incompletely parabolic system) see for example [6, 34, 35]. Multiplying Eq. 33 by u T, and integrating by parts with the use of (34) lead to d dt u = BT East + BT W est + BT North + BT South + DI, (35) where the diffusion (or dissipation) DI is given by, DI = û [ T C + C ] T û dx dy, (36) Ω and the boundary terms, BT East = Ω East u T ((Φ East A 1 )u g) dy, BT W est = Ω W est u T ((Φ W est + A 1 )u g) dy, BT North = Ω North u T ((Φ North A )u g) dx, BT South = Ω South u T ((Φ South + A )u g) dx. (37) An energy estimate exists if Φ East A 1, Φ W est + A 1 Φ North A, Φ South + A. (38) Let A 1 = A 1+ + A 1 and A = A + + A denote Steger-Warming flux splitting of A 1 and A, respectively. (This was defined in Section 3.1 for the 1D case.) A well-posed set of BC (34) is given by choosing Φ East = A 1+, Φ W est = A 1. (39) Φ North = A +, Φ South = A Remark For the purely hyperbolic case, i.e., if the viscous terms are removed (by setting C to zero), a well-posed set of boundary conditions is given by (34) with the choice presented in (39). This particular choice is often referred to as characteristic BC (see for example [36, 1, 15]). In the coming section characteristic BC for the compressible Euler equations will be utilized. 7

An SBP-SAT approximation of (33) on flux-splitted form using the upwind SBP operators, with the boundary conditions (34) is given by, v t = D x+ A 1+ v + D x A 1 v + D y+ A + v + D y A v + D x+ (C 11 D x + C 1 D y ) v + D y+ (C 1 D x + C D y ) v + SAT E, W, N, S, (4) where SAT E, W, N, S impose the boundary conditions (34) using the penalty technique, SAT E = τ E Hx 1 e East ((Φ East v + C 11 D x v + C 1 D y v) E g), SAT W = τ W Hx 1 e W est ((Φ W est v C 11 D x v C 1 D y v) W g), SAT N = τ N Hy 1 e North ((Φ North v + C 1 D x v + C D y v) N g), SAT S = τ S Hy 1 e South ((Φ South v C 1 D x v C D y v) S g). Here τ E, τ W, τ N and τ S are penalty parameters that will be tuned to obtain a semi-discrete energy estimate. In the following, the subscripts E, W, N, S indicate that the quantities reside on the East, West, North and South boundaries (see Figure 4). So simplify notation introduce, [ ] C11 C Ĉ = 1 C 1 C, vˆ = [ Dx v D y v Apply the energy method by multiplying (4) by v T H, and adding the transpose, leading to d dt v H = BT E + BT W + BT N + BT S + DI h + AD h, (41) where the semi-discrete diffusion (or dissipation) DI h is given by ]. DI h = vˆ T ĤĈvˆ, (4) and the artificial dissipation AD h = v T ( A 1 S x H y ) v + v T ( A S y H x ) v. The boundary terms are given by, BT E = (1 τ E )v T E H y (C 11 D x v + C 1 D y v) E +(1 τ E ) (C 11 D x v + C 1 D y v) T E H yv E + v T E H y (A 1 τ E Φ East ) v E BT W = (1 + τ E )v T E H y (C 11 D x v + C 1 D y v) W (1 + τ W ) (C 11 D x v + C 1 D y v) T W H yv W v T W H y (A 1 + τ W Φ W est ) v W BT N = (1 τ N )v T N H x (C 1 D x v + C D y v) N +(1 τ N ) (C 1 D x v + C D y v) T N H xv N + v T N H x (A τ N Φ North ) v N BT S = (1 + τ S )v T E H x (C 1 D x v + C D y v) S (1 + τ S ) (C 1 D x v + C D y v) T S H xv S v T S H y (A + τ S Φ South ) v S. 8 (43)

If τ E, W, N, S = 1, the semi-discrete boundary terms (43) exactly mimic the continuous boundary terms (37), and stability follows if (38) holds. Remark An alternative SBP-SAT approximation to (4) is given by v t = D x+ A 1+ v + D x A 1 v + D y+ A + v + D y A v + D x (C 11 D x+ + C 1 D y+ ) v + D y (C 1 D x+ + C D y+ ) v + SAT E+, W +, N+, S+, (44) where SAT E+ = τ E Hx 1 e East ((Φ East v + C 11 D x+ v + C 1 D y+ v) E g), SAT W + = τ W Hx 1 e W est ((Φ W est v C 11 D x+ v C 1 D y+ v) W g), SAT N+ = τ N Hy 1 e North ((Φ North v + C 1 D x+ v + C D y+ v) N g), SAT S+ = τ S Hy 1 e South ((Φ South v C 1 D x+ v C D y+ v) S g). Stability follows if τ E, W, N, S = 1. The difference between (4) and (44) is merely the order in which you apply the upwind SBP operators in the viscous terms. The convective terms are identical. Remark Employing traditional first derivative SBP operators for the problem given by (33) and (34) leads to (4) with D + and D replaced by D 1 everywhere. This means that is replaced by vˆ = ˆv = [ ] Dx v, D y v [ ] Dx v D y v and that AD h =. Hence, there is no longer any damping mechanism for the π-mode. The SBP-SAT scheme using D 1 is nevertheless linearly stable. 6 The Euler vortex problem To test the accuracy of the novel upwind SBP operators, an Euler-vortex that satisfies the D Euler equations, under the assumption of isentropy is run across conforming multiblock interfaces. The problem setup consists of two blocks (1 1 unit area) having matching gridlines (see Figure 5). The two blocks (left and right) are patched together at both ends using the SBP-SAT method, i.e., the east boundary of the right block is coupled to the west boundary of the left block, and the east boundary of the left 9,

block is coupled to the west boundary of the right block. Details concerning how to discretize this problem with the SBP-SAT method can be found in [36, 1, 15]. This cyclic SBP-SAT coupling makes it possible to simulate a long-time simulation of the Euler-vortex problem, where the vortex crosses multiple block-interfaces. This will allow us to verify both the long-time stability behaviour and the boundary accuracy, employing the novel upwind SBP operators. The analytic vortex solution is steady in the frame of reference moving with the free-stream. Let p = (γ M ) 1 denote the nondimensional background pressure, where M is the Mach number and γ = c p /c v = 1.4 (in air). The scaled vortex has the velocity field ( ) ɛr 1 r v Θ = π exp, (45) p r r where ɛ is the nondimensional circulation, r the nondimensional effective radius and (r, Θ) the the polar coordinates. The strength of the vortex is governed by the parameter ɛ and the size of the vortex is governed by the parameter r. The analytic solution, in the nondimensionalized primitive variables: density (ρ), velocity in x-direction (u), velocity in y-direction (v) and pressure (p), in a fixed frame of reference (x, y, t) becomes, u = 1 ɛy π p r exp ( f(x,y,t) ρ = (1 ɛ (γ 1)M exp (f(x, y, t)) 8π p r ), v = ɛ((x x ) t) π p r ) 1 γ 1 exp ( f(x,y,t), p = p ρ γ, (46) where f(x, y, t) = 1 (((x x ) t) +y ) and x r is the initial position of the vortex (in the x-direction). The vortex is introduced into the computational domain by using the analytic solution as boundary data and initial data. In the present study the Mach number is set to M =.5, and the nondimensional effective radius r =. The largest possible value on ɛ is the limit when ρ 8π becomes negative in Eq. 46, i.e. ɛ p r = 94.998 (with M =.5 (γ 1)M γ = 1.4 and r = ). In the first test a convergence study is performed, comparing the upwind SBP operators against the traditional SBP operators. The results are presented in Tables 9, 1 and 11. The vortex is initiated at (x, y) = (, ), centered in the left block, and then integrated using the 4th order accurate Runge-Kutta method to t = using a CFL of 1/6. At t = the vortex has propagated with the free-stream across the first block interface (the left to 3 )

right block-coupling) a distance of 1 units into the right block, see Figure 5. Here ɛ = 5, a relatively weak vortex strength. For the second order upwind case it was necessary to lower the CFL to 1/8 instead of 1/6. 1 Left block Euler vortex, t = Right block 1 Left block Euler vortex, t = 1 Right block 5 5 y y -5-5 -1-1 -5 5 1 15 5 3 x 1 5 Left block Euler vortex, t = Right block -1-1 -5 5 1 15 5 3 x 1 5 Left block Euler vortex, t = 3 Right block y y -5-5 -1-1 -5 5 1 15 5 3 x -1-1 -5 5 1 15 5 3 x Figure 5: The setup for the two-block Euler vortex problem. Here ɛ = 5 and M =.5. The vortex is initially centered at (x, y) = (, ) and integrated using RK4. Here presenting the density contours. Employing the 9th order upwind method using 11 grid-points in each block. At t = 1 the vortex has propagated with the free-stream to the interface between the left and right block. At t = it is centered in the right block. At t = 3 the vortex has reached the (cyclic) interface between the right and left block. In the second test the long-time stability behaviour of the traditional and upwind SBP operators are compared. In Figure 6 long-time simulations (up to t=1) with two different vortex strengths, ɛ = 5 and ɛ = are presented, comparing the 9th order upwind SBP operator with the traditional 8th order SBP operator using 51 grid-points in each block. The vortex is initially centered at (x, y) = (, ) and integrated using RK4 with a CFL of 1/6. The results indicate the robustness of the SBP-SAT discretisation using the 9th order upwind SBP operators. 31

1 3 Long-time propagation, ǫ = 5 1 Traditional 8 Upwind 9 1 1 Long-time propagation, ǫ = 1 8 Traditional 8 Upwind 9 1 1 1 1 6 1-1 1 4 e 1 - e 1 1-3 1 1-4 1-5 1-1 -6 1-4 1-7 1 3 4 5 6 7 8 9 1 time 1-6 1 3 4 5 6 7 8 9 1 time Figure 6: Comparing the long-time behaviour (l -error) of the traditional 8th order SBP and the 9th order upwind SBP operators for the Euler vortex problem with two vortex strengths: ɛ = 5 (left) and ɛ = (right). The vortex is initially centered at (x, y) = (, ) and integrated using RK4. In the third and final test a very strong vortex with ɛ = 6 using 51 grid-points in each block is initiated at (x, y) = (, ). This is a much harder test since the problem is highly nonlinear due to the large vortex strength. Again the 9th order upwind SBP operator is compared with the traditional 8th order SBP operator. The results are presented in Figure 7. At t = 15.1 the solution using the traditional 8th order SBP operators becomes unstable, while the solution using the 9th order upwind SBP operators is very robust and accurate (here the solution is presented at t = ). 3

1. 1.8.6.4. 1.1 Density (ρ) -1 1 3 x 1.99.98.97 Velocity in x (u).96-1 1 3 x 3.5 1.5 1.5 Numerical Analytic Pressure (p) -.5-1 1 3-1 1 3 x x 1-1 Velocity in y (v) - -1 1 3 x 1.5 1.5 15 1 5-5 Density (ρ) Velocity in x (u) -1-1 1 3 x 4 - -4 Pressure (p) -6-1 1 3 x Numerical Analytic 1-1 Velocity in y (v) - -1 1 3 x Figure 7: Comparing the traditional 8th order SBP (right column) and the 9th order upwind SBP (left column) operators for the Euler vortex problem where ɛ = 6 (,i.e., a very powerful vortex). The vortex is initially centered at (x, y) = (, ) and integrated using RK4 to t=15 (right) and t= (left). Top row: a cut along the center line (y = ) for the four primitive variables (density, velocities and pressure). Bottom row: Density contours. m log l (nd) q log l (4th) q log l (6th) q log l (8th) q 51-1.76. -3.8. -4.7. -4.49. 11 -.31 1.81-4.39 4.37-6.8 6.7-6.76 7.55 1 -.9.4-5.66 4. -8.16 6.5-9.4 8.4 31-3.8.3-6.37 4.7-9.17 5.73-1.17 5.6 41-3.53. -6.87 4.3-9.8 5.1-1.73 4.49 Table 9: log(l errors) and convergence rates using even-order upwind SBP operators, for the two-block Euler vortex problem. ɛ = 5. Vortex initiated at x = and integrated to t =, when the vortex has passed the interface. 33