Skip to main content
Acta Crystallographica Section A: Foundations and Advances logoLink to Acta Crystallographica Section A: Foundations and Advances
. 2020 Apr 16;76(Pt 3):376–389. doi: 10.1107/S2053273320002065

Multiple Bragg reflection by a thick mosaic crystal. II. Simplified transport equation solved on a grid

Folkmar Bornemann a, Yun Yvonna Li b, Joachim Wuttke b,*
PMCID: PMC7233015  PMID: 32356788

To describe multiple Bragg reflection from a thick, ideally imperfect crystal, the transport equations are reformulated in three-dimensional phase space and solved by spectral collocation in the depth coordinate. Example solutions illustrate the orientational spread of multiply reflected rays and the distortion of rocking curves, especially for finite detectors.

Keywords: mosaic crystals, multiple scattering, Darwin–Hamilton equations, spectral collocation

Abstract

The generalized Darwin–Hamilton equations [Wuttke (2014). Acta Cryst. A70, 429–440] describe multiple Bragg reflection from a thick, ideally imperfect crystal. These equations are simplified by making full use of energy conservation, and it is demonstrated that the conventional two-ray Darwin–Hamilton equations are obtained as a first-order approximation. Then an efficient numeric solution method is presented, based on a transfer matrix for discretized directional distribution functions and on spectral collocation in the depth coordinate. Example solutions illustrate the orientational spread of multiply reflected rays and the distortion of rocking curves, especially if the detector only covers a finite solid angle.

1. Introduction  

In a preceding paper, designated as Part I (Wuttke, 2014a ), multiple Bragg reflection from a thick, ideally imperfect crystal was studied mainly by analytical means. The planar two-ray transport equations of Darwin (1922) and Hamilton (1957) were generalized to account for out-of-plane trajectories. Expanding these equations into a recursive scheme led to some asymptotic results, but did not provide a practicable solution algorithm for the generic case with crystals of finite thickness. Reflection probabilities depend strongly on propagation directions, and with each reflection the next reflection probability can vary by orders of magnitude. This makes the transport equations ill conditioned, and straightforward Monte Carlo simulations inefficient and unreliable.

In this paper, a completely different solution method is presented. Instead of following individual rays through forward and backward reflections, we study reflection-order-independent fluxes (current distributions) I as a function of propagation direction Inline graphic and penetration depth z. They are governed by a system of linear ordinary differential equations in z with separated boundary conditions [equations (1) and (4) below]. We present spectral collocation as a practicable solution method. Solutions are iterated with increasing numbers of collocation points until a required accuracy is reached. Our algorithm is fast enough to be used interactively or/and within complex instrument simulations.

This paper can be read independently of Part I. We re-de­ri­ve most of the theory, making it simpler and more generic. By consequential use of energy conservation, we get rid of one phase-space dimension. By positing translational invariance along the surface of the mosaic plate, two other dimensions are eliminated. This reduction to three argument dimensions is the precondition for an efficient numeric solution on a grid.

Large parts of the theory are now formulated coordinate free. Block normals Inline graphic that fulfill the Bragg condition are parameterized by a polar instead of a Cartesian coordinate; this eliminates an apparent singularity that forced us in Part I to exclude near-backscattering from consideration. Furthermore, the transport equations are simplified and generalized by removal of any reference to two distinct beams.

While all worked-out examples assume a simple geometry with the mean crystallite normal collinear to the mosaic normal, our formalism can be used with any other orientational distribution. One application we have in mind is beam deflection by a rotating stack of tilted mosaic crystals of highly oriented pyrolytic graphite as used in the phase-space transform chopper of third-generation neutron backscattering spectrometers (Meyer et al., 2003; Frick et al., 2006; Wuttke et al., 2012).

In Section 2, we derive the mathematical model to be studied. Discrete Inline graphic grids are chosen in Section 3. In Section 4 our numeric solution method is presented and verified against the two-ray model. Example solutions are shown in Section 5 and conclusions drawn in Section 6. Some derivations, computational details and special cases can be found in Appendices AD . The supporting information provides the source code and additional documentation of the software MultiBragg developed along with this work.

2. The mathematical model  

2.1. Crystal model and current distribution  

Following Darwin (1922), a mosaic crystal is modeled as an assembly of perfectly crystalline blocks that are to some degree orientationally disordered. In an ideally imperfect crystal every block is so thin that it reflects at most a small fraction of the incident beam. Primary extinction and multiple reflections within a block can be neglected. As in Part I, we consider a thick, ideally imperfect crystal, consisting of so many block layers that secondary extinction and multiple reflections are of practical importance.

Since reflections from different blocks add incoherently, the adequate description level is classical transport theory. Our task is to compute the stationary flux (current distribution) Inline graphic. Only elastic diffraction shall be fully accounted for. Inelastic scattering will be dealt with by a loss term. Accordingly, the wavenumber k is a conserved quantity, and can therefore be dropped from the argument list of Inline graphic, leaving over a dependence on the propagation direction Inline graphic.

As in Part I, we concentrate on a mosaic crystal in the form of a slab that can be approximated as an infinite plate (Fig. 1). Altogether the flux is projected from six-dimensional phase space to the three-dimensional function Inline graphic. This opens the possibility of solving the boundary problem with manageable effort on a grid, thereby overcoming the limitations of the Monte Carlo method used in Part I.

Figure 1.

Figure 1

Bragg reflection by a crystalline block within a mosaic plate. Block normals Inline graphic are distributed around Inline graphic, as indicated by the blue cone. The angular width of the distribution is grossly exaggerated; typically, it is a few degrees only. Here, and in all specific examples in this work, we have chosen Inline graphic to be collinear with the real-space depth direction Inline graphic. Much of our theory also holds for Inline graphic.

The price is that we have to neglect the lateral displacement of the beam, which is correlated with the reflection order, which is correlated with the directional spread. At least in the above-mentioned application scenario (graphite deflector in a neutron spectrometer, far from grazing incidence), this is harmless: the mean lateral displacement is at most a low multiple of the crystal thickness, which is a few millimetres, and therefore corresponds to a fraction of a degree at the next optical element, located 2 m downstream, whereas the deflector crystals have a rocking width of several degrees.

