1 Introduction

Considering the solution of hyperbolic conservation laws, high order methods can be very efficient, providing accurate numerical solutions with relatively low computational effort [21]. In order to make use of this accuracy, stability has to be established. Mimicking estimates obtained on the continuous level via integration-by-parts, summation-by-parts (SBP) operators [22, 37] can be used. In short, SBP operators are discrete derivative operators equipped with a compatible quadrature providing a discrete analogue of the L 2 norm. The compatibility of discrete integration and differentiation mimics integration-by-parts on a discrete level. Combined with the weak enforcement of boundary conditions via simultaneous approximation terms (SATs) [1], highly efficient and stable semidiscretisations can be obtained at least for linear problems, see e.g. [6, 14, 39] and references cited therein.

In recent years, there has been an enduring and increasing interest in the basic ideas of SBP operators and their application in various frameworks including finite volume (FV) [25, 26], discontinuous Galerkin (DG) [2, 4, 10, 11, 13, 20, 27, 28, 30], and the recent flux reconstruction/correction procedure via reconstruction framework [15, 16, 42] as described in [31, 32]. While there is only a limited amount of well-posedness theory for nonlinear conservation laws, mimicking properties such as entropy stability semidiscretely has received much interest. Building on the seminal work of Tadmor [40, 41], entropy stability of second order schemes using symmetric numerical fluxes has been investigated, resulting in well-defined properties that numerical fluxes have to satisfy in order to result in entropy conservative schemes. Decomposing general semidiscretisations into a non-dissipative central part and an additional dissipative part, suitable artificial dissipation or filtering can be added afterwards, cf. [7, 9, 38]. Second order methods based on symmetric numerical fluxes can be extended to high order in a conservative way, cf. [4, 7, 28] and [8, 23, 34,35,36].

Another property of numerical methods for the Euler equations that has received much interest in the literature concerns the kinetic energy. A structural property of numerical fluxes described by Jameson [18] has been used to construct so-called kinetic energy preserving (KEP) numerical fluxes inter alia by Chandrashekar [3]. However, schemes using these fluxes do not preserve the kinetic energy as expected in numerical experiments by Gassner et al. [12]. They had to change the discretisation of the pressure to reduce undesired changes of the kinetic energy. However, this resulted in a loss of entropy conservation. Motivated by these results, some analytical insights into this behaviour have been developed in [29, Section 7.4] and will be presented here.

This chapter is structured as follows. At first, some basic results about SBP operators and corresponding semidiscretisations of hyperbolic conservation laws are reviewed in Sect. 2. Afterwards, the Euler equations are considered in Sect. 3. After demonstrating that the property that has been used to characterise numerical fluxes as KEP is not well-defined, the new concept of KEP numerical methods is introduced. Moreover, a numerical flux that is both entropy conservative and kinetic energy preserving in the new sense is developed. Thereafter, results of a numerical experiment comparing entropy conservative numerical fluxes are described in Sect. 4. Finally, a brief summary is given in Sect. 5.

2 Discretisations Using Summation-by-Parts Operators

Consider the Euler equations in two space dimensions

$$\displaystyle \begin{aligned} \partial_t \underbrace{ \begin{pmatrix} \rho \\ \rho v_x \\ \rho v_y \\ \rho e \end{pmatrix} }_{= u} + \,\partial_x \underbrace{ \begin{pmatrix} \rho v_x \\ \rho v_x^2 + p \\ \rho v_x v_y \\ (\rho e + p) v_x \end{pmatrix} }_{= f^x(u)} + \,\partial_y \underbrace{ \begin{pmatrix} \rho v_y \\ \rho v_x v_y \\ \rho v_y^2 + p \\ (\rho e + p) v_y \end{pmatrix} }_{= f^y(u)} = 0, \end{aligned} $$
(1)

where ρ is the density, v the velocity, e the specific total energy, and p the pressure. For a perfect gas, \(p = (\gamma -1) \bigl ( \rho e - \frac {1}{2} \rho v^2 \bigr )\). The usual entropy is \(U = - \frac {\rho s}{\gamma - 1}\), where \(s = \log p - \gamma \log \rho \) is the specific (physical) entropy.

