## Boundary treatment of implicit-explicit Runge-Kutta method for hyperbolic systems with source terms

Weifeng Zhao 1 , Juntao Huang 2

## Abstract

In this paper, we develop a high order finite difference boundary treatment method for the implicit-explicit (IMEX) Runge-Kutta (RK) schemes solving hyperbolic systems with possibly stiff source terms on a Cartesian mesh. The main challenge is how to obtain the solutions at ghost points resulting from the wide stencil of the interior high order scheme. We address this problem by combining the idea of using the RK schemes at the boundary and an inverse Lax-Wendroff procedure. The former preserves the accuracy of the RK schemes and the latter guarantees the stability. Our method is different from the widely used approach for the explicit RK schemes by imposing boundary conditions at intermediate stages [12], which could not be derived for the IMEX schemes. In addition, the intermediate boundary conditions are only available for explicit RK schemes up to third order while our method applies to arbitrary order IMEX and explicit RK schemes. Moreover, the present boundary treatment method may be adapted to IMEX RK schemes solving many other partial differential equations. For a specific third-order IMEX scheme, we demonstrate the good stability and third-order accuracy of our boundary treatment through both 1D examples and 2D reactive Euler equations.

Keywords : Boundary treatment; hyperbolic systems with source terms; implicit-explicit Runge-Kutta method; high order finite difference; inverse Lax-Wendroff procedure

1 Department of Applied Mathematics, University of Science and Technology Beijing, Beijing 100083, China. E-mail: wfzhao@ustb.edu.cn. Research supported by the National Natural Science Foundation of China (No. 11801030, No. 11861131004).

2 Department of Mathematics, Michigan State University, East Lansing, MI 48824, USA. E-mail: huangj75@msu.edu.

## 1 Introduction

Implicit-explicit (IMEX) Runge-Kutta (RK) schemes [7] are a powerful tool for the time discretization of many partial differential equations (PDEs), such as convection-diffusion equations [28, 21, 29], hyperbolic systems with stiff sources [22, 23, 11, 8, 9, 10], and the Boltzmann equation [13, 16, 15, 19]. They achieve good stability by implicitly treating the stiff terms in the PDEs and high order accuracy by using several immediate stages. Though powerful and efficient, the IMEX RK schemes for the time-dependent PDEs are not without drawbacks. A long-standing problem is the lack of appropriate boundary treatment method [7], which is fundamental for practical applications of IMEX RK schemes.

For the explicit RK schemes solving hyperbolic equations, a popular boundary treatment method is to impose consistent boundary conditions for each intermediate stage [12]. However, these boundary conditions are derived only for explicit RK schemes up to third order. Though it is remedied for fourth order schemes in [1, 24], the methods therein only apply to one-dimensional (1D) scalar equations or systems with all characteristics flowing into the domain at the boundary. Moreover, the intermediate-stage boundary conditions are not available for IMEX RK schemes since the implicit part would result in nonlinear equations which cannot be analytically solved in general. On the other hand, boundary conditions for intermediate stages are derived and analyzed in [2, 3, 4, 5, 6] for implicit RK schemes solving linear scalar equations. At this point, we remark that another limitation of all the boundary treatments mentioned above [12, 1, 24, 2, 3, 4, 5, 6] is that they only deal with 1D case where the boundary is located at a grid point, restricting their applications for 2D problems on complex domains.

Perhaps due to the difficulties of extending the above boundary treatments of explicit and implicit schemes to the IMEX case, there are rare works on that of IMEX RK schemes. To our knowledge, the only literature on this topic is [29]. In that reference, a strategy of imposing intermediate boundary conditions is presented for one-dimensional (1D) linear convection-diffusion equations. There is a similar restriction that it does not apply to general

nonlinear equations.

In this paper, we propose a boundary treatment method for the IMEX RK schemes solving hyperbolic systems with possibly stiff source terms. High order finite difference schemes on a Cartesian mesh are used for the space discretization. Due to the wide stencil of high order schemes, ghost points are needed near the boundary where the numerical stencil is partially outside of the computational domain. Then the main task of boundary treatment is to obtain the solutions at the ghost points. We address this problem by combining the idea of using the RK schemes at the boundary and an inverse Lax-Wendroff (ILW) procedure [25, 26]. The ILW procedure is employed in [25, 26] as a technique of boundary treatment for hyperbolic systems by using the PDEs to convert spatial derivatives of inflow boundaries to time derivatives, while those of the outflow boundaries are approximated with the solutions at interior points. Nevertheless, the boundary treatment in [25, 26] relies on the intermediatestage boundary conditions [12], which are not available for IMEX schemes as aforementioned. To overcome this difficulty, we propose to use the RK schemes at the boundary directly, instead of imposing intermediate-stage boundary conditions. Combining this idea and the ILW procedure, we can obtain the solutions as well as their derivatives at the boundary and then the solutions of the ghosts points are computed by the Taylor expansion at the boundary. In this way, our boundary treatment not only preserves the accuracy of the IMEX RK schemes but also processes good stability. In addition, it allows the boundary to be arbitrarily located. While our method applies to general IMEX RK schemes, we demonstrate its effectiveness with a specific third-order scheme in [7] by fixing the CFL number as 0.8. The third-order accuracy of the method is verified for both 1D and 2D cases, and the numerical results of the 2D reactive Euler equations are comparable to those obtained by the third-order positivity-preserving schemes with reflective boundary conditions [17].

It is interesting to note that for 1D scalar equations we show that our method applied to third-order IMEX RK scheme can yield the widely used intermediate-stage boundary conditions in [12], indicating the correctness of our boundary treatment for IMEX RK schemes.

Since the IMEX RK schemes include explicit schemes as special cases, the present boundary treatment also applies to explicit RK schemes. It does not rely on intermediate-stage boundary conditions and thus is expected to be valid for explicit RK schemes of order higher than three. This will be investigated in our next work. Moreover, our method may be adapted to IMEX RK schemes solving the other partial differential equations, e.g. convection-diffusion equations [28, 21, 29] and the Boltzmann equation [13, 16, 15, 19]. Many unresolved issues for the boundary treatment of RK schemes can be explored based on the idea of this work.

This paper is organized as follows. In Section 2, we introduce the IMEX RK schemes for hyperbolic systems with source terms. In Section 3, we use the 1D systems to illustrate our idea of boundary treatment. In Section 4, we show that for 1D scalar equations our boundary treatment can yield the widely used intermediate-stage boundary conditions. We extend our boundary treatment to the 2D reactive Euler equations in Section 5. Section 6 is devoted to numerical validations of our method. Finally, some conclusions and remarks are given in Section 7.

## 2 IMEXRKschemesfor hyperbolic systems with source terms

Consider a one-dimensional nonlinear hyperbolic system with source term

$$\partial _ { t } U + \partial _ { x } F ( U ) = Q ( U ),$$

where 0 ≤ x ≤ 1 and U, F ( U , Q U ) ( ) ∈ R M . In the domain 0 ≤ x ≤ 1, appropriate boundary conditions and initial data U (0 , x ) are required to close the above system. We assume that the Jacobian matrix F U ( U t, ( 0)) always has p positive eigenvalues and thus p independent relations among incoming and outgoing modes are given at the left boundary x = 0:

$$B ( U ( t, 0 ), t ) = 0.$$

Similarly, the boundary condition at x = 1 are also imposed properly.

A general IMEX RK scheme for the hyperbolic system (2.1) is [11]

$$U ^ { ( i ) } = U ^ { n } - \Delta t \sum _ { j = 1 } ^ { i - 1 } \tilde { a } _ { i j } \partial _ { x } F ( U ^ { ( j ) } ) + \Delta t \sum _ { j = 1 } ^ { i } a _ { i j } Q ( U ^ { ( j ) } ), \quad i = 1, 2, \dots, s,$$

$$U ^ { n + 1 } = U ^ { n } - \Delta t \sum _ { i = 1 } ^ { n - \cdot } \tilde { \omega } _ { i } \partial _ { x } F ( U ^ { ( i ) } ) + \Delta t \sum _ { i = 1 } ^ { n - \cdot } \omega _ { i } Q ( U ^ { ( i ) } ).$$

Here the s × s matrices ˜ = (˜ A a ij ) and A = ( a ij ) satisfy ˜ a ij = 0 for j ≥ i and a ij = 0 for j &gt; i so that the scheme is explicit for the convection part and implicit for the source term. Along with the coefficient vectors ˜ = ( ˜ w w , w , . . . , w 1 ˜ 2 ˜ ) s T and w = ( w , w , . . . , w 1 2 s ) T , the scheme can be represented by a double Butcher tableau

$$\frac { \tilde { c } \, \left | \, \tilde { A } \, } { \tilde { w } ^ { T } } \quad \frac { c \, \right | \, A \, } { w ^ { T } }$$

where ˜ = (˜ c c , c 1 ˜ 2 , . . . , c ˜ ) s T , c = ( c , c 1 2 , . . . , c s ) T are defined as

$$\tilde { c } _ { i } = \sum _ { j = 1 } ^ { i - 1 } \tilde { a } _ { i j }, \quad c _ { i } = \sum _ { j = 1 } ^ { i } a _ { i j }.$$

For the space discretization in (2.3), we use the finite difference WENO scheme on a Cartesian mesh [18], which needs a stencil of several points in each direction. As a consequence, ghost points are needed near the boundary ∂ Ω where the numerical stencil is partially outside of Ω. For explicit RK schemes, solutions at ghost points can be determined as in [25, 26] with the aid of an ILW procedure and the boundary condition of each stage constructed in [12]. However, this approach does not apply to IMEX schemes since the boundary conditions of intermediate stages could not be analytically derived for general nonlinear systems. Thus boundary treatment of IMEX RK schemes remains a challenge and we address this problem in the following.

## 3 Boundary treatment for 1D system

In this section, we use the one-dimensional system (2.1) to illustrate our idea of boundary treatment for the IMEX RK scheme (2.3), and then extend it to the two-dimensional case in Section 5. We employ the third-order IMEX RK scheme for concreteness, while our method

applies to general IMEX schemes. Additionally, we use the third-order finite difference WENO scheme in space [20] and take ∆ t = O (∆ ). x

## 3.1 Computation of solutions at ghost points

We focus on the left boundary x = 0 of the problem (2.1) and the method can be similarly applied to the right boundary. Following the notations in [26], we discretize the interval (0 , 1) by a uniform mesh

$$\frac { \Delta x } { 2 } = x _ { 0 } < x _ { 1 } < \dots < x _ { N } = 1 - \frac { \Delta x } { 2 }$$