2.2. Transport equation and boundary conditions  

The flux obeys the transport equation (Sears, 1989, equation 8.1.24),

2.2.

a stationary Boltzmann equation with drift and scattering terms. The linear operator B describes gains by Bragg diffraction,

2.2.

where Inline graphic is the solid-angle differential associated with the integration variable Inline graphic. The kernel μ is reviewed below in Section 2.3. The attenuation operator A is a multiplicative factor,

2.2.

The integral accounts for losses by diffraction. The constant Inline graphic stands for absorption, inelastic scattering, diffuse scattering and diffraction by parasitic reflections (Dorner & Kollmar, 1974).

To specify boundary conditions, we consider an infinite plate of thickness d, extending from Inline graphic to Inline graphic. The incident flux Inline graphic comes from the half space z < 0. Accordingly, the boundary conditions are

2.2.

Our task is to compute the reflected and the transmitted flux

2.2.

with the indicator function [true] = 1, [false] = 0.

In Part I, we had divided Inline graphic into two functions, Inline graphic, representing the forward and backward traveling beam. Accordingly, the transport equation consisted of two coupled differential equations, generalizing the two-ray Darwin–Hamilton equations of the conventional planar approximation. That notation was useful for describing the reflection-order expansion [Section 3.2 of Part I; see also Grabcev & Stoica (1980)] as a zigzag walk (Wuttke, 2014b ) with a strictly alternating sign of Inline graphic. To distinguish two beams we had to exclude the case of grazing incidence. The notation (1), with just one function I defined for all Inline graphic, is simpler, more generic and more convenient for our present purpose. Only later, when we choose a grid in Inline graphic to approximate I by a histogram, will we take into consideration the effective two-beam geometry.

2.3. Reflection kernel  

The transport kernel in (2) is a transfer function that gives the probability per unit length Inline graphic for a particle with incident direction Inline graphic to be scattered into an infinitesimal solid angle Inline graphic around the outgoing direction Inline graphic. It is a sum

2.3.

over single-reflection transfer functions, given by an integral

2.3.

over the block transfer function Inline graphic (47) derived in Section A1. The scattering directions Inline graphic depend on the block orientations, and have the statistical distribution Inline graphic.

In certain situations, multiple diffraction by multiple Bragg reflections can be of practical importance (Ohmasa et al., 2016). Nonetheless, to simplify our exposition, we shall consider only one pair of reflections, hkl and Inline graphic. With the joint distribution

2.3.

we can merge (6) and (7) into the total transfer function

2.3.

An integration, explained in Section A2, reduces the total transfer function (9) to

2.3.

This simplifies in several ways equation I,25 [denoting equation number (25) in Part I], as discussed in Section A3. We now define the symbols Inline graphic, Inline graphic, Inline graphic and Inline graphic introduced with (10).

The prefactor

2.3.

depends on the unit-cell volume V and structure factor Inline graphic. It has the dimension of an absorption coefficient, i.e. inverse length. The Bragg angle Inline graphic is constant because we consider a fixed reflection hkl and a constant radiation wavenumber k. Both Inline graphic and Inline graphic are independent of the sign of the reflection. The outgoing beam direction Inline graphic is given by the deflection function

2.3.

The parametric curve Inline graphic with Inline graphic contains all possible scattering directions Inline graphic that satisfy the Laue–Bragg condition

2.3.

for an incoming wave direction Inline graphic.

To construct Inline graphic, we choose an orthonormal base Inline graphic for the reciprocal-space vectors Inline graphic and Inline graphic. Note that Inline graphic is not required to coincide with the plate normal Inline graphic (though it does so in our code and our worked-out examples). Choose a rotation matrix Inline graphic so that Inline graphic (for readability, we omit carets in subscripts). The circle of possible scattering directions Inline graphic can then be written

2.3.

It is straightforward to verify that Inline graphic, for all t, satisfies (13).

The condition Inline graphic leaves Inline graphic underdetermined, allowing for an arbitrary rotation around Inline graphic. This is irrelevant because the origin of the polar coordinate t is arbitrary, and Inline graphic only appears under integrals that run from Inline graphic to Inline graphic.

2.4. Specializing the distribution of scattering directions  

For most mosaic crystals, W is isotropic, i.e. invariant under rotation around the mean block normal Inline graphic. Thereby Inline graphic depends only on Inline graphic.

All the following theoretical developments, including the numeric methodology of Section 4, are independent of what isotropic distribution we choose for Inline graphic. For our numeric examples, however, we need to be more specific. In certain cases (Ohmasa & Chiba, 2018), W can be a ring-like distribution. Here we concentrate on 00l reflections, where scattering vectors are parallel to the block normals so that Inline graphic is a disc-like distribution. As is customary, we will choose a Mises–Fisher (MF) distribution (a Gaussian on the unit sphere),

2.4.

with the normalization constant Inline graphic. Usually, there is negligible overlap between Inline graphic and Inline graphic so that the sum (8) can be approximated as

2.4.

A mosaic with Inline graphic shall be called normal oriented. Some consequences of the rotational symmetry around Inline graphic are discussed in Appendix C .

In all numeric examples we assume an isotropic, normal oriented mosaic, and we choose Inline graphic. Unless differently stated, the standard deviation is η = 2.5°. The orthographic projection of the circle Inline graphic into the Inline graphic plane is an ellipse. Fig. 2 shows examples and puts them in relation to Inline graphic.

Figure 2.

Figure 2

Crystal orientations Inline graphic that fulfill the Laue–Bragg condition, projected into the Inline graphic plane, form ellipses. The two plots have different Bragg angles Inline graphic. Each plot shows ellipses for three different incident angles Inline graphic, with Inline graphic. The concentric gray discs contain 50% and 90% of all mosaic blocks, assuming a Mises–Fisher distribution Inline graphic that is centered around Inline graphic, with standard deviation η = 2.5°.

2.5. Parameterization  

