 # Entropy stable numerical approximations for the isothermal and polytropic Euler equations

In this work we analyze the entropic properties of the Euler equations when the system is closed with the assumption of a polytropic gas. In this case, the pressure solely depends upon the density of the fluid and the energy equation is not necessary anymore as the mass conservation and momentum conservation then form a closed system. Further, the total energy acts as a convex mathematical entropy function for the polytropic Euler equations. The polytropic equation of state gives the pressure as a scaled power law of the density in terms of the adiabatic index γ. As such, there are important limiting cases contained within the polytropic model like the isothermal Euler equations (γ=1) and the shallow water equations (γ=2). We first mimic the continuous entropy analysis on the discrete level in a finite volume context to get special numerical flux functions. Next, these numerical fluxes are incorporated into a particular discontinuous Galerkin (DG) spectral element framework where derivatives are approximated with summation-by-parts operators. This guarantees a high-order accurate DG numerical approximation to the polytropic Euler equations that is also consistent to its auxiliary total energy behavior. Numerical examples are provided to verify the theoretical derivations, i.e., the entropic properties of the high order DG scheme.

## Authors

##### This week in AI

Get the week's most popular data science and artificial intelligence research sent straight to your inbox every Saturday.

## 1. Introduction

The compressible Euler equations of gas dynamics

 (1.1) ϱt+\lx@overaccentset→∇⋅(ϱ\lx@overaccentset→v) =0, (ϱ\lx@overaccentset→v)t+\lx@overaccentset→∇⋅(ϱ\lx@overaccentset→v⊗\lx@overaccentset→v)+\lx@overaccentset→∇p =\lx@overaccentset→0, Et+\lx@overaccentset→∇⋅(\lx@overaccentset→v[E+p]) =0,

are a system of partial differential equations (PDEs) where the conserved quantities are the mass

, the momenta , and the total energy . This is an archetypical system of non-linear hyperbolic conservation laws that have far reaching applications in engineering and natural sciences, e.g. [29, 32, 44]. In three spatial dimensions, this system has five equations but six unknowns: the density , the velocity components , the internal energy , and the pressure . Thus, in order to close the system, an equation of state is necessary to relate thermodynamic state variables like pressure, density, and internal energy. Depending on the fluid and physical processes we wish to model the equation of state changes. Some examples include an ideal gas where or polytropic processes where .

The connection between the equation of state, the fluid, and other thermodynamic properties is of particular relevance when examining the physical realizability of flow configurations. In particular, the entropy plays a crucial role to separate possible flow states from the impossible . There is a long history investigating the thermodynamic properties of the compressible Euler equations through the use of mathematical entropy analysis for adiabatic processes [25, 34, 42] as well as polytropic processes [9, 36]. In this analysis the mathematical entropy is modeled by a strongly convex function . There exist associated entropy fluxes, , such that the entropy function satisfies an additional conservation law

 st+\lx@overaccentset→∇⋅\lx@overaccentset→fs=0,

for smooth solutions that becomes an inequality

 st+\lx@overaccentset→∇⋅\lx@overaccentset→fs≤0,

in the presence of discontinuous solutions, e.g. shocks. Note, we have adopted the convention common in mathematics that entropy is a decreasing quantity, e.g. .

For numerical methods, discretely mimicking this thermodynamic behavior leads to schemes that are entropy conservative (or entropy stable) depending on the solutions smoothness [25, 42]. Additionally, numerical approximations, especially schemes with higher order accuracy and low inbuilt numerical dissipation, that are thermodynamically consistent have a marked increase in their robustness [7, 24, 30, 48]. Thus, the design and application of entropy stable approximations, particularly for the compressible Euler equations, have been the subject of ongoing research for the past 50 years, e.g. [4, 7, 8, 10, 12, 15, 16, 24, 25, 27, 35, 42]. A major breakthrough came with the seminal work of Tadmor  wherein he developed a general condition for a finite volume numerical flux function to remain entropy conservative. It was then possible to selectively add dissipation to the baseline numerical approximation and guarantee entropy stability.

Many authors expanded on the entropy stability work of Tadmor, developing higher order spatial approximations through the use of WENO reconstructions [18, 19, 31], summation-by-parts (SBP) finite difference approximations [12, 15, 16], or the discontinuous Galerkin spectral element method (DGSEM) also with the SBP property [4, 7, 10, 24, 23]. The latter two numerical schemes both utilize the SBP property that discretely mimics integration-by-parts. This allows a direct translation of the continuous analysis and entropy stability proofs onto the discrete level, see [22, 39] for details. However, the design of these entropy stable approximations (low-order or high-order) has focused on adiabatic processes for the compressible Euler equations.

So, the main focus in this work is to design entropy conservative and entropy stable numerical methods for the polytropic Euler equations. As such, the mathematical entropy analysis is reinvestigated on the continuous level due to the selection of a different equation of state. This analysis also provides a roadmap to discrete entropy stability. We will show that isothermal limit () requires special considerations. The first contribution comes with the derivation of entropy conservative/stable numerical flux functions from Tadmor’s finite volume condition. This includes a computationally affordable definition of the baseline entropy conservative numerical flux as well as an explicit definition of the average states where the dissipation terms should be evaluated. In particular, a special mean operator, which is a generalization of the logarithmic mean , is introduced. The second contribution takes the finite volume derivations and builds them into a high-order DGSEM framework that remains consistent to the laws of thermodynamics. Complete details on the entropy aware DGSEM are given by Gassner et al. .