and set x , j j = -1 , -2 as two ghost points near the left boundary x = 0 (note that the boundary indeed can be arbitrarily located). Denote by U n j the numerical solution of U at position x j and time t n . Assume that the interior solutions U , j j = 0 1 2 , , , . . . , N have been updated from time level t n -1 to time level t n . As in [26], we use a third-order Taylor approximation to construct the values at the ghost points x j for j = -1 , -2, namely,

$$U _ { j } ^ { n } = \sum _ { k = 0 } ^ { 2 } \frac { x _ { j } ^ { k } } { k! } U ^ { n, ( k ) }, \quad j = - 1, - 2.$$

Here U n, k ( ) denotes a (3 -k )-th order approximation of the spatial derivative at the boundary point ∂ k U ∂x k ∣ ∣ x =0 = ,t t n . With this formula, U n j at the ghost points can be obtained once U n, k ( ) , k = 0 1 2 are provided, which is well treated in [25, 26] (see also the next subsection for details). , , Then we can obtain U (1) j at the interior points by the RK scheme (2.3a). The next task is to compute U (1) j , j = -1 , -2. We propose an approach to do this as follows.

Similar to the above procedure, we compute U (1) j with the third-order Taylor expansion at the boundary point x b = 0:

$$U _ { j } ^ { ( 1 ) } = \sum _ { k = 0 } ^ { 2 } \frac { x _ { j } ^ { k } } { k! } U ^ { ( 1 ), ( k ) }, \ \ j = - 1, - 2,$$

where U (1) ( , k ) denotes a (3 -k )-th order approximation of the spatial derivative ∂ k U (1) ∂x k ∣ ∣ x =0 . Then we turn to compute U (1) ( , k ) for k = 0 1 2. To this end, we apply the first stage of the , ,

RK solver (2.3a) for U (1) at the boundary point x b = 0:

$$U ^ { ( 1 ) } ( x _ { b } ) = U ^ { n } ( x _ { b } ) - \tilde { a } _ { 1 0 } \Delta t \partial _ { x } F ( U ^ { n } ( x _ { b } ) ) + \Delta t a _ { 1 0 } Q ( U ^ { ( 1 ) } ( x _ { b } ) ).$$

Notice that U n ( x b ) = U n, (0) + O (∆ x 3 ) and ∂ F U x ( n ( x b )) = F U ( U n ( x b )) ∂ U x n ( x b ) = F U ( U n, (0) ) U n, (1) + O (∆ x 2 ) are already known. Substituting these into (3.4) and solving the algebra equation, we can obtain an approximation of U (1) ( x b ) and denote it by U (1) (0) , . In addition, the error between U (1) (0) , and U (1) ( x b ) defined by (3.4) is O (∆ x 3 ).

Furthermore, taking derivatives with respect to x on both sides of (3.4) yields

$$\frac { \partial U ^ { ( 1 ) } } { \partial x } \Big | _ { x = x _ { b } } & = \partial _ { x } U ^ { n } ( x _ { b } ) - \tilde { a } _ { 1 0 } \Delta t \partial _ { x x } F ( U ^ { n } ( x _ { b } ) ) + \Delta t a _ { 1 0 } Q _ { U } ( U ^ { ( 1 ) } ( x _ { b } ) ) \frac { \partial U ^ { ( 1 ) } } { \partial x } \Big | _ { x = x _ { b } }. \quad ( 3. 5 ) \\ \text{Here } \ \partial _ { x } U ^ { n } ( x _ { b } ) \, = \ U ^ { n, ( 1 ) } + \mathcal { O } ( \Delta x ^ { 2 } ) \text{ and } \partial _ { x x } F ( U ^ { n } ( x _ { b } ) ) \, = \ F _ { U U } ( U ^ { n } ( x _ { b } ) ) \partial _ { x } U ^ { n } ( x _ { b } ) \partial _ { x } U ^ { n } ( x _ { b } ) \, +$$

∣ By taking higher order derivatives on both sides of (3.4), one can also compute ∂ k U (1) ∂x k ∣ ∣ x = x b for k = 2. However, this procedure is quite complicated as it involves Jacobian of Jacobian. Here we simply approximate ∂ k U (1) ∂x k ∣ ∣ x = x b for k = 2 by using the (3 -k )-th order WENO type extrapolation with U (1) at interior points in [26], which will be introduced in subsection 3.3. In this way, we obtain U (1) ( , k ) for k = 0 1 2 with accuracy of order (3 , , -k ). Then U (1) j for j = -1 , -2 can be computed by (3.3) with third-order accuracy. Having U (1) at the ghost points, we can then evolve from U (1) to U (2) using the interior difference scheme.

Here ∂ U x n ( x b ) = U n, (1) + O (∆ x 2 ) and ∂ xx F U ( n ( x b )) = F UU ( U n ( x b )) ∂ U x n ( x b ) ∂ U x n ( x b ) + F U ( U n ( x b )) ∂ xx U n ( x b ) = F UU ( U n, (0) ) U n, (1) U n, (1) + F U ( U n, (0) ) U n, (2) + O (∆ ). x With these approximations, ∂U (1) ∂x ∣ ∣ x = x b can be solved out from (3.5) and the resulting solution U (1) (1) , is a second-order approximation of ∂U (1) ∂x ∣ x = x b .

Repeating the same procedure for each U ( ) i , 2 ≤ i ≤ s , we can compute the solution at the ghost points in the i -th intermediate stage. Then we can update the solution at all interior points in the ( i +1)-th stage. Finally, we obtain U n +1 , i.e. , the solution at the end of a complete RK cycle.

## 3.2 Computation of U n, k ( ) at the boundary

For the sake of completeness, we provide the method in [26] for computing U n, k ( ) , k = 0 1 2, , , i.e. , the (3 -k )-th order approximation of ∂ k U n ∂x k at the boundary x = 0.

## 3.2.1 k = 0

We first do a local characteristic decomposition to determine the inflow and outflow boundary conditions as in [26]. Denote the Jacobian matrix of the flux evaluated at x = x 0 by

$$A ( U _ { 0 } ^ { n } ) = \partial _ { U } F ( U ) \Big | _ { U = U _ { 0 } ^ { n } } \\ \intertext { i v o s o m m o l m o c } \, \underbrace { \, \bigcup \, } \, \underbrace { \, \infty } \,.$$

and assume that it has p positive eigenvalues λ , λ , . . . , λ 1 2 p and ( M -p ) negative eigenvalues λ p +1 , λ p +2 , . . . , λ M with l 1 , l 2 , ...l p and l p +1 , l p +2 , ...l M the corresponding left eigenvectors, respectively. Define by V j,m the m -th component of local characteristic variable at grid point x , j j = 0 1 2, , , i.e. ,

$$V _ { j, m } = l _ { m } U _ { j } ^ { n }, \quad m = 1, 2, \dots, M, \quad j = 0, 1, 2.$$

We extrapolate the outgoing characteristic variable V j,m , m = p + 1 , p + 2 , . . . , M to the boundary x b with the WENO type extrapolation [26] (see also subsection 3.3), and denote the extrapolated k -th order derivative by

$$V _ { x _ { b }, m } ^ { * ( k ) }, \quad k = 0, 1, 2.$$

With V ∗ (0) x ,m b and the boundary condition (2.2), U n, (0) at the boundary can be solved out from the following equation

$$& l _ { m } U ^ { n, ( 0 ) } = V ^ { * ( 0 ) } _ { x _ { b }, m }, \quad m = p + 1, p + 2, \dots, M, \\ & B ( U ^ { n, ( 0 ) }, t _ { n } ) = 0.$$

## 3.2.2 k = 1

Having U n, (0) , we proceed to compute U n, (1) with the ILW procedure proposed in [25, 26]. To do this, we take derivative with respect to t for the boundary condition (2.3)

$$B _ { U } ( U ^ { n, ( 0 ) }, t _ { n } ) \partial _ { t } U ^ { n, ( 0 ) } + B _ { t } ( U ^ { n, ( 0 ) }, t _ { n } ) = 0,$$

which can be written as

$$B _ { U } ( U ^ { n, ( 0 ) }, t _ { n } ) \partial _ { t } U ^ { n, ( 0 ) } = g ( U ^ { n, ( 0 ) }, t _ { n } )$$

with g U ( n, (0) , t n ) := -B U t ( n, (0) , t n ). On the other hand, multiplying the equation (2.1) with B U ( U n, (0) , t n ) from the left yields

$$B _ { U } ( U ^ { n, ( 0 ) }, t _ { n } ) \partial _ { t } U ^ { n, ( 0 ) } + B _ { U } ( U ^ { n, ( 0 ) }, t _ { n } ) A ( U ^ { n, ( 0 ) } ) U ^ { n, ( 1 ) } = B _ { U } ( U ^ { n, ( 0 ) }, t _ { n } ) Q ( U ^ { n, ( 0 ) } ).$$

With the above two equations and V ∗ (1) x ,m b obtained by the WENO type extrapolation, U n, (1) can be solved out from

$$l _ { m } U ^ { n, ( 1 ) } = V _ { x _ { b }, m } ^ { * ( 1 ) }, \quad m = p + 1, p + 2, \dots, M,$$

$$B _ { U } ( U ^ { n, ( 0 ) }, t _ { n } ) A ( U ^ { n, ( 0 ) } ) U ^ { n, ( 1 ) } = B _ { U } ( U ^ { n, ( 0 ) }, t _ { n } ) Q ( U ^ { n, ( 0 ) } ) - g ( U ^ { n, ( 0 ) }, t _ { n } ).$$

This is the ILW procedure in [25, 26].

## 3.2.3 k = 2

Following [26], we approximate ∂ 2 U n ∂x 2 | x =0 with the WENO type extrapolation. Specifically, since we have obtained the characteristic variables at grid points near the boundary in (3.6), the WENO type extrapolation is employed based on these characteristic variables to compute the second-order derivative V ∗ (2) x ,m b for each m = 1 2 , , · · · , M . Then the approximation of ∂ 2 U n ∂x 2 | x =0 is given by

$$U ^ { n, ( 2 ) } = L ^ { - 1 } V _ { x _ { b }, m } ^ { * ( 2 ) },$$

where L is local left eigenvector matrix composed of l 1 , l 2 , · · · , l M . Similarly, ∂ k U n ∂x k | x =0 , k &gt; 2 are also computed with the WENO type extrapolation if necessary for higher order boundary treatments.

## 3.3 WENO type extrapolation

Finally, we show how to obtain a (3 -k )-th order approximation of ∂ k V ∂x k | x =0 , denoted by V ∗ ( k ) , k = 0 1 2, with the stencil , , S 3 = { x , x 0 1 , x 2 } , which is introduced in [25]. When V is smooth on S 3 , we compute V ∗ ( k ) as