In our numeric examples, we will characterize crystals by two dimensionless constants that have a simple intuitive meaning in the two-ray limit (68) for a collimated beam with incident angle Inline graphic. The first of these parameters is the opacity

2.5.

where Inline graphic. The second dimensionless crystal parameter is the relative reflectivity

2.5.

These parameters will enter the following derivations through the products

2.5.

and

2.5.

Note that Inline graphic are not pure material constants but also depend on the wavelength of the used radiation. So, in principle, one could tune Inline graphic to almost arbitrary values by suitable combinations of wavelength and crystal thickness.

3. Discretization in Inline graphic  

3.1. Binning  

So far, we have assumed that Inline graphic as a function of Inline graphic is a distribution on the unit sphere. We now request that the relevant regions of the unit sphere be partitioned in M bins, and we replace Inline graphic by M histograms Inline graphic with Inline graphic. Each histogram represents a current that is defined as flux integral over the solid angle Inline graphic,

3.1.

Combining this with the definition (2) of the operator B, we get

3.1.

We assume that μ is a sufficiently smooth function of Inline graphic so that it can be drawn in front of the second integral. We obtain

3.1.

with

3.1.

The attenuation factor, discretized in analogy with (24), is

3.1.

and the transport equation (1) takes the form

3.1.

In this paper, we will not investigate errors introduced by the approximation (23). It is up to practitioners to choose appropriate histogram grids so that both discretization errors and computing time be kept within reasonable bounds.

3.2. Grids in zero, one, two dimensions  

In Section 4, spectral collocation will be introduced without reference to a particular histogram grid. For our numeric examples, we choose three different grids.

The smallest meaningful grid consists just of Inline graphic bins, representing a forward and a backward traveling beam, with Inline graphic and Inline graphic, respectively. It will be used in Figs. 5 and 6 to illustrate our approach in the simplest possible way, and to allow verification against the known analytical solution. Instead of the indices r = 1, 2, we will use the signs ± to denote the beam direction.

If we are only interested in the total intensity or in the polar distribution of radiation reflected or transmitted by an isotropic, normal oriented mosaic, as in Figs. 9, 10, 12, then we can take an azimuthal average (Section C3), and solve the transport problem on a fine-grained one-dimensional grid in θ.

In all other cases, we need a two-dimensional partition of the unit sphere. Any possible map projection and coordinate system can be chosen to construct the grid. In our examples, we want to preserve the symmetry of the isotropic, normal oriented mosaic and therefore choose a rectangular grid in the spherical coordinates θ and φ.

The one- or two-dimensional grids must not necessarily cover the entire unit sphere. For computational efficiency, we restrict them to two contiguous regions around the transmitted and the reflected beam. These regions can be iteratively adapted, keeping the cut-off error (estimated from the loss channel b, Section B2) under a given tolerance Inline graphic (Section 4.6).

3.3. Diffraction matrix  

The integral (24) can be carried out at once since the kernel Inline graphic, given by (10), contains a delta function. The result is

3.3.

with the indicator bracket as introduced in Section 2.2.

For given Inline graphic, and sweeping t, the outgoing directions Inline graphic form a one-dimensional manifold on the two-dimensional sphere. This is illustrated in Fig. 3, which shows these manifolds for three different s. In consequence, for a two-dimensional histogram grid, the matrix B is sparse: most entries are zero, the more so the finer the grid. If each of the two coordinate axes is divided into Inline graphic bins, then B has Inline graphic nonzero entries.

Figure 3.

Figure 3

The three bands represent three columns of the reduced reflectivity matrix Inline graphic, with Inline graphic and with three different values of Inline graphic, shown as a function of Inline graphic and Inline graphic. The Bragg angle is Inline graphic = 70°. There are 80 φ bins from 55° to 85°, and 180 θ bins from −180° to 180°. The dimensionless intensity scale applies for Inline graphic and Inline graphic.

Section B1 presents an algorithm for the actual computation of (27). In Section B2, the M directional bins are extended by three loss bins. One of them accounts for absorption; the other two allow us to quantify unphysical losses originating from numeric cut-offs. Therefore we can detect violations of particle conservation, and quantify, and ultimately control, numeric approximation errors.

4. Spectral collocation in the depth coordinate  

4.1. Depth rescaling  

As we will use Chebyshev polynomials in the depth coordinate, it shall be transformed from Inline graphic to the standard range Inline graphic. We therefore introduce the reduced coordinate

4.1.

and the transformed histograms

4.1.

The transport equation (26) becomes

4.1.

with the separated boundary conditions

4.1.

Grids should be constructed such that no bin crosses the equator of the unit sphere.

4.2. Equation system  

The equation system (30) consists of M coupled first-order linear differential equations in Inline graphic. While a formal solution can easily be written down as a matrix exponential, it is numerically not viable (Moler & Loan, 1978, 2003). The method of choice for this kind of problem is spectral collocation; it is based on the expectation that the solution is a smooth function of ζ and therefore can be expanded in Chebyshev polynomials (Gottlieb et al., 1984; Canuto et al., 1988; Trefethen, 2000).

We approximate the functions Inline graphic by polynomials Inline graphic of order N that match Inline graphic in Inline graphic collocation points Inline graphic. We defer the choice of Inline graphic to Section 4.3; until then, we only require Inline graphic. Function values at the collocation points are abbreviated

4.2.

These are Inline graphic unknowns. M of them can immediately be read off from the boundary conditions (31):

4.2.

The others will be obtained from the transport equation (30). To discretize this differential equation, we replace Inline graphic by Inline graphic, Inline graphic by a differentiation matrix D, specified by the requirement

4.2.

[for an introduction to differentiation matrices, see Trefethen (2000)]. The resulting MN equations

4.2.

must hold for all histogram bins (Inline graphic) and in all collocation points (Inline graphic).

We collect all linear operators in the matrix

4.2.

with the Kronecker delta Inline graphic so that the transport equation (35) becomes simply

4.2.

These are Inline graphic equations in Inline graphic variables Inline graphic, of which M are known from (33).