The paper is organized as follows: Sect. 2 presents the polytropic Euler system and performs the continuous mathematical entropy analysis. The derivations are kept general as the isothermal Euler equations are a special case of the polytropic system. The finite volume discretization and entropy stable numerical flux derivations are given in Sect. 3. In Sect. 4, a generalization of the entropy stable polytropic Euler method into a high-order DGSEM framework is provided. Numerical investigations in Sect. 5 verify the high-order nature of the approximations as well as the entropic properties. Concluding remarks are given in the final section.

## 2. Polytropic Euler equations

We first introduce notation that simplifies the continuous and discrete entropy analysis of the governing equations in this work. The state vector of conserved quantities is

and the Cartesian fluxes are denoted by . As in [2, 23], we define block vector notation with a double arrow

The dot product of a spatial vector with a block vector results in a state vector

 \lx@overaccentset→g⋅\lx@overaccentset↔f=3∑i=1gifi.

Thus, the divergence of a block vector is

 \lx@overaccentset→∇⋅\lx@overaccentset↔f=(f1)x+(f2)y+(f3)z.

This allows a compact presentation for systems of hyperbolic conservation laws

 (2.1) ut+\lx@overaccentset→∇⋅\lx@overaccentset↔f=0,

on a domain .

### 2.1. Governing equations

The polytropic Euler equations are a simplified version of the compressible Euler equations (1.1) which explicitly conserves the mass and momenta. In the equation of state for polytropic fluids the pressure depends solely on the fluid density and the total energy conservation law becomes redundant . The simplified system takes the form of non-linear conservation laws (2.1) with

 u=[ϱϱ\lx@overaccentset→v],\lx@overaccentset↔f=[ϱ\lx@overaccentset→vϱ\lx@overaccentset→v⊗\lx@overaccentset→v+pI–],

where is a identity matrix. We close the system with the polytropic or the isothermal gas assumption, which relate density and pressure:

 (2.2) polytropic case:p(ϱ)=κϱγ,% isothermal case:p(ϱ)=c2ϱ.

For a polytropic gas is the adiabatic coefficient and is some scaling factor depending on the fluid, e.g. for the shallow water equations with (gravitational acceleration) and . For the isothermal case and is the speed of sound . To keep the analysis of the polytropic Euler equations general, we will only specify which equation of state is used when necessary. Further, in barotropic models the internal energy,

, and the pressure form an admissible pair provided the ordinary differential equation

 (2.3) ϱdedϱ=p(ϱ)ϱ,

is satisfied . For the equations of state (2.2) the corresponding internal energies are

 (2.4) polytropic case:e(ϱ)=κϱγ−1γ−1,isothermal case:e(ϱ)=c2ln(ϱ).

### 2.2. Continuous entropy analysis

We define the necessary components to discuss the thermodynamic properties of (2.1) from a mathematical perspective. To do so, we utilize well-developed entropy analysis tools, e.g. [25, 34, 41]. First, we introduce an entropy function used to define an injective mapping between state space and entropy space [25, 34].

For the polytropic Euler equations, a suitable mathematical entropy function is the total energy of the system 

 (2.5) s(u)=ϱ2∥\lx@overaccentset→v∥2+ϱe(ϱ),

with the internal energy taken from (2.4). Note that the entropy function is strongly convex under the physical assumption that . From the entropy function we find the entropy variables to be

 (2.6) w=∂s∂u=(e+ϱdedϱ−12∥\lx@overaccentset→v∥2,v1,v2,v3)T=(e+pϱ−12∥\lx@overaccentset→v∥2,v1,v2,v3)T,

where we use the relation (2.3) to simplify the first entropy variable. The mapping between state space and entropy space is equipped with symmetric positive definite (s.p.d) entropy Jacobian matrices, e.g., 

 H−1=∂w∂u,

and

 (2.7) H=1a2⎡⎢ ⎢ ⎢ ⎢ ⎢⎣ϱϱv1ϱv2ϱv3ϱv1ϱv21+a2ϱϱv1v2ϱv1v3ϱv2ϱv1v2ϱv22+a2ϱϱv2v3ϱv3ϱv1v3ϱv2v3ϱv23+a2ϱ⎤⎥ ⎥ ⎥ ⎥ ⎥⎦,

where we introduce a general notation for the sound speed

 a2=γpϱ.

We note that this statement of is general for either equation of state from (2.2). The entropy fluxes, , associated with the entropy function (2.5) are

 (2.8) \lx@overaccentset→fs=(fs1,fs2,fs3)T=\lx@overaccentset→v(s+p).

Finally, we compute the entropy flux potential that is needed later in Sect. 3.2 for the construction of entropy conservative numerical flux functions

 (2.9) \lx@overaccentset→Ψ=wT\lx@overaccentset↔f−\lx@overaccentset→fs=\lx@overaccentset→vp.

To examine the mathematical entropy conservation we contract the system of conservation laws (2.1) from the left with the entropy variables (2.6). By construction, and assuming continuity, the time derivative term becomes

 wT∂u∂t=∂s∂t.