$$V ^ { * ( k ) } = \sum _ { r = 0 } ^ { 2 } d _ { r } \frac { \mathrm d ^ { k } p _ { r } ( x ) } { \mathrm d x ^ { k } } | _ { x = 0 }, \\ \end{array} \, \in$$

where d 0 = ∆ x , d 2 1 = ∆ x, d 2 = 1 -∆ x -∆ x 2 and p r ( x ) is the r -th order Lagrange polynomial constructed with S 3 . When there is a discontinuity in the stencil S 3 , the WENO type extrapolation is applied [25]:

$$V ^ { * ( k ) } & = \sum _ { r = 0 } ^ { 2 } \omega _ { r } \frac { \mathrm d ^ { k } p _ { r } ( x ) } { \mathrm d x ^ { k } } \Big | _ { x = 0 }, \\ \intertext { * w o i o h t s d e n d i n o } \, \text{on the value of $V$} \, \text{ Similar to the classical WENO}$$

where ω r are nonlinear weights depending on the value of V j . Similar to the classical WENO scheme, the nonlinear weights are given by [25]

$$\omega _ { r } = \frac { \alpha _ { r } } { \sum _ { s = 0 } ^ { 2 } \alpha _ { s } }, \quad \alpha _ { r } = \frac { d _ { r } } { ( \varepsilon + \beta _ { r } ) ^ { 2 } }. \\ \text{re the smoothness indicators determined by}$$

Here ε = 10 -6 and β r are the smoothness indicators determined by

$$\beta _ { 0 } = \Delta x ^ { 2 }, \quad \beta _ { r } = \sum _ { l = 1 } ^ { r } \int _ { x _ { - 1 } } ^ { x _ { 0 } } \Delta x ^ { 2 l - 1 } \left ( \frac { \mathrm d ^ { l } } { \mathrm d x ^ { l } } p _ { r } ( x ) \right ) ^ { 2 } \mathrm d x, \quad r = 1, 2.$$

The explicit expressions of β 1 and β 2 are given in [25]. When V is smooth on S 3 , it is shown in [25] that

$$\omega _ { 0 } = \mathcal { O } ( \Delta x ^ { 2 } ), \ \ \omega _ { 1 } = \mathcal { O } ( \Delta x ), \ \ \omega _ { 2 } = 1 - \omega _ { 0 } - \omega _ { 1 }$$

so that the WENO type extrapolation (3.11) is (3 -k )-th order accurate.

In the end of this section, we summarize our third-order boundary treatment for the hyperbolic system (2.1) as follows:

Step 1: Compute U n, k ( ) , the (3 -k )-th order approximation of ∂ k U n ∂x k at the boundary x = 0 for k = 0 1 2 as in subsection 3.2. , , Then impose U n j at the ghost points j = -1 , -2 with the Taylor expansion (3.2). This step is the same as that in [26] for explicit RK schemes. With U n at the ghost points, we can evolve from U n to U (1) with the interior difference scheme.

Step 2: Compute U (1) ( , k ) , the (3 -k )-th order approximation of ∂ k U (1) ∂x k at the boundary x = 0 for k = 0 1 2 as in subsection 3.1. , , Specifically, U (1) (0) , and U (1) (1) , are solved out from the RK solver (3.4) and (3.5), respectively, and U (1) (2) , is approximated with the WENO type extrapolation in subsection 3.3. Then impose U (1) j at the ghost points j = -1 , -2 with the

Taylor expansion (3.3). Having U (1) at the ghost points, we can update U (2) at all interior points.

Step 3: Repeat the same procedure as in Step 2 for each U ( ) i , 2 ≤ i ≤ s to compute the solution at the ghost points in the i -th intermediate stage. Then we can update the solution at all interior points in the ( i +1)-th stage. Finally, we obtain U n +1 , i.e. , the solution at the end of a complete RK cycle.

Remark 3.1. Combining the idea of using the RK schemes of intermediate solutions at the boundary and the ILW procedure is the key of our boundary treatment. The former preserves the accuracy of the RK method and the latter guarantees the stability. This is different from the widely used approach for the explicit RK scheme by imposing boundary conditions for intermediate solutions [12], which are unavailable for the IMEX schemes. In addition, the intermediate boundary conditions are only available for explicit RK schemes up to third order while our method applies to general IMEX RK scheme.

Remark 3.2. Though the idea of using the RK schemes of intermediate solutions has been stressed in [24], the method therein is only valid for 1D scalar equation or 1D system with all characteristics flowing into the domain at the boundary. Another limitation of the method in [24] is that the boundary has to be located at a grid point, which makes it difficult to be extended to 2D case.

Remark 3.3. Since the IMEX RK schemes include explicit schemes as special cases, the present boundary treatment also applies to explicit RK schemes. It does not need to impose intermediate boundary conditions and thus is expected to be valid for explicit RK schemes of order higher than three. This will be investigated in our next work.

## 4 Analysis of the boundary treatment

In this section, we show that our boundary treatment applied to the third-order explicit RK scheme solving 1D scalar equations can yield the widely used boundary conditions for

intermediate solutions in [12].

## 4.1 Linear equation

We consider a linear scalar equation

$$\partial _ { t } u + \partial _ { x } u = 0, \quad 0 \leq x \leq 1, \quad t > 0,$$

$$u ( t, 0 ) = g ( t )$$

and solve it with the third-order explicit strong-stability-preserving RK scheme [14]

$$u ^ { ( 1 ) } = u ^ { n } + \Delta t \mathcal { L } ( u ^ { n } ),$$

$$u ^ { ( 2 ) } = \frac { 3 } { 4 } u ^ { n } + \frac { 1 } { 4 } u ^ { ( 1 ) } + \frac { 1 } { 4 } \Delta t \mathcal { L } ( u ^ { ( 1 ) } ),$$

$$u ^ { n + 1 } = \frac { \tau } { 3 } u ^ { n } + \frac { \tau } { 2 } u ^ { ( 2 ) } + \frac { \tau } { 3 } \Delta t \mathcal { L } ( u ^ { ( 2 ) } ),$$

where L ( u ) = -∂ u x . We focus on the boundary treatment at the left boundary x b = 0.

According to the boundary treatment in the previous section, we first need to compute u n and its first- and second-order derivatives at the boundary point x = x b , denoted by u n b and u n, k ( ) b , k = 1 2, respectively. , For the above scalar equation, u n b is simply given by the boundary condition:

$$u _ { b } ^ { n } = g ( t _ { n } ).$$

Then according to subsection 3.2.2, the ILW procedure is employed to compute the first-order derivative u n, (1) b :

$$u _ { b } ^ { n, ( 1 ) } = \partial _ { x } u ( t _ { n }, x _ { b } ) = - \partial _ { t } u ( t _ { n }, x _ { b } ) = - g ^ { \prime } ( t _ { n } ).$$

Similarly, the second-order derivative u n, (2) b computed by the ILW procedure is

$$u _ { b } ^ { n, ( 2 ) } = g ^ { \prime \prime } ( t _ { n } ),$$

and by the third-order WENO extrapolation is

$$u _ { b } ^ { n, ( 2 ) } = g ^ { \prime \prime } ( t _ { n } ) + \mathcal { O } ( \Delta x ).$$

Here the solution is assumed to be smooth near the boundary for (4.6).

Next we compute u (1) b and its derivatives u (1) ( , k ) b , k = 1 2. In our method, the RK scheme , for u (1) is applied to determine its value at the boundary, i.e. ,

$$u _ { b } ^ { ( 1 ) } = u _ { b } ^ { n } - \partial _ { x } u _ { b } ^ { n } = g ( t _ { n } ) + \Delta t g ^ { \prime } ( t _ { n } ),$$

where (4.3) and (4.4) have been used. As shown in (3.5), we take derivatives with respect to x on both sides of (4.2a) and evaluate at x 0 to obtain

$$\partial _ { x } u _ { b } ^ { ( 1 ) } = \partial _ { x } u _ { b } ^ { n } - \Delta t \partial _ { x x } u _ { b } ^ { n },$$

and thereby

$$u _ { b } ^ { ( 1 ), ( 1 ) } = - g ^ { \prime } ( t _ { n } ) - \Delta t u _ { b } ^ { n, ( 2 ) },$$

where (4.4) has been used. Applying the scheme (4.2b) for u (2) at the boundary x 0 and using (4.3), (4.7) and (4.8), we arrive at

$$u _ { b } ^ { ( 2 ) } & = \frac { 3 } { 4 } u _ { b } ^ { n } + \frac { 1 } { 4 } u _ { b } ^ { ( 1 ) } - \frac { 1 } { 4 } \Delta t u _ { b } ^ { ( 1 ), ( 1 ) }, \\ & = g ( t _ { n } ) + \frac { 1 } { 2 } \Delta t g ^ { \prime } ( t _ { n } ) + \frac { 1 } { 4 } \Delta t ^ { 2 } \Delta t u _ { b } ^ { n, ( 2 ) }. \\.$$

If we use (4.5) for u n, (2) b obtained by the ILW procedure, then

$$u _ { b } ^ { ( 2 ) } = g ( t _ { n } ) + \frac { 1 } { 2 } \Delta t g ^ { \prime } ( t _ { n } ) + \frac { 1 } { 4 } \Delta t ^ { 2 } g ^ { \prime \prime } ( t _ { n } ).$$

In this case, the relations (4.3), (4.7) and (4.10) are exactly the boundary conditions imposed at each stage in [12, 25].

If the WENO extrapolation is adopted for u n, (2) b , then

$$u _ { b } ^ { ( 2 ) } = g ( t _ { n } ) + \frac { 1 } { 2 } \Delta t g ^ { \prime } ( t _ { n } ) + \frac { 1 } { 4 } \Delta t ^ { 2 } g ^ { \prime \prime } ( t _ { n } ) + \mathcal { O } ( \Delta t ^ { 3 } ),$$

which only differs from that in (4.10) with a third-order term O (∆ t 3 ) and thus maintains the third-order accuracy of the boundary treatment.

## 4.2 Nonlinear equation

We further show that the above analysis also applies to the nonlinear case. To this end, we use the third-order RK scheme (4.2) for a nonlinear scalar equation

$$& \partial _ { t } u + \partial _ { x } f ( u ) = 0, \quad 0 \leq x \leq 1, \quad t > 0, \\ & u ( t, 0 ) = g ( t )$$

with f ′ ( u (0 , t )) &gt; 0, and apply our method at the left boundary x b = 0.

First, it is trivial that the boundary condition for u n is u n b = g t ( n ). Using the ILW procedure, we can obtain [25]