The matrix L is sparse because of the Kronecker deltas in its definition (36) and because its component Inline graphic is also sparse when it matters, namely in the computing-intensive case of a two-dimensional grid. In that case, per Section 3.3, of the Inline graphic entries of matrix B, only Inline graphic are nonzero. Overall, of the Inline graphic entries of L, only Inline graphic are nonzero. This is visualized in Fig. 4.

Figure 4.

Figure 4

Visualization of a small part of a small matrix L. Parameters: Inline graphic = 70°, Inline graphic, Inline graphic. Discretization: three collocation points in z; three bins for 55° ≤ θ ≤ 85°; 36 bins for −180° ≤ φ ≤ 180°. Only the Inline graphic entries with 0 ≤ φ ≤ 60° are shown. Since some entries are negative, the figure shows absolute values Inline graphic.

In view of the boundary conditions (4), we now distinguish between histogram bins with forward and backward propagation direction, according to the sign of Inline graphic. We split the sum over s in (37) accordingly, omitting the zero terms in Inline graphic with backward s, and bringing the nonzero terms in Inline graphic with forward s to the right side:

4.2.

This system of Inline graphic inhomogeneous linear equations in MN unknown Inline graphic is overdetermined, due to the loss of information that goes along with the reduction of polynomial order in differentiation.

Overdetermination can in principle be avoided by using a rectangular differentiation matrix (Driscoll & Hale, 2016; Xu & Hale, 2016). However, this would be unsuitable for the full multi-ray problem because the necessary ‘downcasting’ interpolation of linear terms would make the matrix L much less sparse. We rather opt for the standard procedure of simply ignoring redundant equations. We choose to delete the M equations with Inline graphic, r Inline graphic forward or Inline graphic, r Inline graphic backward.

4.3. Collocation points and differentiation matrix  

All of Section 4.2 holds regardless of the collocation points. Their choice, however, is of critical importance for the resulting convergence. We make the standard choice of Chebyshev–Gauss–Lobatto points, which are located at the extrema of the Chebyshev polynomial Inline graphic,

4.3.

They only enter our computation through the corresponding differentiation matrix (34).

This matrix has the outer diagonal entries

4.3.

the interior diagonal entries

4.3.

and the diagonal endpoints

4.3.

For a derivation, see e.g. Gottlieb et al. (1984) or Trefethen (2000), but note that our choice of ascending Inline graphic has led to a minus sign on the right-hand side of (42).

4.4. Collocation error for the two-ray reference  

By the collocation error we understand the error caused by approximating the functions Inline graphic by polynomials Inline graphic. We first consider the two-ray approximation (re-derived in Section D1) for which we can determine the collocation error by comparing with the known analytical results (summarized in Section D2). We choose Inline graphic so that the Bragg operator (68) is simply Inline graphic and the total attenuation Inline graphic.

Fig. 5 shows currents Inline graphic versus ζ for a moderately thick crystal with realistic attenuation: Inline graphic, Inline graphic. On the linear scale of this plot, the numeric data points and the analytical curves (70) agree perfectly for collocation orders as low as Inline graphic.

Figure 5.

Figure 5

Directional currents (29) as a function of depth for Inline graphic, Inline graphic. Lines show the analytical solution (70). Symbols have been computed by spectral collocation with different N.

The rapid convergence of the spectral collocation is further demonstrated in Fig. 6, which shows the deviation from the analytical result as a function of N. The decrease of the error with increasing N is roughly exponential until some base level is reached.

Figure 6.

Figure 6

Accuracy of spectral collocation as a function of the number of collocation points N, for the planar two-ray model, for different crystal opacities. (a), (b) Absolute error of the transmitted and reflected current, determined by comparison with the analytical result (71). (c) Deviation of the total current (transmitted, reflected and absorbed) from the true value 1.

Note that the figure represents the absolute error. This could become a problem in shielding calculations for very thick mosaic crystals where a tiny transmittivity would result in an unacceptable relative error. We exclude this peculiar case from further consideration.

Fig. 6(c) shows the error of the total current Inline graphic where Inline graphic is the absorption loss channel (Section B2). Analytically, the true value is 1. For odd N, convergence takes about as long as in Figs. 6(a), 6(b). In contrast, even for the smallest even N the error is only of the order of machine precision, thanks to pairwise cancelation at collocation points i, Inline graphic. Therefore we generally prefer even N in our computations.

4.5. Collocation error for the full model  

We now investigate the collocation error for a two-dimensional Inline graphic grid, for representative crystal parameters and for an ideal collimated incoming beam

4.5.

We only consider the reflected flux Inline graphic.

In contrast to Section 4.4, no analytical solution is known. Therefore we estimate the overall collocation error by comparing approximate solutions at successive collocation orders N,

4.5.

In Figs. 7 and 8, we increase N from Inline graphic in steps of Inline graphic; elsewhere, larger values of the hyperparameters Inline graphic and Inline graphic are more convenient (Section 4.6).

Figure 7.

Figure 7

Estimates of the collocation error Inline graphic of the reflected current Inline graphic as a function of the collocation order N, for different solver convergence tolerances. Model parameters Inline graphic, Inline graphic, Inline graphic = 70°. Collimated incoming beam (43) with Inline graphic = 70°. Discretization: 45 bins for 58° ≤ θ ≤ 82°; 11 bins for −180° ≤ φ ≤ 180°.

Figure 8.

Figure 8

Minimal collocation order N required to keep the overall error (44) of the reflected flux below Inline graphic. In each graph, one of the parameters of the default model of Fig. 7 is varied. In each graph, a red disc indicates the parameter value that is used in all other graphs.

In Fig. 7, the error estimate Inline graphic is shown as a function of N for different solver tolerances. The behavior is known from Fig. 6(b): after a roughly exponential decrease the Inline graphic cross over to a noisy base level that lies safely below the solver tolerance.

The collocation order N is determined by repeating the entire computation for increasing values of N until Inline graphic lies below a given bound Inline graphic (Section 4.6). Fig. 8 shows how the so-determined minimal collocation order N varies with the grid size Inline graphic and with the model parameters Inline graphic, Inline graphic, η, ρ, τ. All these parameters are found to be uncritical, except the opacity τ, for which Fig. 8 suggests a possible asymptote Inline graphic. Therefore our computational method should not be applied to extremely thick crystals with Inline graphic. This is of no concern for reflectivity computations: it is always possible to restrict τ to values of about 20 or 30; anything beyond is inconsequential for the reflected current.

