
Implicit Riemann Solvers for the P
n
Equations 463
6 Implementation
This method for solving the P
n
equations was implemented in a C
++
code
named Implicit Riemann Object-Oriented Solver for the Transport of En-
ergetic Radiation (Implicit ROOSTER). This code uses the Trilinos solver
library, freely available from Sandia National Laboratory. For the solution
of the linear systems that arise in the first-order spatial scheme, a restarted
GMRES solver is utilized (available in the AztecOO package of Trilinos).
The slope reconstruction method, the nonlinear system of equations is
treated using an inexact Newton method. The Newton iterations are defined
by
J
j
x
j+1
= J
j
x
j
− (f (x
j
) − x
0
) , (30)
where the subscripts denote the j
th
approximation to the solution of f(x)=
x
0
and J is the Jacobian of f. This Jacobian is computed using a finite
difference method – meaning that we need not specify it explicitly. Further-
more, we have noticed that an effectual preconditioner is the matrix from
the first-order linear system. This is a reasonable preconditioner because the
high-resolution method is basically the first-order method with a small cor-
rection term. Without this preconditioner the computational cost of even
a small problem was significant; with it the computation time is not much
worse than the time for the first-order method.
7 Results
To test the method we look at a Green’s function problem involving an
isotropic pulse of particles being emitted from a plane source in a 1D in-
finite medium at time t = 0. The medium is purely scattering with Σ
s
=1
and c = 1. There is an analytic transport solution to this problem due
to Ganapol [Gan1986]. An analytic P
1
solution also exists for this prob-
lem [Bru2000]. The P
1
solution is characterized by a delta function of uncol-
lided particles travelling at speed ±
"
1/3. In Fig. 1 these exact solutions are
shown.
In Fig. 2 the numerical solutions 5 seconds after the pulse demonstrate a
smoothing of the spikes in the analytic P
1
solution. In this figure CFL =
∆x
∆t
and CFL > 1 would be unstable for an explicit time integration method.
Even time steps that allow particle to travel across fifty spatial cells in one
time unit show excellent agreement with the analytic P
1
solution. It is clear
that the solutions are converging to the P
1
solution, as would be expected
for a method solving that P
1
equations in discretized form. Figure 3 shows
an interesting coincidence, namely that lower time fidelity (i.e. longer time
steps) yields a solution nearer the transport solution. This is due to the fact
that implicit methods move particles at different speeds than the continu-
ous time equations allow. In this problem, the P
1
speeds are not the correct