$$u _ { b } ^ { n. ( 1 ) } & = \partial _ { x } u ( t _ { n }, x _ { b } ) = - \frac { g ^ { \prime } ( t _ { n } ) } { f ^ { \prime } ( g ( t _ { n } ) ) } \\ u _ { b } ^ { n. ( 2 ) } & = \partial _ { x x } u ( t _ { n }, x _ { b } ) = \frac { f ^ { \prime } ( g ( t _ { n } ) ) g ^ { \prime \prime } ( t _ { n } ) - 2 f ^ { \prime \prime } ( g ( t _ { n } ) ) g ^ { \prime } ( t _ { n } ) ^ { 2 } } { f ^ { \prime } ( g ( t _ { n } ) ) ^ { 3 } }.$$

According to our boundary treatment, the RK scheme (4.2a) for u (1) is used at the boundary to determine u (1) b :

$$u _ { b } ^ { ( 1 ) } = u _ { b } ^ { n } - \Delta t f ^ { \prime } ( u _ { b } ^ { n } ) u _ { x } ( t _ { n }, x _ { b } ) = g ( t _ { n } ) + \Delta t g ^ { \prime } ( t _ { n } ).$$

Moreover, taking derivatives with respect to x on both sides of the scheme (4.2a) and evaluating at the boundary point x = x b , we have

$$\text{using at the boundary point } x = x _ { b }, \, \text{we have} \\ u _ { b } ^ { ( 1 ), ( 1 ) } & = u _ { b } ^ { n, ( 1 ) } - \Delta t \left ( f ^ { \prime \prime } ( u _ { b } ^ { n } ) \partial _ { x } u ^ { 2 } ( t _ { n }, x _ { b } ) + f ^ { \prime } ( u _ { b } ^ { n } ) \partial _ { x x } u ( t _ { n }, x _ { b } ) \right ) \\ & = - \frac { g ^ { \prime } ( t _ { n } ) } { f ^ { \prime } ( g ( t _ { n } ) ) } - \Delta t f ^ { \prime \prime } ( g ( t _ { n } ) ) \left ( \frac { g ^ { \prime } ( t _ { n } ) } { f ^ { \prime } ( g ( t _ { n } ) ) } \right ) ^ { 2 } \\ & \quad - \Delta t f ^ { \prime } ( g ( t _ { n } ) ) \frac { f ^ { \prime } ( g ( t _ { n } ) ) g ^ { \prime \prime } ( t _ { n } ) - 2 f ^ { \prime \prime } ( g ( t _ { n } ) ) g ^ { \prime } ( t _ { n } ) ^ { 2 } } { f ^ { \prime } ( g ( t _ { n } ) ) ^ { 3 } } \\ & = - \frac { g ^ { \prime } ( t _ { n } ) } { f ^ { \prime } ( g ( t _ { n } ) ) } - \Delta t \frac { f ^ { \prime } ( g ( t _ { n } ) ) g ^ { \prime \prime } ( t _ { n } ) - f ^ { \prime \prime } ( g ( t _ { n } ) ) g ^ { \prime } ( t _ { n } ) ^ { 2 } } { f ^ { \prime } ( g ( t _ { n } ) ) ^ { 2 } }.$$

Thus u (2) b determined by the scheme (4.2b) is

$$\text{ Thus } u _ { b } ^ { ( 2 ) } & = \frac { 3 } { 4 } u _ { b } ^ { n } + \frac { 1 } { 4 } u _ { b } ^ { ( 1 ) } - \frac { 1 } { 4 } \Delta t f ^ { \prime } ( u _ { b } ^ { ( 1 ) } ) u _ { b } ^ { ( 1 ) } \\ & = g ( t _ { n } ) + \frac { 1 } { 4 } \Delta t g ^ { \prime } ( t _ { n } ) - \frac { 1 } { 4 } \Delta t f ^ { \prime } ( g ( t _ { n } ) + \Delta t g ^ { \prime } ( t _ { n } ) ) \\ & \quad \times \left ( - \frac { g ^ { \prime } ( t _ { n } ) } { f ^ { \prime } ( g ( t _ { n } ) ) } - \Delta t \frac { f ^ { \prime } ( g ( t _ { n } ) ) g ^ { \prime } ( t _ { n } ) - f ^ { \prime } ( g ( t _ { n } ) ) g ^ { \prime } ( t _ { n } ) ^ { 2 } } { f ^ { \prime } ( g ( t _ { n } ) ) ^ { 2 } } \right ) \\ & = g ( t _ { n } ) + \frac { 1 } { 4 } \Delta t \left ( 1 + \frac { f ^ { \prime } ( g ( t _ { n } ) + \Delta t g ^ { \prime } ( t _ { n } ) ) } { f ^ { \prime } ( g ( t _ { n } ) ) } \right ) g ^ { \prime } ( t _ { n } ) \\ & \quad + \frac { 1 } { 4 } \Delta t ^ { 2 } \frac { f ^ { \prime } ( g ( t _ { n } ) + \Delta t g ^ { \prime } ( t _ { n } ) ) \left ( f ^ { \prime } ( g ( t _ { n } ) ) g ^ { \prime \prime } ( t _ { n } ) - f ^ { \prime \prime } ( g ( t _ { n } ) ) g ^ { \prime } ( t _ { n } ) ^ { 2 } \right ) } { f ^ { \prime } ( g ( t _ { n } ) ) ^ { 2 } }. \\ \text{Equations } ( 4. 1 3 ) \text{ and } ( 4. 1 5 ) \text{ are the boundary conditions for } u ^ { ( 1 ) } \text{ and } u ^ { ( 2 ) }, \text{ respectively. } \text{ In}$$

Equations (4.13) and (4.15) are the boundary conditions for u (1) and u (2) , respectively. In particular, (4.13) is the same with (4.7), and (4.15) degenerates to (4.10) when f ( u ) is linear. Moreover, for nonlinear f ( u ) we conduct the Taylor expansion

$$f ^ { \prime } ( g ( t _ { n } ) + \Delta t g ^ { \prime } ( t _ { n } ) ) = f ^ { \prime } ( g ( t _ { n } ) ) + \Delta t g ^ { \prime } ( t _ { n } ) f ^ { \prime \prime } ( g ( t _ { n } ) ) + \mathcal { O } ( \Delta t ^ { 2 } )$$

and then (4.15) reduces to