The contracted flux terms, after many algebraic manipulations, yield

 wT\lx@overaccentset→∇⋅\lx@overaccentset↔f=⋯=\lx@overaccentset→∇⋅(ϱ\lx@overaccentset→v2∥\lx@overaccentset→v∥2+ϱe\lx@overaccentset→v)=\lx@overaccentset→∇⋅(\lx@overaccentset→v[s+p])=\lx@overaccentset→∇⋅\lx@overaccentset→fs.

Therefore, for smooth solutions contracting (2.1) into entropy space yields an additional conservation law for the total energy

 (2.10) wT(ut+\lx@overaccentset→∇⋅\lx@overaccentset↔f)=0⇒st+\lx@overaccentset→∇⋅\lx@overaccentset→fs=0.

Generally, discontinuous solutions can develop for non-linear hyperbolic systems, regardless of their initial smoothness. In the presence of discontinuities, the mathematical entropy conservation law (2.10) becomes the entropy inequality 

 st+\lx@overaccentset→∇⋅\lx@overaccentset→fs≤0.

Note, due to the form of the entropy fluxes (2.8) the mathematical entropy conservation law (2.10) has an identical form to the conservation of total energy from the adiabatic compressible Euler equations (1.1). This reinforces that the total energy becomes an auxiliary conserved quantity for polytropic gases.

### 2.3. Eigenstructure of the polytropic Euler equations

To close this section we investigate the eigenstructure of the polytropic Euler equations. We do so to demonstrate the hyperbolic character of the governing equations. Additionally, a detailed description of the eigenvalues and eigenvectors is needed to select a stable explicit time step

 as well as design operators that selectively add dissipation to the different propagating waves in the system, e.g. .

To simplify the eigenstructure discussion of the polytropic Euler system, we limit the investigation to one spatial dimension. This restriction simplifies the analysis and is done without loss of generality, because the spatial directions are decoupled and the polytropic Euler equations are rotationally invariant. To begin we state the one-dimensional form of (2.1)

 ut+(f1)x=0,

where we have

 u=[ϱ,ϱv1,ϱv2,ϱv3]T,f1=[ϱv1,ϱv21+p,ϱv1v2,ϱv1v3]T.

We find the flux Jacobian matrix to be

 (2.11) A=∂f1∂u=⎡⎢ ⎢ ⎢ ⎢⎣0100a2−v212v100−v1v2v2v10−v1v3v30v1⎤⎥ ⎥ ⎥ ⎥⎦.

The eigenvalues, , of (2.11) are all real

 (2.12) λ1=v1−aλ2=v1λ3=v1λ4=v1+a.

The eigenvalues are associated with a full set of right eigenvectors. A matrix of right eigenvectors is

 (2.13) R=[r1|r2|r3|r4]=⎡⎢ ⎢ ⎢⎣1001v1−a00v1+av210v2v301v3⎤⎥ ⎥ ⎥⎦.

From the work of Barth , there exists a positive diagonal scaling matrix that relates the right eigenvector matrix (2.13) to the entropy Jacobian matrix (2.7)

 (2.14) H=RZRT.

For the polytropic Euler equations this diagonal scaling matrix is

 Z=diag(ϱ2a2,ϱ,ϱ,ϱ2a2).

We will revisit the eigenstructure of the polytropic Euler equations and this eigenvector scaling in Sect. 3.3 in order to derive an entropy stable numerical dissipation term.

## 3. Discrete entropy analysis, finite volume, and numerical fluxes

In this section we derive entropy conservative and entropy stable numerical flux functions for the polytropic Euler equations. This discrete analysis is performed in the context of finite volume schemes and follows closely the work of Tadmor . The derivations for entropy conservative numerical flux functions and appropriate dissipation terms are straightforward, albeit algebraically involved. Therefore, we restrict the discussion to the one dimensional version of the model for the sake of simplicity. As such, we suppress the subscript on the physical flux and simply state .

### 3.1. Finite volume discretization

Finite volume methods are a discretization technique particularly useful to approximate the solution of hyperbolic systems of conservation laws. The method is developed from the integral form of the equations 

 ∫Ωutd\lx@overaccentset→x+∫∂Ωf⋅\lx@overaccentset→ndS=0,

where is the outward pointing normal vector. In one spatial dimension we divide the interval into non-overlapping cells

 Ωi=[xi−12,xi+12],

and the integral equation contributes

on each cell. The solution approximation is assumed to be a constant value within the volume. Then we determine the cell average value with, for example, a midpoint quadrature of the solution integral

 xi+1/2∫xi−1/2udx≈xi+1/2∫xi−1/2uidx=uiΔxi.

Due to the integral form of the finite volume scheme the solution is allowed to be discontinuous at the boundaries of the cells. To resolve this, we introduce a numerical flux, [32, 43] which is a function of two solution states at a cell interface and returns a single flux value. For consistency, we require that

 (3.1) f∗(q,q)=f,

such that the numerical flux is equivalent to the physical flux when evaluated at two identical states.

The resulting finite volume spatial approximation takes the general form

 (3.2) (ut)i+1Δxi(f∗x+12−f∗x−12)=0.

This results in a set of temporal ordinary differential equations that can be integrated with an appropriate ODE solver, e.g., explicit Runge-Kutta methods.

To complete the spatial approximation (3.2) requires a suitable numerical flux function . Next, following the work of Tadmor, we will develop entropy conservative and entropy stable numerical fluxes for the polytropic Euler equations.

### 3.2. Entropy conservative numerical flux