4.6. Hyperparameters and a posteriori tolerances  

The numeric solution is controlled by hyperparameters (so-called in opposition to the regular parameters that describe the crystal model):

(i) Bounds in θ and φ, and numbers of bins, to specify the directional grid.

(ii) Initial number of collocation points and increment for the iterative procedure described in the last paragraph of Section 4.5. Our default choice is Inline graphic and Inline graphic.

(iii) Auxiliary parameters for the numeric evaluation of the reflection kernel (27), as explained in Section B1: bisection accuracy Inline graphic, maximum step size Inline graphic and a kernel cut-off Inline graphic.

(iv) The collocation tolerance Inline graphic (Section 4.5): the sparse equation solver is called with increasing N until the estimated error Inline graphic [equation (44)] falls below Inline graphic. We use Inline graphic.

(v) The solver tolerance Inline graphic required by the sparse equation solver (Section 4.7). It should be smaller than Inline graphic. We use a value of Inline graphic, except when we determine collocation errors as a function of the number of collocation points: Fig. 6 is computed with Inline graphic and Fig. 7 with Inline graphic.

Additionally, some a posteriori tolerances are used in checking the numeric integrity of the obtained solution. If any check fails, then we recompute everything with stricter hyperparameters. These tolerances are:

(i) A noise level Inline graphic to disallow currents below Inline graphic, as may be caused by numeric inaccuracies at weak intensities.

(ii) A stricter limit Inline graphic is imposed to the absolute value of the total current (53).

(iii) The cut-off tolerances Inline graphic and Inline graphic are upper limits for the loss channels Inline graphic and Inline graphic that account for unphysical losses due to the finite Inline graphic grid and the deletion of weak matrix elements (Section B2).

All our numeric examples have been checked with Inline graphic and Inline graphic.

4.7. Numeric tools  

A sparse LU solver is used to invert the remaining MN equations. Our implementation is based on tools from the numerical library Trilinos (Heroux et al., 2003), namely the sparse compressed row matrix class from package Epetra, the ILU(0) preconditioner from package Ifpack (Sala & Heroux, 2005) and the GMRES (generalized minimal residual) block solver from package Belos (Bavier et al., 2012). The mapping of array indices is described in the supporting information.

5. Results  

5.1. Open-source code MultiBragg  

The software developed along with this work is released under the GNU Public License (GPL v3 or higher), and deposited in the form of a compressed tar.gz archive as supporting information. The code comprises a library MultiBragg for the numeric solution of the transport equation, and application programs that generate the data for the figures in this work. More information on the software is provided in the textual part of the supporting information.

5.2. Total reflectivity  

Fig. 9 of Part I showed the total reflectivity R for plates of different opacities as a function of the Bragg angle Inline graphic, computed by Monte Carlo integration. The present Fig. 9 compares old and new results. The perfect accord of both data sets provides strong support for the correctness of both computer codes. While error bars in Part I were of the order Inline graphic, our new results are far more accurate and extend over a wider Inline graphic range. Our new method is also much faster: computing times are typically of the order of some minutes, and only of a few seconds if no azimuthal resolution is needed, as here and in Figs. 10 and 12.

Figure 9.

Figure 9

Total reflectivity as in case 1 of Fig. 9 of Part I. Collimated incoming beam with Inline graphic; mosaicity Inline graphic = 0.025 rad; nominal opacity Inline graphic; relative reflectivity Inline graphic. In terms of Part I: Inline graphic Inline graphic. Blue symbols with error bars are from the Monte Carlo computation of Part I; red circles are from the present numeric integration.

In the Inline graphic range covered by Part I, corrections from non-planarity amounted to 1% at most. Our numeric method now allows us to compute R up to Inline graphic = 90°. Representative results are shown in Fig. 10. With Inline graphic approaching 90°, the reflectivity first increases, then decreases rapidly towards 0. These observations are easily understood by looking back to Fig. 2: close to backscattering, the ellipse of block orientations Inline graphic that fulfill the Bragg condition is almost a circle, and for Inline graphic it is concentric with the disc representing Inline graphic. This makes it plausible that the reflectivity can rise more than 15% above the constant value from planar theory. Even closer to backscattering, however, the ellipse shrinks towards a point, fewer blocks are available for Bragg diffraction, and the reflectivity decreases proportionally.

Figure 10.

Figure 10

Total reflectivity near backscattering, for a collimated incoming beam with Inline graphic; mosaicity η = 2.5°.

5.3. Azimuthal distribution  

Fig. 11 shows the directional distribution of the transmitted and reflected radiation for three different incoming beam inclinations Inline graphic. Since the coordinate representation does not account for the different bin sizes Inline graphic, this figure does not show currents (flux integrals per bin) but the directional flux Inline graphic.

Figure 11.

Figure 11

Directional distribution of the transmitted and reflected flux for three different inclinations Inline graphic of the incoming collimated beam. Crystal parameters: Inline graphic = 70°, η = 2.5°, Inline graphic, Inline graphic.

In transmission, a bright spot shows the attenuated incoming beam. It is least pronounced at Inline graphic, where the reflectivity is strongest. In the reflected distribution, the parabolic trace comes from one-reflection trajectories, whereas the diffuse cloud represents the sum of all higher reflection orders. While the parabola is known from the approximative treatment of Hennig et al. (2011), the two-dimensional cloud is only accounted for by the full transport equation solved here.

To visualize the relative importance of this cloud, Fig. 12 shows the intensity of the direct beam and the single-reflected spray relative to the total transmitted or reflected intensity. Multiple reflections are most important for high opacity τ, high relative reflectivity ρ, and for incident beam directions close to the Bragg condition, Inline graphic. For Inline graphic and Inline graphic, the relative importance of direct transmission goes quickly to 0 for increasing τ. The relative importance of single reflections decreases more slowly, and the limit of 50% is not fully attained within the τ range of the figure.