With the entropy fluxes F j fulfilling u U ⋅  u f j =  u F j, smooth solutions of the Euler equations in d space dimensions satisfy \(\partial _t U(u) + \sum _{j=1}^d \partial _j F^j(u) = 0\) and the entropy inequality

$$\displaystyle \begin{aligned} \partial_t U(u) + \sum_{j=1}^d \partial_j F^j(u) \leq 0 \end{aligned} $$
(2)

is used as additional admissibility criterion for weak solutions, cf. [5].

In order to discretise (1), the domain Ω is divided into several non-overlapping sub-domains Ω l ⊆ Ω and SBP operators will be used on each element. SBP operators consist of discrete derivative operators D j, approximating the partial derivative in direction j, and a symmetric and positive definite mass/norm matrix M, approximating the L 2(Ω l) scalar product via \(u^T M v = \langle u, v, \rangle _M \approx \langle u, v, \rangle _{L^2(\varOmega _l)} = \int _{\varOmega _l} u \, v\). Moreover, an interpolation operator R approximates the restriction of functions on Ω l to the boundary ∂Ω l and a symmetric and positive definite boundary mass matrix B approximate the L 2(∂Ω l) scalar product. Representing the multiplication by the j-th component of the outer unit normal ν at ∂Ω l by the diagonal matrix n j, the SBP property

$$\displaystyle \begin{aligned} M D_j + D_j^T M = R^T B n_j R \end{aligned} $$
(3)

has to be satisfied in order to mimic integration-by-parts discretely via

(4)

Semidiscretisation of (1) will be constructed as follows. Each sub-domain Ω l ⊆ Ω is mapped onto a reference element and all computations are performed there. On each element, the resulting semidiscretisation is of the form

$$\displaystyle \begin{aligned} \partial_t u + \mathrm{VOL} + \mathrm{SURF} = 0, \end{aligned} $$
(5)

where the volume terms VOL discretise the flux divergence in the interior of Ω l and the surface terms SURF couple elements or impose boundary conditions. Here, u is the vector of the nodal values of the numerical solution at specified nodes ξ i in Ω l and a collocation approach is used. Thus, nonlinear operations are performed pointwise and the discrete fluxes f j are given by their nodal values \(f^j_i = f^j(u_i) = f^j( u(\xi _i) )\). As in (nodal) discontinuous Galerkin methods, the surface terms will be built using numerical fluxes f num, j in the j-th coordinate direction as

$$\displaystyle \begin{aligned} \mathrm{SURF} = \sum_{j=1}^d M^{-1} R^T B n_j \bigl( f^{\mathrm{num},j} - R f^j \bigr). \end{aligned} $$
(6)

Finally, the volume terms are constructed using symmetric (two-point) numerical fluxes f vol, j (volume fluxes) that are consistent with f j as

$$\displaystyle \begin{aligned} \mathrm{VOL}_i = \sum_{j=1}^d \sum_k 2 (D_j)_{i,k} f^{\mathrm{vol},j}(u_i,u_k), \end{aligned} $$
(7)

where VOLi is the volume term at ξ i [7]. If f vol, j are smooth fluxes, the discretisation (7) is of the same order of accuracy as the derivative matrices D j [4, 28]. Moreover, if the mass matrix M is diagonal, this approximation can be written in a conservative form [7]. Finally, if the boundary operators R T Bn j R are also diagonal and f vol, j are entropy conservative in the sense of Tadmor [40, 41], the semidiscretisation (5) is entropy conservative/stable across elements if the numerical surface fluxes f num, j are entropy conservative/stable. Moreover, some results on the kinetic energy can be transferred as well [12]. In the following, the focus will lie on the fluxes f vol, j.

3 Euler Equations and Kinetic Energy

The kinetic energy \(E_{\mathrm {kin}} = \frac {1}{2} \rho v^2\) fulfils (for sufficiently smooth solutions)