First, we develop the entropy conservative flux function that is valid for smooth solutions and acts as the baseline for the entropy stable numerical approximation. We assume left and right cell averages, denoted by and , on uniform cells of size separated by a common interface. We discretize the one-dimensional system semi-discretely and derive an approximation for the fluxes at the interface between the two cells, i.e., at the interface:

 (3.3) Δx∂uL∂t=fL−f∗andΔx∂uR∂t=f∗−fR,

where the adjacent states feature the physical fluxes and the numerical interface flux . We define the jump in a quantity across an interface by

Next, we contract (3.3) into entropy space to obtain the semi-discrete entropy update in each cell

 (3.4) Δx∂sL∂t=wTL(fL−f∗)andΔx∂sR∂t=wTR(f∗−fR),

where we assume continuity in time such that .

Next, we add the contributions from each side of the interface in (3.4) to obtain the total entropy update

 (3.5)

To ensure that the finite volume update satisfies the discrete entropy conservation law, the entropy flux of the finite volume discretization must coincide with the discrete entropy flux , i.e.,

We use the linearity of the jump operator and rearrange to obtain the general entropy conservation condition of Tadmor 

 (3.6)

where we apply the definition of the entropy flux potential (2.9). The discrete entropy conservation condition (3.6) is a single constraint for a vector quantity. Thus, the form of the entropy conservative numerical flux is not unique. However, the resulting numerical flux form (3.6) must remain consistent (3.1).

To derive an entropy conservative flux we note the properties of the jump operator

 (3.7)

where we introduce notation for the arithmetic mean

 {{⋅}}=12((⋅)R+(⋅)L).

For the numerical flux to remain applicable to either equation of state (2.2) we require a generalized average operator for the fluid density.

###### Definition 1 (γ-mean).

Assuming that , a special average of the fluid density is

 (3.8)

We examine the evaluation of the average (3.8) for three cases substituting the appropriate forms of the pressure (2.2) and internal energy (2.4):

1. Polytropic () yields

 (3.9)
2. Isothermal () where the special average becomes the logarithmic mean which also arises in the construction of entropy conservative fluxes for the adiabatic Euler equations [8, 27]

 (3.10)
3. Shallow water () for which the special average reduces to the arithmetic mean

###### Remark 1.

The -mean (3.9) is a special case of the weighted Stolarsky mean, which serves as a generalization of the logarithmic mean . It remains consistent when the left and right states are identical. Also, assuming without loss of generality that , it is guaranteed that the value of [37, 38].

###### Remark 2.

In practice, when the left and right fluid density values are close, there are numerical stability issues because the -mean (3.8) tends to a form. Therefore, we provide a numerically stable procedure to compute (3.8) in Appendix A.1.

With Def. 1 and the discrete entropy conservation condition (3.6) we are equipped to derive an entropy conservative numerical flux function.

###### Theorem 1 (Entropy conservative flux).

From the discrete entropy conservation condition condition (3.6) we find a consistent, entropy conservative numerical flux

 (3.11)
###### Proof.

We first expand the right-hand-side of the entropy conservation condition (3.6)

 (3.12)

where we use the jump properties (3.7). Next, we expand the jump in the entropy variables. To do so, we revisit the form of the entropy variable as it changes depending on the equation of state

 (3.13) w1=⎧⎪⎨⎪⎩e+κϱγϱ−12∥\lx@overaccentset→v∥2=κϱγ−1γ−1+κϱγ−1−12∥\lx@overaccentset→v∥2=γe−12∥\lx@overaccentset→v∥2,polytropice+c2ϱϱ−12∥\lx@overaccentset→v∥2=e+c2−12∥\lx@overaccentset→v∥2,isothermal.

Taking the jump of the variable (3.13) we obtain

 (3.14)

because the values of and are constant. Note that in the isothermal case , so the jump of (3.14) has the same form regardless of the equation of state. Therefore, the total jump in the entropy variables is

 (3.15)

We combine the expanded condition (3.12), the jump in the entropy variables (3.15), and rearrange terms to find

 (3.16)

To determine the first flux component we find

 (3.17)

from the -mean in Def. 1. The expanded flux condition (3.16) is rewritten into linear jump components. We gather the like terms of each jump component to facilitate the construction of the remaining flux components:

 (3.18) ={{p}}, =0, =0.

Now, it is straightforward to solve the expressions in (3.18) and find

 (3.19) f∗2 f∗3 ={{ϱ}}γ{{v1}}{{v2}}, f∗4 ={{ϱ}}γ{{v1}}{{v3}}.

If we assume the left and right states are identical in (3.17) and (3.19) it is straightforward to verify that the numerical flux is consistent from its form and the properties of the -mean.∎∎

###### Remark 3.

There are two values of that change the form of the entropy conservative flux (3.11):

1. Isothermal case (): The numerical flux becomes

where the fluid density is computed with the logarithmic mean (3.10) just as in the adiabatic case [8, 27].

2. Shallow water case (): Here the numerical flux simplifies to become

where the velocity component in the direction is ignored due to the assumptions of the shallow water equations . If we let the fluid density be denoted as the water height, , and take where is the gravitational constant, then we recover the entropy conservative numerical flux function originally developed for the shallow water equations by Fjordholm et al. .

###### Remark 4 (Multi-dimensional entropy conservative fluxes).