Figure 12.

Figure 12

(a), (b) Relative contribution of the direct beam to the total transmitted intensity; (c), (d) relative contribution of single reflections to the total reflected intensity. All data for Inline graphic = 70°; (a), (c) as a function of τ for different values of ρ, with Inline graphic; (b), (d) as a function of Inline graphic for different combinations of τ and ρ.

5.4. Rocking curves  

The standard way to characterize a mosaic crystal experimentally is by measuring a rocking curve (e.g. Schneider, 1974): the reflected or transmitted intensity is recorded while the crystal is rotated around an axis normal to the scattering plane. In our fixed-crystal frame, this is equivalent to scanning the incident angle Inline graphic while maintaining the detector angle at Inline graphic.

It is well known from theory and experiment (Dorner & Kollmar, 1974) that rocking curves are generally wider than the underlying crystallite orientation distribution Inline graphic. The width increases with increasing opacity τ. This is illustrated by Fig. 13 where rocking curves for a very thin (Inline graphic) and a very thick (Inline graphic) mosaic are shown. In the thin-crystal limit, our solution of the full Darwin–Hamilton equations reproduces Sears’ solution of the planar approximation (71), and both curves coincide almost perfectly with the Gaussian Inline graphic.

Figure 13.

Figure 13

Rocking curves for (a) a thin, (b) a thick mosaic crystal with Inline graphic and Inline graphic, respectively. The gray area indicates the Gaussian mosaic distribution with standard variation η = 2.5° as assumed throughout this work. The dashed line is the reflectivity in planar approximation (71). Symbols represent numeric solutions of the full transport equation: small colored symbols show the intensity collected by circular detectors with radius specified as an angle; thick black circles show the entire reflected radiation.

Conversely, for the thick crystal Sears’ solution is much wider than Inline graphic, and our full solution deviates from Sears’ in that it is shifted by about 1° and has a slight asymmetry. This confirms the Monte Carlo result of Fig. I,10, and extends it to Bragg angles further away from backscattering.

So far, we have discussed total reflected intensities. In practice, detectors cover only a finite solid angle. Rocking curves as measured by circular detectors are shown by the colored open symbols in Fig. 13. Unless the opening angle is considerably larger than η a considerable part of the reflected intensity is indeed lost outside the detector. For the thick crystal, the shape of the rocking curve also varies considerably with the angular coverage.

6. Conclusions  

To summarize, we have simplified the transport equation of Part I (Wuttke, 2014a ) by making consequential use of energy conservation and projecting everything to the sphere Inline graphic.

For isotropic, normal oriented mosaics (Section 2.4), azimuthal current distributions are insensitive to the resolution in the polar angle φ; if the polar distribution does not matter, then numeric computations can be accelerated by considering one single φ bin (Sections 3.2, C3). From there, only one more linearization (Section D1) is needed to explain how the original planar Darwin–Hamilton equations got the integral currents essentially right.

Our first numeric result (Section 5.2, Fig. 9) confirms that off-plane trajectories have very little effect upon the integral currents except near backscattering. The interest of our present work is not in those minor corrections, but in deriving information that is not at all available from the original Darwin–Hamilton equations, namely the directional distribution of the transmitted and reflected radiation.

While Wuttke (2014a ) presented some asymptotic results, a formal expansion in reflection order and a Monte Carlo code, we now have derived a numeric scheme that uses spectral collocation in the depth coordinate to compute Inline graphic with high speed and very high accuracy. Fig. 11 shows an example outcome: a dot represents the direct beam, a parabolic spray comes from single reflections, whereas all higher reflection orders contribute to a diffuse, two-dimensional cloud of propagation directions. Fig. 13 shows the consequences for rocking-curve measurements.

As mosaic crystals are an important beam optical device, numeric solutions of the transport equation will help to improve instrument and radiation protection simulations. The computer code produced for this work is open source and freely available, and will hopefully find its way into established ray-tracing packages.

Supplementary Material

Open-source software MultiBragg as used to generate Figs 3-13. DOI: 10.1107/S2053273320002065/ae5082sup1.gz

Acknowledgments

We thank an anonymous reviewer for detailed and very helpful suggestions.

Appendix A. Transfer function

A1. Block transfer function  

In Part I, the transfer function of a single-crystalline block was derived in three-dimensional wavevector space (equation I,12),

A1.

The prefactor Inline graphic, introduced in (11), agrees with equations I,7 and I,26, with equation 53 in Sears (1997), and equation A7 in Grabcev & Stoica (1980). The three-dimensional delta function in (45) can be decomposed as

A1.

where Inline graphic is the delta function on the unit sphere. The scalar delta function is implicit in our redefinition of distribution functions, Inline graphic. By comparing the three- and two-dimensional variants of the transport equation we see that it cancels. The factor Inline graphic cancels when casting the three-dimensional integral (equation I,38) to our two-dimensional definition (2) of the Bragg operator. A factor Inline graphic can be drawn out of the first delta function in (45). Altogether we obtain

A1.

The first delta function enforces the Laue–Bragg condition (13). The second delta function in (47) ensures that the diffracted wave propagates in a direction Inline graphic given by the deflection function Inline graphic, defined in (12).

A2. Total transfer function  

To carry out the integral (9), we consider how an integral in Inline graphic acts on the first delta function of (47). We parameterize Inline graphic in spherical coordinates Inline graphic with respect to the axis Inline graphic, and introduce a test function f to find

A2.

The remaining integral involves a full circle in Inline graphic. This circle arises as the intersection of the unit sphere with the plane defined by the Bragg condition (13). For given Inline graphic, we will write this circle as Inline graphic. Because it only appears under integrals running from Inline graphic to Inline graphic, we can leave the origin in t (the orientation of the spherical coordinates around Inline graphic) unspecified.

A3. Relation to Part I  