$$u _ { b } ^ { ( 2 ) } & = g ( t _ { n } ) + \frac { 1 } { 4 } \Delta t \left ( 2 + \Delta t \frac { g ^ { \prime } ( t _ { n } ) f ^ { \prime \prime } ( g ( t _ { n } ) ) } { f ^ { \prime } ( g ( t _ { n } ) ) } \right ) g ^ { \prime } ( t _ { n } ) \\ & \quad + \frac { 1 } { 4 } \Delta t ^ { 2 } \frac { f ^ { \prime } ( g ( t _ { n } ) ) \left [ f ^ { \prime } ( g ( t _ { n } ) ) g ^ { \prime \prime } ( t _ { n } ) - f ^ { \prime \prime } ( g ( t _ { n } ) ) g ^ { \prime } ( t _ { n } ) ^ { 2 } \right ] } { f ^ { \prime } ( g ( t _ { n } ) ) ^ { 2 } } + \mathcal { O } ( \Delta t ^ { 3 } ) \\ & = g ( t _ { n } ) + \frac { 1 } { 2 } \Delta t g ^ { \prime } ( t _ { n } ) + \frac { 1 } { 4 } \Delta t ^ { 2 } g ^ { \prime \prime } ( t _ { n } ) + \mathcal { O } ( \Delta t ^ { 3 } ). \\ \intertext { T h a s s m a s s m a s s m a s s m a s s m a s s m a s s m a s s m a s s m a s s m a s s m a s s m a s s m a s s m a s s m a s s m a s s m a s s m a s s m a s s m a s s m a s s m a s s m a s s m a s s m a s s m a s s m a s s m a s s m a s s m a s s m a s s m a s s m a s s m a s s m a s s m a s s m a s s m a s s m a s s m a s s m a s s m a s s m a s s m a s s m a s s m a s s m a s s m a s s m a s s m a s s s m a s s m a s s m a s s m a s s m a s s m a s s m a s s m a s s m a s s m a s s m a s s m a s s m a s s m a s s m a s s m a s s m a s s m a s s m a s s m a s s m a s s m a s s m a s s m a s s m a s s m a s s m a s s m a s s m a s s m a s s m a s s m a s s m a s s m a s s m a s s m a s s m a s s m a s s m a s s m a s s m a s s m a s s m a s s m a s s m a s s m a s s m a s s m a s s m a s s m b s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s t s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s ss s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s b s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s bs s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s b b s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s t t s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s b e s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s e s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s b a s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s c s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s  s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s g s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s f s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s r s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s m a s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s$$

The above expression of u (2) b only differs from (4.10) with O (∆ t 3 ) and thus the overall accuracy is still third order.

This analysis shows the correctness of our boundary treatment when it is applied to the explicit third-order RK scheme.

## 5 Boundary treatment for 2D reactive Euler equations

In this section, we extend the above idea of boundary treatment to the 2D case. For convenience of representation, we concentrate on the 2D reactive Euler equations

$$\partial _ { t } U + \partial _ { x } F ( U ) + \partial _ { y } G ( U ) = S ( U ), \quad ( x, y ) \in \Omega,$$

where

$$U = ( \rho, \rho u, \rho v, E, \rho Y ) ^ { T },$$

$$F ( U ) = ( \rho u, \rho u ^ { 2 } + p, \rho u v, ( E + p ) u, \rho u Y ) ^ { T },$$

$$G ( U ) & = ( \rho v, \rho u v, \rho v ^ { 2 } + p, ( E + p ) v, \rho v Y ) ^ { T }, \\ S ( U ) & = ( 0, 0, 0, 0, \omega )$$

and E = 1 2 ρ u ( 2 + v 2 ) + p γ -1 + ρqY . Here ρ is the density, u and v are the velocities in x and y directions, E is the total energy, p is the pressure, Y is the reactant mass fraction, q &gt; 0 is the heat release of reaction and γ is the specific heat ratio. The source term is assumed to be in an Arrhenius form

$$\omega = - \tilde { K } \rho Y e ^ { - \tilde { T } / T },$$

where T = p/ρ is the temperature, ˜ T &gt; 0 is the activation constant temperature and ˜ K &gt; 0 is a constant rate coefficient.

The IMEX RK scheme for the 2D reactive Euler equations (5.1) is

$$U ^ { ( i ) } = U ^ { n } - \Delta t \sum _ { j = 1 } ^ { i - 1 } \tilde { a } _ { i j } \partial _ { x } F ( U ^ { ( j ) } ) - \Delta t \sum _ { j = 1 } ^ { i - 1 } \tilde { a } _ { i j } \partial _ { y } G ( U ^ { ( j ) } ) + \Delta t \sum _ { j = 1 } ^ { i } a _ { i j } S ( U ^ { ( j ) } ), \quad i = 1, 2, \dots, s,$$

(5.2a)

$$U ^ { n + 1 } = U ^ { n } - \Delta t \sum _ { i = 1 } ^ { s } \tilde { \omega } _ { i } \partial _ { x } F ( U ^ { ( i ) } ) - \Delta t \sum _ { i = 1 } ^ { s } \tilde { \omega } _ { i } \partial _ { y } G ( U ^ { ( i ) } ) + \Delta t \sum _ { i = 1 } ^ { s } \omega _ { i } S ( U ^ { ( i ) } ),$$

where the coefficients ˜ a ij , a ij , ˜ ω i and ω i are the same with those in (2.3). Assume the solutions of all the grid points inside Ω have been updated from time level t n -1 to t n . For a ghost point P , we find a point P 0 = ( x , y 0 0 ) = x 0 on the boundary ∂ Ω such that the normal n x ( 0 ) at P 0 goes through P . Here n x ( 0 ) points to the exterior of Ω. We set up a local coordinate system at P 0 by

$$\left ( \begin{array} { c } \hat { x } \\ \hat { y } \end{array} \right ) = \left ( \begin{array} { c c } \cos \theta & \sin \theta \\ - \sin \theta & \cos \theta \end{array} \right ) \left ( \begin{array} { c } x \\ y \end{array} \right ) = \mathbf T \left ( \begin{array} { c } x \\ y \end{array} \right ),$$

where θ is the angle between the normal n x ( 0 ) and the x -axis, and T is a rotational matrix.

The ˆ-axis then points in the same direction as x n x ( 0 ) and the ˆ-axis points in the tangent y

direction. In this local coordinate system, the reactive Euler equations (5.1) become

$$\hat { U } _ { t } + F ( \hat { U } ) _ { \hat { x } } + G ( \hat { U } ) _ { \hat { y } } = S ( \hat { U } )$$

with

$$\hat { U } = ( \rho, \rho \hat { u }, \rho \hat { v }, E, \rho Y ) ^ { T }, \ \left ( \begin{array} { c } \hat { u } \\ \hat { v } \end{array} \right ) = \mathbf T \left ( \begin{array} { c } u \\ v \end{array} \right ).$$

The IMEX scheme in this coordinate is

$$\hat { U } ^ { ( i ) } & = \hat { U } ^ { n } - \Delta t \sum _ { j = 1 } ^ { i - 1 } \tilde { a } _ { i j } \partial _ { \tilde { x } } F ( \hat { U } ^ { ( j ) } ) - \Delta t \sum _ { j = 1 } ^ { i - 1 } \tilde { a } _ { i j } \partial _ { \tilde { y } } G ( \hat { U } ^ { ( j ) } ) + \Delta t \sum _ { j = 1 } ^ { i } a _ { i j } S ( \hat { U } ^ { ( j ) } ), \quad i = 1, 2, \dots, s, \\ & \quad \tilde { \ } \times$$

$$\hat { U } ^ { n + 1 } = \hat { U } ^ { n } - \Delta t \sum _ { i = 1 } ^ { s } \tilde { \omega } _ { i } \partial _ { \tilde { x } } F ( \hat { U } ^ { ( i ) } ) - \Delta t \sum _ { i = 1 } ^ { s } \tilde { \omega } _ { i } \partial _ { \tilde { y } } G ( \hat { U } ^ { ( i ) } ) + \Delta t \sum _ { i = 1 } ^ { s } \omega _ { i } S ( \hat { U } ^ { ( i ) } ).$$

For a third-order boundary treatment, ˆ U n at the ghost point P is imposed by the Taylor expansion

$$\hat { U } ^ { n } ( P ) = \sum _ { k = 0 } ^ { 2 } \frac { \Delta ^ { k } } { k! } \hat { U } ^ { n, ( k ) },$$

where ∆ is the ˆ-coordinate of x P and ˆ U n, k ( ) is a (3 -k )-th order approximation of the normal derivative ∂ k ˆ U ∂x ˆ k ∣ ∣ ( x,y )= x 0 ,t = t n . With ˆ U n at ghost points, ˆ U (1) at interior points can be obtained with the scheme (5.5a). Since the computation of ˆ U n, k ( ) is the same with that in [26] and its basic idea has been illustrated for the 1D case, we omit the details here.

The next step is to compute ˆ U (1) at the ghost points. Similar to the 1D case, we use the Taylor expansion

$$\hat { U } ^ { ( 1 ) } ( P ) = \sum _ { k = 0 } ^ { 2 } \frac { \Delta ^ { k } } { k! } \hat { U } ^ { ( 1 ), ( k ) } \\ \dots$$

with ˆ U (1) ( , k ) a (3 -k )-th order approximation of ∂ k ˆ U (1) ∂x ˆ k ∣ ∣ ( x,y )= x 0 , and turn to determine ˆ U (1) ( , k ) , k = 0 1 2. First, , , ˆ U (1) (0) , = ˆ U (1) ( P 0 ) can be computed with scheme (5.5a), i.e. ,

$$\hat { U } ^ { ( 1 ) } ( P _ { 0 } ) = \hat { U } ^ { n } ( P _ { 0 } ) - \Delta t \tilde { a } _ { 1 1 } \partial _ { \tilde { x } } F ( \hat { U } ^ { n } ) ( P _ { 0 } ) - \Delta t \tilde { a } _ { 1 1 } \partial _ { \tilde { y } } G ( \hat { U } ^ { n } ) ( P _ { 0 } ) + \Delta t a _ { 1 1 } S ( \hat { U } ^ { ( 1 ) } ) ( P _ { 0 } ). \ \ ( 5. 8 )$$

Furthermore, taking derivatives with respect to ˆ and ˆ on both sides of the above equation, x y

## we obtain

∂ U ˆ x ˆ (1) ( P 0 ) = ∂ U ˆ x ˆ n ( P 0 ) -∆ ˜ ta 11 ∂ ˆˆ xx F U ( ˆ n )( P 0 ) -∆ ˜ ta 11 ∂ ˆˆ xy G U ( ˆ n )( P 0 ) + ∆ ta 11 S U ( ˆ U (1) ) ∂ U ˆ x ˆ (1) ( P 0 ) , ∂ U ˆ y ˆ (1) ( P 0 ) = ∂ U ˆ y ˆ n ( P 0 ) -∆ ˜ ta 11 ∂ ˆˆ xy F U ( ˆ n )( P 0 ) -∆ ˜ ta 11 ∂ ˆˆ yy G U ( ˆ n )( P 0 ) + ∆ ta 11 S U ( ˆ U (1) ) ∂ U ˆ y ˆ (1) ( P 0 ) . (5.9)

Since ˆ U (1) ( P 0 ) has already been obtained, and ∂ ˆˆ xx F U ( ˆ n )( P 0 ) , ∂ ˆˆ xy G U ( ˆ n )( P 0 ) , ∂ ˆˆ xy F U ( ˆ n )( P 0 ) and ∂ ˆˆ yy G U ( ˆ n )( P 0 ) can be approximated with ˆ U n at interior grid points by the 2D WENO type extrapolation [26], then ∂ U ˆ x ˆ (1) ( P 0 ) and ∂ U ˆ y ˆ (1) ( P 0 ) can be solved out from the above equation. High order derivatives, ∂ ˆˆ xx ˆ U (1) ( P 0 ), ∂ ˆˆ xy ˆ U (1) ( P 0 ) and ∂ ˆˆ yy ˆ U (1) ( P 0 ), are also computed by the 2D WENO type extrapolation [26]. Then ˆ U (1) ( P ) can be computed with (5.7), and similarly ˆ U ( k ) ( P , k ) ≥ 2 can be obtained. The velocities at the ghost point can be transformed back to the original coordinate by

$$\left ( \begin{array} { c } u \\ v \end{array} \right ) = \mathbf T ^ { - 1 } \left ( \begin{array} { c } \hat { u } \\ \hat { v } \end{array} \right )$$

while the scalar quantities remain unchanged in the two coordinates. In this way, both the solutions U n at time t n and intermediate solutions U ( ) i at ghost points are determined. Note that the 2D WENO type extrapolation has been been introduced detailedly in [26] and thus is omitted here.

## 6 Numerical validations

In this section we conduct several numerical experiments for both 1D and 2D problems to demonstrate the numerical stability and accuracy of our boundary treatment. In all the computations, we use the third-order finite difference WENO scheme [20] with the LaxFriedrichs flux splitting to form the numerical fluxes [18] and the third-order IMEX RK scheme proposed in [7] with the double Butcher tableau

| 0   | 0     | 0    | 0   | 0    |   0 | 0   |   0 | 0    | 0    | 0   | 0   |
|-----|-------|------|-----|------|-----|-----|-----|------|------|-----|-----|
| 1/2 | 1/2   | 0    | 0   | 0    |   0 | 1/2 |   0 | 1/2  | 0    | 0   | 0   |
| 2/3 | 11/18 | 1/18 | 0   | 0    |   0 | 2/3 |   0 | 1/6  | 1/2  | 0   | 0   |
| 1/2 | 5/6   | -5/6 | 1/2 | 0    |   0 | 1/2 |   0 | -1/2 | 1/2  | 1/2 | 0   |
| 1   | 1/4   | 7/4  | 3/4 | -7/4 |   0 | 1   |   0 | 3/2  | -3/2 | 1/2 | 1/2 |
|     | 1/4   | 7/4  | 3/4 | -7/4 |   0 |     |   0 | 3/2  | -3/2 | 1/2 | 1/2 |

Additionally, we fix the CFL number to be 0 8 in all the numerical examples. . For all the 1D examples, the mesh for computation is taken as (3.1), namely, the boundary is located in the middle of two grid points. Different locations of the boundary are studied for 2D problems.

## 6.1 1D examples

Example 1. We first consider a 1D scalar hyperbolic equation

$$\partial _ { t } u + u \partial _ { x } u = u ^ { 2 } + u,$$

in the domain 0 ≤ x ≤ 1 with analytical solution u = exp( t + ). Since x u &gt; 0, the boundary condition only needs to be imposed at x = 0. Specifically, the initial and boundary conditions are set as

$$u ( x, 0 ) = \exp ( x ), \quad u ( 0, t ) = \exp ( t ).$$

We compute the L , L 1 2 and L ∞ errors at the terminal time t = 1, and the results are listed in Table 6.1. It can be seen that the convergence order is around three.

Table 6.1: Example 1: error table for the scalar nonlinear equation (6.1).

| ∆ x   |   L 1 error | order   |   L 2 error | order   |   L ∞ error | order   |
|-------|-------------|---------|-------------|---------|-------------|---------|
| 1/20  |    0.000762 |         |    0.00129  |         |    0.00422  |         |
| 1/40  |    0.000113 | 2.75    |    0.000217 | 2.57    |    0.000957 | 2.14    |
| 1/80  |    1.41e-05 | 3.01    |    2.59e-05 | 3.07    |    0.000107 | 3.16    |
| 1/160 |    1.5e-06  | 3.23    |    2.42e-06 | 3.42    |    7.2e-06  | 3.89    |
| 1/320 |    1.57e-07 | 3.25    |    2.32e-07 | 3.38    |    5.53e-07 | 3.70    |

Example 2. Next we solve a 1D linear system

$$\partial _ { t } u + \partial _ { x } v & = 0 \\ \partial _ { t } v + \partial _ { x } u & = - \frac { 1 } { \epsilon } ( u + v )$$

in the domain 0 ≤ x ≤ 1. The Jacobian matrix has two eigenvalues ± 1 and thus only one boundary condition should be imposed at x = 0 and also x = 1, respectively. We construct two sets of analytical solutions to (6.3):

$$u ( t, x ) = \exp ( t + x ), \quad v ( t, x ) = - \exp ( t + x )$$

and

$$u ( t, x ) = \exp ( t + x ) + \exp ( - \frac { x } { \epsilon } ), \quad v ( t, x ) = - \exp ( t + x ).$$

There exists no boundary layer for the first solution (6.4) while the boundary layer occurs at x = 0 for the second one (6.5) with small /epsilon1 &gt; 0. We test our method for the two cases by taking the initial data to match the analytical solution. The mesh is given as (3.2) and the solutions of u at t = 1 are used to evaluate the errors. In the second case, the three interior grid points near the left boundary are excluded in the computation of the errors due to the existence of the boundary layer.

For the solution (6.4), we specify u and v at the left and right boundaries, respectively, i.e. ,

$$u ( t, 0 ) & = \exp ( t ) \quad \text{at} \quad x = 0, \\ v ( t, 1 ) & = - \exp ( t + 1 ) \quad \text{at} \quad x = 1.$$

Similarly, the boundary condition for (6.5) is given by

$$u ( t, 0 ) & = \exp ( t ) + 1 \quad \text{at} \quad x = 0, \\ v ( t, 1 ) & = - \exp ( t + 1 ) \quad \text{at} \quad x = 1.$$

The errors for the first case with solution (6.4) are given in Table 6.2, from which the desired third-order convergence can be observed. For the second case with solution (6.5), we take /epsilon1 = 1 and 10 -10 to test the convergence order. The results in Table 6.3 show that the present method of boundary treatment is third-order accurate for both choices of ∆ x /lessmuch /epsilon1 and ∆ x /greatermuch /epsilon1 . Fig. 6.1 shows the solutions near the left boundary for different /epsilon1 with ∆ x = 1 80. It can be seen that our method behaves well even in the presence of boundary / layer.

Example 3. We further construct the following nonlinear system

$$& \partial _ { t } u + \partial _ { x } v = 0 \\ & \partial _ { t } v + \partial _ { x } [ u + \frac { 1 } { 2 } ( u + v ) ^ { 2 } ] = - \frac { 1 } { \epsilon } [ u + v + ( u + v ) ^ { 2 } ] \\ & \quad. \quad \. \quad. \quad. \quad. \quad.$$

in the domain 0 ≤ x ≤ 1 to test the accuracy of our method. The expressions (6.4) and (6.5) are also analytical solutions to (6.8) if cooperated with appropriate initial and boundary

Table 6.2: Example 2: error table for the linear system (6.3) with solution (6.4).

| ∆ x   |   L 1 error | order   |   L 2 error | order   |   L ∞ error | order   |
|-------|-------------|---------|-------------|---------|-------------|---------|
| 1/20  |    0.000977 |         |    0.00106  |         |    0.00237  |         |
| 1/40  |    0.000108 | 3.03    |    0.000125 | 3.08    |    0.00032  | 2.89    |
| 1/80  |    1.46e-05 | 2.88    |    1.71e-05 | 2.87    |    6.59e-05 | 2.28    |
| 1/160 |    1.78e-06 | 3.03    |    1.95e-06 | 3.14    |    5.58e-06 | 3.56    |
| 1/320 |    2.35e-07 | 2.93    |    2.52e-07 | 2.95    |    7.24e-07 | 2.95    |

Table 6.3: Example 2: Error table for the linear system (6.3) with solution (6.5).

## /epsilon1 = 1

| ∆ x   |   L 1 error | order   |   L 2 error | order   |   L ∞ error | order   |
|-------|-------------|---------|-------------|---------|-------------|---------|
| 1/20  |    0.00101  |         |    0.00118  |         |    0.00239  |         |
| 1/40  |    0.00012  | 3.08    |    0.000134 | 3.14    |    0.000317 | 2.91    |
| 1/80  |    1.57e-05 | 2.93    |    1.78e-05 | 2.91    |    6.49e-05 | 2.29    |
| 1/160 |    1.9e-06  | 3.05    |    2.02e-06 | 3.14    |    5.52e-06 | 3.56    |
| 1/320 |    2.49e-07 | 2.93    |    2.62e-07 | 2.95    |    7.19e-07 | 2.94    |

## /epsilon1 = 10 -10

| ∆ x   |   L 1 error | order   |   L 2 error | order   |   L ∞ error | order   |
|-------|-------------|---------|-------------|---------|-------------|---------|
| 1/20  |    0.000966 |         |    0.00116  |         |    0.00238  |         |
| 1/40  |    0.000116 | 3.06    |    0.000132 | 3.13    |    0.000322 | 2.89    |
| 1/80  |    1.53e-05 | 2.93    |    1.77e-05 | 2.90    |    6.58e-05 | 2.29    |
| 1/160 |    1.84e-06 | 3.04    |    2.01e-06 | 3.14    |    5.72e-06 | 3.52    |
| 1/320 |    2.51e-07 | 2.88    |    2.68e-07 | 2.91    |    7.07e-07 | 3.02    |

Figure 6.1: Example 2: Comparison of the computational results (markers) and analytical solution (line) of the linear system (6.3) with different /epsilon1 and fixed ∆ x = 1 80. /

![image](https://ac.marcodsn.me/arxiv-markdown-images/1908.01027v1-figure-a9cd0c74-3293-4b4f-8bba-5e85f47d8e07.jpg)

conditions. The Jacobian matrix of the flux is

$$A = \left ( \begin{array} { c c } 0 & 1 \\ 1 + u + v & u + v \end{array} \right )$$

and it can be diagonalized as

$$L A R = \left ( \begin{array} { c c } 1 + u + v & 0 \\ 0 & - 1 \end{array} \right ),$$

where 1 + u + v &gt; 0 and

$$L = \left ( \begin{array} { c c } 1 & 1 \\ 1 & - \frac { 1 } { 1 + u + v } \end{array} \right ), \quad R = L ^ { - 1 } = \left ( \begin{array} { c c } \frac { 1 } { 2 + u + v } & \frac { 1 + u + v } { 2 + u + v } \\ \frac { 1 + u + v } { 2 + u + v } & - \frac { 1 + u + v } { 2 + u + v } \end{array} \right ).$$

The boundary conditions in (6.6) and (6.7) are employed here.

The errors of the solution (6.4) with boundary condition (6.6) are given in Table 6.4 and the desired third-order accuracy is achieved again. Similar to the linear system, we take

/epsilon1 = 1 and 10 -10 for the solution (6.5) with boundary condition (6.7) and the errors are shown in Table 6.5. It is clear that the convergence orders are about 3 for both choices of /epsilon1 .

These results demonstrate the third-order accuracy of our method for nonlinear systems.

Table 6.4: Example 3: error table for the nonlinear system (6.8) with solution (6.4).

| ∆ x   |   L 1 error | order   |   L 2 error | order   |   L ∞ error | order   |
|-------|-------------|---------|-------------|---------|-------------|---------|
| 1/20  |    0.000925 |         |    0.00109  |         |    0.00239  |         |
| 1/40  |    0.000113 | 3.03    |    0.000129 | 3.08    |    0.000322 | 2.89    |
| 1/80  |    1.52e-05 | 2.89    |    1.76e-05 | 2.87    |    6.61e-05 | 2.28    |
| 1/160 |    1.86e-06 | 3.03    |    2.01e-06 | 3.13    |    5.61e-06 | 3.56    |
| 1/320 |    2.44e-07 | 2.93    |    2.6e-07  | 2.95    |    7.28e-07 | 2.95    |

Table 6.5: Example 3: error table for the nonlinear system (6.8) with solution (6.5).

## /epsilon1 = 1

| ∆ x   |   L 1 error | order   |   L 2 error | order   |   L ∞ error | order   |
|-------|-------------|---------|-------------|---------|-------------|---------|
| 1/20  |    0.000252 |         |    0.000299 |         |    0.000433 |         |
| 1/40  |    4.28e-05 | 2.56    |    4.77e-05 | 2.65    |    6.74e-05 | 2.68    |
| 1/80  |    6.09e-06 | 2.81    |    6.58e-06 | 2.86    |    8.98e-06 | 2.91    |
| 1/160 |    7.86e-07 | 2.95    |    8.33e-07 | 2.98    |    1.1e-06  | 3.03    |
| 1/320 |    9.25e-08 | 3.09    |    9.66e-08 | 3.11    |    1.22e-07 | 3.18    |

## /epsilon1 = 10 -10

| ∆ x   |   L 1 error | order   |   L 2 error | order   |   L ∞ error | order   |
|-------|-------------|---------|-------------|---------|-------------|---------|
| 1/20  |    0.000966 |         |    0.00116  |         |    0.00238  |         |
| 1/40  |    0.000116 | 3.06    |    0.000132 | 3.13    |    0.000322 | 2.89    |
| 1/80  |    1.53e-05 | 2.93    |    1.77e-05 | 2.90    |    6.58e-05 | 2.29    |
| 1/160 |    1.84e-06 | 3.04    |    2.01e-06 | 3.14    |    5.72e-06 | 3.52    |
| 1/320 |    2.51e-07 | 2.88    |    2.68e-07 | 2.91    |    7.07e-07 | 3.02    |

## 6.2 2D reactive Euler equations

All the following examples are devoted to validate our boundary treatment for the 2D reactive Euler equations (5.1). The parameters are fixed as in [27]:

$$\gamma = 1. 2, \ \ q = 5 0, \ \tilde { T } = 5 0, \ \tilde { K } = 2 5 6 6. 4.$$

Example 4. We first verify the accuracy of the method through a problem with analytical

solution

$$\rho = 1 + 0. 3 \sin [ 2 \pi ( x + y - t ) ], \ \ u = 1, \ \ v = 0, \ \ p = 1, \ \ Y = 0$$

in a square domain [0 , 1] × [0 , 1], subject to periodic boundary conditions at the left and right boundaries and v = 0 at the top and bottom boundaries. The latter boundary condition is treated with our method. The mesh for computation is illustrated in Fig. 6.2. As shown in the figure, the distance between the bottom boundary and its adjacent gird line is η ∆ x and that at the top boundary is (1 -η )∆ . x The left and right boundaries are placed in a similar way. We test the accuracy with η = 0 5 0 7 and 0.9, and the results are listed in . , . Table 6.6. It can be seen that the influence of η on the errors is slight and the convergence order is about 3 for all the three choices of η . These demonstrate the third-order accuracy of our method for 2D problems.

Figure 6.2: Example 4: Illustration of the mesh. The thin lines are the grid lines and the thick lines are the boundaries of the square domain [0 1] , × [0 , 1]. The distance between the bottom boundary and its adjacent gird line is η ∆ x and that at the top boundary is (1 -η )∆ . x In a similar way the left and right boundaries are placed. Two layers of grid points are required outside each boundary for the third-order WENO scheme.

![image](https://ac.marcodsn.me/arxiv-markdown-images/1908.01027v1-figure-c0c35a41-3809-4043-81a5-5eac665235a4.jpg)

| } (1 - η ) ∆ x   | } (1 - η ) ∆ x   |
|------------------|------------------|
|                  | } (1 -           |
|                  | } η ∆ x          |