The derivation of entropy conservative numerical fluxes in the other spatial directions is very similar to that shown in Thm. 1. So, we present the three-dimensional entropy conservative fluxes in the and directions in Appendix B.

### 3.3. Entropy stable numerical flux

As previously mentioned, the solution of hyperbolic conservation laws can contain or develop discontinuities regardless of the smoothness of the initial conditions . In this case, a numerical approximation that is entropy conservative is no longer physical and should account for the dissipation of entropy near discontinuities. Such a numerical method is deemed entropy stable, e.g., [16, 41]. To create an entropy stable numerical flux function we begin with a general form

 (3.20)

where is a symmetric positive definite dissipation matrix. An immediate issue arises when we contract the entropy stable flux (3.20) into entropy space. We must guarantee that the dissipation term possesses the correct sign ; however, contracting (3.20) with the jump in entropy variables gives

 (3.21)

So, there is a mixture of entropy and conservative variable jumps in the dissipation term that must be guaranteed positive to ensure that entropy is dissipated correctly. In general, it is unclear how to guarantee positivity of the dissipation term in (3.21) as required for entropy stability . To remedy this issue we rewrite in terms of . This is possible due to the one-to-one variable mapping between conservative and entropy space as we know that

 ∂u∂x=H∂w∂x.

For the discrete case we wish to recover a particular average evaluation of the entropy Jacobian (2.7) at a cell interface such that

 (3.22)

To generate a discrete entropy Jacobian that satisfies (3.22) we need a specially designed average for the square of the sound speed.

###### Definition 2 (Average square sound speed).

A special average for the sound speed squared is

 (3.23)
###### Remark 5.

The average (3.23) is consistent. To demonstrate this, consider the polytropic equation of state from (2.2) and take and so that

###### Remark 6.

Again examining the special values of we find:

1. Isothermal () gives

as is a constant.

2. Shallow water () yields

where, again, we take and apply a property of the jump operator (3.7). Denoting the fluid density as the water height, , we recover an average of the wave celerity for the shallow water model .

###### Remark 7.

Just as with the -mean, the sound speed average (3.23) exhibits numerical stability issues for the polytropic case when the fluid density values are close. Therefore, we present a numerically stable procedure to evaluate (3.23) in Appendix A.2.

###### Lemma 1 (Discrete entropy Jacobian evaluation).

If the entropy Jacobian is evaluated with the average states

 (3.24)

then it is possible to relate the jump in conservative variables in terms of the jump in entropy variables by

 (3.25)
###### Proof.

We demonstrate how to obtain the first row of the discrete matrix . From the condition (3.22) we see that

 (3.26)

To determine the first entry of the matrix we apply the definition of the -mean (3.8) and the sound speed average (3.23) to obtain

The remaining components in the first row of from (3.26) are

Repeating this process we obtain the remaining unknown components in the relation (3.22) and arrive at the discrete entropy Jacobian (3.24).∎∎

Next, we select the dissipation matrix to be a discrete evaluation of the eigendecomposition of the flux Jacobian (2.11)

 (3.27) D=^R|^Λ|^R−1,

where is the matrix of right eigenvectors (2.13) and is a diagonal matrix containing the eigenvalues (2.12). From the discrete entropy Jacobian (3.24), we seek a right eigenvector and diagonal scaling matrix such that a discrete version of the eigenvector scaling (2.14)

 (3.28) ^H[]!=^R^Z^RT,

holds whenever possible.

###### Lemma 2 (Discrete eigenvector and scaling matrices).

If we evaluate the right eigenvector and diagonal scaling matrices as

 (3.29)

then we obtain the relation

 (3.30) ^H≃^R^Z^RT,

where equality holds everywhere except for the second, third, and fourth diagonal entries.

###### Proof.

The procedure to determine the discrete evaluation of the matrices and is similar to that taken by Winters et al. . We relate the individual entries of to those in and determine the 16 individual components of the matrices. We explicitly demonstrate two computations to outline the general technique and qualify the average states inserted in the final form.

We begin by computing the first entry of the first row of the system that should satisfy

This leads to two entries of the diagonal scaling matrix

 ^Z11=^Z44={{ϱ}}γ2¯¯¯¯¯a2.

The second computation is to determine the second entry of the second row of the system given by

It is clear that we must select and in the second row of the right eigenvector matrix . Unfortunately, just as in the ideal MHD case, we cannot enforce strict equality between the continuous and the discrete entropy scaling analysis [13, 46] and find

We apply this same process to the remaining unknown portions from the condition (3.28) and, after many algebraic manipulations, determine a unique averaging procedure for the discrete eigenvector and scaling matrices (3.29). The derivations were aided and verified using the symbolic algebra software Maxima . ∎∎

###### Remark 8.

In a similar fashion from  we determine the discrete diagonal matrix of eigenvalues

Now, we have a complete discrete description of the entropy stable numerical flux function from (3.20)

 f∗,ES

This leads to the main result of this section.

###### Theorem 2 (Entropy stable flux).

If we select the numerical flux function

 (3.31)

in the discrete entropy update (3.5) then the method is guaranteed to dissipate entropy with the correct sign.

###### Proof.

To begin we restate the discrete evolution of the entropy at a single interface where we insert the newly derived entropy stable flux (3.31)

From the construction of the entropy conservative flux function from Thm. 1 we know that

So, (3.3) becomes