$$\displaystyle \begin{aligned} \partial_t E_{\mathrm{kin}} + \operatorname{div}\Bigl( \frac{1}{2} \rho v^2 v \Bigr) + v \cdot \operatorname{grad} p = 0. \end{aligned} $$
(8)

Jameson [18] investigated the kinetic energy in a one-dimensional semidiscrete setting using finite volume methods. To simplify the notation, this setup will be used in the following; its extension to multiple dimensions is straightforward. Jameson proposed to mimic (8) semidiscretely by using numerical momentum fluxes of the form \(f^{\mathrm {num}}_{\rho v} = f^{\mathrm {num}}_{\rho v}(u_-, u_+) = \{\!\{ v \}\!\} f^{\mathrm {num}}_\rho + p^{\mathrm {num}}\), where { {v} } is the arithmetic mean of v and v +, \(f^{\mathrm {num}}_\rho \) is the numerical density flux, and p num is a consistent numerical approximation of the pressure. Later, this has been used as a kind of “definition” of kinetic energy preserving (KEP) numerical fluxes, e.g. in [3, 12]. However, this is not a well-defined concept, cf. [28, 29]. Indeed, every numerical momentum flux can be written as

$$\displaystyle \begin{aligned} f^{\mathrm{num}}_{\rho v} = \{\!\{ v \}\!\} f^{\mathrm{num}}_\rho + \underbrace{\bigl( f^{\mathrm{num}}_{\rho v} - \{\!\{ v \}\!\} f^{\mathrm{num}}_\rho \bigr)}_{=:\ p^{\mathrm{num}}?}. \end{aligned} $$
(9)

Since the numerical fluxes are consistent, \(p^{\mathrm {num}} := f^{\mathrm {num}}_{\rho v} - \{\!\{ v \}\!\} f^{\mathrm {num}}_\rho \) is a consistent approximation of the pressure. The insufficiency of the condition \(f^{\mathrm {num}}_{\rho v} = \{\!\{ v \}\!\} f^{\mathrm {num}}_\rho + p^{\mathrm {num}}\) is in accordance with observations of Gassner et al. [12]. They investigated a Taylor-Green vortex problem and compared several numerical fluxes for the Euler equations. There, numerical fluxes of the form \(f^{\mathrm {num}}_{\rho v} = \{\!\{ v \}\!\} f^{\mathrm {num}}_\rho + p^{\mathrm {num}}\) with p num ≠ { {p} } resulted in a clear loss of kinetic energy compared to other KEP fluxes using the arithmetic average p num = { {p} } as approximation of the pressure. They observed that “the discretisation of the pressure plays a crucial role for the kinetic energy” and that the choice of the arithmetic average p num = { {p} } “seems to be important for the kinetic energy equation” [12, Section 4.2]. However, they had no (theoretical) explanations for this observation.

3.1 New Approach to Kinetic Energy Preservation

By a heuristic argument, the balance law (8) may not be suitable in the incompressible limit: Indeed, for smooth solutions, (8) can be rewritten as

$$\displaystyle \begin{aligned} \partial_t E_{\mathrm{kin}} + \operatorname{div}\Bigl( \frac{1}{2} \rho v^2 v + p v\Bigr) - p \operatorname{div} v = 0, \end{aligned} $$
(10)

which becomes a conservation law for smooth solutions of the incompressible Euler equations due to \(\operatorname {div}(v) = 0\) or an energy inequality similar to the entropy inequality (2). Since the kinetic energy is plays a crucial role in the incompressible limit [24], the second form (10) might be considered the “better” one. Thus, a semidiscretisation mimicking this equation might be desirable near the incompressible limit.

Definition 1

A numerical flux \(f^{\mathrm {num}} = (f^{\mathrm {num}}_{\rho }, f^{\mathrm {num}}_{\rho v}, f^{\mathrm {num}}_{\rho e})\) for the Euler equations is called kinetic energy preserving (KEP), if the momentum flux can be written as \(f^{\mathrm {num}}_{\rho v} = \{\!\{ v \}\!\} f^{\mathrm {num}}_{\rho } + \{\!\{ p \}\!\}\).