Example 5. Next we test our method with the example in [27] containing discontinuity.

Table 6.6: Example 4: error table for 2D reactive euler equations with solution (6.9).

| η = 0 . 5   | η = 0 . 5   | η = 0 . 5   | η = 0 . 5   | η = 0 . 5   | η = 0 . 5   | η = 0 . 5   |
|-------------|-------------|-------------|-------------|-------------|-------------|-------------|
| ∆ x         | L 1 error   | order       | L 2 error   | order       | L ∞ error   | order       |
| 1/20        | 1.37e-2     |             | 1.64e-2     |             | 3.18e-2     |             |
| 1/40        | 4.12e-3     | 1.73        | 5.55e-3     | 1.56        | 1.29e-2     | 1.30        |
| 1/80        | 7.78e-4     | 2.40        | 1.27e-3     | 2.13        | 3.75e-3     | 1.78        |
| 1/160       | 7.35e-5     | 3.40        | 1.35e-4     | 3.23        | 5.25e-4     | 2.84        |

η = 0 7 .

| ∆ x   |   L 1 error | order   |   L 2 error | order   |   L ∞ error | order   |
|-------|-------------|---------|-------------|---------|-------------|---------|
| 1/20  |    0.0141   |         |    0.0164   |         |    0.031    |         |
| 1/40  |    0.0041   | 1.78    |    0.00556  | 1.56    |    0.0127   | 1.28    |
| 1/80  |    0.000779 | 2.40    |    0.00127  | 2.13    |    0.00376  | 1.76    |
| 1/160 |    7.34e-05 | 3.41    |    0.000135 | 3.23    |    0.000532 | 2.82    |