The above is a simplification in three ways over Part I (equations 25,27): thanks to the parameterization in t, there is no more need to sum over two half Inline graphic circles (or ellipses, when referring to the orthographic parameterization of Part I). The singularity Inline graphic in the correction factor h has canceled under the substitution Inline graphic, so that there is no longer a singularity near backscattering. And the β dependence in the second fraction in equation I,27 is gone for good as we no longer use the approximation Inline graphic implicit in equation I,13.

Appendix B. Diffraction matrix

b1. Numeric computation  

To compute the matrix element Inline graphic for given s, we divide the integration domain in (27) in finite intervals. We use bisection to determine points Inline graphic such that for Inline graphic all Inline graphic lie in one and the same bin Inline graphic. If necessary, intervals are further divided to ensure Inline graphic. This simplifies (27) to

b1.

Integrals now extend over ranges so small that Gauss–Legendre three-point quadrature is good enough; the accuracy has been ascertained by comparison with higher-order rules. We compute Inline graphic for the midpoint Inline graphic. From this, we easily deduce Inline graphic and increment the corresponding Inline graphic. Quite some computational effort can be saved in the special case of an isotropic, normal oriented mosaic, as discussed in Section C2.

To make the matrix B sparser, and thereby speed up the solution of the discretized transport equation, we delete matrix entries that are too tiny to have any consequence for the question under study. Specifically, we set Inline graphic to zero if it is smaller than Inline graphic. Our default choice for the cut-off hyperparameter is Inline graphic (Section 4.6).

b2. Loss channels  

If Inline graphic, then the total current in the Inline graphic direction is constant,

b2.

This identity can be used to check the accuracy of a numeric solution.

To maintain (50) even in the presence of non-diffractive losses, we increment M by 1 to allow for a loss channel Inline graphic. Numeric experimentation shows that the preferred propagation direction is backward, say Inline graphic, which implies that the proper boundary condition is Inline graphic. The diffraction matrix acquires the additional entries

b2.

and the term Inline graphic appears no longer explicitly in the attenuation factor (25),

b2.

This approach comes to fruition with two more loss channels, Inline graphic and Inline graphic, which account for errors introduced by two approximations that reduce the number of nonzero matrix entries Inline graphic:

One approximation consists of choosing a grid that does not cover the full unit sphere (Section 3.2). It makes (22) inexact because for some s there is a finite probability Inline graphic of diffraction towards some Inline graphic that is not in the grid.

The other approximation is the zeroing of matrix entries Inline graphic that are too tiny to have any practical consequence (Section B1). To assess the overall error made by this approximation, we set Inline graphic to the sum of all deleted entries Inline graphic for given s.

As per (51), there is no scattering out of these channels: Inline graphic. Starting from Inline graphic, intensity accumulates with decreasing z. The total approximation losses can be read off from Inline graphic and Inline graphic. If they are below tolerances Inline graphic (Section 4.6), then one can be sure that approximations made by restricting the grid and by zeroing some Inline graphic are unproblematic.

Altogether, the total current, including all loss channels, is

b2.

Allowing for some numeric inaccuracy, the absolute value of the left-hand side is requested to stay below a tolerance Inline graphic (Section 4.6).

Appendix C. Isotropic, normal oriented mosaic

c1. Spherical coordinates  

Isotropic, normal oriented mosaics (defined in Section 2.4) have a rotational symmetry around Inline graphic that allows us to simplify and accelerate some computations. For given Inline graphic, we choose orthonormal vectors Inline graphic. For a given reciprocal-space direction Inline graphic, we define spherical coordinates Inline graphic with respect to the base Inline graphic:

c1.

We choose the rotation matrix in equation (14) as Inline graphic, where Inline graphic are rotations around the Inline graphic axes. It is easily verified that Inline graphic. The deflection function (12) is

c1.

With the last line, we obtained a factorization of the Inline graphic and Inline graphic dependence of Inline graphic.

c2. Computing the diffraction matrix  

The algorithm to compute the diffraction matrix Inline graphic described in Section B1 has an outer loop that runs over the bin index Inline graphic. If for an isotropic, normal oriented mosaic bins are chosen on a rectangular grid in the spherical coordinates Inline graphic, then that loop must only be executed for Inline graphic at one fixed Inline graphic. In a second step, results are then transcribed to all other Inline graphic; the outgoing bin indices r are translated accordingly. This is particularly easy if the φ grid extends over Inline graphic so that a periodic boundary condition applies. A further factor of 2 in computational effort can be saved by using the symmetry of Inline graphic and W under a change of sign of t.

Given the circulancy of B in φ, one could also decouple equations by Fourier transform. However, this would come at an expense in sparsity, and it would not help for future applications with non-normal oriented mosaics. Therefore, we have not explored this idea any further.

c3. Azimuthal average  

If we are not interested in the azimuthal distribution of the radiation reflected or transmitted from an isotropic, normal oriented mosaic then the rotational symmetry allows us to integrate out the coordinate φ so that only the θ dependence of the flux

c3.

is studied further. To integrate over the transfer function (10), we note that Inline graphic is independent of Inline graphic. We find the deflection operator (2)

c3.

with the transfer function

c3.

and the polar deflection function

c3.

We integrate (58) to obtain the attenuation operator

c3.

with the dimensionless total deflection probability

c3.

Appendix D. The two-ray model

d1. Derivation  

If the reflected polar angle (59) is expanded in Inline graphic and t, then the lowest order is just [in accord with equation I,64, but note that the next order has been corrected in Wuttke (2020)]

d1.

Accordingly, (58) and (61) are simplified to

d1.

and

d1.

An incoming collimated beam, through arbitrarily many reflections, will propagate forward along Inline graphic and backward along Inline graphic, as described by the two-ray Darwin–Hamilton equations.

Realistic mosaic distributions are narrow; in radians, Inline graphic. This justifies the above truncation, and motivates a series expansion of Inline graphic in the small arguments Inline graphic and t, for use in (63). In lowest order, we find

d1.

Specifically, with the Mises–Fisher distribution (16), we can carry out the integral (64) to find

d1.

with the normalized univariate Gaussian

d1.

In the two-ray notation of Part I, the Bragg operator (57) becomes

d1.

in agreement with the standard treatment of the planar Darwin–Hamilton equations (Zachariasen, 1945, equation 4.19; Sears, 1989, equation 5.2.70).