because the matrices and are symmetric positive definite, the dissipation term is a quadratic form in entropy space and guarantees a negative contribution. ∎∎

## 4. Extension of ES scheme to discontinuous Galerkin numerical approximation

In this section, we extend the entropy conservative/stable finite volume numerical fluxes to higher spatial order by building them into a nodal discontinuous Galerkin (DG) spectral element method. We provide an abbreviated presentation of the entropy stable DG framework, but complete details can be found in . For simplicity we restrict the discussion to uniform Cartesian elements; however, the extension to curvilinear elements is straightforward [24, Appendix B].

First, we subdivide the physical domain into non-overlapping Cartesian elements . Each element is then transformed with a linear mapping, into reference coordinates on the element . As we restrict to Cartesian meshes, the Jacobian and metric terms are simply

 J=18ΔxΔyΔz,Xξ=12Δx,Yη=12Δy,Zζ=12Δz,

with element side lengths , , and .

For each element, we approximate the components of the state vector, the flux vectors, etc. with polynomials of degree in each spatial direction. The polynomial approximations are denoted with capital letters, e.g. . Here we consider the construction of a nodal discontinuous Galerkin spectral element method (DGSEM), in which the polynomials are written in terms of Lagrange basis functions, e.g. with

, that interpolate at the Lengendre-Gauss-Lobatto (LGL) nodes

.

The DG method is built from the weak form of the conservation law (2.1) where we multiply by a test function and integrate of the reference element

 (4.1) ∫E0(JUt+\lx@overaccentset→∇ξ⋅\lx@overaccentset↔~F)φd\lx@overaccentset→ξ=0,

where derivatives are now taken in the reference coordinates and we introduce the contravariant fluxes

Note, that there is no continuity of the approximate solution or assumed between elements boundaries.

We select the test function to be the tensor product basis

for . The integrals in (4.1) are approximated with LGL quadrature and we collocate the quadrature nodes with the interpolation nodes. This exploits that the Lagrange basis functions are discretely orthogonal and simplifies the nodal DG approximation . The integral approximations introduce the mass matrix

 M=diag(ω0,…,ωN),

where are the LGL quadrature weights. In addition to the discrete integration matrix, the polynomial basis functions and the interpolation nodes form a discrete polynomial derivative matrix

 (4.2) Dij=∂ℓj∂ξ∣∣∣ξ=ξi,i,j=0,…,N,

where are the LGL nodes. The derivative matrix (4.2) is special as it satisfies the summation-by-parts (SBP) property for all polynomial orders 

 MD+(MD)T=B=diag(−1,0,…,0,1).

The SBP property is a discrete equivalent of integration-by-parts that is a crucial component to develop high-order entropy conservative/stable numerical approximations, e.g. [15, 16]

We apply the SBP property once to generate boundary contributions in the approximation of (4.1). Just like in the finite volume method, we resolve the discontinuity across element boundaries with a numerical surface flux function, e.g. where and is the normal vector in reference space. We apply the SBP property again to move discrete derivatives back onto the fluxes inside the volume. Further, if we introduce a two-point numerical volume flux, e.g. , that is consistent (3.1) and symmetric with respect to its arguments, e.g. . These steps produce a semi-discrete split form DG approximation

 (4.3)

for .

To create an entropy aware high-order DG approximation we select the numerical surface and volume numerical fluxes to be those from the finite volume context [4, 24].

Two variants of the split form DG scheme (4.3) are of interest for the polytropic Euler equations:

1. Entropy conservative DG approximation: Select and to be the entropy conserving fluxes developed in Sect. 3.2.

2. Entropy stable DG approximation: Take to be the entropy conserving fluxes from Sect. 3.2 and to be the entropy stable fluxes from Sect. 3.3.

## 5. Numerical results

We present numerical tests to validate the theoretical findings of the previous sections for an entropy conservative/stable DG spectral element approximation. To do so, we perform the numerical tests in the two dimensional domain . We subdivide the domain into non-overlapping, uniform Cartesian elements such that the DG approximation takes the form presented in Sect. 4. The semi-discrete scheme (4.3) is integrated in time with the explicit five-state, fourth order low storage Runge-Kutta method of Carpenter and Kennedy . A stable time step is computed according to an adjustable coefficient , the local maximum wave speed, and the relative grid size, e.g. . For uniform Cartesian meshes the explicit time step is selected by

 Δt\coloneqqCFLΔxλmax(2N+1).

First, we will verify the high-order spatial accuracy for the DG scheme with the method of manufactured solutions. For this we assume the solution to polytropic Euler equations takes the form

 (5.1) u=[h,12h,32h]Twithh(x,y,t)=8+cos(2πx)sin(2πy)cos(2πt).

