
128 Chapter 5 Matter sources
characteristic curves cross, leading to sharp discontinuities in the fluid variables. For realis-
tic fluids containing viscosity, the shock transition region has a finite thickness amounting
to several particle collision mean-free-paths, and the fluid variables vary continuously
across this finite interval. Two strategies are commonly adopted to treat shocks when the
details of the transition region are of no physical consequence and the perfect gas equa-
tions are used throughout, whereby the thickness of the transition region is allowed to be
arbitrarily thin. The more traditional approach is to add an artificial viscosity term to the
equations.
3
This term mimics the effect of physical viscosity, except that it is employed
only in the vicinity of a shock and serves to spread the shock transition region over a few
spatial grid spacings in finite-difference codes.
4
For this purpose, the artificial viscosity
term P
vis
is nonzero only where the fluid is compressed and is added to the pressure on the
right-hand sides of both the energy equation (5.13) and the Euler equation (5.14). Such a
term has the approximate form
P
vis
=
C
vis
ρ
0
(δv)
2
for δv < 0,
0otherwise,
(5.24)
where δv = ∂
k
v
k
x, x is the local spatial grid size and C
vis
is a dimensionless constant of
order unity. Adding such a term allows the fluid to satisfy the Rankine–Hugoniot “jump”,
or junction, conditions across the shock, which we shall derive below. These conditions
ensure the continuity of rest-mass, momentum and energy flux across any surface in the
fluid, including a shock front. For a fluid element traversing a shock, the junction conditions
serve to convert some of the bulk kinetic energy into internal energy and to increase the
entropy. Artificial viscosity schemes have the virtue of being quite robust and very easy
to implement. For shocks occurring in Newtonian fluids with modest Mach numbers,
artificial viscosity enables the fluid to satisfy the Rankine–Hugoniot jump conditions to
reasonable accuracy. Artificial viscosity has also been used successfully in many relativistic
applications,
5
but it can lead to less satisfactory results for ultrarelativistic flows or high
Mach numbers.
6
Exercise 5.7 Show that the addition of P
vis
to the pressure in the stress-energy
tensor modifies equation (5.19) according to
∂
t
(γ
1/2
E
∗
) + ∂
j
(γ
1/2
E
∗
v
j
) =−
E
∗
W
(1−)
P
vis
∂
a
(W γ
1/2
v
a
), (5.25)
where v
a
= u
a
/u
t
. Comparing with equation (5.21), we see that the role of P
vis
is
to generate the entropy jump required across a shock discontinuity.
3
von Neumann and Richtmeyer (1950).
4
Finite-difference techniques for integrating partial differential equations are discussed in Chapter 6.2.
5
May and White (1966); Wilson (1972b); Shapiro and Teukolsky (1980); Hawley et al. (1984); Shibata (1999a); Duez
et al. (2003).
6
Winkler and Norman (1986).