η = 0 9 .

| ∆ x   |   L 1 error | order   |   L 2 error | order   |   L ∞ error | order   |
|-------|-------------|---------|-------------|---------|-------------|---------|
| 1/20  |    0.0144   |         |    0.0166   |         |    0.0308   |         |
| 1/40  |    0.00412  | 1.81    |    0.00558  | 1.57    |    0.0126   | 1.28    |
| 1/80  |    0.00077  | 2.42    |    0.00127  | 2.14    |    0.00369  | 1.78    |
| 1/160 |    7.34e-05 | 3.39    |    0.000135 | 3.23    |    0.000527 | 2.81    |

The computational domain is [0 2] , × [0 , 2] and the initial data is

$$( \rho, u, v, p, Y ) = \begin{cases} \begin{array} { c } ( 1, 0, 0, 8 0, 0. 2 ), & x ^ { 2 } + y ^ { 2 } \leq 0. 3 6, \\ ( 1, 0, 0, 1 0, 0. 8 ), & \text{otherwise}, \end{array} \end{cases}$$

where p and Y are different from that in [27] to avoid possibly negative pressure or density. The boundary condition for the left and bottom boundaries are u = 0 and v = 0, respectively, and the solutions of the grid points outside the right and top boundaries are equal to those at the grid points inside the domain.

The mesh for computation is the same as that illustrated in Fig. 6.2 with a ratio η . We compare our results with those of the third-order positivity-preserving scheme in [17] with reflective boundary conditions (left and bottom) under the same mesh size ∆ x = 1 40. The / contour plots of p and ρ at t = 0 16 are given in Fig. 6.3 and the solutions along the horizontal . diagonal line y = x are plotted in Fig. 6.4. Good agreement between the two methods can be observed. Additionally, we compare in Fig. 6.5 the solutions of different ratio η . It can be seen again that the influence of η is small.