Definition 1 results in a well-defined concept of KEP numerical fluxes.

Theorem 1 (Corollary 7.5 of [29])

If a kinetic energy preserving numerical flux is used in a semidiscrete FV method, the resulting semidiscrete kinetic energy equation mimics both the conservative and the non-conservative terms of Eq.(10).

Proof (Sketch)

Using the chain rule in a one dimensional finite volume setting, the time derivative of the kinetic energy in cell i becomes

$$\displaystyle \begin{aligned} \partial_t \Bigl( \frac{1}{2} \rho v^2 \Bigr)_i =& -\frac{1}{\varDelta x_i} \left( \Bigl( \frac{1}{2} \rho v^2 v + p v \Bigr)^{\mathrm{\!num}}(u_{i},u_{i+1}) - \Bigl( \frac{1}{2} \rho v^2 v + p v \Bigr)^{\mathrm{\!num}}(u_{i-1},u_{i}) \right) \\& + p_i \frac{\{\!\{ v \}\!\}_{i,i+1} - \{\!\{ v \}\!\}_{i-1,i}}{\varDelta x_i}, \end{aligned} $$

where \(\bigl ( \frac {1}{2} \rho v^2 v + p v \bigr )^{\mathrm {\!num}}(u_i, u_j) = v_i v_j f^{\mathrm {num}}_\rho (u_i, u_j) + \frac { p_{i} v_{j} + p_{j} v_{i} }{2}\). □

Using the momentum flux \(f^{\mathrm {num}}_{\rho v} = \{\!\{ v \}\!\} f^{\mathrm {num}}_{\rho } + \{\!\{ p \}\!\}\) in the volume terms (7) in one dimension, the arithmetic average of the pressure yields the volume term Dp, i.e. a straightforward discretisation of x p. Analogous results hold in multiple space dimensions, cf. Sect. 2.

The kinetic energy preserving DG methods presented in [11, 27] use volume terms corresponding to the numerical fluxes \(f^{\mathrm {num}}_{\rho } = \{\!\{ \rho v \}\!\}\), \(f^{\mathrm {num}}_{\rho v} = \{\!\{ \rho v \}\!\} \{\!\{ v \}\!\} + \{\!\{ p \}\!\}\), which are kinetic energy preserving in the sense of Definition 1.

3.2 Entropy Conservative and KEP Numerical Fluxes

Since entropy stability has received much interest and the entropy conservative numerical fluxes of [3, 17] are not KEP in the sense of Definition 1, it is interesting whether both concepts can be fulfilled simultaneously. The logarithmic mean value \(\{\!\{ \rho \}\!\}_{\mathrm {log}} = [\![ \rho ]\!] / [\![ \log \rho ]\!]\) has been proposed by Roe [33] in the context of entropy conservative numerical fluxes and is described in [17]. Many useful entropy conservative numerical density fluxes are of the form \(f^{\mathrm {num}}_\rho = \{\!\{ \rho \}\!\}_{\mathrm {log}} \{\!\{ v \}\!\}\), e.g. the one presented in [3]. This form seems to be preferable, since positivity preservation of the density can be achieved using local Lax-Friedrichs/Rusanov dissipation operators [28, Section 6.2]. Using this ansatz for \(f^{\mathrm {num}}_\rho \) and Definition 1, the following entropy conservative and kinetic energy preserving numerical flux (f num, y analogously) has been constructed in [29, Section 7.4]

