.. |alph| replace:: :math:`\alpha` .. |Sn| replace:: :math:`S_n` .. |Bn| replace:: :math:`B_n` .. |psilast| replace:: :math:`\psi_{m-\frac{1}{2}}` .. |psinext| replace:: :math:`\psi_{m+\frac{1}{2}}` .. _sec-module.xsdrnpm: XSDRNPM: A One-Dimensional Discrete-Ordinates Code for Transport Analysis ========================================================================= *L. M. Petrie, N. M. Greene, M. L. Williams* ABSTRACT XSDRNPM is a discrete-ordinates code that solves the one-dimensional Boltzmann equation in slab, cylindrical, or spherical coordinates. Alternatively, the user can select *P*\ :sub:`1` diffusion theory, infinite medium theory, or *B*\ :sub:`n` theory. A variety of calculational types is available, including fixed source, eigenvalue, or "search" calculations. In SCALE, XSDRNPM is used for several purposes: eigenvalue (k-effective) determination, cross-section collapsing, shielding analysis, computation of fundamental-mode or generalized adjoint functions for sensitivity analysis, and for producing bias factors for use in Monte Carlo shielding calculations. ACKNOWLEDGMENTS W. W. Engle has been very generous with the use of his notes on |Sn| theory and on discussing details of various procedures in XSDRNPM which were lifted directly from his ANISN program. The authors also wish to thank R. H. Odegaarden (the former technical monitor at the U.S. Nuclear Regulatory Commission) who supplied the necessary incentives for completing this report. Introduction ------------ XSDRNPM is a one-dimensional (1-D) discrete-ordinates transport code and is the latest in a series of codes in the XSDRN :cite:`XSD-greene_xsdrn_1969` family. As such, it contains several unique characteristics, as will be detailed in this report, though a large portion of the theoretical bases and intended uses of the program are the same for all versions. Functions performed ~~~~~~~~~~~~~~~~~~~ The function of XSDRNPM is twofold: (1) perform a 1-D discrete-ordinates calculation in slab, cylindrical, or spherical geometry (optionally, a 1-D diffusion theory or infinite medium \|Bn\| calculation can be made), and (2) use the fluxes determined from its spectral calculation to collapse input cross sections and write these into one of several formats. A great deal of flexibility is allowed in describing a problem for XSDRNPM. The number of spatial intervals, the number of energy groups, the number of nuclides, the quadrature order, the order of fits to the angular variation in basic cross sections are all arbitrary and are limited only by computer and monetary resources. The flux calculation can be performed according to several options, including fixed source calculations, k-calculations, and dimension search calculations. A variety of weighting options are allowed, including zone, cell, or a special "vein" weighting option which is described herein. Background on XSDRNPM ^^^^^^^^^^^^^^^^^^^^^ Development of the XSDRN1 program started in the mid-1960s. The goal was to develop a program that would combine features from the GAM-II, :cite:`XSD-joanou_gam-ii_1963` ANISN, :cite:`XSD-engle_jr_users_1967` and THERMOS :cite:`XSD-honeck_thermos_1961` programs in a more unified and general way than would be possible if one simply elected to use these codes individually. The salient features to be retained from the programs were as follows: .. describe:: GAM-II The Nordheim Integral Treatment was desired for resonance self-shielding; the generality of including cross sections for an arbitrary number of processes, along with the provisions for truncating zero or impossible transfers in the scattering matrices, was also a requirement. .. describe:: ANISN One-dimensional discrete-ordinates or diffusion theory or infinite-medium theory was to be available to generate a spectrum for cross-section collapsing. .. describe:: THERMOS The ability to perform detailed 1-D spectral calculations, including upscatter effects, was required for the thermal region. The whole code was required to be dynamically dimensioned to allow calculations for arbitrary group structures, spatial structures, angular quadratures, etc. The XSDRN program that embodied these features was released in 1969. In the early 1970s, the Defense Nuclear Agency (DNA) initiated support for the AMPX system, which was to be a total cross-section generation system capable of performing all tasks necessary to take basic neutron and gamma-ray cross-section data and process these data into the proper form needed for weapons effects calculations. Since XSDRN already encompassed many of the features needed, it was selected as a basis for modules in the new system. In this case, experience gained in the original construction of XSDRN served to suggest that a more modular approach would have been better with independent tasks being done in separate, smaller, easier-to-manage programs. Therefore, the code was split into NITAWL-II (for resonance self-shielding and some basic cross-section data manipulation) and XSDRNPM (for spectral calculations and cross-section collapsing). In retrospect, if the AMPX development were initiated today, XSDRN would have been split even further, into perhaps as many as six or seven programs. The XSDRNPM module differs from XSDRN in several respects: - It will perform coupled neutron-gamma calculations. - It allows any mixture to be represented to an arbitrary order of anisotropic representation, whereas XSDRN only allowed through order 3. - It will perform an adjoint calculation, whereas the option was never provided in XSDRN. In 2010, a generalized adjoint solution was also added. - It is considerably more efficient in the manner in which data storage is used and, hence, will run much larger problems in less core storage. - It employs improved thermal flux scaling techniques for better problem convergence. - Input specifications have been reordered, and more defaults have been provided to make the use of this module easier. - It will calculate |Sn| constants for any order for any of the three 1-D geometries available. - Mixture-dependent fission spectra are calculated and used in XSDRNPM, which takes into account all fissionable nuclides in a problem. AMPX was released in 1976, about the same time as the U.S. Nuclear Regulatory Commission (NRC) support for the SCALE system was initiated. Although separate versions of XSDRNPM were initially maintained for AMPX and SCALE, in recent years the same version is used for the two systems. Applications in SCALE ~~~~~~~~~~~~~~~~~~~~~ XSDRNPM is used in several places in SCALE. In SAS1, XSDOSE uses fluxes from a 1-D shielding calculation to determine a dose rate. Within the CSAS5 and CSAS6 control modules, XSDRNPM is used in the sequences to perform eigenvalue calculations and cell weighting of cross sections. TSUNAMI-1D uses XSDRN to compute forward and adjoint fluxes (fundamental-mode and generalized adjoint) for sensitivity and uncertainty analysis. Notes on the use of various spectral calculational options ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ As noted earlier, four options are available in XSDRNPM for calculating fluxes, k-effectives, etc.: 1. |Sn| theory, 2. diffusion theory, 3. infinite medium theory, and 4. |Bn| theory. However, XSDRNPM is primarily an |Sn| code. The latter three options are provided for reasons of completeness and are not nearly as optimized as they would be in other codes for which these are the primary spectral calculation options. Without a very detailed calculational study, it is perhaps impossible to be able to quantify the degree of adequacy or inadequacy of any of these methods for performing a particular problem. However, some general comments can be made which may provide some guidance with their selection. First, |Sn| theory is the most correct of the options and will solve a larger class of problems. It is the most complicated and time-consuming of the four, but it still runs very fast for most cases. There are problems for which it (or some alternative method based on a solution of the Boltzmann equation) is the only one of the four methods which is adequate. Many shielding applications fall in this class. In deep-penetration problems, anisotropic effects can dominate, thus requiring an accurate treatment of the anisotropy of both flux and cross section. It is well known that diffusion theory is not very accurate when used to calculate systems involving regions of very dissimilar cross-section values, such as is the case when control rods are interspersed in a reactor core. Because of the anisotropy involved in gamma-ray problems, |Sn| theory should be used. Diffusion theory, on the other hand, is certainly the most successful of the four methods in terms of the amount of use it has for designing reactors, etc. In cases involving reasonably large, homogeneous regions, it is generally adequate, such as is the case for a large class of "reactor" applications. For most problems, the diffusion theory option should run appreciably faster than |Sn| theory, since it has essentially one equation to solve, versus number-of-angles equations for |Sn| theory. This equation also can be explicitly solved using a matrix inversion procedure, whereas the |Sn| theory requires a more time-consuming iterative procedure. However, in many cases with large numbers of groups (200 to 300), the greater fraction of the calculational time can be spent calculating the scattering source terms, which tends to lessen the impact of time spent on a more correct theory. (This same observation can also be made of the infinite medium and |Bn| method.) The infinite medium option is the fastest of the four methods and can be used safely to perform calculations for large homogeneous regions, wherein the spectrum may be needed to collapse cross sections. This option only determines the first moment of the flux, and is, therefore, quite suspect for many applications, such as calculating diffusion coefficients. The |Bn| option shares many of the same restrictions as the infinite-medium method; however, this treatment does (as its name implies) use a buckling approximation to account for leakage from the large homogeneous region, thereby giving higher order flux moments that can be used, for example, to determine diffusion coefficients. Selection of output cross-section library formats ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ XSDRNPM will, on option, collapse cross sections and write the collapsed sets into four different formats: 1. ANISN3 BCD Library, 2. ANISN3 Binary Library, 3. CCCC :cite:`XSD-carmichael_standard_1974` ISOTXS Library, or 4. AMPX :cite:`XSD-wiarda_ampx-2000_2015` Working Library. The choice of the output cross-section format is determined by the computer code that will use the data. XSDRNPM always produces an AMPX working library when cross sections are collapsed, and all other formats are produced by reformatting data from this library. Therefore, for archival purposes, if a collapsed library is to be saved, the working format is the best choice, because it is the most general of those provided. AMPX working libraries are used by all multi-group transport codes currently in SCALE, including DENOVO (3D orthogonal mesh discrete ordinates code), NEWT (2D arbitrary mesh discrete ordinates code), and KENO and MONOCO (multigroup Monte Carlo codes. Stand-alone modules exist for converting AMPX working libraries to the other formats. ANISN formats are used by older ORNL transport codes such as ANISN (a 1-D discrete-ordinates code), by DORT/TORT :cite:`XSD-rhoades_dot-iv_1979` [two-dimensional (2-D) and three dimensional (3D) discrete-ordinates codes], and by MORSE :cite:`XSD-emett_morse_1975` (a multigroup Monte Carlo code). The formats are quite comprehensive and can handle coupled neutron-gamma calculations, arbitrary orders of anisotropy, upscattering, etc. The major shortcoming of the format is its lack of internal documentation as to its structure (e.g., no provisions exist for specifying where a particular kind of cross section is located in the library or even if it is included). ANISN libraries can be produced in a free-form card-image BCD format or in a binary form. The CCCC (Committee on Computer Code Coordination) ISOTXS file is a format for neutron cross sections that is one of several "standard interfaces" developed to facilitate the exchange of data between different computer codes. It is a self-defined format, which has provisions for identifying cross sections in the library. Scattering matrices can be supplied for elastic, inelastic, and (n,2n) scattering. Theory and Procedures --------------------- This section describes the models and procedures which are employed in XSDRNPM. One-dimensional discrete-ordinates theory ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ The time-independent Boltzmann transport equation can be written: .. math:: :label: eq9-1-1 \overset{\rightharpoonup}{\Omega} \bullet \nabla \psi(\overset{\rightharpoonup}{r}, E, \overset{\rightharpoonup}{\Omega})+\sum_{i}(\overset{\rightharpoonup}{r}, E) \psi(E, \overset{\rightharpoonup}{r}, \overset{\rightharpoonup}{\Omega})=S(\overset{\rightharpoonup}{r}, E, \overset{\rightharpoonup}{\Omega}) This expression is a balance condition that states simply that losses due to leakage (first term) and collisions (second term) must equal the source of neutrons, at some point in space :math:`r`  energy E, and in direction  :math:`\Omega` per unit volume and energy and solid angle. Other terms in the expression are :math:`\sum_{t}(r, E)` the total macroscopic cross section of the medium, which is typically assumed isotropic, and the flux, :math:`\psi(r, E, \Omega)`. The source term :math:`S(r, E, \Omega)` has three components: 1. a scattering source, :math:`S(r, E, \Omega)`, 2. a fission source, :math:`F(r, E, \Omega)`, and 3. a fixed source, :math:`Q(r, E, \Omega)`. The scattering source is given by: .. math:: :label: eq9-1-2 \left.S(r, E, \Omega)=\int_{0}^{4 \pi} d \Omega^{\prime} \int_{0}^{\infty} d E^{\prime} \sum_{s}\left(r, E^{\prime} \rightarrow E, \Omega^{\prime} \rightarrow \Omega\right) \psi\left(r, E^{\prime}, \Omega^{\prime}\right)\right). The fission source term, typically, is written .. math:: :label: eq9-1-3 F(r, E, \Omega)=\frac{1}{4 \pi k} \chi(r, E) \int_{0}^{4 \pi} d \Omega^{\prime} \int_{0}^{\infty} d E^{\prime} v\left(r, E^{\prime}\right) \Sigma_{f}\left(r, E^{\prime}\right) \psi\left(r, E^{\prime}, \Omega^{\prime}\right) , where :math:`\sum_{s}\left(r, E^{\prime} \rightarrow E, \Omega^{\prime} \rightarrow \Omega\right)` is the macroscopic scattering cross section per unit energy for scattering from energy \ *E'* to *E*, :math:`\chi(r, E)` is the fraction of the fission neutrons per unit energy produced at *r* and E, :math:`\upsilon(r, E)` is the average number of neutrons produced per fission, :math:`\sum_{f}(r, E)` is the macroscopic fission cross section and k is the "effective multiplication constant." Note that, as in the case of the total cross-section value, :math:`\chi`,\ :math:`\Sigma`\ f, and :math:`\upsilon` are assumed to be isotropic. XSDRN computes a weighted-averaged fission spectrum based on the fissionable materials at *r*. Three common coordinate systems are shown in :numref:`fig9-1-1`. XSDRNPM is a 1-D code, which means that in the case of the slab, it is calculating at points along one axis where the system is assumed to extend to infinity along the other two axes. If we assume a calculation along the x-axis, this says that there is no leakage in the y or z directions, and our directions by angles referenced to the x-axis. In the case of the cylinder, the length (z-axis) is infinite and the calculation is for points (shells) located at distance r from the central axis. For the sphere, the calculation is of shells located at radius, r, from the center of the spherical system. :numref:`fig9-1-2` illustrates the 1-D coordinate systems for slabs, cylinders, and spheres. Note that the directions are cones in the case of the slab and sphere, whereas in the case of the cylinder, the same simple symmetries do not hold (a cone around the radius does not strike the next cylindrical shell at the same distance from a point on a radius) and the directions must be specifically described. Symmetries in the 1-D cylinder, however, allow one to only describe directions for one quadrant of the direction sphere about a point as will be noted in :numref:`9-1-2-2`. The 1-D geometries allow considerable simplification to be made to Eq. :eq:`eq9-1-1`, especially in the leakage term :math:`\bar{\Omega} \bullet \nabla \psi`. It is traditional to calculate the angular flux as a function of angles expressed in direction-cosine units; i.e., :math:`\mu=\cos \phi` and :math:`\eta=\cos \xi`. This requires :math:`\psi(x, E, \mu)` for slabs, :math:`\psi(x, E, \mu, \eta)` for cylinders and :math:`\psi(r, E, \mu)` for spheres. :numref:`tab9-1-1` gives leakage terms expressed in conservation form for the three geometries. .. list-table:: One-dimensional leakage terms. :align: center :name: tab9-1-1 * - Geometry - :math:`\overset{\rightharpoonup}{\Omega} \bullet \nabla \psi` * - Slab - :math:`\mu \frac{\partial \psi}{\partial x}` * - Cylinder - :math:`\frac{\mu}{r} \frac{\partial(r \psi)}{\partial r}-\frac{1}{r} \frac{\partial(\eta \psi)}{\partial \phi}` * - Sphere - :math:`\frac{\mu}{r^{2}} \frac{\partial\left(r^{2} \psi\right)}{\partial r}+\frac{1}{r} \frac{\partial\left[\left(1-\mu^{2}\right) \psi\right]}{\partial \mu}` .. figure:: figs/XSDRNPM/fig1.png :align: center :width: 600 :name: fig9-1-1 Three common coordinate systems. .. figure:: figs/XSDRNPM/fig2.png :align: center :width: 600 :name: fig9-1-2 Three 1-D coordinate systems. .. _9-1-2-2: Multigroup one-dimensional Boltzmann equation ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In multigroup schemes, the continuous-energy (CE) balance equations are converted to multigroup form by first selecting an energy structure and then writing a multigroup equivalent of the point equation which requires multigroup constants that tend to preserve the reaction rates that would arise from integrating the CE equations by group. First we define the following multigroup values for g, .. math:: :label: eq9-1-4 \psi_{g}(x, \mu)=\int_{g} d E \psi(x, E, \mu) and .. math:: :label: eq9-1-5 \psi_{g}(x)=\int_{-1}^{1} d \mu \psi_{g}(x, \mu) and .. math:: \Sigma_{t g}(x)=\frac{\int_{g} d E \Sigma_{t g}(x, E) W(x, E)}{\int_{g} d E W(x, E)} , where *W(x.E)* is the weighting function used to compute the multigroup cross sections at a particular location. To rigorously conserve reaction rates, the weight function should be angle-dependent, but this causes the multigroup cross section to vary with direction; therefore the usual approach is to represent the weight function by an approximation to the scalar flux spectrum. In energy ranges where the CE cross sections have fine-structure due to resonances, the multigroup data must be self-shielded prior to the multigroup transport calculations. The following multi-group form of 1-D equation can be derived for the slab case: .. math:: :label: eq9-1-6 \mu \frac{\partial \psi_{g}(x, \mu)}{\partial x}+\sum_{t g}(x) \psi_{g}(x, \mu)=S_{g}(x, \mu)+F_{g}(x, \mu)+Q_{g}(x, \mu) . The equations for the cylinder and sphere are essentially the same, in this notation, except for the differences in the leakage terms from :numref:`tab9-1-1`. In Eq. :eq:`eq9-1-6` , *S*\ :sub:`g`, *F*\ :sub:`g`, and *Q*\ :sub:`g` are the scattering, fission, and fixed sources, respectively. The scattering term is discussed in :numref:`9-1-2-3`. The multigroup form of the fission source is .. math:: :label: eq9-1-7 F_{g}(x, \mu)=\frac{\chi_{g}}{2 \pi k} \sum_{g^{\prime}} \overline{v \sum_{f g^{\prime}}}(x) \psi_{g^{\prime}}(x) , where :math:`\chi_g` is the fraction of the fission neutrons that are produced in group g, and :math:`\overline{v \Sigma_{f{g}^{\prime}}}` is the average of the product of :math:`\nu`, the average number of neutrons produced per fission and :math:`\Sigma_f`, the fission cross section. .. _9-1-2-3: Scattering source term ~~~~~~~~~~~~~~~~~~~~~~ In discrete-ordinates theory, one typically calculates the Legendre moments of the flux, :math:`\psi_{g,l}`, defined for slab and spherical geometries by .. math:: :label: eq9-1-8 \psi_{g, l}=\frac{1}{2} \int_{-1}^{1} d \mu \psi_{g}(\mu) P_{1}(\mu) . Cylindrical geometry has a similar expression containing spherical harmonic functions rather than Legendre polynomials, shown in the next section. The group-to-group scattering coefficients are, themselves, fit with Legendre polynomials, such that .. math:: :label: eq9-1-9 \sigma\left(g^{\prime} \rightarrow g, \mu\right)=\sum_{l=0}^{I S C T} \frac{2 l+1}{2} \sigma_{l}\left(g^{\prime} \rightarrow g\right) P_{l}(\mu) . In this example, we have a fit of order ISCT. .. note:: AMPX cross-section libraries contain the 2\ *l* + 1 factor in the :math:`\sigma_{t}\left(g^{\prime} \rightarrow g\right)` matrix. Slab and Spherical Geometries ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Because of the symmetries in 1-D slabs and spheres, only one angle is needed to describe a "direction." In the case of the slab, the angle is taken with reference to the x-axis, while for the sphere; it is with reference to a radius vector between the point and the center of the sphere. This means that the flux can be expanded in ordinary Legendre polynomials, such that .. math:: :label: eq9-1-10 \begin{array}{l} \psi(r, E, \mu)=\sum_{l=0}^{\infty} \psi_{l}(r, E) P_{l}(\mu) \\ \psi_{l}(r, E)=\int_{-1}^{1} \frac{d \mu}{2} P_{l}(\mu) \psi(r, E, \mu) \end{array} . When Eq. :eq:`eq9-1-10` and Eq. :eq:`eq9-1-9` are introduced into Eq. :eq:`eq9-1-2`, the following expression is derived for the scattering source: .. math:: :label: eq9-1-11 S(r, E, \mu)=2 \pi P_{l}(\mu) \int_{0}^{\infty} d E^{\prime} \int_{-1}^{1} d \mu^{\prime} \sum_{l=0}^{I S C T} \frac{2 l+1}{2} \sum_{s_{l}}\left(r, E^{\prime} \rightarrow E\right) P_{l}\left(\mu^{\prime}\right) \psi_{l}\left(r, E^{\prime}\right) where *ISCT* is the order of fit to the fluxes and cross sections. Cylindrical Geometry ^^^^^^^^^^^^^^^^^^^^ The situation is more complicated in the case of the 1-D cylinder where the flux (and cross section) must be given as a function of two angles. Consider :numref:`fig9-1-3`. .. figure:: figs/XSDRNPM/fig3.png :align: center :width: 400 :name: fig9-1-3 One-dimensional cylindrical scattering coordinates. The addition theorem for associated Legendre polynomials can be used to transform from scattering angle coordinates to the real coordinates required in the cylindrical case: .. math:: :label: eq9-1-12 P_{l}\left(\mu_{0}\right)=\sum_{n=-1}^{1} \frac{(l-n) !}{(l+n) !} P_{l}^{n}(\mu) P_{l}^{n}\left(\mu^{\prime}\right) e^{i n\left(\zeta-\zeta^{\prime}\right)} , where :math:`\mu_{0}=\cos \theta_{0}`; :math:`\mu=\cos \theta` and :math:`\mu^{\prime}=\cos \theta^{\prime}`. If we note that .. math:: \begin{aligned} \sigma_{s}\left(r, E^{\prime} \rightarrow E, \Omega^{\prime} \rightarrow \Omega\right) &=\sigma_{s}\left(r, E^{\prime} \rightarrow E\right), P_{l}\left(\Omega^{\prime} \bullet \Omega\right) \\ &=\sigma_{s}\left(r, E^{\prime} \rightarrow E\right), P_{l}\left(\mu_{0}\right) \end{aligned} Eq. :eq:`eq9-1-12` can be introduced into Eq. :eq:`eq9-1-2` to yield .. math:: :label: eq9-1-13 \begin{array}{c} S(r, E, \mu)=\int_{0}^{\infty} d E^{\prime} \int_{-1}^{1} d \mu^{\prime} \int_{0}^{2 x} d \zeta \psi\left(r, E^{\prime}, \mu^{\prime}, \zeta^{\prime}\right) \sum_{l=0}^{I S C T} \frac{2 l+1}{2} \sigma_{s_{l}}\left(r, E^{\prime} \rightarrow E\right) \\ \times \sum_{n=-1}^{l} \frac{(l-n) !}{(l+n) !} P_{l}^{n}(\mu) P_{l}^{n}\left(\mu^{\prime}\right) e^{i n\left(\zeta-\zeta^{\prime}\right)} \end{array} . Now it is convenient to recall that .. math:: :label: eq9-1-14 \cos x=\frac{e^{+i x}+e^{-i x}}{2} , which can be introduced into Eq. :eq:`eq9-1-13` and rearranged to give .. math:: :label: eq9-1-15 \begin{aligned} S(r, E, \mu)=& \sum_{l=0}^{I S C T} \frac{2 l+1}{2} \int_{0}^{\infty} d E^{\prime} \sigma_{s_{l}}\left(r, E^{\prime} \rightarrow E\right)\left[P_{l}(\mu) \int_{-1}^{1} d \mu^{\prime} \int_{0}^{2 \pi} d \zeta \psi\left(r, E^{\prime}, \mu^{\prime}, \zeta^{\prime}\right) P_{l}\left(\mu^{\prime}\right)\right] \\ &+\sum_{n=1}^{l} 2 \frac{(l-n) !}{(l+n) !} P_{l}^{n}(\mu)\left[\int_{-1}^{1} d \mu^{\prime} \int_{0}^{2 \pi} d \zeta \psi\left(r, E^{\prime}, \mu^{\prime}, \zeta^{\prime}\right) P_{l}^{n}\left(\mu^{\prime}\right) \cos \left[n\left(\zeta-\zeta^{\prime}\right)\right]\right] \end{aligned} . We now define moments of the flux, :math:`\psi_{l}` by .. math:: :label: eq9-1-16 \phi_{l}(r, E)=\int_{-1}^{1} d \mu^{\prime} \int_{0}^{2 \pi} d \zeta \psi\left(r, E, \mu^{\prime}, \zeta^{\prime}\right) P_{1}\left(\mu^{\prime}\right) It is also convenient to make use of the trigonometric relationship .. math:: :label: eq9-1-17 \cos \left[n\left(\zeta-\zeta^{\prime}\right)\right]=\cos n \zeta \cos n \zeta^{\prime}+\sin n \zeta \sin n \zeta^{\prime} , and .. math:: \psi_{l}^{n}(r, E)=\sqrt{2 \frac{(l-n) !}{(l+n) !} \int_{-1}^{1} d \mu^{\prime}} \int_{0}^{2 \pi} d \zeta \psi\left(r, E, \mu^{\prime}, \zeta^{\prime}\right) P_{l}^{n}\left(\mu^{\prime}\right) \sin n \zeta^{\prime} .. this problem had a corrupt label in word. With a 1-D cylinder, the flux is symmetric in :math:`\zeta`; therefore, it is an even function, and the terms involving sin n \ :math:`\zeta` will vanish. This fact yields the following expression for Eq. :eq:`eq9-1-15` : .. math:: :label: eq9-1-18 \begin{array}{c} S(r, E, \mu)=\sum_{l=0}^{I S C T} \frac{2 l+1}{2} \int_{0}^{\infty} d E^{\prime} \sigma_{s_{l}}\left(r, E^{\prime} \rightarrow E\right) \\ \left.P_{l}(\mu) \psi_{l}\left(r, E^{\prime}\right)+\sum_{n=l}^{l} \sqrt{2 \frac{(l-n) !}{(l+n) !}} P_{n}^{l}(\mu) \cos n \zeta \psi_{l}^{n}(r, E)\right] \end{array} We observe further that for an even function in :math:`\zeta`, the odd *l* and odd (*l*-n) moments must all vanish, such that the following moments are nonzero for various orders of scattering: .. list-table:: :align: center :header-rows: 1 * - ISCT - Nonzero flux moments * - 0 - :math:`\psi_{0}` * - 1 - :math:`\psi_{0}`, :math:`\psi_{1}^{1}` * - 2 - :math:`\psi_{0}, \psi_{1}^{1}, \psi_{2}, \psi_{2}^{2}` * - 3 - :math:`\psi_{0}, \psi_{1}^{1}, \psi_{2}, \psi_{2}^{2}, \psi_{3}^{1}, \psi_{3}^{3}` * - 4 - :math:`\psi_{0}, \psi_{1}^{1}, \psi_{2}, \psi_{2}^{2}, \psi_{3}^{1}, \psi_{3}^{3}, \psi_{4}, \psi_{4}^{2}, \psi_{4}^{4}` In general, [ISCT(ISCT + 4)/4] + 1 flux moments are required. Discrete-ordinates difference equations ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In formulating the |Sn|  equations, several symbols are defined which relate to a flux in an energy group g, in a spatial interval i, and in an angle m. Typically, the flux is quoted as an integral of the flux in an energy group g, whose upper and lower bounds are :math:`E_{g}^{U}` and :math:`E_{g}^{L}` respectively. .. math:: :label: eq9-1-19 \psi_{g}=\int_{E_{g}^{L}}^{E_{g}^{U}} d E \psi(E) . A mechanical quadrature is taken in space, typically IM intervals with IM + 1 boundaries. Likewise, an angular quadrature is picked compatible with the particular 1-D geometry, typically MM angles with associated directional coordinates and integration weights. The different equations are formulated in a manner which involves calculating so-called angular fluxes, :math:`\psi_{g,i,m}` at each of the spatial interval boundaries, and also cell-centered fluxes, :math:`\psi_{g, i+1 / 2, m}` at the centers of the spatial intervals. The centered fluxes are related to the angular boundary fluxes by "weighted diamond difference" assumptions as will be described below. Units on angular fluxes are per unit solid angle *w*\ :sub:`m` and per unit area. Units on the centered fluxes are track length per unit volume of the interval. In both cases the fluxes are integrated in energy over the group g. The areas and volumes for the three geometries are listed in :numref:`tab9-1-2` .. list-table:: One-dimensional areas and volumes. :align: center :header-rows: 1 :name: tab9-1-2 * - Geometry - Area - Volume * - Slab - 1.0 - :math:`x_{i+1}-x_{i}` * - Cylinder - :math:`2 \pi r_{i}` - :math:`\pi \left(r_{i+1}^{2}-r_{i}^{2}\right)` * - Sphere - :math:`4 \pi r^{2}` - :math:`4/3 \pi \left(r_{i+1}^{3}-r_{i}^{3}\right)` Discrete-ordinates equation for a slab ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Consider a spatial cell bounded by :math:`\left( x_i,x_{i+1}\right)` and write the loss term for flow through the cell in direction :math:`\mu_m`. The net flow in the x-direction out the right side is the product of the angular flux times the area times the solid angle times the cosine of the angle: .. math:: w_{m} \mu_{m} A_{i+1} \psi_{g, i+1, m} . The net loss from the cell is the difference between the flow over both boundaries: .. math:: :label: eq9-1-20 w_{m} \mu_{m}\left(A_{i+1} \psi_{g, i+1, m}-A_{i} \psi_{g, i, m}\right) . The loss in the spatial cell due to collisions is given by the product of the centered angular flux (in per unit volume units) times the total macroscopic cross section times the solid angle times the volume: .. math:: :label: eq9-1-21 w_{m} \sigma_{g, i+1 / 2} V_{i} \psi_{g, i+1 / 2}, m . The sources in direction :math:`\mu_m` are given by the product of the solid angle times the interval volume times the volume-averaged source (sum of fixed, fission, and scattering) in the direction m: .. math:: :label: eq9-1-22 w_{m} V_{i} S_{g, i+1 / 2}, m . The slab equation is obtained by using Eqs. :eq:`eq9-1-20`, :eq:`eq9-1-21`, and :eq:`eq9-1-22` and substituting proper values for area and volume: .. math:: :label: eq9-1-23 w_{m} \mu_{m}\left(\psi_{g, i+l, m}-\psi_{g, i, m}\right)+w_{m} \sigma_{g, i+1 / 2} \psi_{g, i+1 / 2, m}\left(x_{i+l}-x_{i}\right)=w_{m} S_{g, i+1 / 2^{\prime} m}\left(x_{i+l}-x_{i}\right) . In an MM angle quadrature set, there are MM of these equations and they are coupled through the assumption on how the cell-centered flux relates to the boundary angular fluxes, the sources, and the boundary conditions, as will be discussed later. Discrete-ordinates equations for sphere and cylinder ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ The development of the equations for these geometries is analogous to that for the slab except that the leakage terms are more complicated. Consider :numref:`fig9-1-4`. .. figure:: figs/XSDRNPM/fig4.png :align: center :width: 400 :name: fig9-1-4 Angular redistribution in spherical geometry. Recall that the directions are taken with reference to the radius vector for a sphere. A particle traveling in direction :math:`\mu_m` at :math:`r_i` will intersect the radius vector to the next point :math:`r_{i+1}` at a different angle :math:`\mu_{m}^{*}`. The same effect also exists for the cylinder, though in this case the direction coordinates are more complicated. Because of the effect, a loss term is included for the "angular redistribution." It is defined in a manner analogous to Eq. :eq:`eq9-1-20` as .. math:: :label: eq9-1-24 \alpha_{i+1 / 2}, m+1 / 2 \quad \psi_{g, i+1 / 2, m+1 / 2}-\alpha_{i+1 / 2, m-1 / 2} \psi_{g, i+1 / 2, m-1 / 2} where the :math:`\alpha` coefficients are to be defined in such a manner as to preserve particle balance. In this case one speaks of :math:`m + 1` and :math:`m-1 / 2` as the corresponding angles to :math:`\mu_m` on the I + lth and ith boundaries, respectively. (See :numref:`fig9-1-5`) Here we are interested in an angle :math:`\mu_m` at the center of interval i which redistributes to :math:`\mu_{m-\frac{1}{2}}` at boundary i and to :math:`\mu_{m+\frac{1}{2}}` at boundary I + 1. .. figure:: figs/XSDRNPM/fig5.png :align: center :width: 500 :name: fig9-1-5 Angular redistribution. Obviously, it is necessary that the net effect of all redistributing be zero, in order to maintain particle balance. This condition is met if .. math:: :label: eq9-1-25 \sum_{m=1}^{M M} \alpha_{m-1 / 2} \psi_{m-1 / 2}+\alpha_{m+1 / 2} \psi_{m+1 / 2}=\alpha_{1 / 2} \psi_{1 / 2}+\alpha_{M M+1 / 2} \psi_{M M+1 / 2}=0 , where we have dropped the group and interval indexes. In order to develop an expression for determining the :math:`\alpha`'s consider an infinite medium with a constant isotropic flux. In this case, there is no leakage and the transport equation reduces to .. math:: :label: eq9-1-26 \sum_{t} \phi=S . This condition requires that .. math:: :label: eq9-1-27 \mu_{m} w_{m}\left(A_{i+1} \psi_{g, i+1, m}-A_{i} \psi_{g, i, m}\right)+\alpha_{i+1 / 2}, m+1 / 2 \quad \psi_{g, i+1 / 2}, m+1 / 2-\alpha_{i+1 / 2, m-1 / 2} \psi_{g, i+1 / 2, m-1 / 2}=0 , which when we note that all the :math:`\psi` terms in the infinite medium case are equal becomes .. math:: :label: eq9-1-28 \mu_{m} w_{m}\left(A_{i+1}-A_{i}\right)=-\alpha_{m+1 / 2}+\alpha_{m-1 / 2} , which is a recursion relationship for :math:`\alpha`. From Eq. :eq:`eq9-1-25` we see that the conservation requirement can be met if .. math:: :label: eq9-1-29 \alpha_{1 / 2}=\alpha_{M M+1 / 2}=0 for any values of flux, and is, therefore, used to evaluate the :math:`\alpha`'s along with Eq. eq:`eq9-1-27` or eq:`eq9-1-28`. (Note that had we included the redistribution term in the slab equation, Eq. eq:`eq9-1-28` would have given zeroes for the terms, which is as one would expect for this geometry.) The final discrete-ordinates expression for spheres and cylinders is then derived by summing expressions Eqs. eq:`eq9-1-20`, eq:`eq9-1-24`, eq:`eq9-1-21` and setting it equal to expression Eq. eq:`eq9-1-22`. .. _9-1-2-4-3: |Sn| quadratures for slabs ^^^^^^^^^^^^^^^^^^^^^^^^^^ XSDRNPM will automatically calculate quadrature sets for each of the 1-D geometries, or a user can, if he wants, input a quadrature. In the case of the 1-D slab, the quadrature is a double Gauss-Legendre set based on recommendations from :cite:`XSD-carlson_discrete_1965`. The ordering of the directions for a slab is shown in :numref:`fig9-1-6`. .. figure:: figs/XSDRNPM/fig6.png :align: center :width: 500 :name: fig9-1-6 Ordering of |Sn| directions for slabs and spheres. Note that in referring to the quadratures for any of the geometries, we do not attempt to define an explicit area on a unit sphere, but rather speak of characteristic directions with associated weights. In the case of the slab, it is convenient to think of "directions" which are shaped like cones, because of the azimuthal symmetry around the x-axis. In an nth order quadrature, there are n +1 angles with the first angle being taken at :math:`\mu = -1.0`. This first angle is not required for the slab, but is needed for the curvilinear geometries because of the angular redistribution terms, as will be noted later. It is included in the slab case for reasons of uniformity of programming, etc. Several requirements are made regarding the angles and weights in the quadrature set. The arguments relating to angular redistribution can be expected to show that .. math:: :label: eq9-1-30 \sum_{m=1}^{M M} \mu_{m} w_{m}=0.0 . This situation is ensured if the weight of the :math:`\mu = -1.0` direction is zero and the other directions and weights are symmetric about :math:`\mu = 0`. (The :math:`\mu = 0` direction is never included in the quadrature set because of its singularity.) Further, it is required that .. math:: :label: eq9-1-31 \sum_{m=1}^{M M} w_{m}=1.0 . Due to the above normalization of the quadrature weights, the discrete ordinates angular flux is not "per steradian" but rather "per direction-weight". The calculated angular flux can be converted to steradians by dividing by :math:`4\pi`. .. _9-1-2-4-4: |Sn| quadratures for spheres ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ The quadratures generated for spheres are Gauss-Legendre coefficients as recommended by :cite:`XSD-emett_morse_1975`. The ordering and symmetry requirements for spheres are the same as for slabs. In the case of the sphere, the initial (:math:`\mu = -1.0`) direction is required, because the difference equations involve three unknown values for each direction, :math:`\mu_{m}:\psi_m` and the fluxes at the two "redistributed" angles |psilast| and |psinext|. It is obvious that an angle along the radius will not involve the redistribution; hence, the expression for this direction involves only :math:`\psi\left( \mu=-1.0 \right)` as unknowns. Angle 2 proceeds by assuming :math:`\psi_{2-\frac{1}{2}}` is given by :math:`\psi_1` and also uses a weighted diamond difference model to relate :math:`\psi_m`, :math:`\psi_{m-\frac{1}{2}}`, :math:`\psi_{m+\frac{1}{2}}`, as will be described below. Subsequent angles will then have values for :math:`\psi_{m-\frac{1}{2}}` calculated by the previous angle equations. .. _9-1-2-4-5: |Sn| quadratures for cylinders ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ The quadrature sets for cylinders are more complicated (see :numref:`fig9-1-2`) because the directions must be specified with two angles, :math:`\xi` and :math:`\eta` where :math:`\alpha = \sin \eta \cos \xi` and :math:`\beta = \cos \eta`. In this case, practice is to use n/2 levels of directions for an n\ *th* order set. The levels correspond to fixed values of :math:`eta`. The number of angles by level starts with three in level 1, five in level 2, seven in level 3, etc. (Note that since cylindrical geometry is curvilinear, each level will start with a :math:`\eta=\pi` direction that has zero weight for reasons analogous to those given for the spherical case. :numref:`fig9-1-7` shows the ordering of the directions for an *S*\ :sub:`6` quadrature set. Angles 1, 4, and 9 are the starting directions (zero weight) for the levels. .. figure:: figs/XSDRNPM/fig7.png :align: center :width: 500 :name: fig9-1-7 Ordering of the directions for an S\ :sub:`6` cylindrical set. In general, an n\ *th* order quadrature will contain n(n + 4)/4 angles. The cosines, :math:`\mu`, and the weights are stored in two arrays internally in the code; and, since the weights for the 1\ *st*, 4\ *th*, and 9\ *th* angles are zero, the cosines for the corresponding levels are placed in these locations in the arrays. The cylindrical sets are based on Gauss-Tschebyscheff schemes as recommended by :cite:`XSD-emett_morse_1975` with Gaussian quadratures in :math:`\beta` and Tschebyscheff quadratures in :math:`\alpha`. Weighted-difference formulation for discrete-ordinates equations ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In order to solve the discrete-ordinates equations, an assumption is required concerning the relationship of the various flux terms: :math:`\psi_{i, m}, \psi_{i+1, m}, \psi_{i+1 / 2, m}, \psi_{i, m-1 / 2}, \psi_{i+1, m-1 / 2}`. The solution of the equations involves three major loops: an outer loop over energy groups, a loop over angles, and a loop over the spatial mesh. The spatial loop is made either from the origin to the outside boundary or from the outside to the origin, depending on whether the angle is directed outward or inward, respectively. Two models are widely used for expressing flux relationships: (1) the step model and (2) the diamond-difference linear model. The "step model" is a histogram model whereby one sets the centered flux value to the appropriate boundary value, depending on which way the mesh sweep is going. If, for example, the sweep is to the right in space, then .. math:: \psi_{i+1 / 2, m}=\psi_{i, m} or if to the left, .. math:: \psi_{i+1 / 2}, m=\psi_{i+1, m} . Likewise, in angle: .. math:: \psi_{\mathrm{i}+1 / 2}, m=\psi_{i+1, m-1 / 2} . The step model involves a very crude approximation, but has the marked advantage of helping to ensure positivity of flux values as long as scattering sources are positive. In the "diamond-difference" model, the centered fluxes are assumed linear with the edge values: .. math:: \begin{array}{c} \psi_{i+1 / 2}=0.5\left(\psi_{i}+\psi_{i+1}\right) \\ \psi_{m}=0.5\left(\psi_{m-1 / 2}+\psi_{m+1 / 2}\right) \end{array} Unfortunately, though the linear model is clearly a better model than the step model, care must be taken by selecting a fine spatial mesh, or the linear extrapolation can lead to negative flux values. In some cases, the situation is so severe that it is impractical to take enough mesh points to eliminate the problems. Because of these difficulties XSDRNPM uses a different approach, as described below. The weighted diamond difference model :cite:`XSD-rhoades_new_1977` was developed in an attempt to take advantage of the "correctness" of the linear model, while retaining the positive flux advantages of the step model. A solution in some |Sn| codes is to use the linear model in all cases where positive fluxes are obtained and to revert to step model otherwise. Unfortunately, this method leads to artificial distortions in the fluxes. Note that if one writes .. math:: :label: eq9-1-32 \psi_{i+1 / 2}=a \psi_{i}+(1-a) \psi_{i+1} .. math:: :label: eq9-1-33 \psi_{m}=b \psi_{m-1 / 2}+(1-b) \psi_{m+1 / 2} that the same expression can be used to express linear or step model (e.g., :math:`a = b = \frac{1}{2}` is equivalent to linear, while :math:`a = b = 1.0` can be used for the step model). In the weighted model, the intention is to use the linear model when fluxes are positive but to select values for a and b in the range .. math:: :label: eq9-1-34 1 / 2 \leq a \text { or } b \leq 1.0 that ensure positivity, if the source is positive. At this point, it is convenient to rewrite the discrete-ordinates expression in a simplified notation, without the obvious subscripts on energy group, angle, etc. .. math:: :label: eq9-1-35 w \mu\left(A_{i+1} \psi_{i+1}-A_{i} \psi_{i}\right)+\alpha_{m+1 / 2} \psi_{m+1 / 2}-\alpha_{m-1 / 2} \psi_{m-1 / 2}+w \sigma V \psi=w V S . Combining Eqs. :eq:`eq9-1-35` and :eq:`eq9-1-32` or :eq:`eq9-1-33` yields the following expressions for :math:`\psi_{1+1}` and :math:`\psi_{m+1 / 2}`: .. math:: :label: eq9-1-36 \psi_{i+1}=\frac{S V+C_{2} \psi_{m-1 / 2}+\left[\mu A_{i}-(1-a) D_{1}\right] \psi_{i}}{a D} .. math:: :label: eq9-1-37 \psi_{m+1 / 2}=\frac{S V+C_{1} \psi_{i}+\left[\frac{\alpha_{m-1 / 2}}{w}-(1-b) D_{2}\right] \psi_{m-1 / 2}}{b D} , where .. math:: :label: eq9-1-38 C_{1}=\mu\left[A_{i}+A_{i+1}\left(\frac{1}{\alpha}-1\right)\right] .. math:: :label: eq9-1-39 C_{2}=\frac{\alpha_{m-1 / 2}}{w}+\frac{\alpha_{m+1 / 2}}{w}\left(\frac{1}{b}-1\right) .. math:: :label: eq9-1-40 D=\Sigma V_{i}+\frac{\mu A_{i+1}}{a}+\frac{\alpha_{m+1 / 2}}{w b} .. math:: :label: eq9-1-41 D_{1}=D-\frac{\mu A_{i+1}}{a} .. math:: :label: eq9-1-42 D_{2}=D-\frac{\alpha_{m+1 / 2}}{w b} . In determining a and b, the "theta-weighted" model uses arbitrary multipliers :math:`\theta`\ :sub:`s` on SV and :math:`\theta`\ :sub:`n` on the :math:`C_2` |psilast| or :math:`C_1\ \psi_i`` terms in Eqs. :eq:`eq9-1-36`  and :eq:`eq9-1-37`. (In :cite:`XSD-tomlinson_flux_1980`, a thorough discussion is given on the history of using different choices of :math:`\theta_s` and :math:`\theta_n` and the advantages and disadvantages of each method.) In XSDRNPM, a value of 0.9 is used for :math:`\theta_s` and :math:`\theta_n` following the practice in the DOT-IV code.7 For :math:`\psi_{i+1}` in Eq. :eq:`eq9-1-36` to be positive, the numerator should be positive, thereby requiring .. math:: :label: eq9-1-43 \left[\mu A_{i}-(1-a) D_{1}\right] \psi_{i} 0 \right) = 0`, etc.). 2. Reflected boundary -- the incoming angular flux at a boundary is set equal to the outgoing angular flux in the reflected direction (e.g., at the left-hand boundary of a slab), .. math:: \psi_{i n}(\mu)=\psi_{\text {out}}(-\mu) 3. Periodic boundary -- the incoming angular flux at a boundary is set equal to the outgoing angular flux in the same angle at the opposite boundary. 4. White boundary -- the angular fluxes of all incoming angles on a boundary are set equal to a constant value such that the net flow across the boundary is zero, that is, .. math:: \psi_{i n}=\frac{\sum_{m}^{o u t} w_{m} \mu_{m} \psi_{m}}{\sum_{m}^{i n} w_{m}\left|\mu_{m}\right|} .. This boundary condition is generally used as an outer-boundary condition for cell calculation of cylinders and spheres that occur in lattice geometries. 5. Albedo boundary -- this option is for the white boundary condition except that a user-supplied group-dependent albedo multiplies the incoming angular fluxes. This option is rarely used, as it is difficult to relate to most practical situations. .. _sec-module.xsdrnpm.fixed_sources: Fixed sources ~~~~~~~~~~~~~ Two types of inhomogeneous or fixed sources can be specified in XSDRNPM. In the first case, an isotropic group-dependent volumetric source can be specified for any or all spatial intervals in a system. In the second case, an angle- and group-dependent boundary source can be specified for any or all boundaries between spatial intervals in a system, excepting the left-most boundary. In this case, one specifies not a source but a flux condition on the boundary. If one uses the "track length" definition for flux, it is easy to show that the flux condition is related to a source condition by .. math:: :label: eq9-1-45 \psi_{m}^{s}=\frac{S_{m}}{\mu_{m}} . (This equation says that an isotropic source on a boundary would be input as a constant divided by the cosine of the direction.) In conventional fixed-source calculations, the total fixed source in the system can be normalized to an input parameter, XNF. In the volumetric source case, the source values will be normalized such that .. math:: :label: eq9-1-46 X N F=\sum_{g=1}^{I G M} \sum_{i=1}^{I M} Q_{g, i} V_{i} , and in the boundary source case, .. math:: :label: eq9-1-47 X N F=\sum_{g=1}^{I G M} \sum_{i=1}^{I M} A_{i+1} \sum_{m=1}^{M M} \mu_{m} \psi_{m}^{s}(g, i) w_{m} . In the case where both volumetric and boundary sources are specified, the two sums are normalized to XNF. The fixed source for a generalized adjoint calculation corresponds to a particular response ratio of interest. The generalized adjoint equation only has a solution for responses that are ratios of linear functionals of the flux, and in this case the source will contain both positive and negative components. These types of sources are described in more detail in ref:`9-1-2-15-1` and in the SAMS chapter, in *Generalized Perturbation Theory*. .. _9-1-2-8: Dimension search calculations ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ XSDRNPM has three options for searching for dimensions such that the system will produce a specified effective multiplication factor, *k*\ :sub:`eff`. The options are selected by a parameter IEVT in the 1$ array and are as follows: 1. zone width search (IEVT = 4), 2. outer radius search (IEVT = 5), 3. buckling search (IEVT = 6). By default, the search is made to produce a *k*\ :sub:`eff` value of unity. For *k*\ :sub:`eff`\ 's other than unity, IPVT (3$ array) is set to unity and the desired *k*\ :sub:`eff` is input as PV (5* array). Other input parameters which apply specifically to all search calculations are in the 5* array and are EV, the starting eigenvalue guess, EVM, the eigenvalue modifier, EQL, the eigenvalue convergence, and XNPM, the new parameter modifier. These parameters are discussed in more detail below. Zone-width search (IEVT = 4) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ With this option, one can vary the width of any or all zones in a case. Note that it is also possible to change zone widths at different rates. This option requires the inputting of a zone width modifier array (41*) which is used to specify the relative movements of the zones according to the following expression: .. math:: \Delta Z_{j}^{f}=\Delta Z_{j}^{i}\left(1+E V^{*} Z M_{j}\right) where :math:`\Delta Z_{j}^{i}, \Delta Z_{j}^{f}` are the initial and final widths of zone j, respectively, *ZM*\ :sub:`j` is the zone width modifier for the zone (as input in the 41* array), and EV is the final "eigenvalue" for the problem. Note that a zero value for ZM will specify a fixed zone width. Negative values for ZM are allowed. Outer radius search (IEVT = 5) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ With this option, all zones are scaled uniformly in order to make the system attain the specified *k*\ :sub:`eff`. The final zone widths are found by multiplying the initial values by the final "eigenvalue:" .. math:: Z_{j}^{f}=E V\left(Z_{j}^{i} / Z_{p}^{i}\right) . Buckling search (IEVT = 6) ^^^^^^^^^^^^^^^^^^^^^^^^^^ This option is used to search for "transverse" dimensions that will yield a specified *k*\ :sub:`eff` for a system. This means that the search is for the height for a 1-D cylinder or the y- and/or z-dimensions in a 1-D slab. For this option, the final dimensions are given by DY = *DY*\ :sub:`0` :math:`\times` EV, and DZ = *DZ*\ :sub:`0` :math:`\times` EV, where *DY*\ :sub:`0` , *DZ*\ :sub:`0` are the initial dimensions input in the 5* array. .. _9-1-2-8-4: Search calculation strategy ^^^^^^^^^^^^^^^^^^^^^^^^^^^ All the "dimension searches" use the same simple strategy. The calculations start by using the input eigenvalue (EV from the 5* array) to determine initial dimensions for the system. These dimensions allow the code to calculate a *k*\ :sub:`eff` . The eigenvalue modifier (EVM in the 5* array) is then used to change the dimensions as follows: IOPT = 4 (Zone width search) .. math:: \Delta Z_{j}^{f}=\Delta Z_{j}^{i}\left[1+(E V M+E V)^{*} Z M_{j}\right] IOPT = 5 (Outer radius search) .. math:: \Delta Z_{j}^{f}=(E V M+E V)\left(\Delta Z_{j}^{i}\right) IOPT = 6 (Buckling search) DY = *DY*\ :sub:`0` (EV + EVM) DZ = *DZ*\ :sub:`0` (EV + EVM). The new dimensions are then used in a new calculation which determines a second *k*\ :sub:`eff` value. XSDRNPM searches for a unity value of *k*\ :sub:`eff` by default; however, when IPVT = 1 (3$ array), a nonunity value can be specified in PV (5* array) and the search will be made on this value. Once the two *k*\ :sub:`eff`\ 's are known, which are based on eigenvalues of EV and EV + EVM, respectively, a linear fit is used to project to the next value for EV. This yields an expression of the form .. math:: E V_{\text {next}}=E V M \frac{\left(P V-k_{1}\right)}{\left(k_{2}-k_{1}\right)}+E V , where *k*\ :sub:`1` and *k*\ :sub:`2` are the first and second value of *k\ eff ,* respectively. After this iteration, the procedure is to fit a quadratic to the three most recent *k*\ :sub:`eff` values in order to obtain an estimate for the next EV. The procedure continues until a relative convergence of EQL (5* array) or better is obtained on EV. To prevent oscillations in the search, extrapolations are limited by XNPM, the new parameter modifier from the 5* array. Alpa Search ~~~~~~~~~~~ It is possible to make some of the searches described in :numref:`9-1-2-8` in a more "direct" fashion than the strategy described in :numref:`9-1-2-8-4`. XSDRNPM has two such options: (1) the alpha search and (2) a direct buckling search. These are described below. .. _9-1-2-9-1: Alpha search ^^^^^^^^^^^^ The time-dependent form of the Boltzmann equation is identical with Eq. :eq:`eq9-1-1`, except for the inclusion of a time-gradient term on the left-hand side: .. math:: \frac{1}{\mathrm{v}} \frac{\partial \psi(r, E, \Omega, t)}{\partial t} . All other flux terms in the expression also would include the time (t) argument. In some analyses it is reasonable to assume that the time variation of the flux is exponential, that is, .. math:: \psi(r, E, \Omega, t)=\psi(r, E, \Omega) e^{a t} . When this variation is introduced into the expanded form of Eq. :eq:`eq9-1-1`, the exponential terms all cancel leaving a leading term: .. math:: \frac{\alpha}{\mathrm{v}} \psi(r, E, \Omega) which is in the same form as the :math:`\Sigma_t \psi` term. If one considers integrating over energy, angle, and space, the following expression can be derived: .. math:: P-A-L-\alpha V=0 where where P :math:`\equiv` production in the system, A :math:`\equiv` absorptions in the system, L :math:`\equiv` leakage from the system, V :math:`\equiv` :math:`\int_{0}^{\infty} d E \int_{0}^{4 \pi} d \overset{\rightharpoonup}{\Omega} \int_{s y s t e m} d \overset{\rightharpoonup}{r} \frac{\psi(\overset{\rightharpoonup}{r}, E, \overset{\rightharpoonup}{\Omega})}{\mathrm{v}}` Since all terms other than :math:`\alpha` can be determined from a calculation, it is possible to determine :math:`\alpha` directly, thereby avoiding a scheme like that used for dimension searches. In the balance expression, the fission component of the production term is adjusted for the case of a non-unity *k*\ :sub:`eff` value (IPVT = 1 in the 3$ array). An :math:`\alpha`-search has several practical applications. If, for example, a subcritical assembly is pulsed by a source, the time-dependence of the flux is expected to die off exponentially. Another way to interpret the :math:`\alpha`-search is as that amount of 1/v absorber which could be added or taken away from a system in order to achieve criticality. This number could be of interest when certain control materials are used, such as :sup:`10`\ *B*\ :sub:`5` , which is a "1/v" material. Direct-buckling search ^^^^^^^^^^^^^^^^^^^^^^ A "direct"-buckling search can be made using a procedure analogous to that described in :numref:`9-1-2-9-1`. Recall that the buckling is introduced in order to represent a transverse leakage through the use of a *DB*\ :sup:`2` :math:`\psi` term. This suggests that the foregoing balance expression be written: .. math:: P-A-L-\alpha D B^{2} X=0 , where .. math:: X \equiv \int_{0}^{\infty} d E \int_{0}^{4 \pi} d \Omega \int_{\text {system }} d r \psi(r, E, \Omega) . In this case, the diffusion coefficients, *D*\ :sub:`g`, are determined from .. math:: D_{g}=\frac{1}{3 \Sigma_{t r_{g}}} , where .. math:: \Sigma_{t r_{g}}=\Sigma_{t_{g}}-\Sigma_{1_{g}} , and :math:`\Sigma`\ :sub:`1` is the within-group term from the *P*\ :sub:`1` scattering matrixes: .. math:: \Sigma_{1_{\mathrm{g}}}=\sum_{t}\left(\mathrm{~g} \rightarrow \mathrm{g}^{\prime}\right) . The original *B*\ :sup:`2` value is determined as specified in :numref:`9-1-2-12`, and the :math:`\alpha` is the square of the search parameter, that one multiplies by the original *B*\ :sup:`2` value in order to determine the final buckling and, hence, the dimensions of the system. .. _9-1-2-10: Iteration and convergence tests ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Two parameters are used to specify the required levels of convergence on an XSDRNPM calculation. These are EPS and PTC, both given in the 5* array. The flux calculations proceed through a series of iterations until either convergence is achieved or the specified iteration limit is exceeded. The basic iteration strategy in XSDRNPM is now described. The discrete-ordinates difference equation is solved for the first angle and the first energy group. This sweep generally is made from the last interval boundary to the center of the system, and it uses the flux guess supplied as part of the input along with the boundary conditions. The second angle is then calculated, etc., until all angles in the quadrature are treated. At the end of this sweep, new scalar fluxes for the midpoints of all intervals have been determined. The angular sweep continues until either the point scalar fluxes are converged to within PTC or until the code makes IIM inner iterations. An exception to this "inner iteration" pattern occurs on the first outer (defined below) iteration whenever a fission density guess is used, instead of the flux guess. In this case, the program uses 1-D diffusion theory to determine a scalar flux value for all intervals and the angular sweeps are not made until the second outer iteration. After the first group is completed, the calculation goes to the second group and repeats the above procedure. This continues until all groups have been treated. The pass through all groups, angles, and intervals is called an outer iteration. Most of the convergence checks on the outer iteration have to do with reaction rates involving all energy groups and are made against the EPS parameter mentioned above. For a coupled neutron-gamma problem, outer iterations are only performed for the neutron groups until convergence is achieved, then the final converged pass is made over all groups. In discussing these checks, it is convenient to define several terms: Q :math:`\equiv` total fixed source in the system F :math:`\equiv` total fission source in the system D :math:`\equiv` total outscatter rate in the system D :math:`\equiv` :math:`\sum_{i}^{intervals} \sum_{g}^{groups } \sum^{groups}_{\mathrm{g}^{\prime} \neq \mathrm{g}} \psi_{i, g} \sigma_{g \rightarrow g^{\prime}} \mathrm{V}_{\mathrm{i}}` :math:`\psi_{i, g}` :math:`\equiv` scalar flux in intervals i and group g :math:`\sigma_{g \rightarrow g^{\prime}}` :math:`\equiv` macroscopic scattering cross section from group g to group :math:`\mathrm{V}_{\mathrm{i}}` :math:`\equiv` volume of interval i k :math:`\equiv` outer iteration number IGM :math:`\equiv` total number of energy groups :math:`\lambda_{k}` :math:`\equiv` :math:`\frac{Q+F_{k}}{Q+F_{k-1}}` :math:`G_{k}` :math:`\equiv` :math:`\frac{D_{k}}{Q+F_{k}}` :math:`\lambda_{k}^{\prime}` :math:`\equiv` :math:`\frac{G_{k-1}}{G_{k}}` :math:`U_{k}` :math:`\equiv` total upscatter rate = :math:`\sum_{i} \sum_{g} \sum_{g^{\prime}0`, by the scalar flux, which is positive. This procedure gives usable values for most cases. Weighting of :math:`\bar{v}` ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ In weighting parameters such as :math:`\bar{v}`, the average number of neutrons produced per fission, one is interested in preserving the fission source; therefore, the weighting is over :math:`\sigma_f \psi` instead of just :math:`\psi`. The weighting procedure in XSDRNPM is to calculate :math:`\left(\overline{v \sigma_{f}}\right)_{G}` and (:math:`\sigma_f`)\ *G* using the appropriate choice from Eqs. :eq:`eq9-1-59`, :eq:`eq9-1-60`, or :eq:`eq9-1-61`. Then .. math:: \bar{v}_{G}=\frac{\left(\overline{v \sigma_{F}}\right)_{G}}{\left(\sigma_{f}\right)_{G}} . Transport cross sections ^^^^^^^^^^^^^^^^^^^^^^^^ Transport cross sections are not as directly related to the physical properties of a material as much as other group-averaged values. Instead of a reaction rate, these numbers must attempt to preserve a "flux gradient," which not only depends on the cross sections of the material, but is also very strongly influenced by the geometry and the other nuclides in the vicinity of a material. Two options are provided in XSDRNPM to generate transport cross sections-options based on the "consistent" and "inconsistent" methods for solving the *P\ l* transport equations. These approximations are referred to as the "outscatter" and "inscatter" approximations because of the nature of the equations used. Outscatter approximation (inconsistent method) '''''''''''''''''''''''''''''''''''''''''''''' In the outscatter approximation, the assumption is made that .. math:: :label: eq9-1-62 \sigma_{t r}^{g}=\sigma_{t}^{g}-\bar{\mu}^{g} \sigma_{s}^{g} . When one notes that .. math:: :label: eq9-1-63 \bar{\mu}^{g} \equiv \frac{\sigma_{1}^{g}}{3 \sigma_{0}^{g}} and that .. math:: :label: eq9-1-64 \sigma_{1}^{g}=\sum_{g^{\prime}} \sigma_{1}\left(g \rightarrow g^{\prime}\right) , where the :math:`\sigma_{l}\left(g \rightarrow g^{\prime}\right)` terms are the *P*\ :sub:`1` coefficients of the scattering matrix, the origin of the term "outscatter" to designate the approximation is evident. Inscatter approximation (consistent method) ''''''''''''''''''''''''''''''''''''''''''' In the "consistent" solution of the *P*\ :sub:`1` point transport equations, it can be shown that .. math:: :label: eq9-1-65 \sigma_{t r}(E)=\sigma_{t}(E)-\frac{1}{3 J(E)} \int_{0}^{\infty} d E^{\prime} \sigma_{1}\left(E^{\prime} \rightarrow E\right) J\left(E^{\prime}\right) , where :math:`J\left(E^{\prime}\right)` is the current. If one multiplies the equation by J(E), integrates over group g, and converts to group-averaged form by dividing by :math:`\int_{g} J(E) d E` the following expression is derived: .. math:: :label: eq9-1-66 \sigma_{t r}^{g}=\sigma_{t}^{g}-\frac{1}{3 J_{g}} \sum_{g^{\prime}} \sigma_{1}\left(g^{\prime} \rightarrow g\right) J_{g^{\prime}} . This is the "inscatter" approximation. It is consistent because the transport values are explicitly derived from the *P*\ :sub:`0` and *P*\ :sub:`1` equations. As a general rule, the transport values from this treatment are "better" than those from the "inconsistent" treatment. However, in some cases (notably hydrogen at lower energies), negative numbers may be calculated which are unusable and the more approximate approach must be used. Weighting function for transport cross section '''''''''''''''''''''''''''''''''''''''''''''' Unfortunately, the matter of choosing a current to use in the "transport" weighting is not simple. In real problems, currents are positive-negative as a function of energy and space. When cross sections are averaged over positive-negative functions, the "law-of-the-mean" no longer holds and the average value can be anything. This unbounded nature leads to real problems in diffusion calculations. Approximations that inherently guarantee positive currents are generally used in other codes that circumvent the positive-negative problem. For example, in *B\ n* theory the current is given by .. math:: j \sim B \psi where B and :math:`\psi` are both positive. In XSDRNPM, more direct routes that ensure positivity are taken (e.g., one might set :math:`\mathrm{W}_{\mathrm{g}} \equiv\left|\mathrm{W}_{\mathrm{g}}\right|`). This is crudely supported by the following argument: Consider a 1-D cylindrical calculation. In two dimensions, the current is a vector combination, that is, .. math:: :label: eq9-1-67 J=J_{r}+J_{z} . In XSDRNPM, the z direction is treated by using a buckling approximation, that is, .. math:: :label: eq9-1-68 J_{z}=B \psi . In the weighting calculation, we want to weight over the magnitude of the current. In XSDRNPM, the z current is imaginary, since we are not calculating a z-direction: .. math:: :label: eq9-1-69 J=J_{r}+i B \psi . The magnitude of a complex quantity is .. math:: :label: eq9-1-70 J=\frac{\left(J_{r}+i B \psi\right)\left(J_{r}-i B \psi\right)}{\sqrt{\left(\text {Value}_{r}\right)^{2}+B^{2} \psi^{2}}} , which is always positive. In a discrete-ordinates calculation, the current is easily obtained since it is the first flux moment. XSDRNPM has the following options for calculating the current: 1. .. math:: :label: eq9-1-71 J_{g}=\sqrt{\left(\psi_{1}^{g}\right)^{2}+\left(D B \psi_{g}\right)^{2}} 2. .. math:: :label: eq9-1-72 J_{g}=\left|\psi_{1}^{g}\right| 3. .. math:: :label: eq9-1-73 J_{g}=D B^{2} \psi_{g}+\int_{0}^{1} d \mu \mu \psi\left(g, r_{\text {outside}}, \mu\right) 4. .. math:: :label: eq9-1-74 J_{g}=\frac{\psi_{0}^{g}}{\sum_{t}^{g}} 5. .. math:: :label: eq9-1-75 J_{g}=D B \psi_{g} The first option is the recommended option; option 2 treats only the current in the primary direction; option 3 will always be positive and is a weighting over the total leakage from the system. Option 4 is sometimes referred to as a "bootstrap" approximation; option 5 is equivalent to that used in codes that employ |Bn| theory. Once the currents are determined, the transport values are determined as set forth in the equations discussed above. For example, consider cell weighting and the "inscatter" approximation, .. math:: :label: eq9-1-76 \sigma_{t r}^{G}=\frac{\sum_{j} N^{j} \sum_{g \varepsilon G}\left\{J_{g} \sigma_{t}^{g}-\frac{1}{3} \sum_{g^{\prime}} \sigma_{1}\left(g^{\prime} \rightarrow g\right) J_{g}^{\prime}\right\}}{\bar{N} \sum^{IZM}_{j} \sum_{g \varepsilon G} J_{g}} For cell weighting and the "outscatter" approximation, .. math:: :label: eq9-1-77 \sigma_{t r}^{G}=\frac{\sum_{j} N^{j} \sum_{g \varepsilon G} J_{g}\left\{\sigma_{t}^{g}-\frac{1}{3} \sum_{g^{\prime}} \sigma_{1}\left(g^{\prime} \rightarrow g\right)\right\}}{\bar{N} \sum_{j}^{IZM} \sum_{g \varepsilon G} J_{g}} Adjoint calculations ~~~~~~~~~~~~~~~~~~~~ XSDRNPM will, upon option, solve the adjoint forms of the 1-D transport equation. Several special procedures apply for the adjoint calculation: 1. The iteration pattern discussed in :numref:`9-1-2-10` is reversed in energy. The scheme starts with the last (lowest energy) group and proceeds to the first group. 2. The angular quadrature is treated as if it has the reverse directions associated with the angle (e.g., many quadratures start with :math:`\mu_1=-1.0`). In the adjoint case, this direction is for :math:`\mu_1 = +1.0`. 3. All edits of input fluxes and collapsed cross sections are given in their normal ordering, as opposed to many codes which require their reversal. Adjoint calculations have many uses and advantages. As opposed to the forward calculation which yields particle density values, the adjoint fluxes are more abstract and can be thought of as particle importance. Consider, for example, the problem of determining the response of a detector to particles as a function of their energy and direction. Assume the detector is a cylindrical fission chamber that utilizes a foil of :sup:`235`\ U. The most obvious way to attack this problem is to mock up the detector and make a series of runs that contain sources of identical strength in different angles and energy groups. If an *S*\ :sub:`8` (24 angles) quadrature were used with 50 energy groups, the 12 :math:`\times` 50 or 600 independent calculations could be used to completely determine the responses. (Here we have taken note that half of the angles will point away from a detector and, hence, produce no response.) The adjoint calculation produces all 600 responses in one run that is no more difficult and time consuming than the typical forward case. In the adjoint case, the detector response (i.e., the fission cross section of :sup:`235`\ U would be specified as a source in the foil region and the adjoint fluxes given as a function of energy and angle would be interpreted as the source of neutrons necessary to produce a response of the magnitude to which one required the response to be normalized. A second important use of adjoint calculations is to establish good biasing factors for Monte Carlo codes. Two recent reports :cite:`XSD-hoffman_xsdrnpm-s_1982,XSD-hoffman_optimization_1982` discuss the time and accuracy advantages of this approach for shielding and criticality applications and give some real examples as to how to make the calculations. Perturbation theory uses adjoint and forward fluxes in combination in a manner that determines changes in responses that would arise from changing parameters used in a calculation. One :cite:`XSD-weisbin_review_1979` interesting application is to determine the sensitivity of a calculation to changes in one or more cross-section value changes. .. _9-1-2-15-1: Generalized adjoint calculations ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Generalized adjoint solutions are needed for generalized perturbation theory (GPT) applications such as sensitivity and uncertainty analysis. The generalized adjoint solution differs from both a conventional external source case and a fundamental mode eigenvalue calculation: It has the transport operator for an adjoint eigenvalue equation, but contains a fixed source term as well. The eigenvalue transport operator is singular, which forces certain restrictions on the allowable sources. The generalized adjoint source term is associated with a particular response ratio of interest in a critical system, such as .. math:: R=\frac{\sum_{g=1}^{I G M} \sum_{i=1}^{I M} H_{N}(g, i) \psi_{i, g} V_{i}}{\sum_{g=1}^{I G M} \sum_{i=1}^{I M} H_{D}(g, i) \psi_{i, g} V_{i}} where H\ :sub:`N` and H\ :sub:`D` are response functions defining the response of interest and :math:`\psi_{i, g}` is the scalar flux from a prior forward eigenvalue solution of the same problem. The generalized adjoint source for this response is defined as .. math:: Q^{*}(g, i) \equiv \frac{1}{R} \frac{\partial R}{\partial \psi_{i, g}}=\frac{H_{N}(g, i)}{\sum_{g=1}^{IGM} \sum_{i=1}^{I M} H_{N}(g, i) \psi_{i, g} V_{i}}-\frac{H_{D}(g, i)}{\sum_{g=1}^{I G M} \sum_{i=1}^{I M} H_{D}(g, i) \psi_{i, g} V_{i}} The above source expression is computed automatically whenever XSDRN is executed in the TSUNAMI-1D sequence, but must it be computed and input by the user if XSDRN is run standalone for a generalized adjoint case. In order to obtain a unique solution and avoid numerical problems, the generalized adjoint solution is "normalized" to contain no fundamental harmonic of the adjoint eigenvalue calculation. This is done by sweeping out the adjoint fundamental mode "contamination" from the fission source after each outer iteration, as described in the SAMS chapter, in *Generalized Perturbation Theory*. This operation requires both forward and adjoint eigenvalue solutions from prior XSDRN calculations. External files containing the fundamental mode forward and adjoint fluxes are input to the generalized adjoint calculation. Unlike conventional fixed source and eigenvalue calculations, the generalized adjoint flux has both negative and positive components. This causes some XSDRN acceleration features such as space-dependent rebalance and group-banding to not function properly; and thus these are turned off internally. Typically the outer iterations for generalized adjoint solution converge much slower than an eigenvalue calculation. More background on GPT and generalized adjoint properties can be found in :cite:`XSD-williams_perturbation_1986`. Coupled neutron-photon calculations ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In XSDRNPM, it is possible to do a neutron or a photon calculation, depending only on whether the input libraries are for neutrons or gamma rays. It is also possible to do a "coupled neutron-photon" calculation which automatically determines the gamma-ray sources arising from neutron induced interactions in its photon calculation. This calculation, of course, requires an input cross-section library containing three classes of data: 1. neutron cross sections, including neutron-to-neutron transfer matrices, 2. photon production cross sections (i.e., neutron-to-gamma transfer matrices), and 3. gamma-ray cross sections, including gamma-ray-to-gamma-ray transfer matrices. At present there are no provisions for treating neutrons produced from gamma interactions other than having the user introduce these sources by hand in a sort of iterative procedure, though this reaction is certainly not unknown (cf., deuterium, beryllium-9, and carbon-13). There are several cases where the (:math:`\gamma,n`) interaction can be important. If, for example, one looks at neutrons in a water-moderated pool reactor or in a water spent fuel storage tank at large distances from the fuel, the dominant source is from the neutrons produced by the deuterium in the water. Normally the neutron-photon calculation requires no more input than a single particle run, except in the case where extraneous neutron and/or gamma-ray sources need to be specified. Most output edits will be split into a neutron and a gamma-ray part and will be labeled as such Diffusion theory option ~~~~~~~~~~~~~~~~~~~~~~~ XSDRNPM can make a 1-D diffusion theory calculation in user-specified energy groups (enter 1's for the appropriate groups of the 46$ array). In this case, the *P*\ :sub:`1` diffusion equations :cite:`XSD-alder_methods_1963` are solved: .. math:: :label: eq9-1-78 A_{I+1} \psi_{1, I+1}-A_{I} \psi_{1, I}+\sigma_{0}\left(\psi_{0, I}+\psi_{0, I}\right)=S_{0}^{*} .. math:: :label: eq9-1-79 \bar{A}_{I}\left(\psi_{0, I+1}-\psi_{0, I}\right)+\sigma_{1}\left(\psi_{1, I+1}+\psi_{1, I}\right)=S_{1}^{*} , where .. math:: \psi_{1} \equiv P_{1} \text { current } .. math:: :label: eq9-1-80 \sigma_{0}=\left[\Sigma_{t}-\Sigma_{0}(g \rightarrow g)\right] \frac{V_{I}}{2.0} .. math:: :label: eq9-1-81 \sigma_{1}=\left[3.0 \Sigma_{t}-\Sigma_{1}(g \rightarrow g)\right] \frac{V_{I}}{2.0} .. math:: S_{0}^{*}=P_{0} \text { sources less the within-group term } .. math:: S_{1}^{*}=P_{1} \text { sources less the within-group term } .. math:: \bar{A}_{I}=\frac{A_{I}+A_{I+1}}{2} .. math:: V_{I}=\text { volume of Ith interval. } Solving Eq. :eq:`eq9-1-78` for :math:`\psi_{0, I+1}` and substituting into Eq. :eq:`eq9-1-79`, one can write .. math:: :label: eq9-1-82 \psi_{1, I+1}=\frac{\bar{A}_{I} S_{0}^{*}-2 \sigma_{0} \bar{A}_{I} \psi_{0, I}-\sigma_{0} S_{1}^{*}+\psi_{1, I}\left(\sigma_{0} \sigma_{1}+\bar{A}_{I} A_{I}\right)}{\bar{A}_{I} A_{I+1}-\sigma_{0} \sigma_{1}} . Solving Eq. :eq:`eq9-1-79` for :math:`\psi_{1, I}` and substituting into Eq. :eq:`eq9-1-78` , one can write .. math:: :label: eq9-1-83 \psi_{0, I+1}=\frac{A_{I+1} S_{1}^{*}-2 \sigma_{1} \bar{A}_{I} \psi_{1, I}-\sigma_{1} S_{0}^{*}+\psi_{0, I}\left(\sigma_{0} \sigma_{1}+\bar{A}_{I} A_{I+1}\right)}{\bar{A}_{I} A_{I+1}-\sigma_{0} \sigma_{1}} . If one assumes .. math:: :label: eq9-1-84 \psi_{1, I+1}=P_{I+1} \psi_{0, I+1}-q_{I+1} .. math:: :label: eq9-1-85 \psi_{1, I}=P_{I} \psi_{0, I}-q_{I} and plugs Eqs. :eq:`eq9-1-82` and :eq:`eq9-1-83` into , solving for :math:`\psi_{1, I}` yields: .. math:: :label: eq9-1-86 \begin{array}{l} \psi_{1, I}=\frac{P_{I+1}\left(\sigma_{0} \sigma_{1}+\bar{A}_{I} A_{I+1}\right)+2 \sigma_{0} \bar{A}_{I}}{\sigma_{0} \sigma_{1}+\bar{A}_{I} A_{I}+P_{I+1} 2 \sigma_{1} \bar{A}_{I}} \psi_{0, I} \\ -\frac{S_{0}^{*}\left(\bar{A}_{I}+\sigma_{1} P_{I+1}\right)-S_{1}^{*}\left(\sigma_{0}+A_{I+1} P_{I+1}\right)+q_{I+1}\left(\bar{A}_{I} A_{I+1}-\sigma_{0} \sigma_{1}\right)}{\sigma_{0} \sigma_{1}+\bar{A}_{I} A_{I}+P_{I+1} 2 \sigma_{1} \bar{A}_{I}} \end{array} which by inspection and comparison with Eq. :eq:`eq9-1-85` gives expressions for *P*\ :sub:`I` and *q*\ :sub:`I`. Equations :eq:`eq9-1-84` and :eq:`eq9-1-85` can be substituted into Eq. :eq:`eq9-1-78` and solved for :math:`\psi_{0, I+1}`: .. math:: :label: eq9-1-87 \psi_{0, I+1}=\frac{\psi_{0, I}\left(A_{I} P_{I}-\sigma_{0}\right)+A_{I+1} q_{I+1}-A_{I} q_{I}+S_{0}^{*}}{A_{I+1} P_{I+1}+\sigma_{0}} , which is the expression used in XSDRNPM. The procedure solves for arrays of *P*\ :sub:`I` and *q*\ :sub:`I` which are plugged back into the above expression to yield the fluxes. .. _9-1-2-18: Infinite-medium theory option ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ It is possible to force the flux calculation in XSDRNPM to use an infinite medium option for any or all energy groups by entering 2's in the appropriate positions in the 46$ array. When a multiregion calculation is requested, the program will first determine spatially averaged cross sections to use in the infinite-medium expression and then place the infinite-medium flux in all spatial regions for use in any subsequent calculations, such as cross-section weighting. All higher flux moments are set to zero. The balance expression is .. math:: :label: eq9-1-88 \left[\Sigma_{t}^{g}-\Sigma(g \rightarrow g)\right] \psi_{g}=\frac{1}{k} F_{g}+S_{g} , where *F*\ :sub:`g` is the fission source in group g, *S*\ :sub:`g` is the sum of any fixed source and inscattering source, and :math:`\sum_{t}^{g}` and :math:`\Sigma(\mathrm{g} \rightarrow \mathrm{g})` are homogenized total and group-to-group scattering cross sections. .. _9-1-2-19: B\ :sub:`N` theory option ~~~~~~~~~~~~~~~~~~~~~~~~~ XSDRNPM can make a |Bn| calculation in user-specified energy groups (enter 3's for the appropriate groups of the 46$ array). As in the infinite-medium option discussed in :numref:`9-1-2-18`, cross sections in a multiregion system are not homogenized. The |Bn| equations :cite:`XSD-henryson_mc_1976` can be written .. math:: :label: eq9-1-89 \begin{aligned} \frac{l+1}{2 l+1} i B \psi_{l+1} &+\frac{l}{2 l+1} i B \psi_{l-1}+\Sigma_{t} \psi_{l}=S(u) \delta_{l}^{0} \\ &+\int d u^{\prime} \Sigma_{s}^{l}\left(u^{\prime} \rightarrow u\right) \psi_{l}\left(u^{\prime}\right) \quad l=0,1, \quad, N-1 \end{aligned} .. math:: :label: eq9-1-90 \frac{N}{2 N+1} i B \psi_{N-1}+\gamma \Sigma_{t} \psi_{N}=\int d u^{\prime} \Sigma_{g}^{N}\left(u^{\prime} \rightarrow u\right) \psi_{N}\left(u^{\prime}\right) .. math:: :label: eq9-1-91 \psi_{-1}=0 .. math:: :label: eq9-1-92 \gamma=1+\frac{N+1}{2 N+1} \frac{i B}{\Sigma_{T}} \frac{Q_{N+1}\left(-\Sigma_{t} / i B\right)}{Q_{N}\left(-\Sigma_{t} / i B\right)} where :math:`\delta_{l}^{0}` is the Kronecker delta function and *Q*\ :sub:`N` is a Legendre polynomial of the second kind. In mutigroup form, the above expressions become: .. math:: :label: eq9-1-93 \begin{aligned} \frac{l+1}{2 l+1} i B \psi_{l+1}^{g} &+\frac{l}{2 l+1} i B \psi_{l-1}^{g}+\Sigma_{t}^{g} \psi_{l}^{g}=S_{g} \delta_{l}^{0} \\ &+\sum_{g^{\prime}} \Sigma_{l}\left(g^{\prime} \rightarrow g\right) \psi_{l}^{g} \quad l=0,1, \quad N-1 \end{aligned} .. math:: :label: eq9-1-94 \frac{N}{2 N+1} i B \psi_{N-1}^{g}+\gamma \Sigma_{t}^{g} \psi_{N}^{g}=\sum_{g^{\prime}} \Sigma_{N}\left(g^{\prime} \rightarrow g\right) \psi_{N}^{g} .. math:: :label: eq9-1-95 \psi_{-1}^{g}=0 . In Eqs. :eq:`eq9-1-89` and :eq:`eq9-1-93`, the S term includes fission, fixed, and scattering source components. XSDRNPM Input Data ------------------ The input data to XSDRNPM consist of a title card and up to five data blocks, depending on the particular problem. All data in these blocks are entered using the FIDO formats discussed in the chapter on FIDO. In the description that follows, the quantity in square brackets is the number of items in an array. The quantity in braces is the condition which requires the array to be input. If no condition is specified, an array must be input. Default parameters that are used if an array is not input are shown in parentheses if nonzero. \******************************************************************\* Title Card - Format (20A4) This is the title card for the problem. It will be used to label the problem output. .. centered:: Data Block 1 This block contains information to set up various array dimensions and most calculational and editing options. Various convergence criteria and special constants can be input. 0$$ Logical Assignments [17] 1. LPUN -- Logical number for punched card output (7). 2. LRSF -- Random-access scratch for fluxes (10). 3. LAWL -- Input AMPX working library (4). 4. LANC -- ANISN binary or CCCC ISOTXS library (20). 5. LOWL -- Output weighted library (3). 6. LANG -- Angular flux scratch file (16). 7. LSFF -- Scalar flux output file (17). 8. LSF2 -- Sequential scratch space (18). 9. LSF3 -- Sequential scratch space (19). 10. LRSM -- Random-access scratch for macroscopic cross sections (8). 11. LRSX -- Random-access scratch for macroscopic cross sections (9). 12. LACF -- Activities output file (75). 13. LBTF -- Balance table output file (76). 14. LIDF -- Input dump file (73). 15. LSEN -- Sensitivity output file (6). 16. LEXT -- Not used (0). 17. LISF -- Scalar flux input guess file (0). 1$ General Problem Description [15] 1. IGE - problem geometry (1) 0 - homogeneous (This causes a BN calculation to be made for all zones – :numref:`9-1-2-19`) 1 - slab 2 - cylinder 3 - sphere 2. IZM -- number of separate material regions or zones. (1) 3. IM -- number of spatial intervals in the problem. (1) 4. IBL -- the boundary condition at the left-hand boundary of the system. (1) 0 - vacuum boundary 1 - reflected boundary 2 - periodic boundary 3 - white/albedo boundary Boundary conditions are discussed in :numref:`sec-module.xsdrnpm.bc`. 5. IBR - the boundary condition at the right-hand boundary of the system. (1) 0 - vacuum boundary 1 - reflected boundary 2 - periodic boundary 3 - white/albedo boundary 6. MXX -- the number of compositions used in the problem mock-up. 7. MS -- the number of entries in the mixing table which specifies the makeup of the MXX compositions. 8. ISN -- the order of angular quadrature to be used. If ISN > 0, XSDRNPM will calculate an angular quadrature for the appropriate geometry. If ISN < 0, the calculation is bypassed, and the user must supply a set in the 42# and 43# arrays. 9. ISCT -- the order of scattering. Flux moments will be calculated through this order. 10. IEVT -- the type of calculation. (1) 0 - fixed source 1 - k calculation 2 - :math:`\alpha` calculation (flux is assumed to have an :math:`e^{-\alpha t}` time variation) 3 - inoperable in present version 4 - zone width search 5 - outer radius search 6 - buckling search 7 - direct buckling search 11. IIM -- the inner iteration maximum used in an Sn calculation. (10) 12. ICM -- the outer iteration maximum. (10) After ICM outer iterations, the problem will be forced into the termination phase and the program will continue as if full convergence was attained. A message to this effect is printed. 13. ICLC -- theory option. (0) 0 - use |Sn| theory always N - use alternative theory (diffusion, infinite medium, or Bn) for N outer iterations, after which revert back to Sn theory. \-N - always use alternative theory 14. ITH -- forward/adjoint selector. (0) 0 - solve the forward Boltzmann equation. 1 - solve the adjoint Boltzmann equation. 15. IFLU -- Generalized adjoint calculation flag. (0) 0 - standard calculation 1 - Generalized adjoint calculation. Requires input forward and adjoint fundamental mode fluxes on units 31 and 32, respectively 2$ Editing and Special Options [10] 1. IPRT -- fine-group mixture cross-section edits. (-1) \-2 - no edits \-1 - edit 1-D cross sections 0-N - edit through PN cross sections. 1-D edits are made, also. 2. ID1 -- flux editing options. (0) +-----------------+-----------------+-----------------+-----------------+ | ID1 | Print | Print | Punch\ *a* | | | | | | | | Angular fluxes | Scalar fluxes | Scalar fluxes | +-----------------+-----------------+-----------------+-----------------+ | -1 | No | No | No | +-----------------+-----------------+-----------------+-----------------+ | 0 | No | Yes | No | +-----------------+-----------------+-----------------+-----------------+ | 1 | Yes | Yes | No | +-----------------+-----------------+-----------------+-----------------+ | 2 | No | Yes | Yes | +-----------------+-----------------+-----------------+-----------------+ | 3 | Yes | Yes | Yes | +-----------------+-----------------+-----------------+-----------------+ | *a* The | | | | | fluxes will | | | | | be punched | | | | | in a format | | | | | suitable for | | | | | restarting | | | | | an XSDRNPM | | | | | calculation. | | | | +-----------------+-----------------+-----------------+-----------------+ 3. IPBT -- balance table edits. (0) \-1 - none 0 - make fine-group balance tables 1 - make fine- and broad-group balance tables 4. ISX -- broad-group flux edit as a function of interval. (0) (0/1 = no/yes) 5. ISEN -- outer iteration acceleration. Input a zero. (0) 6. IBLN -- control number of outer iteration groups. (0) 7. NBANDS -- number of flux rebalance bands. (0) < 0, then this is the number of bands in the thermal range. 8. IFSN -- If > 0 means no fission source if IEVT=0. (0) 9. ISQ3 -- sequence number of file opened on unit LOWL. (1) 10. IDM4 -- not used. (0) The structure of the "activity" and the "balance table" files are described in Appendix A. .. 3$ Various Options [12] 1. IFG -- cross-section weighting. (0) 0 - none required 1 - collapse cross sections 2. IQM -- volumetric sources. (0) 0 - none N - N volumetric source spectra will be input in the 31* array 3. IPM -- boundary sources. (0) 0 - none N - N boundary source spectra will be input in the 32* array 4. IFN -- starting guess. (0) 0 - flux guess (33# array) 1 - fission density guess (34# array) 5. ITMX -- maximum time allowed for the flux calculation in minutes. A value of zero specifies that the calculation should not be terminated because of time; otherwise the problem will be forced into the termination phase when ITMX is exceeded. (0) Bear in mind that this is an internal timing check and has no connection with operator or system terminations due to excessive times. 6. IDAT1 -- external data storage. (0) 0 - keep all arrays in core if possible 1 - store mixture cross sections externally on a direct access device 2 - store cross sections and fixed sources externally on direct access devices 7. IPN -- diffusion coefficient option for transverse leakage corrections. (3) 0 - determine a transport cross section for each zone using P0 and P1 cross sections and, hence, a diffusion coefficient from 1/3 :math:`\Sigma`\ :sub:`tr`. 1 - spatially average the diffusion coefficients determined as for the above option and use it for all zones. 2 - spatially average the transport cross sections for all zones and determine a diffusion coefficient to be used in all zones by taking one over three times this value. 3 - flux weight the transport cross sections for all zones and determine a diffusion coefficient to be used in all zones by taking one over three times this value. Normally, the first option (IPN = 0) is adequate; however, in cases involving regions of low concentration (near void) and, hence, very low transport cross sections, the very large diffusion coefficients lead to nonphysical behavior. In this case, the IPN = 3 option has been demonstrated to operate the best. 8. IDFM -- density factors. (0) 0 - none 1 - read in density factors in the 38* array 9. IAZ -- activity calculation trigger. (0) 0 - none N - calculate the reaction rates by material zone for N different processes specified in the 49$ and 50$ arrays 10. IAI -- spatially dependent activity rates. (0) 0 - none 1 - calculate reaction rates in each interval for IAZ processes 11. IFCT -- thermal upscatter scaling. (0) 0 - none 1 - use upscatter scaling for accelerated problem convergence 12. IPVT -- parametric eigenvalue search. (0) 0 - none 1 - a search calculation will be made for an eigenvalue equal to PV 2 - an :math:`\alpha` loss term with :math:`\alpha` = PV will be added to the transport equation. The term :math:`\alpha` will depend on the IEVT option selected .. 4$ Cross-Section Weighting Options :cite:`XSD-emett_morse_1975` {IFG = 1} .. note:: Currently XSDRNPM does not support outputting weighted cross section libraries in a format other than AMPX. The following items are still allowed to be entered into XSDRNPM input files for legacy inputs, but anything not relating to AMPX library format will have no effect. .. 1. ICON -- type of weighting. (See :numref:`9-1-2-14`) \-N - inner cell (with N zones in the cell). Cell weighting is performed over the N innermost regions in the problem. Nuclides outside these regions are not weighted. \-1 - cell 0 - zone 1 - region or vein 3. ITP -- collapsed output format desired. 0-19 -- cross sections are written only in the AMPX weighted library formats on logical 3. A weighted library is always written when IFG= 1. 20-29 -- (deprecated feature). 30-39 -- (deprecated feature). 40-49 -- (deprecated feature). The various values of ITP (modulo 10) are used to select the different transport cross-section weighting options mentioned earlier. The options are: ITP = 0 => :math:`\sqrt{\left(\psi_{1}^{g}+\left(D G \psi_{g}\right)\right)^{2}}` ITP = 1 => absolute value of current ITP = 2 => :math:`\mathrm{DB}^{2} \psi_{\mathrm{g}}+` outside leakage ITP = 3 => :math:`\psi / \sum_{\mathrm{t}}^{\mathrm{g}}` ITP = 4 => :math:`\mathrm{DB} \psi_{\mathrm{g}}` ITP = other values are reserved for future development and should not be used. 4. IPP -- weighted cross-section edit option -1. -2 -- none -1 -- edit 1-D data 0-N -- edit through *P\ N* cross-section arrays. 1-D edits are given. 5. IHTF -- (deprecated feature) 6. NDSF -- (deprecated feature) 7. NUSF -- (deprecated feature) 8. IAP -- (deprecated feature) 9. (deprecated feature) 5* Convergence Criteria and Assorted Constants [12] 1. EPS -- overall problem convergence. (10:sup:`-4`) 2. PTC -- scalar flux convergence. (10:sup:`-5`) 3. XNF -- normalization factor. (1.0) When IEVT = 0, the fixed sources are normalized to XNF. For IEVT > 0, the fission source is normalized to XNF. When XNF = 0.0, no normalization is made. XNF should only be specified as 0 for a fixed source problem (IEVT = 0). 4. EV -- starting eigenvalue guess for search calculations. 5. EVM -- eigenvalue modifier used in a search calculation. The following is a tabulation of recommended values for EV and EVM. +------+------------------------+-----------------------+---------+ | IEVT | Calculation type | EV | EVM | +------+------------------------+-----------------------+---------+ | 0 | Fixed source | 0 | 0 | +------+------------------------+-----------------------+---------+ | 1 | k-calculation | 0 | 0 | +------+------------------------+-----------------------+---------+ | 2 | Direct |alph|-search | 0 | 0 | +------+------------------------+-----------------------+---------+ | 3 | -- | -- | -- | +------+------------------------+-----------------------+---------+ | 4 | Zone width search | 0 | -0.1 | +------+------------------------+-----------------------+---------+ | 5 | Outer radius search | Starting outer radius | -0.1*EV | +------+------------------------+-----------------------+---------+ | 6 | Buckling search | 1.0 | -0.1 | +------+------------------------+-----------------------+---------+ | 7 | Direct buckling search | 0.0 | 0.0 | +------+------------------------+-----------------------+---------+ 6. BF -- buckling factor (1.420892). This parameter is two times the multiplier on the "extrapolation" distance used to determine where a linearly extrapolated line from the asymptotic flux shape would go to zero (e.g., for slabs, the extrapolation distance is  :math:`0.71 \lambda_{t r}` and, hence, BF  1.42). 7. DY -- first transverse dimension in centimeters used in a buckling correction to calculate leakage normal to the principal calculation direction (i.e., the height of a slab or a cylinder). 8. DZ -- second transverse dimension in centimeters used for a buckling correction (i.e., the width of a slab). 9. VSC -- void streaming correction. This is the height of a void streaming path in a cylinder or slab in centimeters. See :numref:`9-1-2-13`. 10. PV -- parametric eigenvalue or value for :math:`\alpha` used when IPVT > 0. When IPVT = 1 and IEVT > 1, this is the value of k-effective on which the search calculation is to be made (0.0) 11. EQL -- eigenvalue convergence for a search. (10\ :sup:`-3`) 12. XNPM -- new parameter modifier used in search calculations. (0.75) T Terminate data block. .. centered:: Data Block 2 This block contains information on the composition of the materials used in the calculation. Also included is an array to select special cross sections for ANISN and an array to identify cross sections written on the CCCC ISOTXS library. .. note:: Currently XSDRNPM does not support outputting weighted cross section libraries in any format other than AMPX. XSDRNPM will still read the deprecated arrays, but they will have no effect. .. 10$ (deprecated array) 12$ (deprecated array) 11$ Composition Numbers in Mixing Table [MS] If the input multigroup library was previously self-shielded by running the XSProc module, the composition numbers are the mix numbers given in the READ COMP block of XSProc. If the input library has not been previously self-shielded, enter all zeros. .. note:: this is a new array added in SCALE 6.2 which MUST be present when using a microscopic library produced by the XSProc module. It may be omitted if using a macroscopic library from XSProc 13$ Local Mixture Numbers in Mixing Table [MS] The values range from 1 to MXX, and are used only in XSDRN for referencing mixtures in the mixing table. 14$ Isotope Identifiers in Mixing Table [MS] A set of data with this identification must be on unit LAWL, the XSDRNPM working library, though the code will not make checks to ensure this is the case. 15* Isotope Concentrations in Mixing Table [MS] 16$ (deprecated array) 18U (deprecated array) T Terminate Data Block .. centered:: Data Block 3 {IEVT = 0} This block is used to specify fixed sources. .. 30$ Source Spectrum Number by Interval [IM] 31* Volumetric Source Spectra [IQM*IGM] 32* Surface Source Spectra [IPM*IGM*MM] Each of the IQM or IPM spectra is specified in the 31\* or 32* array and are stacked one after the other in that array. If both volumetric and surface sources are used in the same problem, the surface source number is multiplied by (IQM + 1) when entered in the 30$ array. A volumetric spectrum will consist of IGM (number of energy groups) entries which are the relative integrated values of the source in each group. A surface source is always assumed to be on the right-hand side of a spatial interval. It is input as was the volumetric source, except that each group contains entries for the MM angles in the |Sn|  quadrature chosen for the problem. Note that a surface source is an **integrated** value and is actually a flux condition in the Sn|equations. In the 30$ array, a zero entry specifies that no source is in an interval. .. centered:: Data Block 4 This data block contains starting guesses for fluxes and fission densities. If fluxes are read from an external device (LISF>0), this data block is omitted. Both arrays in this block are double-precision arrays, which will require the use of the "#" array designator; otherwise the number of entries read into the arrays will be incorrect or may contain nonsensical values for the starting guess. 33# Flux Guess [IM*IGM] {IFN=0} A guess for the scalar flux is specified in the order: ((FLUX(I,J),I=1,IM),J=1,IGM), where IM is the number of spatial intervals and IGM is the total number of energy groups. For fixed-source problems, without better information, use zeroes. For eigenvalue problems, a nonzero flux guess must be used. The fluxes punched by using the ID1 parameter in the 2$ array can be used here in restart calculations. 34# Fission Density Guess [IM] {IFN=1} This is a guess at the number of fission neutrons produced in an interval. When IFN = 1, XSDRNPM uses diffusion theory for the first outer iteration, after which it reverts to the normal mode. T Terminate this data block. .. centered:: Data Block 5 This block contains the remaining data needed for an XSDRNPM calculation. .. 35\* Interval Boundaries [IM+1] (cm) This array describes the spatial quadrature into which the problem model is divided. The boundaries are nonnegative for curvilinear geometries and in increasing order. Usually they will start with a zero value, though this is not necessary. The origin for slab geometry may be negative. 36$ Zone Number for Each Spatial Interval [IM] Spatial zones should be contiguous. 38\* Density Factors by Interval [IM] {IDFM>0} (1.0) These factors are used to effect a density variation in a mixture as a function of spatial interval. Zero for a density factor affords a convenient way for modeling a void region. 39$ Mixture Numbers by Zone [IZM] The mixture that is in a zone is specified here. 40$ Order of Scattering by Zone [IZM] (ISCT) This is the order, *l*, of the \*S\ n Pl \*\ calculation which is desired in a zone. This number should be no larger than ISCT. 41\* Radius Modifiers by Zone [IZM] {IEVT=4} These parameters specify the relative movement of the width of a zone in a zone width search. A zero indicates that a zone's width is fixed. (See :numref:`9-1-2-8`) 42# Weights of the Angles in the Discrete-Ordinates Quadrature MM = ISN + 1 for slabs and spheres, ISN*(ISN + 4)/4 for a cylinder. Input this set if you wish to override those provided by XSDRNPM. See :numref:`9-1-2-4-3`, :numref:`9-1-2-4-4`, or :numref:`9-1-2-4-5`. 43# Cosines of the Angles in the Discrete-Ordinates Quadrature [MM] Input this set if you wish to override those provided by XSDRNPM. See :numref:`9-1-2-4-3`, :numref:`9-1-2-4-4`, or :numref:`9-1-2-4-5`. 46$ Calculational Option by Group [IGM] {ICLC>0} 0 - perform discrete-ordinates calculation for this group. 1 - perform a diffusion calculation for this group for ICLC outer iterations; use discrete-ordinates theory after this. 2 - perform a homogeneous calculation for this group for ICLC outer iterations; then revert back to discrete-ordinates theory. 3 - perform a homogeneous calculation using *B\ n* theory for this group. 47\* Right-Boundary Albedos by Group [IGM] {IBR=3} (1.0) A right-boundary albedo is specified for each fine group. The return current is distributed isotropically in angle. 48\* Left-Boundary Albedos by Group [IGM] {IBL=3} (1.0) As for the 47\* array but for the left boundary. Note that if IBR or IBL is 3 and the corresponding 47\* or 48* array is omitted, XSDRNPM fills the array with 1.0's effecting a boundary with zero net current and with isotropic neutron return. 49$ Material Number for Activities [IAZ] {IAZ>0} 50$ Process Number for Activities [IAZ] {IAZ>0} The 49$ and 50$ arrays provide a means of obtaining the activity (reaction rate) for any process for which cross sections are available in the XSDRNPM calculation. A representative activity table entry is shown below: +----------------------+-----+ | ACTIVITY TABLE ENTRY | | +----------------------+-----+ | \49$ | 50$ | +----------------------+-----+ | M | N | +----------------------+-----+ This entry specifies that the activity N for material M be calculated for all parts of the system which contain that material. If N is < 0, a density of 1.0 is used to calculate activities instead of densities in the mixing table. Allowable process identifiers are given in Appendix M4.B. If M is < 0, the activities by interval will be multiplied by a 1-D area as follows: 1.0 for a slab (IGE=1) 2 :math:`\times` r for a cylinder (IGE=2) 4 :math:`\times` r\ :sup:`2` for a sphere (IGE=3) 51$ Broad-Group Numbers [IGM] {IFG>0} This array contains the broad-group numbers into which the fine groups are collapsed in a flux-weighting calculation. For example, if the first five fine groups are to be collapsed to the first broad group, the first five entries in the 51$ array are 1, etc. A zero value can be used to ignore (or truncate) a group. 52$ Lower Band Group Numbers [NBANDS] Group numbers giving the last group in a flux rebalance band. Overrides the default set supplied by XSDRNPM. Abbreviated XSDRNPM input description ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +------------------------------------+-----------------------------------+ | Title Card - (18A4) | | +------------------------------------+-----------------------------------+ | DATA BLOCK 1 | | +------------------------------------+-----------------------------------+ | \-1$ - Storage Assignment | \1$ - General Description [15] | | | | | \1. Maximum Length of Storage Array| \1. IGE - geometry | | | | | \0$- Logical Assignments [17] | \2. IZM - number of zones | | | | | \1. Punched Cards (7) | \3. IM - number of intervals | | | | | \2. Direct Access - Fluxes (10) | \4. IBL - left boundary condition | | | | | \3. Working Library (4) | \5. IBR - right boundary condition| | | | | \4. ANISN or ISOTXS (20) | \6. MXX - number of mixtures | | | | | \5. Weighted Library (3) | \7. MS - mixing table length | | | | | \6. Angular Fluxes (16) | \8. ISN - angular quadrature | | | | | \7. Scalar Fluxes (17) | \9. ISCT - order of scattering | | | | | \8. Scratch (18) | \10. IEVT - problem type | | | | | \9. Scratch (19) | \11. IIM - inner iteration maximum| | | | | \10. Direct Access (8) | \12. ICM - outer iteration maximum| | | | | \11. Direct Access (9) | \13. ICLC - optional theory | | | | | \12. Activities (75) | \14. ITH - forward or adjoint | | | | | \13. Balances (76) | \15. IFLU - GPT calculation flag | | | | | \14. Input Dump (73) | | | | | | \15. Sensitivity Data (0) | | | | | | \16. Not Used (0) | | | | | | \17. Flux Guess (0) | | +------------------------------------+-----------------------------------+ .. |sig| replace:: :math:`\sigma` .. |neq| replace:: :math:`\neq` +----------------------------------------+-----------------------------------+ | DATA BLOCK 1 (continued) | | +----------------------------------------+-----------------------------------+ | \2$ - Editing and Control Options [10] | \3$ - Other Options [12] | | | | | \1. Fine-Group-Mixture Edit | \1. IFG - Weighting Option | | | | | \2. Fine-Group-Flux Edit | \2. IQM - Volumetric Sources | | | | | \3. Balance Table Edit | \3. IPM - Boundary Sources | | | | | \4. Broad-Group-Flux Edit | \4. IFN - Starting Guess | | | | | \5. Not Used | \5. ITMX - Time Shut-off | | | | | \6. Outers-Group-Limit-Option | \6. IDAT1 - Storage Scheme | | | | | \7. Number of Bands | \7. IPN - Diff. Coeff. Option | | | | | \8. Suppress Fixed-Source Fission | \8. IDFM - Density Factors | | | | | \9. Not Used | \9. IAZ - Activities by Zone | | | | | \10. Not Used | \10. IAI - Activities by Interval | | | | | | \11. IFCT - Thermal Scaling | | | | | | \12. IPVT - Search on k |neq| 1 | +----------------------------------------+-----------------------------------+ | \4$ - Weighting Options [9] | \5\* - Floating Point Values [12] | | | | | \1. Type of weighting | \1. EPS - overall convergence | | | | | \2. Number of broad groups | \2. PTC - Point flux convergence | | | | | \3. Output format | \3. XNF - normalization | | | | | \4. Edit option | \4. EV - starting guess for search| | | | | \5. |sig|\ :sub:`T` position or number | \5. EVM - modifier for search | | | | | \6. |sig|\ :sub:`gg` position | \6. BF - buckling factor | | | | | \7. Table length | \7. DY - height | | | | | \8. ANISN edit option | \8. DZ - width | | | | | \9. Extra cross sections | \9. VSC - void streaming height | | | | | | \10. PV - k for search | | | | | | \11. EQL - search convergence | | | | | | \12. XNPM - search modifier | | | | | | T Terminate Data Block 1 | +----------------------------------------+-----------------------------------+ +-----------------------------------------------------------------------+ | Title Card - (18A4) | +-----------------------------------------------------------------------+ | DATA BLOCK 2 | +-----------------------------------------------------------------------+ | \10$ CCCC Transport Cross Section Selector [IHTF] | | | | \11$ Composition numbers | | | | \12$ Additional Processes to be put on ANISN Library [MSCM] | | | | \13$ Mixture Numbers [MS] | | | | \14$ Isotope Identifiers [MS] | | | | \15\* Isotope Concentrations [MS] | | | | \16$ CCCC Identifiers from Working Library [IHTF] | | | | \18U or 18# CCCC Identifiers on ISOTXS [IHTF] | | | | T Terminate the second Data Block. | +-----------------------------------------------------------------------+ | DATA BLOCK 3 | +-----------------------------------------------------------------------+ | {Required only when IQM or IPM is nonzero.} | | | | \30$ Spectrum Number by Interval (IQM>0) or | | | | Right-Hand Interval Boundary (IPM>0) [IM] | | | | \31\* Volumetric Sources [IQM*IGM] | | | | \32\* Boundary Sources [IPM*IGM*MM] | | | | T Terminate the third Data Block. | +-----------------------------------------------------------------------+ | DATA BLOCK 4 | +-----------------------------------------------------------------------+ | {When fluxes are read from an external device-IFN>3-this block is | | omitted.} | | | | \33# Flux Guess [IM*IGM] {IFN=0} | | | | \34# Fission Density Guess [IM] {IFN=1} | | | | T Terminate the fourth Data Block. | +-----------------------------------------------------------------------+ +-----------------------------------------------------+ | Title Card - (18A4) | +-----------------------------------------------------+ | DATA BLOCK 5 | +-----------------------------------------------------+ | \35\* Interval Boundaries [IM + 1] | | | | \36$ Zone Numbers by Interval [IM] | | | | \38\* Density Factors [IM] | | | | \39$ Mixture Number by Zone [IZM] | | | | \40$ Order of Scattering by Zone [IZM] | | | | \41\* Radius Modifier by Zone [IZM] {IEVT=4} | | | | \42# Discrete-Ordinates Cosines [MM] | | | | \43# Discrete-Ordinates Weights [MM] | | | | \46$ Alternative Theory Selection [IGM] {ICLC>0} | | | | \47\* Right-Boundary Albedos [IGM] | | | | \48\* Left-Boundary Albedos [IGM] | | | | \49$ Activity Material or Nuclide Numbers [IAZ] | | | | \50$ Activity Process Numbers [IAZ] (See Appendix B)| | | | \51$ Broad-Group Numbers [IGM] {IFG>0} | | | | \52$ Lower-Band-Group Numbers [NBANDS] | | | | T Terminate the fifth Data Block. | +-----------------------------------------------------+ XSDRNPM Input/Output Assignments -------------------------------- The following logical units can be required in an XSDRNPM calculation. .. table:: :class: longtable +---------------+-----------------------------------+ | Default | Purpose | | | | | Logical Unit | | +===============+===================================+ | \3 | Weighted Library (Produced by | | | XSDRNPM) | +---------------+-----------------------------------+ | \4 | Working Library (Input) | +---------------+-----------------------------------+ | \5 | Card Input | +---------------+-----------------------------------+ | \6 | Standard Output | +---------------+-----------------------------------+ | \7 | Punch Fluxes or ANISN Libraries | +---------------+-----------------------------------+ | \8 | Scratch Direct-Access Device for | | | External Cross-Section Storage | +---------------+-----------------------------------+ | \9 | Scratch Direct-Access Device for | | | Mixing and Weighting Operations | +---------------+-----------------------------------+ | \10 | Scratch Direct-Access Device for | | | External Flux Moment Storage | +---------------+-----------------------------------+ | \16 | Angular Fluxes | +---------------+-----------------------------------+ | \17 | Scalar Fluxes | +---------------+-----------------------------------+ | \18 | Scratch Device | +---------------+-----------------------------------+ | \19 | Scratch Device | +---------------+-----------------------------------+ | \20 | ANISN Binary Libraries or CCCC | | | ISOTXS Interface | +---------------+-----------------------------------+ | \31 | Fundamental mode forward angular | | | flux input unit for generalized | | | adjoint calculation (iflu>0) | +---------------+-----------------------------------+ | \32 | Fundamental mode adjoint angular | | | flux input unit for generalized | | | adjoint calculation (iflu>0) | +---------------+-----------------------------------+ | \73 | Dump of Input and Derived Data | +---------------+-----------------------------------+ | \75 | Activities | +---------------+-----------------------------------+ | \76 | Balance Tables | +---------------+-----------------------------------+ .. _sec-module.xsdrnpm.examples: XSDRN Sample Problem -------------------- In this section, the input and output for a sample case involving a bare, homogeneous 16-cm sphere of a 93% enriched *UO\ 2-F2* solution is presented. The input AMPX working format cross-section library will be read from logical unit 4. The input working library is a temporary 238-group library created by CSAS-mg containing the following nuclides: +------------------------------------+-----------------------------------+ | Nuclide | Identifier\ :sup:`a` | +====================================+===================================+ | :sup:`235`\ U\ :sub:`92` | 92235 | +------------------------------------+-----------------------------------+ | :sup:`238`\ U\ :sub:`92` | 92238 | +------------------------------------+-----------------------------------+ | :sup:`1`\ H | 1001\ :sup:`b` | +------------------------------------+-----------------------------------+ | :sup:`16`\ O\ :sub:`8` | 8016 | +------------------------------------+-----------------------------------+ | :sup:`19`\ F\ :sub:`9` | 9019 | +------------------------------------+-----------------------------------+ | *a* These are the identifiers | | | of the sets of data on the | | | library created for the | | | problem. | | | | | | *b* Water-bound kernel. | | +------------------------------------+-----------------------------------+ An S\ :sub:`16` quadrature is selected with 32 spatial intervals. Activities are requested for :sup:`235`\ U\ :sub:`92` absorption and fission and :sup:`238`\ U\ :sub:`92` absorption. .. code-block:: scale =xsdrn 93% uo2f2 solution sphere 1$$ 3 1 32 1 0 1 5 16 1 1 30 20 0 0 0 2$$ a7 -1 e 3$$ 1 a9 3 1 e 4$$ 0 4 0 -1 5 e 5** 1.-7 1.-8 e 1t 13$$ 1 1 1 1 1 14$$ 1001 8016 9019 92235 92238 15** 6.548-2 3.342-2 6.809-4 3.169-4 2.355-5 16$$ 1001 8016 9019 92235 92238 18## 6hh-1 6ho-16 6hf-19 6hu-235 6hu-238 2t 33## f1 4t 35** 31i0.0 16.0 36$$ f1 49$$ 92235 92235 92238 50$$ 18 27 27 51$$ 74r1 74r2 45r3 45r4 5t end Output Cross Sections --------------------- One of the most common uses of XSDRNPM is to collapse cross sections and write them onto a file for input into another computer code. At present, two options are allowed: 1. Output library in AMPX Working Library format. This library is always written when cross sections are collapsed. 2. Output library in ANISN binary or BCD *format* :cite:`XSD-joanou_gam-ii_1963`. The binary library is written on logical 20 by default; the BCD library is produced on logical 7. The identifiers on this library range from 1 to the total number of blocks required to accommodate the data. Error messages -------------- During the course of a problem, XSDRNPM makes many checks to determine if input data are in the required form. If inconsistencies are spotted, a message is printed, and the problem may be terminated. Some of these messages are listed below along with a brief description of their possible cause. DATA N N arrays have been input with incorrect length. See the messages produced as arrays are read to determine specific arrays. SN-1 N The Nth entry in the |Sn|  quadrature directions is zero. (43# array) SN-2 0 The |Sn|  weights do not sum to 1.0. (42# array) SN-3 0 The sum of the products of |Sn|  weights and directions is not 0.0, that is, the directions are not symmetric. (42# and 43# arrays) FIXS 0 Fixed source calculation requested (IEVT=0) and total fixed sources are zero. Q-HI N A volumetric source spectrum numbered N has been requested where N is greater than IQM. B-HI N A boundary source spectrum numbered N has been requested where N is greater than IPM. FISS 0 IEVT\ :math:`\geq` 1 and the total fission source is zero. 8101 N The N\ :sup:`th` radius is negative. 8102 N The N\ :sup:`th` radius is less than the (N-1)\ :sup:`th` radius. 8103 N Zone N dimensions have become negative in a zone width search. MIX N A request has been made to use the N\ :sup:`th` component from the mixing table, but this nuclide has not been requested from a library. Several messages may be encountered during an XSDRNPM run which indicate problems with either the code or the setup: ROOT L The polynomials from which the default angles are derived are incorrect. BAND N The number of bands specified is greater than the number of groups. WAT1 N The number of sets of weighted cross sections is incorrect. WAT2 N The number of sets of weighted cross sections is incorrect. .. code-block:: none :class: long *******************************************************INFACE************************************ *** WARNING YOU REQUESTED nn SETS OF CROSS SECTIONS, BUT ONLY mm SETS WERE FOUND ************* *******************************************************MIXEM************************************* MAGIC WORD ERROR DETECTED IN MIXEM, MW= xx *******************************************************SPOUT************************************* NO PROGRAMMING PROVIDED FOR ITP= nn *******************************************************FIDAS************************************* ****** ERROR nn ENTRIES REQUIRED IN xx? ARRAY DATA EDIT CONTINUES *******************************************************FIDAS************************************* ****** FILL OPTION IGNORED IN xx? ARRAY *******************************************************FIDAS************************************* ****** WARNING ADDRESS aa IS BEYOND LIMITS OF xx? ARRAY *******************************************************STORXS************************************ MAGIC WORD ERROR IN STORXS - GROUP gg MIXTURE mm L ln MAGIC WORD mw IGI ig MXI mx MNI mn LLL 11 *******************************************************STORXS************************************ ERROR #1 IN STORXS.$ *******************************************************STORXS************************************ ERROR #2 IN STORXS.$ For the cryptic messages above (e.g., the last two), contact the code developers as to their possible cause. .. only:: html .. rubric:: References .. bibliography:: zSCALE.bib :keyprefix: XSD- :labelprefix: XSD :cited: Appendices ---------- .. toctree:: XSDAppAB