5.2 Hydrodynamics 137
P = 1. The solution is evolved with a second-order, finite difference scheme based on
the Wilson method using artificial viscosity. Here a grid of 400 points is employed over
a domain x ∈ (−1, 1). The shock is modeled rather well, apart from an “overshoot” in
quantities at the rarefaction (i.e., low density expansion) front. It has been shown
19
that in
finite difference schemes using artificial viscosity, such an overshoot arises in numerical
solutions even when the grid spacing goes to zero. This limitation of artificial viscosity
methods is particularly serious when strong shocks are present; HRSC techniques help
overcome this difficulty.
Exercise 5.11 Show that the results plotted in Figure 5.1 are consistent with equa-
tion (5.55).
In curved spacetime, the set of known, analytic solutions to the equations of relativis-
tic hydrodynamics is not large, particularly for dynamical spacetimes. Holding a stable,
static, spherical star constructed from the OV hydrostatic equilibrium equations in stable
equilibrium (see Chapter 1.3) provides one simple test. Holding a stable, stationary, rotat-
ing star constructed from the stationary equilibrium equations in stable equilibrium (see
Chapter 14.1) constitutes a more challenging test, particularly if it is differentially rotat-
ing and therefore subject to spurious redistribution of angular momentum by numerical
viscosity. The analytic Oppenheimer–Snyder solution
20
for the collapse of a spherical,
homogeneous ball of dust from rest at finite radius provides an analytic dynamical space-
time for testing the ability of a code to handle catastrophic collapse of a fluid to a black
hole. The interior solution is analytic in geodesic slicing and comoving radial coordinates
and must be transformed numerically in order to compare with numerical integrations
performed in different time slicings and/or spatial coordinates.
21
Alternatively, the ana-
lytic solution, which is easily expressed in closed-Friedmann form in the matter interior
and Schwarzschild in the vacuum exterior, can be employed to construct various scalar
invariants (e.g., areal radii R(τ ) of Lagrangian fluid elements as functions of proper time
τ in the interior, and Riemann curvature invariants in the exterior) that can readily test a
dynamical simulation performed in an arbitrary gauge.
During any numerical simulation it is useful to monitor quantities whose values ought
to be conserved. For example, the global conserved quantities discussed in Section 3.5
provide useful checks. The total rest mass of the system M
0
must be conserved, provided
we account for any rest mass that leaves the computational domain. The ADM mass
M
ADM
, the total linear momentum P
i
ADM
and angular momentum J
i
ADM
are also conserved,
provided we account for net losses carried off by any matter and gravitational radiation
that leave the computational domain. Other hydrodynamic quantities are useful to monitor
in special cases. For example, the relativistic Bernoulli integral is conserved along flow
19
Norman and Winkler (1983).
20
See Chapter 1.4.
21
See Petrich et al. (1985, 1986), who construct the Oppenheimer–Snyder solution for both maximal and polar time
slicing and isotropic radial coordinates.