$$\displaystyle \begin{aligned} \stepcounter{equation} {} f^{\mathrm{num},x}_{\rho} \!&= \{\!\{ \rho \}\!\}_{\mathrm{log}} \{\!\{ v_x \}\!\} \!,\; f^{\mathrm{num},x}_{\rho v_x} \!= \{\!\{ v_x \}\!\} f^{\mathrm{num},x}_{\rho} \!+ \{\!\{ p \}\!\} \!,\; f^{\mathrm{num},x}_{\rho v_y} \!= \{\!\{ v_y \}\!\} f^{\mathrm{num},x}_{\rho}, \\ {} f^{\mathrm{num},x}_{\rho e} &= \!\!\left(\!\! \{\!\{ \rho \}\!\}_{\mathrm{log}} \! \left(\!\! \{\!\{ v_x \}\!\}^2 \!+\! \{\!\{ v_y \}\!\}^2 \!-\! \frac{\{\!\{ v_x^2 + v_y^2 \}\!\}}{2} \!\!\right)\! \!+\! \frac{1}{\gamma-1} \frac{\{\!\{ \rho \}\!\}_{\mathrm{log}}}{\{\!\{ \rho/p \}\!\}_{\mathrm{log}}} \!+\! \{\!\{ p \}\!\} \!\!\right)\!\! \{\!\{ v_x \}\!\} \\ &\quad - \frac{[\![ p ]\!] [\![ v ]\!]}{4}. \end{aligned} $$
(11)

4 Numerical Results

Since the kinetic energy is an important quantity for the incompressible Euler equations, a Taylor-Green vortex given by

$$\displaystyle \begin{aligned} \begin{aligned} \rho(t,x,y) &= 1, & v_x(t,x,y) &= \sin{}(x) \cos{}(y), \\ v_y(t,x,y) &= -\cos{}(x) \sin{}(y), & p(t,x,y) &= \frac{100}{\gamma} + \frac{ \cos{}(2x) + \cos{}(2y) }{4}, \end{aligned} \end{aligned} $$
(12)

for (x, y) ∈ [0, 2π]2 with periodic boundary conditions is considered, which is a stationary solution of the incompressible Euler equations. Using tensor product Lobatto bases for polynomials of degree p = 5 on N = 16 elements per coordinate direction, the numerical solutions have been computed in the time interval t ∈ [0, 30] with the fourth order, ten-stage, strong stability preserving Runge-Kutta method of [19]. The time step Δt has been chosen as \(\varDelta t = \mathrm {cfl} \, \min \{ \varDelta x / (2p+1) \lambda \}\), where λ is the greatest absolute value of the eigenvalues of f′ and the minimum is taken over all cells and nodes. As in [12], the given numerical fluxes have been used for both the volume terms (7) and as surface fluxes in (6), without additional dissipation.

Fig. 1
figure 1

Total entropy and kinetic energy of numerical solutions using different entropy conservative numerical fluxes with cfl = 0.9

The evolution of the entropy U and the kinetic energy E kin using a CFL number cfl = 0.9 for the entropy conservative fluxes of Ismail and Roe [17], Chandrashekar [3], and the new flux (11) are visualised in Fig. 1. As can be seen there, the entropy remains approximately constant and the kinetic energy oscillates uniformly until t ≈ 20. Afterwards, the kinetic energy drops for the fluxes of [3, 17] and there is a relative change of the entropy of order 10−5. Contrary, there is no visible change for the new flux (11).

Fig. 2
figure 2

Total entropy and kinetic energy of numerical solutions using different entropy conservative numerical fluxes with cfl = 0.09

The entropy loss for the fluxes of Ismail and Roe [17] and Chandrashekar [3] is caused by the time integration scheme, as can be seen in Fig. 2, where the time step is reduced by an order of magnitude (cfl = 0.09). However, the behaviour of the kinetic energy is nearly unchanged.

5 Summary and Discussion

Using summation-by-parts operators, high order numerical schemes with specific properties can be constructed using symmetric (two-point) numerical fluxes. While several “kinetic energy preserving” methods have been proposed, they have been characterised by a property of the numerical fluxes that is not well-defined. Such numerical fluxes resulted in schemes that did not preserve the kinetic energy as expected [12]. Here, a new approach to kinetic energy preservation inspired by the incompressible Euler equations and developed in [29, Section 7.4] has been described. This results in a well-defined property numerical fluxes have to satisfy in order mimic the balance law for the kinetic energy more reliably. Moreover, new entropy conservative numerical fluxes have been developed that are kinetic energy preserving in the new sense.