On the scaling of entropy viscosity in high order methods
Adeline Kornelus, Daniel Appel\"o

TL;DR
This paper examines how different scaling choices affect the entropy viscosity method's effectiveness in high order numerical schemes for shock problems, providing insights into optimal viscosity scaling strategies.
Contribution
It introduces a detailed analysis of entropy viscosity scaling and compares the performance of two scaling approaches through illustrative examples.
Findings
Scaling choice significantly impacts viscosity size and shock capturing quality
Different scalings lead to varied numerical stability and accuracy
Guidelines for selecting appropriate entropy viscosity scaling are discussed
Abstract
In this work, we outline the entropy viscosity method and discuss how the choice of scaling influences the size of viscosity for a simple shock problem. We present examples to illustrate the performance of the entropy viscosity method under two distinct scalings.
| Case | ||
| \svhline | ||
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsStatistical Mechanics and Entropy · Fractional Differential Equations Solutions · Markov Chains and Monte Carlo Methods
11institutetext: Adeline Kornelus 22institutetext: The Department of Mathematics and Statistics, University of New Mexico, Albuquerque, NM 87131, 22email: [email protected] 33institutetext: Daniel Appelö 44institutetext: The Department of Mathematics and Statistics, University of New Mexico, Albuquerque, NM 87131, 44email: [email protected]
On the scaling of entropy viscosity in high order methods
Adeline Kornelus and Daniel Appelö††footnotemark: Supported in part by NSF Grant DMS-1319054. Any conclusions or recommendations expressed in this paper are those of the author and do not necessarily reflect the views NSF.
Abstract
In this work, we outline the entropy viscosity method and discuss how the choice of scaling influences the size of viscosity for a simple shock problem. We present examples to illustrate the performance of the entropy viscosity method under two distinct scalings.
1 Introduction
Hyperbolic partial differential equations (PDE) are used to model various fluid flow problems. In the special case of 1-dimensional linear constant coefficient scalar hyperbolic problems, the solutions to these PDE are simply a translation of the initial data. However, for nonlinear problems the solution may deform, and as a result, shock waves can form even if the initial data is smooth leveque2002finite .
In computational fluid dynamics, it is desirable that numerical methods capture shock waves and maintain a high accuracy for smooth waves. Low order methods have sufficient numerical dissipation to regularize shock waves but obtaining accurate solutions in smooth regions can become expensive. On the other hand, high order methods are capable of achieving high accuracy at a reasonable cost. Their low numerical dissipation enables such accuracy, but on the downside, it limits their ability to regularize shock waves.
Various techniques have been implemented to capture shocks while maintaining high accuracy, at least away from shocks. There are two major classes of shock capturing techniques: shock detection techniques, where we find slope limiters leveque2002finite , Essentially Non-Oscillatory (ENO) and Weighted ENO (WENO) shu1998essentially , and artificial viscosity techniques, where we find filtering yee2007development ; persson2006sub , the PDE-based viscosity method johnson1990convergence , the entropy viscosity method Guermond2011conservation , among others.
In this work, we focus on the entropy viscosity method. In essence, the entropy viscosity method provides shock capturing without compromising the high accuracy away from the shock. An important advantage of this method is that it generalizes very easily to higher dimensions and unstructured grids.
As a model problem, we consider Burgers’ equation
[TABLE]
where . Physically correct solutions to (1) can be singled out by requiring that they satisfy an entropy inequality such as
[TABLE]
The entropy residual, , is zero wherever is smooth. If the solution contains a shock, then the entropy residual takes the form of a negative Dirac distribution centered at the location of the shock, , i.e. . The property that the entropy residual is unbounded at a shock was first used by Guermond and Pasquetti in Guermond2011conservation , as a way to selectively introduce viscosity. The artificial viscosity, , proposed in Guermond2011conservation , defined as the minima of two viscosities
[TABLE]
becomes the coefficient of the viscous term in the viscous Burgers’ equation,
[TABLE]
Here, is the Lax-Friedrich viscosity whose size depends on discretization and the largest eigenvalue, , of the flux Jacobian, . The second viscosity is proportional to the magnitude of the entropy residual (in fact, a discretization of the entropy residual) and will thus be zero (or small after discretization) away from discontinuities. In theory, the entropy residual becomes unbounded at a shock, numerically however, the entropy residual remains bounded with the size of the residual depending on the discretization size. As we will see below, this subtle difference has consequences for how to choose the scaling of the viscosity terms in the entropy viscosity method.
On a grid with step size , the second viscosity can be expressed as
[TABLE]
with a parameter that requires tuning. In recent papers on entropy viscosity method, see e.g. guermond2011entropyhighorder ; guermond2010entropy ; guermond2011entropy ; guermond2011suitable ; zingan2013implementation , the parameter is chosen to be 2, but the original paper guermond2008entropy uses . It is unclear to us why the later works prefer . Here, we will present analysis and computational results that suggest the original scaling is a more natural choice. We note that the entropy residual is typically scaled by , with the over-bar indicating a spatial average, but as this quantity is roughly constant in the problems presented here, we omit it for brevity and reduced complexity.
The rest of the paper is organized as follows. In Section 2, we describe different discretizations of (4) that we consider here, in Section 3, we present an analysis of how the entropy viscosity depends on the two viscosities, and , under different scaling for a model problem. In Section 4, we then conduct experiments with the entropy viscosity method where takes on values 1 or 2 and compare the results.
2 Numerical methods
We will consider the discretization of (4) by our conservative Hermite method KorAppJSC , a standard discontinuous Galerkin (dG) method Hesthaven:2008fk and a simple finite volume type discretization leveque2002finite . For all the discretizations we let the domain be discretized by the regular grid .
The degrees of freedom for the finite volume method is cell averages centered at the grid points. For the Hermite method, the degrees of freedom are the coefficients of node centered Taylor polynomials of degree and for the dG method, they are the () coefficients of element-wise (we take an element to be ) expansions in Legendre polynomials. For smooth solutions the spatial accuracy of the Hermite method is and for the dG method.
All three methods use the classic fourth order Runge-Kutta method to evolve the semi-discretizations in a method-of-lines fashion.
In the Hermite method, we evaluate the fluxes and their derivatives at the nodes (element edges) for the four stages in the RK method. Precisely, for the first stage we compute the slope for the Taylor polynomial approximating the solution at the first stage. Here is the truncated polynomial multiplication of with itself and is the derivative of the polynomial. At the next stage, the solution is , the slope is and so on. Once the stage slopes and their spatial derivatives are known, we perform a Hermite interpolation to the element centers of the solution and the spatial derivatives of the stage slopes. These are then used to evolve the element centered Hermite interpolant of to . As the Hermite interpolant is of higher degree than the original Taylor polynomial, we conclude a half-step by truncating it to the appropriate degree. To advance the solution a full time step, the half-step process is repeated starting from the element centers.
To handle the artificial viscosity in the dG method, we use the approach of Bassi and Rebay bassi1997high with a Lax-Friedrichs flux for the advective term and alternating fluxes for the viscous term. The nonlinear terms are constructed explicitly and de-aliased by over-integration kirby2003aliasing .
For the finite volume method, we let be a grid function approximating the solution and be an approximation to the flux at . To compute the time derivatives, we use the spatial approximation
[TABLE]
where
[TABLE]
When , the above discretization is linearly stable (when paired with a suitable time-stepping method) but is not non-linearly stable, and we thus add artificial viscosity to stabilize it.
For all three discretizations, we approximate the time derivative of the entropy function, , by a backward difference. This approach is explicit as we use the current solution to compute at the current time before evolving the solution in time. The residual (and hence the viscosity) is kept on each element / grid-point over each step.
To approximate the entropy flux derivative using the Hermite method, we compute the derivative of the truncated polynomial multiplication at the node. For the dG method, we evaluate the flux on a Legendre-Gauss-Lobatto (LGL) grid and differentiate it to get an approximation for . The residual on an element is taken to be the maximum of the absolute value of the residual on the LGL grid. In the finite volume method is approximated by
[TABLE]
We note that more sophisticated discretizations of the entropy residual could be considered. In particular, a higher order approximation to would result in a higher rate of convergence for smooth solutions, but as we are mainly concerned with the scaling , we did not pursue such discretizations here. In fact, in our experience, the results concerning the choice of scaling are not affected by the order of the accuracy of the approximation to . This will be discussed in Section 3.
We also define to be the classical Lax-Friedrich viscosity, which for Burgers’ equation takes the form
[TABLE]
where the maximum is taken globally.
Finally, for the purpose of comparison we also present some results computed using the sub-cell resolution smoothness sensor of Persson and Peraire, persson2006sub . The smoothness sensor compares the energy content of the highest (Fourier or expansion) mode with the total energy on an element and then maps its ratio (which is an indicator of the smoothness) into the size of the artificial viscosity. Precisely, if the approximate dG solution on an element is , with being an orthogonal basis, we compute the smoothness as and the viscosity as
[TABLE]
When applied to the Hermite method, we first project the Taylor polynomials centered at two adjacent grid-points into an orthogonal Legendre expansion on the element defined by the grid-points and then proceed as above.
3 Impact of the -scaling on the selection mechanism
To study how the selection mechanism depends on the shock speed and the size of the jump, consider a solution of the Burgers’ equation consisting of a Heaviside function with left state and right state , given by
[TABLE]
This corresponds to a shock of size moving with speed . Solutions of the form (9) always has a negative value since Lax entropy condition for Burgers’ equation dictates .
For simplicity, we use the short hand notation for . A direct computation
[TABLE]
shows that (9) is a solution of (1). Further, it can be shown that the entropy residual (2) for (9) is
[TABLE]
That is, the size of the entropy residual grows with the cube of .
Now, by the properties that define the Dirac delta function , we have
[TABLE]
Thus, a consistent discretization of the Dirac delta function on a grid must obey the condition
[TABLE]
where . For any approximation with a finite width stencil, we must have and we thus expect to behave like on a uniform grid. We therefore proceed with the analysis using the discrete approximation . Using this expression for , we estimate the viscosity by the minimum of
[TABLE]
The comparison between the size of and in various scenarios is reported in Table 3. If , then the two viscosities and scale as . For a problem with multiple shocks, the homogeneity in -scaling introduces an additional difficulty in determining . Should it be chosen based on the largest or smallest shock? What if new shocks appear during the course of the computation? To avoid answering these questions, we instead consider . Now while , and the particular choice of is thus irrelevant since as , the selection mechanism will eventually select at the shocks. We will provide an example to illustrate the two-shock dilemma in Section 4.3.
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1(1) F. Bassi and S. Rebay , A high-order accurate discontinuous finite element method for the numerical solution of the compressible Navier–Stokes equations , Journal of computational physics, 131 (1997), pp. 267–279.
- 2(2) J.-L. Guermond and R. Pasquetti , Entropy-based nonlinear viscosity for Fourier approximations of conservation laws , Comptes Rendus Mathematique, 346 (2008), pp. 801–806.
- 3(3) , Entropy viscosity method for high-order approximations of conservation laws , in Spectral and High Order Methods for Partial Differential Equations, Springer, 2011, pp. 411–418.
- 4(4) J.-L. Guermond and R. Pasquetti , Entropy viscosity method for higher-order approximations of conservation laws , Lecture Notes in Computational Science and Engineering, 76 (2011), pp. 411 – 418.
- 5(5) J. L. Guermond, R. Pasquetti, and B. Popov , Entropy viscosity for conservation equations , in V European Conference on Computational Fluid Dynamics (Eccomas CFD 2010), 2010.
- 6(6) J.-L. Guermond, R. Pasquetti, and B. Popov , Entropy viscosity method for nonlinear conservation laws , Journal of Computational Physics, 230 (2011), pp. 4248–4267.
- 7(7) , From suitable weak solutions to entropy viscosity , Journal of Scientific Computing, 49 (2011), pp. 35–50.
- 8(8) J. S. Hesthaven and T. Warburton , Nodal Discontinuous Galerkin Methods: Algorithms, Analysis, and Applications , vol. 54, Springer, New York, 2008.