d2. Analytical solution  

The two-ray boundary problem with plate geometry has been solved in full generality by Sears (1997). Since our notation deviates from Sears’ in potentially confusing ways, translations are given in Table 1. According to (68), the Bragg cross sections are the same for both rays: Inline graphic. The abbreviations from Sears’ equation 12 are in our notation

d2.

The resulting directional currents Inline graphic are then given by Sears’ equation 15.

Table 1. Correspondence of notations in Sears (1997) and in the present work.

Variable Sears (1997) This work
Crystal thickness d d
Depth variable Inline graphic Inline graphic
Rescaled depth variable   Inline graphic
Bragg angle θ Inline graphic
Forward current I Inline graphic
Backward current Inline graphic Inline graphic
Forward beam polar angle φ Inline graphic
Backward beam polar angle Inline graphic Inline graphic
Bragg cross section σ B
Bragg cross section, reduced, forward beam Inline graphic Inline graphic
Bragg cross section, reduced, backward beam Inline graphic Inline graphic
Loss cross section μ Inline graphic
Total attenuation cross section Inline graphic Inline graphic
Total attenuation cross section, reduced, forward beam Inline graphic Inline graphic
Total attenuation cross section, reduced, backward beam Inline graphic Inline graphic

We now specialize to the symmetric case Inline graphic, hence Inline graphic, as addressed in Fig. 5. With our abbreviations τ and ρ from Section 2.5 and with the further abbreviation Inline graphic, (69) reduces to Inline graphic, Inline graphic and Inline graphic. Sears’ equation 15 yields

d2.

To discuss rocking curves, we need the transmittivity and reflectivity for arbitrary Inline graphic (Sears’ equation 16)]:

d2.

For Inline graphic, we obtain by specializing either (70) or (71)

d2.

References

  1. Bavier, E., Hoemmen, M., Rajamanickam, S. & Thornquist, H. (2012). Sci. Program. 20, 241–255.
  2. Canuto, C., Quarteroni, A., Hussaini, M. Y. & Zang, T. (1988). Spectral Methods in Fluid Mechanics. New York: Springer.
  3. Darwin, C. G. (1922). London Edinb. Dubl. Philos. Mag. J. Sci. 43, 800–829.
  4. Dorner, B. & Kollmar, A. (1974). J. Appl. Cryst. 7, 38–41.
  5. Driscoll, T. A. & Hale, N. (2016). IMA J. Numer. Anal. 36, 108–132.
  6. Frick, B., Bordallo, H. N., Seydel, T., Barthélémy, J.-F., Thomas, M., Bazzoli, D. & Schober, H. (2006). Physica B, 385–386, 1101–1103.
  7. Gottlieb, D., Hussaini, M. Y. & Orszag, S. A. (1984). In Spectral Methods for Partial Differential Equations, edited by R. G. Voigt, D. Gottlieb & M. Y. Hussaini. Philadelphia: SIAM.
  8. Grabcev, B. & Stoica, A. D. (1980). Acta Cryst. A36, 510–519.
  9. Hamilton, W. C. (1957). Acta Cryst. 10, 629–634.
  10. Hennig, M., Frick, B. & Seydel, T. (2011). J. Appl. Cryst. 44, 467–472.
  11. Heroux, M., Bartlett, R., Howle, V., Hoekstra, R., Hu, J., Kolda, T., Lehoucq, R., Long, K., Pawlowski, R., Phipps, E., Salinger, A., Thornquist, H., Tuminaro, R., Willenbring, J. & Williams, A. (2003). An Overview of Trilinos. Report SAND2003-2927. Albuquerque: Sandia National Laboratories.
  12. Meyer, A., Dimeo, R. M., Gehring, P. M. & Neumann, D. A. (2003). Rev. Sci. Instrum. 74, 2759–2777.
  13. Moler, C. & Van Loan, C. (1978). SIAM Rev. 20, 801–836.
  14. Moler, C. & Van Loan, C. (2003). SIAM Rev. 45, 3–49.
  15. Ohmasa, Y. & Chiba, A. (2018). Acta Cryst. A74, 681–698. [DOI] [PubMed]
  16. Ohmasa, Y., Shimomura, S. & Chiba, A. (2016). J. Appl. Cryst. 49, 835–844.
  17. Sala, M. & Heroux, M. (2005). Robust Algebraic Preconditioners with IFPACK 3.0. Report SAND-0662. Albuquerque: Sandia National Laboratories.
  18. Schneider, J. R. (1974). J. Appl. Cryst. 7, 541–546.
  19. Sears, V. F. (1989). Neutron Optics. Oxford University Press.
  20. Sears, V. F. (1997). Acta Cryst. A53, 35–45.
  21. Trefethen, L. N. (2000). Spectral Methods in MATLAB. Philadelphia: SIAM.
  22. Wuttke, J. (2014a). Acta Cryst. A70, 429–440. [DOI] [PubMed]
  23. Wuttke, J. (2014b). J. Phys. A Math. Theor. 47, 215203.
  24. Wuttke, J. (2020). Acta Cryst. A76, 215. [DOI] [PubMed]
  25. Wuttke, J., Budwig, A., Drochner, M., Kämmerling, H., Kayser, F.-J., Kleines, H., Ossovyi, V., Pardo, L. C., Prager, M., Richter, D., Schneider, G. J., Schneider, H. & Staringer, S. (2012). Rev. Sci. Instrum. 83, 075109. [DOI] [PubMed]
  26. Xu, K. & Hale, N. (2016). IMA J. Numer. Anal. 36, 618–632.
  27. Zachariasen, W. H. (1945). Theory of X-ray Diffraction in Crystals. New York: Wiley.

Associated Data

This section collects any data citations, data availability statements, or supplementary materials included in this article.

Supplementary Materials

Open-source software MultiBragg as used to generate Figs 3-13. DOI: 10.1107/S2053273320002065/ae5082sup1.gz


Articles from Acta Crystallographica. Section A, Foundations and Advances are provided here courtesy of International Union of Crystallography

RESOURCES