This introduces an additional residual term on the right hand side of (2.1) that reads

 (5.2) r=⎡⎢ ⎢ ⎢⎣ht+12hx+32hy12ht+14hx+bϱx+34hy12ht+34hx+94hy+bϱy⎤⎥ ⎥ ⎥⎦,b={κγϱγ−1,polytropicc2,isothermal.

Note that the residual term (5.2) is dependent.

The second test will demonstrate the entropic properties of the DG approximation. To do so, we use a discontinuous initial condition

 (5.3) u={[1.2,0.1,0.0]T,x≤y[1.0,0.2,−0.4]T,x>y.

To measure the discrete entropy conservation of the DG approximation we examine the entropy residual of the numerical scheme . To compute the discrete entropy growth, (4.3) is rewritten to be

 (5.4) J(Ut)ij+Res(U)ij=0,

where and

 (5.5) Res(U)ij

The growth in discrete entropy is computed by contracting (5.4) with the entropy variables (2.6)

 JWTij(Ut)ij=−WTijRes(U)ij⇔J(St)ij=−WTijRes(U)ij,

where we apply the definition of the entropy variables to obtain the temporal derivative, , at each LGL node. The DG approximation is entropy conservative when the two-point finite volume flux from Theorem 1 is taken to be the interface flux, i.e. , in (5.5). This means that

 Nel∑ν=1JkN∑i=0N∑j=0ωiωj(St)ij=0,

should hold for all time. We numerically verify this property by computing the integrated residual over the domain

 (5.6) ISt=−Nel∑ν=1JkN∑i=0N∑j=0ωiωjWTijRes(U)ij,

and demonstrate that (5.6) is on the order of machine precision for the discontinuous initial condition (5.3). If interface dissipation is included, like that described in Sect. 3.3, the DG approximation is entropy stable and (5.6) becomes

 ISt≤0.

We consider two particular values of in these numerical studies: Sect. 5.1 presents results for the isothermal Euler equations where and Sect. 5.2 contains results for the polytropic Euler equations where . We forgo presenting entropy conservative/stable DG numerical results for the shallow water variant () as they can be found elsewhere in the literature, e.g. .

### 5.1. Isothermal flow

Here we take and the speed of sound to be .

#### 5.1.1. Convergence

We use the manufactured solution (5.1) and additional residual (5.2) to investigate the accuracy of the DG approximation for two polynomial orders and . Further, we examine the convergence rates of the entropy conservative DGSEM where (the flux from Theorem 1) as well as the entropy stable DGSEM where (the flux from Theorem 1) and (the flux from Theorem 2). We run the solution up to a final time of We compute the error in the density between the approximation and the manufactured solution of different mesh resolution for each polynomial order. In Table 1

we present the experimental order of convergence (EOC) for the entropy conservative DGSEM. We observe an odd/even effect, that is an EOC of

for odd polynomial orders and for even polynomial orders, which has been previously observed, e.g. [22, 26]. This is particularly noticeable for higher resolution numerical tests. Table 2 gives the EOC results for the entropy stable DGSEM where there is no longer an odd/even effect and the convergence rate is , as expected for a nodal DG scheme, e.g. [3, 26].

#### 5.1.2. Entropy conservation test

For this test we compute the entropy residual (5.5) for two polynomial orders, and , and different mesh resolutions. We select the volume and surface fluxes to be (the flux from Theorem 1). We see in Table 3 that the magnitude of the entropy residual is on the order of machine precision for the discontinuous initial condition (5.3) for all resolution configurations.

### 5.2. Polytropic flow

Here we take and the scaling factor to be .

#### 5.2.1. Convergence

The formulation of the convergence test is very similar to those discussed in Sect. 5.1.1 where we use the manufactured solution (5.1) and additional residual (5.2) to investigate the accuracy of the DG approximation for two polynomial orders and . We run the solution up to a final time of and compute the error in the density. Table 4 gives the EOC for the entropy conservative DGSEM where we observe an odd/even effect with respect to the polynomial order of the approximation. The entropy stable EOC results in Table 5, again, show optimal convergence order of and no such odd/even effect.

#### 5.2.2. Entropy conservation test

Just as in Sect. 5.1.2 we compute the entropy residual (5.5) for two polynomial orders, and , and different mesh resolutions. The volume and surface fluxes are both taken to be the entropy conservative flux from Theorem 1. Table 6 shows that the entropy residual for the polytropic test is on the order of machine precision for the discontinuous initial condition (5.3) and all resolution configurations.

## 6. Conclusions

In this work we developed entropy conservative (and entropy stable) numerical approximations for the Euler equations with an equation of state that models a polytropic gas. For this case the pressure is determined from a scaled -power law of the fluid density. In turn, the total energy conservation equation became redundant and it was removed from the polytropic Euler system. In fact, the total energy acted as a mathematical entropy function for the polytropic Euler equations where its conservation (or decay) became an auxiliary condition not explicitly modeled by the PDEs.

We analyzed the continuous entropic properties of the polytropic Euler equations. This provided guidance for the semi-discrete entropy analysis. Next, we derived entropy conservative numerical flux functions in the finite volume context that required the introduction of a special -mean, which is a generalization of the logarithmic mean present in the adiabatic Euler case. Dissipation matrices were then designed and incorporated to guarantee the finite volume fluxes obeyed the entropy inequality discretely. We also investigated two special cases of the polytropic system that can be used to model isothermal gases () or the shallow water equations (). The finite volume scheme was extended to high-order spatial accuracy through a specific discontinuous Galerkin spectral element framework. We then validated the theoretical analysis with several numerical results. In particular, we demonstrated the high-order spatial accuracy and entropy conservative/stable properties of the novel numerical fluxes for the polytropic Euler equations.

## Acknowledgements

Gregor Gassner and Moritz Schily have been supported by the European Research Council (ERC) under the European Union’s Eights Framework Program Horizon 2020 with the research project Extreme, ERC grant agreement no. 714487.

## References

•  Timothy J. Barth. Numerical methods for gasdynamic systems on unstructured meshes. In Dietmar Kröner, Mario Ohlberger, and Christian Rohde, editors, An Introduction to Recent Developments in Theory and Numerics for Conservation Laws, volume 5 of Lecture Notes in Computational Science and Engineering, pages 195–285. Springer Berlin Heidelberg, 1999.
•  Marvin Bohm, Andrew R. Winters, Gregor J. Gassner, Dominik Derigs, Florian Hindenlang, and Joachim Saur. An entropy stable nodal discontinuous Galerkin method for the resistive MHD equations. Part I: Theory and numerical verification. Journal of Computational Physics, doi.org/10.1016/j.jcp.2018.06.027, 2018.
•  C. Canuto, M. Hussaini, A. Quarteroni, and T. Zang. Spectral Methods: Fundamentals in Single Domains. Springer, Berlin, 2006.
•  M. Carpenter, T. Fisher, E. Nielsen, and S. Frankel. Entropy stable spectral collocation schemes for the Navier–Stokes equations: Discontinuous interfaces. SIAM Journal on Scientific Computing, 36(5):B835–B867, 2014.
•  M. Carpenter and C. Kennedy. Fourth-order -storage Runge-Kutta schemes. Technical Report NASA TM 109111, NASA Langley Research Center, 1994.
•  Yunus Cengel and Michael Boles. Thermodynamics: An Engineering Approach. McGraw-Hill Education; 8 edition, 2014.
•  Jesse Chan. On discretely entropy conservative and entropy stable discontinuous Galerkin methods. Journal of Computational Physics, 362:346–374, 2018.
•  Praveen Chandrashekar. Kinetic Energy Preserving and Entropy Stable Finite Volume Schemes for Compressible Euler and Navier-Stokes Equations. Communications in Computational Physics, 14:1252–1286, 2013.
•  Gui-Qiang Chen. Euler equations and related hyperbolic conservation laws. In Handbook of differential equations: evolutionary equations, volume 2, pages 1–104, 2005.
•  Tianheng Chen and Chi-Wang Shu. Entropy stable high order discontinuous Galerkin methods with suitable quadrature rules for hyperbolic conservation laws. Journal of Computational Physics, 345:427–461, 2017.
•  Richard Courant, Kurt Friedrichs, and Hans Lewy. On partial differential equations of mathematical physics. IBM Journal of Reseach and Development, 11:215–234, 1967.
•  Jared Crean, Jason E. Hicken, David C. Del Rey Fernández, David W. Zingg, and Mark H. Carpenter. Entropy-stable summation-by-parts discretization of the Euler equations on general curved elements. Journal of Computational Physics, 356:410–438, 2018.
•  Dominik Derigs, Andrew R. Winters, Gregor J. Gassner, and Stefanie Walch. A novel averaging technique for discrete entropy stable dissipation operators for ideal MHD. Journal of Computational Physics, 330:624–632, 2016.
•  Laurence C. Evans. Partial Differential Equations. American Mathematical Society, 2012.
•  Travis C. Fisher and Mark H. Carpenter. High-order entropy stable finite difference schemes for nonlinear conservation laws: Finite domains. Journal of Computational Physics, 252:518–557, 2013.
•  Travis C. Fisher, Mark H. Carpenter, Jan Nordström, Nail K. Yamaleev, and Charles Swanson. Discretely conservative finite-difference formulations for nonlinear conservation laws in split form: Theory and boundary conditions. Journal of Computational Physics, 234:353–375, 2013.
•  Ulrik S. Fjordholm, Siddhartha Mishra, and Eitan Tadmor. Well-blanaced and energy stable schemes for the shallow water equations with discontiuous topography. Journal of Computational Physics, 230(14):5587–5609, 2011.
•  Ulrik S. Fjordholm, Siddhartha Mishra, and Eitan Tadmor. Arbitrarily high-order accurate entropy stable essentially nonoscillatory schemes for systems of conservation laws. SIAM Journal on Numerical Analysis, 50(2):544–573, 2012.
•  Ulrik S. Fjordholm and Deep Ray. A sign preserving WENO reconstruction method. Journal of Scientific Computing, 68(1):42–63, 2016.
•  Lucas Friedrich, Andrew R Winters, David C Del Rey Fernández, Gregor J Gassner, Matteo Parsani, and Mark H Carpenter. An entropy stable non-conforming discontinuous Galerkin method with the summation-by-parts property. Journal of Scientific Computing, 77(2):689–725, 2018.
•  G. Gassner, F. Hindenlang, and C. Munz. A Runge-Kutta based discontinuous Galerkin method with time accurate local time stepping. Adaptive High-Order Methods in Computational Fluid Dynamics, 2:95–118, 2011.
•  Gregor J. Gassner.

A skew-symmetric discontinuous Galerkin spectral element discretization and its relation to SBP-SAT finite difference methods.

SIAM Journal on Scientific Computing, 35(3):A1233–A1253, 2013.
•  Gregor J Gassner, Andrew R Winters, Florian J. Hindenlang, and David A. Kopriva. The BR1 scheme is stable for the compressible Navier-Stokes equations. Journal of Scientific Computing, 77(1):154–200, 2017.
•  Gregor J. Gassner, Andrew R. Winters, and David A. Kopriva. Split form nodal discontinuous Galerkin schemes with summation-by-parts property for the compressible Euler equations. Journal Of Computational Physics, 327:39–66, 2016. <