![image](https://ac.marcodsn.me/arxiv-markdown-images/1908.01027v1-figure-b9961b0c-1ed6-40b0-9298-f8500f36a1bc.jpg)

![image](https://ac.marcodsn.me/arxiv-markdown-images/1908.01027v1-figure-a274c3f2-036c-4aac-8645-2c051a12acb7.jpg)

![image](https://ac.marcodsn.me/arxiv-markdown-images/1908.01027v1-figure-584ea25e-7c8d-4a36-90ce-9284e57dfbba.jpg)

![image](https://ac.marcodsn.me/arxiv-markdown-images/1908.01027v1-figure-2c6a14a6-8ea8-41df-aa3a-1c14403c1a5f.jpg)

Figure 6.3: Example 5: Contour plots of pressure (top) and density (bottom) of the present method (left) and the third-order positivity-preserving scheme in [17] (right) with ∆ x = 1 40 / at t = 0 16. .

![image](https://ac.marcodsn.me/arxiv-markdown-images/1908.01027v1-figure-a8b69295-c875-4b7b-9c5d-b064f22a178a.jpg)

![image](https://ac.marcodsn.me/arxiv-markdown-images/1908.01027v1-figure-41f766e1-2cb2-406b-b804-d66e7c51c096.jpg)

x

Figure 6.4: Example 5: Comparison of the pressure (left) and density (right) of the present method (circle) and the third-order positivity-preserving scheme in [17] (line) along the diagonal line y = x .

Figure 6.5: Example 5: Comparison of the pressure (left) and density (right) of the present method with different η along the diagonal line y = x .

![image](https://ac.marcodsn.me/arxiv-markdown-images/1908.01027v1-figure-d197de43-1e52-4afc-9a9d-0bdcfebbdaa7.jpg)

![image](https://ac.marcodsn.me/arxiv-markdown-images/1908.01027v1-figure-4de109d3-373d-494f-9f26-cb004f03b901.jpg)

Example 6. We test the detonation diffraction in this example with the same configuration of boundaries in [27] (see Fig. 6.6 below). The spatial domain is [0 , 5] × [0 , 5] and the initial condition is

$$( \rho, u, v, E, Y ) = \begin{cases} \ ( 1 1, 6. 1 8, 0, 9 7 0, 1 ), \quad x < 0. 5, \\ ( 5, 0, 0, 4 0 0, 1 ), \quad \text{otherwise}, \end{cases}$$

which is constructed based on that in [27] to avoid negative pressure or density. The boundary condition is n · u = 0 with n being the normal direction of the boundary, except that at x = 0, ( ρ, u, v, E, Y ) = (11 , 6 18 . , 0 970 1). The terminal time is , , t = 0 6 and the mesh size is . ∆ x = 1 20. The ratio / η is fixed as 0.5 for all the boundaries.

The results of the present boundary treatment and the third-order positivity-preserving scheme in [17] with reflective boundary conditions are compared in Figs. 6.6 (contour plot) and 6.7 (solutions along y = 2 5). . It is clear that good agreements between the two methods are achieved again.

Example 7. Finally, we test our method through an example with multiple obstacles in [17], which is designed following [27]. In this example, the spatial domain is [0 , 10] × [0 , 10] and there are two obstacles with positions [1 , 3] × [0 , 3] and [5 , 10] × [0 , 5], respectively. The initial condition is set as (6.10) and the boundary condition is n u · = 0 for all the boundaries. We take ∆ x = 1 20 and results of the present method and the third-order positivity-preserving / scheme in [17] with reflective boundary conditions are shown in Fig. 6.8 at t = 1 and Fig. 6.9

![image](https://ac.marcodsn.me/arxiv-markdown-images/1908.01027v1-figure-16ee7bf3-e2b4-450e-88f2-da6d12672c5a.jpg)

![image](https://ac.marcodsn.me/arxiv-markdown-images/1908.01027v1-figure-cbefad90-6cdf-421f-b6e0-ef990d53e842.jpg)

![image](https://ac.marcodsn.me/arxiv-markdown-images/1908.01027v1-figure-bbf86aaf-1153-4a69-995e-617cb55e3533.jpg)

![image](https://ac.marcodsn.me/arxiv-markdown-images/1908.01027v1-figure-403ac2f2-691a-4e50-8c06-b8934896e6db.jpg)

Figure 6.6: Example 6: Contour plots of pressure (top) and density (bottom) of the present method (left) and the third-order positivity-preserving scheme in [17] (right) with ∆ x = 1 20 / at t = 0 6. .

![image](https://ac.marcodsn.me/arxiv-markdown-images/1908.01027v1-figure-bb1b89b2-53d1-4ac2-961c-86af4bbba3b8.jpg)

![image](https://ac.marcodsn.me/arxiv-markdown-images/1908.01027v1-figure-0779cda2-8ff3-4e9d-aaf3-88532178867d.jpg)

x

Figure 6.7: Example 6: Comparison of the pressure (left) and density (right) of the present method (circle) and the third-order positivity-preserving scheme in [17] (line) along the horizontal center line y = 2 5. .

at t = 2. It can be seen that the results of the two methods are very similar even with the very coarse mesh, which demonstrate the effectiveness of our boundary treatment for complex domains.

![image](https://ac.marcodsn.me/arxiv-markdown-images/1908.01027v1-figure-2e9b8f6a-8408-4930-bb53-fe0699649392.jpg)

Figure 6.8: Example 7: Contour plots of pressure (top) and density (bottom) of the present method (left) and the third-order positivity-preserving scheme in [17] (right) with ∆ x = 1 20 / at t = 1.

![image](https://ac.marcodsn.me/arxiv-markdown-images/1908.01027v1-figure-bb7ad9ee-6fd7-41ef-94dc-99db5884749d.jpg)

![image](https://ac.marcodsn.me/arxiv-markdown-images/1908.01027v1-figure-f761491c-0ba3-4f59-aff2-13b49cdd9078.jpg)

![image](https://ac.marcodsn.me/arxiv-markdown-images/1908.01027v1-figure-d9403841-9314-468a-92ca-3714aeff0f75.jpg)

## 7 Conclusions and remarks

In this paper, we propose a high order finite difference boundary treatment method for the IMEX RK schemes solving hyperbolic systems with possibly stiff source terms on a Cartesian mesh. By combining the idea of using the RK schemes at the boundary and the ILW procedure, our method not only preserves the accuracy of the RK schemes but also processes good stability. Our method is different from the widely used approach for the explicit RK schemes by imposing boundary conditions for intermediate solutions [12],

Figure 6.9: Example 7: Contour plots of pressure (top) and density (bottom) of the present method (left) and the third-order positivity-preserving scheme in [17] (right) with ∆ x = 1 20 / at t = 2.

![image](https://ac.marcodsn.me/arxiv-markdown-images/1908.01027v1-figure-0960b03f-867c-46db-b0b9-db9e0df81489.jpg)

![image](https://ac.marcodsn.me/arxiv-markdown-images/1908.01027v1-figure-931d2146-d565-4c71-a215-be680348d1d8.jpg)

![image](https://ac.marcodsn.me/arxiv-markdown-images/1908.01027v1-figure-2ae48a0f-b129-40d3-a838-5ba7022d3bec.jpg)

![image](https://ac.marcodsn.me/arxiv-markdown-images/1908.01027v1-figure-aee64563-cd0a-4385-8b92-948c4b037c15.jpg)

which could not be derived for the IMEX schemes. In addition, the intermediate boundary conditions are only available for explicit RK schemes up to third order while our method applies to arbitrary order IMEX and explicit RK schemes. Moreover, we show that our method applied to the third-order IMEX RK scheme solving 1D scalar equations can yield the widely used intermediate-stage boundary conditions in [12]. Finally, both 1D examples and 2D reactive Euler equations are used to demonstrate the good stability and third-order accuracy of our boundary treatment for a specific third-order IMEX scheme.

Since the IMEX RK schemes include explicit schemes as special cases, the present boundary treatment also applies to explicit RK schemes. It does not rely on intermediate-stage boundary conditions and thus is expected to be valid for explicit RK schemes of order higher than three. This will be investigated in our next work. Furthermore, our method

may be adapted to IMEX RK schemes solving the other partial differential equations, e.g. convection-diffusion equations [28, 21, 29] and the Boltzmann equation [13, 16, 15, 19]. Many unresolved issues for the boundary treatment of RK schemes can be explored based on the idea of this work.

## References

- [1] S. Abarbanel, D. Gottlieb, and M. H. Carpenter. On the removal of boundary errors caused by Runge-Kutta integration of nonlinear partial differential equations. SIAM Journal on Scientific Computing , 17(3):777-782, 1996.
- [2] I. Alonso-Mallo. Runge-Kutta methods without order reduction for linear initial boundary value problems. Numerische Mathematik , 91(4):577-603, 2002.
- [3] I. Alonso-Mallo and B. Cano. Spectral/Rosenbrock discretizations without order reduction for linear parabolic problems. Applied Numerical Mathematics , 41(2):247-268, 2002.
- [4] I. Alonso-Mallo, B. Cano, and M. Moreta. Order reduction and how to avoid it when explicit Runge-Kutta-Nystr¨m methods are used to solve linear partial differential equao tions. Journal of Computational and Applied Mathematics , 176(2):293-318, 2005.
- [5] I. Alonso-Mallo, B. Cano, and N. Reguera. Avoiding order reduction when integrating linear initial boundary value problems with lawson methods. IMA Journal of Numerical Analysis , 37(4):2091-2119, 2016.
- [6] I. Alonso-Mallo, B. Cano, and N. Reguera. Avoiding order reduction when integrating linear initial boundary value problems with exponential splitting methods. IMA Journal of Numerical Analysis , 38(3):1294-1323, 2017.

- [7] U. M. Ascher, S. J. Ruuth, and R. J. Spiteri. Implicit-explicit Runge-Kutta methods for time-dependent partial differential equations. Applied Numerical Mathematics , 25(23):151-167, 1997.
- [8] S. Boscarino, L. Pareschi, and G. Russo. Implicit-explicit Runge-Kutta schemes for hyperbolic systems and kinetic equations in the diffusion limit. SIAM Journal on Scientific Computing , 35(1):A22-A51, 2013.
- [9] S. Boscarino, L. Pareschi, and G. Russo. A unified IMEX Runge-Kutta approach for hyperbolic systems with multiscale relaxation. SIAM Journal on Numerical Analysis , 55(4):2085-2109, 2017.
- [10] S. Boscarino, J.-M. Qiu, and G. Russo. Implicit-explicit integral deferred correction methods for stiff problems. SIAM Journal on Scientific Computing , 40(2):A787-A816, 2018.
- [11] S. Boscarino and G. Russo. On a class of uniformly accurate IMEX Runge-Kutta schemes and applications to hyperbolic systems with relaxation. SIAM Journal on Scientific Computing , 31(3):1926-1945, 2009.
- [12] M. H. Carpenter, D. Gottlieb, S. Abarbanel, and W.-S. Don. The theoretical accuracy of runge-kutta time discretizations for the initial boundary value problem: A study of the boundary error. SIAM Journal on Scientific Computing , 16(6):1241-1252, 1995.
- [13] F. Filbet and C. Yang. An inverse Lax-Wendroff method for boundary conditions applied to Boltzmann type models. Journal of Computational Physics , 245(19):43-61, 2013.
- [14] S. Gottlieb, C.-W. Shu, and E. Tadmor. Strong stability-preserving high-order time discretization methods. SIAM review , 43(1):89-112, 2001.

- [15] J. Hu, R. Shu, and X. Zhang. Asymptotic-preserving and positivity-preserving implicitexplicit schemes for the stiff BGK equation. SIAM Journal on Numerical Analysis , 56(2):942-973, 2018.
- [16] J. Hu and X. Zhang. On a class of implicit-explicit Runge-Kutta schemes for stiff kinetic equations preserving the Navier-Stokes limit. Journal of Scientific Computing , 73(2-3):797-818, 2017.
- [17] J. Huang, W. Zhao, and C.-W. Shu. A third-order unconditionally positivity-preserving scheme for production-destruction equations with applications to non-equilibrium flows. Journal of Scientific Computing , 79(2):1015-1056, 2019.
- [18] G.-S. Jiang and C.-W. Shu. Efficient implementation of weighted ENO schemes. Journal of Computational Physics , 126(1):202-228, 1996.
- [19] S. Jin, H. Lu, and L. Pareschi. Efficient stochastic asymptotic-preserving implicitexplicit methods for transport equations with diffusive scalings and random inputs. SIAM Journal on Scientific Computing , 40(2):A671-A696, 2018.
- [20] X.-D. Liu, S. Osher, and T. Chan. Weighted Essentially Non-oscillatory Schemes. Journal of Computational Physics , 115(1):200-212, 1994.
- [21] J. Lu, J. Fang, S. Tan, C.-W. Shu, and M. Zhang. Inverse Lax-Wendroff procedure for numerical boundary conditions of convection-diffusion equations. Journal of Computational Physics , 317:276-300, 2016.
- [22] L. Pareschi and G. Russo. Implicit-explicit Runge-Kutta schemes for stiff systems of differential equations. Recent Trends in Numerical Analysis , 3:269-289, 2000.
- [23] L. Pareschi and G. Russo. Implicit-explicit Runge-Kutta schemes and applications to hyperbolic systems with relaxation. Journal of Scientific Computing , 25(1):129-155, 2005.

- [24] D. Pathria. The correct formulation of intermediate boundary conditions for RungeKutta time integration of initial boundary value problems. SIAM Journal on Scientific Computing , 18(5):1255-1266, 1997.
- [25] S. Tan and C.-W. Shu. Inverse Lax-Wendroff procedure for numerical boundary conditions of conservation laws. Journal of Computational Physics , 229(21):8144-8166, 2010.
- [26] S. Tan, C. Wang, C.-W. Shu, and J. Ning. Efficient implementation of high order inverse Lax-Wendroff boundary treatment for conservation laws. Journal of Computational Physics , 231(6):2510-2527, 2012.
- [27] C. Wang, X. Zhang, C.-W. Shu, and J. Ning. Robust high order discontinuous Galerkin schemes for two-dimensional gaseous detonations. Journal of Computational Physics , 231(2):653-665, 2012.
- [28] H. Wang, C.-W. Shu, and Q. Zhang. Stability and error estimates of local discontinuous Galerkin methods with implicit-explicit time-marching for advection-diffusion problems. SIAM Journal on Numerical Analysis , 53(1):206-227, 2015.
- [29] H. Wang, Q. Zhang, and C.-W. Shu. Third order implicit-explicit Runge-Kutta local discontinuous Galerkin methods with suitable boundary treatment for convection-diffusion problems with Dirichlet boundary conditions. Journal of Computational and Applied Mathematics , 342:164-179, 2018.
Weifeng Zhao Juntao Huang
Boundary treatment of implicit-explicit Runge-Kutta method for hyperbolic systems with source terms
In this paper, we develop a high order finite difference boundary treatment
method for the implicit-explicit (IMEX) Runge-Kutta (RK) schemes solving
hyperbolic systems with possibly stiff source terms on a Cartesian mesh. The
main challenge is how to obtain the solutions at ghost points resulting from
the wide stencil of the interior high order scheme. We address this problem by
combining the idea of using the RK schemes at the boundary and an inverse
Lax-Wendroff procedure. The former preserves the accuracy of the RK schemes and
the latter guarantees the stability. Our method is different from the widely
used approach for the explicit RK schemes by imposing boundary conditions at
intermediate stages, which could not be derived for the IMEX schemes. In
addition, the intermediate boundary conditions are only available for explicit
RK schemes up to third order while our method applies to arbitrary order IMEX
and explicit RK schemes. Moreover, the present boundary treatment method may be
adapted to IMEX RK schemes solving many other partial differential equations.
For a specific third-order IMEX scheme, we demonstrate the good stability and
third-order accuracy of our boundary treatment through both 1D examples and 2D
reactive Euler equations.