Professional Documents
Culture Documents
AA215A Lecture05
AA215A Lecture05
AA215A Lecture 5
Antony Jameson
1
Lecture 5
Shock Capturing Schemes for Scalar
Conservation Laws
1.1 Introduction
A major achievement in the early development of computational fluid dynamics (CFD) was the
formulation of non-oscillatory shock capturing schemes. The first such scheme was introduced
by Godunov in his pioneering work first published in 1959 (?). Godunov also showed that non-
oscillatory schemes with a fixed form are limited to first order accuracy. This is not sufficient for
adequate engineering simulations. Consequently there were widespread efforts to develop “high
resolution” schemes which circumvented Godunov’s theorem by blending a second or higher order
accurate scheme in smooth regions of the flow with a first order accurate non-oscillatory scheme
in the neighborhood of discontinuities. This is typically accomplished by the introduction of logic
which detects local extrema and limits their formation or growth. Notable early examples include
Boris and Books’ flux corrected transport (FCT) scheme published in 1973 (?) and Van Leer’s
Monotone Upstream Conservative Limited (MUSCL) scheme published in 1974 (?).
Here we first discuss the formulation of non-oscillatory schemes for scalar conservation laws in
one or more space dimension, and illustrate the construction of schemes which yield second order
accuracy in the bulk of the flow but are locally limited to first order accuracy at extrema. Next
we discuss the formulation of finite volume schemes for systems of equations such as the Euler
equations of gas dynamics, and analyze the construction of interface flux formulas with favorable
properties such as sharp resolution of discontinuities and assurance of positivity of the pressure and
density. The combination of these two ingredients leads to a variety of schemes which have proved
successful in practice.
∂u ∂u
+a = 0, a > 0. (1.1)
∂t ∂x
Representing the discrete solution at meshpoint by vj , a semi-discrete scheme with central differ-
ences is
dvj a
+ (vj+1 − vj−1 ) = 0 (1.2)
dt 2∆x
3
CHAPTER 1. SHOCK CAPTURING SCHEMES FOR SCALAR CONSERVATION LAWS 4
j−1 j j+1
Thus an odd-even mode is a stationary solution, and odd-even decoupling should be removed
via the addition of artificial diffusion or upwinding.
wave propagation
r points s points
∂u ∂u
+ a(u) =0 (1.11)
∂t ∂x
where the wave speed is
∂f
a(u) = .
∂u
The solution is constant along characteristics
x − a(u)t = ξ
so extrema remain unchanged as they propagate unless the characteristics converge to form a shock
wave, a process that does not increase extrema. With a positive diffusion coefficient the right hand
side of equation (1.10) is negative at a maximum and positive at a minimum. Thus in a true
solution of (1.10) extrema do not increase in absolute value. It follows that L∞ stability is an
CHAPTER 1. SHOCK CAPTURING SCHEMES FOR SCALAR CONSERVATION LAWS 6
appropriate criterion for discrete schemes consistent with the properties of true solutions of the
nonlinear conservation law (1.10).
Consider the general discrete scheme
#
vin+1 = aij vjn (1.12)
j
where the solution at time level n + 1 depends on the solution over an arbitrarily large stencil of
points at time level n. A Taylor series expansion of (1.12) about the point xi at time t yields
∂vj ∆t2 ∂ 2 vj
v(xi ) + ∆t (xi ) + (xi ) =
∂t 2 ∂t2
∂v(xi ) (xj − xi )2 ∂ 2 v(xi )
# $ %
aij v(xi ) + (xj − xi ) + + ... (1.13)
∂x 2 ∂x2
j
For consistency with any equation with no source term, as is the case for equation (1.10),
#
aij = 1 (1.14)
j
and hence #
%v n+1 %∞ ≤ max |aij |%v n %∞ (1.16)
i
j
v n+1 = Av n ,
this may be recognized as the condition that the induced matrix norm
%Av%∞
%A%∞ = sup ≤1 (1.18)
v %v%∞
scheme (1.12) has the “positivity” property that it will preserve a non-negative solution at every
time step.
Using the consistency condition (1.14), the discrete scheme can be written as
# #
vin+1 = (aij ) vin + aij (vjn − vin )
j j#=i
#
= vin + ∆t ãij (vjn − vin ) (1.20)
j#=i
where
aij = ∆t(ãij ).
This displays the scheme as a forward Euler time stepping scheme. Moreover, comparing (1.20)
with (1.12) #
aii = 1 − ∆t ãij (1.21)
j#=i
This is a generalization of the Courant-Friedrichs-Lewy (CFL) condition for schemes with an arbi-
trary stencil. In the case of linear advection
∂u ∂u
+a = 0,
∂t ∂x
the simplest L∞ stable scheme is the upwind scheme
(a) (b)
where the coefficients aij &= 0 only for the nearest neighbors to the mesh point i, in one or more
space dimensions. The argument of the previous section can now be repeated where the summations
are now limited to the nearest neighbors of the mesh point i, denoted by the set Ni . For consistency
with an equation with no source term #
aij = 1, (1.24)
j∈Ni
aij ≥ 0,
aij = 0 if j is not a neighbor of i (1.26)
It was proposed by Harten (?) that a good recipe for the construction of non-oscillatory shock
capturing schemes is to require that the total variation of the discrete solution cannot increase.
Such schemes are called total variation diminishing (TVD). This criterion has been widely used
and also extended to the concept of total variation bounded (TVB) schemes which permit only a
bounded increase in the total variation.
Let xj , j = 1, 2, ..., n − 1, be the interior extrema of u(x), and augment there with the endpoints
x0 = a and xn = b. Referring to figure 1.5, it can be seen that over an interval in which u(x) is
CHAPTER 1. SHOCK CAPTURING SCHEMES FOR SCALAR CONSERVATION LAWS 9
Figure 1.5: Equivalent LED and TVD schemes (one dimensional case)
increasing, say xj−1 to xj , the contribution to T V (u) is u(xj ) − u(xj−1 ), while over the following
interval in which u(x) is decreasing the contribution to T V (u) is u(xj ) − u(xj+1 ). Thus
#
T V (u) = 2 (interior maxima)
#
−2 (interior minima)
±(the end values). (1.29)
If the initial data is, say, monotonically decreasing the total variation is
T V (v 0 ) = v00 − vn0 .
If the end values are fixed the introduction of any interior extrema will produce an increase in the
total variation. Thus a TVD scheme preserves the monotonicity of initial data which is monotonic.
Also if the end values are fixed the discrete scheme will be TVD if interior maxima cannot increase,
interior minima cannot decrease and no new extrema are introduced. Accordingly LED schemes
are TVD. The converse is not necessarily true. This is illustrated in figure 1.6, in which the upper
and lower profiles have the same total variation with a value equal to 4. Thus a TVD scheme would
allow a shift from the lower to the upper profile, which would not be permitted by an LED scheme
!
because it would incur the formation of a new maximum at C . In this sense the LED criterion is
more stringent than the TVD criterion, while still consistent with the properties of the nonlinear
conservation law (1.10).
Harten derived conditions for the coefficients of a 3 point TVD scheme in one dimension that
are essentially equivalent to the positivity condition (1.26) for an LED scheme. The conditions for
a multipoint TVD scheme derived by Jameson and Lax (?) would be hard to realize in practice.
The LED criterion is directly applicable to multi-dimensional
- discretizations on both structured
and unstructured meshes whereas the use of D %'u% dS as a measure of total variation can lead
to anomalous results on a triangular mesh using any of the standard norms (?). For the foregoing
reasons the analysis in the following sections is based on the LED principle.
CHAPTER 1. SHOCK CAPTURING SCHEMES FOR SCALAR CONSERVATION LAWS 10
Accordingly the semi-discrete equation (1.31) is consistent with a differential equation with no
source term only if #
aij = 0. (1.34)
j
or
dvi #
= aij (vj − vi ) (1.36)
dt
j#=i
Suppose that
aij ≥ 0, j &= i (1.37)
Then if vi is a maximum
vj − vi ≤ 0 (1.38)
and
dvi
≤0 (1.39)
dt
Similarly if vi is a minimum
vj − vi ≥ 0 (1.40)
and
dvi
≥0 (1.41)
dt
Now %v%∞ can increase only if the maximum increases or the minimum decreases. But
, ,
, dvi ,
, dt , ≤ %A%∞ %v%∞ (1.42)
, ,
so if |vi | < %v%∞ there is a time interval ∈> 0 during which it cannot become an extremum, while
if |vi | = %v%∞ it follows from (1.39) or (1.41) that
d
|vi | ≤ 0 (1.43)
dt
Thus condition (1.37) is sufficient to ensure that %v%∞ does not increase.
Suppose that condition (1.37) is not satisfied. Then choosing vi = 1, vj = 1 if aij ≥ 0, vj = 0 if
aij < 0, one obtains
dvi
>0 (1.44)
dt
and %v%∞ will increase. Accordingly the semi-discrete scheme (1.31) is L∞ stable if and only if the
positivity condition (1.37) is satisfied.
As in the case of the discrete scheme, the semi-discrete scheme will be LED if it is limited to
a compact stencil of nearest neighbors with non-negative coefficients aij ≥ 0, aij = 0 if j is not a
neighbor of i because then the same argument can be repeated while examining the behavior of vi
with respect only to its neighbors.
where #
aij = α.
j
CHAPTER 1. SHOCK CAPTURING SCHEMES FOR SCALAR CONSERVATION LAWS 12
It now follows from a Taylor series expansion as in section 1.7, that the semi-discrete is constant
with the differential equation
du
= Lu + αu (1.46)
dt
0& 1
where L is a source free differential operator. Subtracting a
j ij − α vi the scheme can be
written with no loss of generality as
dvi #
= αvi + aij (vj − vi ). (1.47)
dt
j#=i
Set
vi = wi eαt . (1.48)
Then ! "
dvi dwi
= + αwi eαt . (1.49)
dt dt
Consequently
dwi #
= aij (wj − wi ). (1.50)
dt
j#=i
Therefore, if aij ≥ 0, %w%∞ does not increase, and the growth of %v%∞ is bounded by eαt .
∂v ∆t2 ∂ 2 v
v(xj ) + ∆t(xj ) + (xj ) =
∂t 2 ∂t2
∞
∂v(xi ) k2 ∆x2 ∂ 2 v(xi )
# $ %
ck v(xi ) + k∆x + + ... (1.53)
∂x 2 ∂x2
k=−∞
In order to realize second order accuracy the coefficients ck must satisfy the conditions
#
ck = 1 (1.54)
k
#
kck = −λ (1.55)
k
CHAPTER 1. SHOCK CAPTURING SCHEMES FOR SCALAR CONSERVATION LAWS 13
#
k2 ck = λ2 (1.56)
k
where
∆t
λ=a .
∆x
Since ck ≥ 0 we can set
√ √
αk = ck , βk = k ck = kαk (1.57)
Then #
α2k = 1 (1.58)
k
#
αk βk = −λ (1.59)
k
#
βk2 = λ2 (1.60)
k
and consequently
2 32 2 32 3
# # #
αk βk = α2k βk2 . (1.61)
k k k
with equality only if the vectors α and β are aligned, or for some scale r, βk = rαk for all k.
According to the definition (1.57) of αk and βk , it follows that there can only be one nonzero ck .
Moreover it follows from (1.54) that this must have the value unity. Taking
ck = 0, k &= −1
c−1 = 1 (1.63)
with a CFL number λ = 1, for which the scheme corresponds to exact propagation along character-
istics. A choice such as ck−2 = 1 corresponds to the upwind scheme applied over double intervals
with λ = 1. It is evident that no solution is possible for time steps such that λ &= 1.
We conclude that it is not possible for a discrete scheme with fixed non-negative coefficients
at every mesh point to yield better than first order accuracy. In order to overcome this barrier
it is necessary to consider schemes in which the discretization is locally adapted to the solution.
Typically these schemes enforce positivity or the LED principle only in the neighborhood of extrema
which can be detected by a change of sign in the slope measured by ∆vj+ 1 = vj+1 − vj . The earliest
2
examples of schemes of this type are Boris and Book’s flux corrected transport (FCT) scheme (?)
and Van Leer’s monotone upstream conservative limited (MUSCL) scheme (?).
CHAPTER 1. SHOCK CAPTURING SCHEMES FOR SCALAR CONSERVATION LAWS 14
Accordingly there is a negative contribution to dEdt from every interior interface. Thus finally the
semi-discrete scheme is neutrally energy stable if α = 0, energy stable if α > 0, and LED if α ≥ 1.
Suppose that the domain is divided into a uniform grid of cells of width ∆xj where cell j extends
from xj − 21 ∆x to xj + 12 ∆x. Applying (1.80) separately to each cell we obtain the semi-discrete
finite volume scheme
dvj
∆x + hj+ 1 − hj− 1 = 0
dt 2 2
CHAPTER 1. SHOCK CAPTURING SCHEMES FOR SCALAR CONSERVATION LAWS 16
where vj represents the average value of u in cell j, and hj+ 1 is the numerical flux across the
2
interface separating cells j and j + 1. Introducing artificial diffusion, we define the numerical fluxes
1
hj+ 1 = (fj+1 + fj ) − αj+ 1 (vj+1 − vj )
2 2 2
where
fj = f (vj )
and αj+ 1 is the coefficient of artificial diffusion. Define also a numerical estimate of the wave speed
2
∂f
a(u) = ∂u as
6 fj+1 −fj
vj+1 −vj , vj+1 &= vj
aj+ 1 = ∂f
∂u |vj , vj+1 = vj
2
and
1 1
hj− 1 = fj − (fj − fj−1 ) − αj− 1 (vj − vj−1 ) = fj − (αj− 1 + aj− 1 )(vj − vj−1 )
2 2 2 2 2 2
where
vj+ 1 = vj+1 − vj
2
This is the pure first order upwind scheme since if aj+ 1 > 0
2
1 fj+1 − fj 1
dj+ 1 = (vj+1 − vj ) = (fj+1 − fj )
2 2 vj+1 − vj 2
and
hj+ 1 = fj
2
Thus the upwind scheme is the least diffusive first order accurate LED scheme.
CHAPTER 1. SHOCK CAPTURING SCHEMES FOR SCALAR CONSERVATION LAWS 17
while the interfaces between cells to the left of j are equal to fL , and those between cells to the
right of j are equal to fR . Hence
d fL − fL
vj−1 = =0
dt ∆x
d fR − fL
vj = =0
dt ∆x
d fR − fR
vj+1 = =0
dt ∆x
With an appropriate choice of the numerical flux a single point numerical structure can also be
obtained for stationary shock in gas dynamics. Notice also the case where the wave speed changes
sign from negative to positive
αj− 1 < 0, αj+ 1 > 0
2 2
This represents an expansion region, comparable to the inflow boundary of the supersonic zone in
a transonic flow. Now
hj− 1 = fj , hj+ 1 = fj
2 2
and
dvj
=0
dt
ak > 0, k ≤ j
ak < 0, k ≥ j + 1
Now
dvj fj − fj−1
+ =0
dt ∆x
corresponding to a numerical flux
hj+ 1 = fj
2
while
dvj+1 fj+2 − fj+1
+ =0
dt ∆x
corresponding to
hj+ 1 = fj+1
2
CHAPTER 1. SHOCK CAPTURING SCHEMES FOR SCALAR CONSERVATION LAWS 19
Accordingly the scheme is not conservative, since the interior fluxes do not cancel when the solution
values are summed over j. In fact, with f0 and fn fixed since both boundaries are inflow boundaries
n−1
# dvj
∆x = −f1 + f0 − f2 + f1 ... − fj + fj−1 − fj+2 + fj+1 ... − fn + fn−1 = f0 − fn − fj + fj+1
dt
j=1
By upwinding the flux rather than the scheme we ensure that the interior fluxes are cancelled in
a telescopic sum, with the result that the correct conservation law is preserved by the numerical
scheme.
In zones where the wave speed has a constant sign this is identical to the upwind scheme defined
in section 1.12, but it is different in transition zones where the wave speed changes sign.
Consider, for example, the case of Burger’s equation with vj < 0, vj+1 > 0. The Engquist-Osher
flux is
hEO
j+ 1
= fj+ + fj+1
−
=0
2
CHAPTER 1. SHOCK CAPTURING SCHEMES FOR SCALAR CONSERVATION LAWS 20
In the case of a shock there may be a transition from left state vj with a(vj ) > 0 to a right state
vj+1 with a(vj+1 ) < 0, so that
hEO
j+ 1
= fj+ + fj+1
−
= fj + fj+1
2
Consider again Burger’s equation where we now examine the numerical structure of a stationary
shock with left and right states vL > 0 and vR < 0.
It now turns out that a structure with two interior points is possible, as illustrated in Figure 1.9.
Here
vL ≥ vA ≥ 0, 0 ≥ vB ≥ vR
and
hj− 1 = fL
2
hj+ 3 = fR
2
fA + fB = fL = fR
or
2 2
vA + vB = vL2 = vR
2
Hence, given vA 7
vB = − vL2 − vA
2
CHAPTER 1. SHOCK CAPTURING SCHEMES FOR SCALAR CONSERVATION LAWS 21
with
∆vj+ 1 = vj+1 − vj
2
6 fj+1 −fj
vj+1 −vj , vj+1 &= vj
aj+ 1 = ∂f
∂u |u=vj , vj+1 = vj
2
(2) 1 (4)
&j+ 1 ≥ |a 1 |, & 1 = 0 (1.88)
2 2 j+ 2 j+ 2
P roof : Suppose vj is an extremum. Then the second condition ensures that
(4) (4)
&j+ 1 = 0, &j− 1 = 0
2 2
and according to the first condition the coefficients of both vj+1 − vj and vj−1 − vj are non-negative,
satisfying the requirements for an LED scheme.
CHAPTER 1. SHOCK CAPTURING SCHEMES FOR SCALAR CONSERVATION LAWS 22
Figure 1.10: JST scheme at an extremum. ∆vj+ 3 and ∆vj− 1 have opposite signs. Also ∆vj+ 1 and
2 2 2
(4) (4)
∆vj− 3 have oppsite signs. Thus &j+ 1 = 0 and &j− 1 = 0
2 2 2
(2) (4)
In order to construct coefficients &j+ 1 and &j+ 1 satisfying conditions (1.88) define the function
2 2
, u − v ,q
, ,
R(u, v) = ,
, ,
|u| + |v| ,
R(u, v) = 1
Now set
(2)
&j+ 1 = αj+ 1 Qj+ 1
2 2 2
and
(4)
&j+ 1 = βj+ 1 (1 − Qj+ 1 )
2 2 2
where
Qj+ 1 = R(∆vj+ 3 , ∆vj− 1 )
2 2 2
Since ∆vj+ 3 and ∆vj− 1 have opposite signs if either vj or vj+1 is an extremum, the scheme will
2 2
be LED if
1
αj+ 1 ≥ |aj+ 1 |
2 2 2
Typically
βj+ 1 = K|aj+ 1 |
2 2
where in the case of steady state calculations K can be tuned to maximize the rate of convergence
to a steady state.
CHAPTER 1. SHOCK CAPTURING SCHEMES FOR SCALAR CONSERVATION LAWS 23
∆vj+ 1 = vj+1 − vj
2
! "
1
dj+ 1 = αj+ 1 ∆vj+ 1 − (∆vj+ 3 + ∆vj− 1 )
2 2 2 2 2 2
3
which approximates α∆x3 ∂∂xu3 . However this would lead to a 5 point scheme which does not satisfy
the LED condition.
In order to circumvent this we replace the arithmetic average of ∆vj+ 3 and ∆vj− 1 by their
2 2
limited average and define
! "
dj+ 1 = αj+ 1 ∆vj+ 1 − L(∆vj+ 3 , ∆vj− 1 )
2 2 2 2 2
Hence αj+ 1 L(∆vj+ 3 , ∆vj− 1 ) is a limited anti diffusive term, and it will be verified below that the
2 2 2
scheme is LED if αj+ 1 ≥ 12 |aj+ 1 |.
2 2
We first give some examples of limited averages. Define
1
S(u, v) = (sign (u) + sign (v))
2
so that
6 1 when u > 0 and v > 0
S(u, v) = 0 when u and v have opposite sign
−1 when u < 0 and v < 0
Some well known limited averages are
1
so that by P2, setting α = u
v 1
L(1, ) = L(u, v)
u u
Hence
v
L(u, v) = φ( )u
u
and similarly
u
L(u, v) = φ( )v
v
It follows on setting u = 1, v = r that
1
φ(r) = rφ( )
r
Also by P4
φ(r) = 0, r < 0
φ(r) ≥ 0, r ≥ 0
Using these properties we can now prove that the SLIP scheme is LED if for all j
1
αj+ 1 ≥ |aj+ 1 |
2 2 2
Proof: Define
∆vj+ 3 ∆vj− 3
r+ = 2
, r− = 2
∆vj− 1 ∆vj+ 1
2 2
Then
L(∆vj+ 3 , ∆vj− 1 ) = φ(r + )∆vj− 1
2 2 2
and
L(∆vj+ 1 , ∆vj− 3 ) = φ(r − )∆vj+ 1
2 2 2
1
− {αj− 1 + aj− 1 + αj+ 1 φ(r + )}∆vj− 1
2 2 2 2 2
Since φ(r + ) ≥ 0 and φ(r − ) ≥ 0 the coefficient of ∆vj+ 1 is non-negative and the coefficient of ∆vj− 1
2 2
is non-positive under the stated condition. The limiters enable the SLIP scheme to be effectively
represented as a 3 point scheme.
Figure 1.11 and 1.12 illustrate the behavior of the SLIP scheme for an odd even mode and
a shock wave. For an odd-even mode ∆vj+ 3 and vj− 1 have the same sign, opposite to that of
2 2
vj+ 1 , and both reinforce vj+ 1 as they would in a simple diffusion using fourth differences. With
2 2
CHAPTER 1. SHOCK CAPTURING SCHEMES FOR SCALAR CONSERVATION LAWS 26
Figure 1.11: SLIP scheme for odd-even mode. ∆vj− 1 and ∆vj+ 3 have the same sign leaving
2 2
diffusive terms proportional to fourth difference in place
Figure 1.12: SLIP scheme at a shock. L(∆vj+ 3 , ∆vj− 1 ) = 0, L(∆vj+ 5 and ∆vj+ 1 ) = 0, yielding a
2 2 2 2
three point scheme at cell j.
CHAPTER 1. SHOCK CAPTURING SCHEMES FOR SCALAR CONSERVATION LAWS 27
αj+ 1 = 12 |aj+ 1 | the scheme allows a stationary shock with one interior point because
2 2
D(u, v) = 1 − R(u, v)
1
= αj+ 1 Qj+ 1 ∆vj+ 1 − αj+ 1 (1 − Qj+ 1 )(∆vj+ 3 − 2∆vj+ 1 + ∆vj− 1 )
2 2 2 2 2 2 2 2 2
if aj+ 1 < 0. Now an analysis similar to that in section 18 reveals that if aj+ 1 > 0 and aj− 1 > 0
2 2 2
while αj+ 1 = 12 aj+ 1 the scheme reduces to
2 2
6 8
dvj 1 1
∆x =− φ(r + )aj+ 1 + (1 − φ(r − ))aj− 1 ∆vj− 1
dt 2 2 2 2 2
where
∆vj+ 1 ∆vj− 3
r+ = 2
, r− = 2
∆vj− 1 ∆vj− 1
2 2
Thus the coefficient of vj−1 −vj is nonnegative and the scheme is LED if φ(r) satisfies the additional
constraint φ(r) < 2
1.20 Reconstruction
An alternative approach to constructing a high resolution scheme is reconstruction. This was
first introduced by van Leer in the Monotone Upstream-centered Schemes for Conservation Laws
(MUSCL) (?). It can be described as follows. Suppose the interface flux hj+ 1 of a first order
2
LED scheme is constructed as a function of vj and vj+1 . Instead we evaluate hj+ 1 from values vL
2
and vR which represent estimates of the solution at the left and right side of the interface which
take account of the gradient of the solution in cells j and j+1. However, in order to prevent the
formation of a new extremum or the growth of an existing extremum, these values are limited based
on a comparison with the gradients in neighboring cells.
In order to illustrate the process consider the case of linear advection
∂u ∂u
+a =0
∂t ∂x
for a right running wave, a > 0. Suppose this is approximated by the semi-discrete scheme
CHAPTER 1. SHOCK CAPTURING SCHEMES FOR SCALAR CONSERVATION LAWS 29
dvj
∆x + hj+ 1 − hj− 1 = 0
dt 2 2
and
dvj
∆x = −a(vj − vj−1 )
dt
which satisfies the conditions for an LED scheme. Suppose that we have an estimate vj& for the
slope in cell j. Then in order to improve the accuracy we can set
hj+ 1 = avL
2
where
1
vL = vj + ∆xvj&
2
Note that since this is a finite volume scheme vj represents the average value of v in cell j. But
with a linear variation of v in the cell this is also the point value at cell center. With higher order
reconstruction using polynomials of degree > 1 to represent the solution, it becomes necessary to
distinguish between the point value at the cell center and the average value in the cell, since these
are no longer the same. Here consistent with the use of an upwind flux, we can estimate vj& from
the upwind side as
vj − vj−1 ∆vj− 1
vj& = = 2
∆x ∆x
so that
1
hj+ 1 = a(vj + ∆vj− 1 )
2 2 2
1
hj− 1 = a(vj−1 + ∆vj− 3 )
2 2 2
and
dvj 1 1
∆x = − a(3vj − 4vj−1 + vj−2 ) = −2a(vj − vj−1 ) + a(vj − vj−2 )
dt 2 2
CHAPTER 1. SHOCK CAPTURING SCHEMES FOR SCALAR CONSERVATION LAWS 30
∂v
This is a second order accurate estimate of ∂x , but it violates the conditions for an LED scheme
because the coefficient of vj−2 − vj is negative. In order to remedy this we can estimate the slope
as
1
vj& = L(∆vj+ 1 , ∆vj− 1 )
∆x 2 2
where L is a limited average satisfying properties P1-P4 in section 1.18. Now define
∆vj+ 1 ∆vj− 3
r+ = 2
, r− = 2
∆vj− 1 ∆vj− 1
2 2
If φ(r + ) ≥ 0 with φ(r) = 0 when r ≤ 0 this is satisfied if φ(r) satisfies the additional requirement
that
φ(r) ≤ 2, r > 0
It was pointed out by Spekrizse (?) that actually (1.89) is satisfied if for all r
φ(r) ≥= −α , φ(r) ≤ 2 − α
where 0 ≤ α ≤ 2. Thus the class of admissible limiters can be expanded to include limiters which
are negative for some range of r.
∆vj− 1
For second order accuracy vj& should approach ∆x
2
as ∆vj+ 1 → ∆vj− 1 , thus recovering the
2 2
second order accurate upwind scheme. This implies
φ(1) = 1
consistent with property P3. These constraints are satisfied by the minmod, van Leer and superbee
limiters with the latter reading the limits φ(r) ≤ 2r in the interval 0 < r ≤ 12 and φ(r) ≤ 2 in the
interval 2 ≤ r ≤ ∞. Notice also that when vj is a maximum, as illustrated in Figure 1.14, it is
dv
vL,j− 1 which becomes too large and causes dtj to become positive in the absence of limiters.
2
The solution may now contain waves traveling in either direction. Using the Engquist-Osher split-
ting we now construct the numerical flux as
where
f (u) = f + (u) + f − (u) (1.93)
and
∂f + ∂f −
= a+ (u) ≥ 0, = a− (u) ≤ 0 (1.94)
∂u ∂u
while
1
vL,j+ 1 = vj + L(∆vj+ 1 , ∆vj− 1 ) (1.95)
2 2 2 2
and
1
vR,j+ 1 = vj+1 − L(∆vj+ 3 , ∆vj+ 1 ) (1.96)
2 2 2 2
Thus
dvj 0 1 0 1
∆x = − f − (vR,j+ 1 ) − f − (vR,j+ 1 ) − f + (vL,j+ 1 ) − f + (vL,j+ 1 ) (1.97)
dt 2 2 2 2
and
f + (vL,j+ 1 ) − f + (vL,j− 1 )
2 2
= a+ (vL∗ ) ≥ 0 (1.99)
vL,j+ 1 − vL,j− 1
2 2
where vR lies in the range between vR,j+ 1 and vR,j− 1 and vL in the range between vL,j+ 1 and
2 2 2
Then
1 1 1 1 1
vR,j+ 1 −vR,j− 1 = vj+1 − L(∆vj+ 3 , ∆vj+ 1 )−vj + L(∆vj+ 1 , ∆vj− 1 ) = (1− φ(rj+1 )+ φ( ))∆vj+ 1
2 2 2 2 2 2 2 2 2 2 rj 2
and
1 1 1 1 1
vL,j+ 1 −vL,j− 1 = vj + L(∆vj+ 1 , ∆vj− 1 )−vj−1 − L(∆vj− 1 , ∆vj− 3 ) = (1+ φ(rj )− φ( ))∆vj− 1
2 2 2 2 2 2 2 2 2 2 rj−1 2
The coefficients of vj+1 − vj and vj−1 − vj are both non-negative if for all r and s
φ(r) + φ(s) ≥ −2
φ(r) = 0, r ≤ 0
0 ≤ φ(r) ≤ 2, r > 0
then if vj is a maximum or a minimum ∆vj+ 1 and ∆vj− 1 have opposite sings so that
2 2
L(∆vj+ 1 , ∆vj− 1 ) = 0
2 2
and
vL,j+ 1 = vj
2
If both
and
are positive
L(∆vj+ 1 , ∆vj− 1 ) ≤ 2∆vj+ 1
2 2 2
and
vL,j+ 1 ≤ vj+1
2
and
vL,j+ 1 ≥ vj+1
2
Thus with the class of limiter vL,j+ 1 and similarly vR,j+ 1 lie in the range between vj and vj+1
2 2
and
min(vj , vj+1 ) ≤ vR,j− 1 ≤ max(vj , vj+1 )
2
where
hj+ 1 = f − (vR,j+
n + n
1 ) + f (v
L,j+ 1
) (1.103)
2 2 2
CHAPTER 1. SHOCK CAPTURING SCHEMES FOR SCALAR CONSERVATION LAWS 33
where
1 1 1
A−
j+ 21
= −a− (vR
∗
)(1 − φ(rj+1 ) + φ( ))
2 2 rj
and
1 1 1
A+
j− 12
= a+ (vL∗ )(1 + φ(rj ) − φ( ))
2 2 rj−1
Under condition 1.102
A−
j+ 1
≥ 0, A+
j− 1
≥ 0.
2 2
Also they are both bounded so we can choose ∆t small enough that the coefficient of vjn is non-
negative, and the scheme is LED.
The reconstruction approach proves to be particularly useful in the construction of high res-
olution schemes on unstructured meshes for multi-dimensional problems. Then one can use an
estimate of the gradient of the solution in each cell to recover left and right values at the center of
the face separating any two cells as illustrated in Figure 1.15. For example at the edge center C
vL = vA + ∇vA · (−
x→ −
→
C − xA )
vR = vB + ∇vB · (−
x→ −
→
C − xB )
where ∇vA and ∇vB are appropriately limited estimates of the gradient in cells A and B.
1
vR,j+ 1 = vj+1 − L(∆vj+ 3 , ∆vj− 1 ) (1.106)
2 2 2 2
is the same as that used in the construction of the artificial diffusion in the SLIP scheme, while the
same slope estimate centered at j + 21 is used to calculate both vL,j+ 1 and vR,j+ 1 .
2 2
Defining the slope ratios
∆vj+ 3 ∆vj− 3
r+ = 2
, r− = 2
(1.107)
∆vj+ 1 ∆vj− 1
2 2
1 1
= ∆vj+ 1 − φ(r + )∆vj− 1 + φ(r − )∆vj+ 1
2 2 2 2 2
and
1 1
vL,j+ 1 − vL,j− 1 = vj + L(∆vj+ 3 , ∆vj− 1 ) − vj−1 − L(∆vj+ 1 , ∆vj− 3 )
2 2 2 2 2 2 2 2
1 1
= ∆vj− 1 + φ(r + )∆vj− 1 − φ(r − )∆vj+ 1
2 2 2 2 2
Thus, following the same argument that was used in the previous section, the semi-discrete scheme
defined by equations (1.91) - (1.96), can be rearranged as
dvj 1 1 1 1
∆x = −a− (vR ∗
)(1+ φ(r − )+ a+ (vL∗ )φ(r − )∆vj+ 1 − a+ (vL∗ )(1+ φ(r + )− a− (vL∗ )φ(r + ))∆vj− 1
dt 2 2 2 2 2 2
(1.108)
The coefficients of vj+1 − vj and vj−1 − vj are both nonnegative if for all r
φ(r) ≥ 0
A−
j+ 1
≥ 0, A+
j− 1
≥0
2 2
The SLIP reconstruction requires a less restrictive bound on the maximum value of φ(r) than
the upwind reconstruction defined by equations (1.95) and (1.96). This has the advantage that
enables the use of a limiter that is closer to the arithmetic average. In particular one may take
φ(r) = 0, r ≤ 0
, 1 − r ,q
, ,
1
φ(r) = (1 + r)(1 − ,, , ), r > 0
2 1 + r,
for an arbitrary value of q. This approaches the arithmetic average from below more closely as q
is increased, while for large values of r
φ(r) ≤ q