Simple H in H2O

This example serves as a very simplified input that would allow a user to prepare the thermal scattering law \(S(\alpha,\beta)\) for describing hydrogen bound in water. These values are for instructional purposes only. Note that parentheses following the forward slash will indicate the card number.


Cards 1-2

leapr
  24                  / (1) output tape number
  'Simplified H(H2O)' / (2) output tape title
  • The zeroth line defines the module, which is LEAPR.

  • Typically, the first card is used to specify input and output files, however since LEAPR does not read in any auxiliary files, only the output file need be specified. In this example, the output file will be located in the (unless otherwise specified) bin directory as “tape24”.

  • The second line (card 2) contains the descriptive title that will be used in the final LEAPR output.


Card 3

leapr
  24                  / (1) output tape number
  'Simplified H(H2O)' / (2) output tape title
  1 1 100             / (3) # temps, print, phonon sum number
  • Here, we want to process the material at a single temperature, so the number of temperatures is set to 1.

  • In addition to the output file (for us, tape24), NJOY also returns a summary output file, which is traditionally labeled “output”. To control the amount of detail used when preparing this document, the second input of card 3 is the print control option. This value can be (0,1,2) which indicate increasing level of detail.

  • Every LEAPR run requires that the incoherent scattering component be calculated via phonon expansion method (discrete oscillators and/or diffusive behavior can be included, if requested). Thus, the final input value is the phonon expansion number, which indicates the number of terms \(N\) that should be computed when approximating the sum in the phonon expansion method.

\[S^{(s)}_{n.sym}(\alpha,\beta) \approx \mathrm{e}^{-\alpha\lambda_s}\sum_{n=0}^N \frac{\alpha^n}{n!} W_n(\beta)\]

Card 4

leapr
  24                  / (1) output tape number
  'Simplified H(H2O)' / (2) output tape title
  1 1 100             / (3) # temps, print, phonon sum number
  1 1001 0 0 1e-75    / (4) MAT, ZA, sab type, log control, min sab value
  • Every material has an ENDF-specified identification number to describe the scattering material. Note that these MAT numbers that describe materials are separate from those that describe individual atoms.

    For example, the MAT number for \(^1\mbox{H}\) is 125, according to https://t2.lanl.gov/nis/data/endf/endfvii-n.html, whereas the MAT number for water is 1, according to https://oecd-nea.org/dbdata/data/manual-endf/endf102.pdf. For convenience, the currently recognized MAT numbers for commonly occuring materials are provided below.

    Compount

    MAT

    Compound

    MAT

    Compound

    MAT

    \(\mbox {H}_2\mbox {O}\)

    1

    \(\mbox {BeO}\)

    27

    \(\mbox {O}\) in \(\mbox {BeO}\)

    46

    Cold \(^1_1 \mbox{H}\) (Para)

    2

    \(\mbox {Be}_2\mbox {C}\)

    28

    \(\mbox {O}\) in \(\mbox {SiO}_2\)

    47

    Cold \(^1_1 \mbox{H}\) (Ortho)

    3

    \(\mbox {Be}\) in \(\mbox {BeO}\)

    29

    \(\mbox {O}\) in \(\mbox {UO}_2\)

    48

    \(\mbox {H}\) in \(\mbox {ZrH}\)

    7

    Graphite

    31

    \(\mbox {Al}\) metal

    53

    \(\mbox {D}_2\mbox {O}\)

    11

    Liquid Methane

    33

    \(\mbox {Fe}\) metal

    56

    Cold \(^1_2 \mbox{D}\) (Para)

    12

    Solid Methane

    34

    \(\mbox {Zr}\) in \(\mbox {ZrH}\)

    58

    Cold \(^1_2 \mbox{D}\) (Ortho)

    13

    Polyethylene

    37

    \(\mbox {UO}_2\)

    75

    \(\mbox {Be}\) metal

    26

    Benzine

    40

    \(\mbox {UC}\)

    76

  • The second input is the \(ZA\) value, which is another value used to identify materials. For the case of \(\mbox{H}\) in \(\mbox{H}_2\mbox{O}\), this is equal to 101 as can be seen by the following rules:

    For isotopes, \(ZA\) is equal to \(1000\,Z+A\) where \(Z\) and \(A\) are the charge number and mass number. If the material is an element that has more than one naturally occurring isotope, then \(ZA\) is equal to \(1000\,Z\). If the material is a compound, then \(ZA\) is equal to \(ZA=\mbox{MAT}+100\).

  • The third input on card 4 is a flag for what “type” of scattering law (symmetric vs. non-symmetric) to output. A value of 0 corresponds to symmetric, whereas a value of 1 corresponds to non-symmetric. Note that if the non-symmetric scattering law is chosen, then in actuality \(S_{n.sym}(\alpha,-\beta)\) will be returned (this is because the positive side of the non-symmetric scattering law becomes prohibitively small and thus hard to store).

    Recall that the symmetric and non-symmetric scattering laws are related to each other by

    \[S_{sym}(\alpha,\beta)=\mathrm{e}^{\beta/2}~S_{n.sym}(\alpha,\beta)\]

    and that

    \[S_{n.sym}(\alpha,\beta)=\mathrm{e}^{-\beta}~S_{n.sym}(\alpha,-\beta)\]

Lastly, it is worth nothing that if a value of 1 is chosen here (indicating a non-symmetric scattering law), that the output file cannot be processed by the THERMR module. [MAKE SURE THAT THIS IS CORRECT]

  • The fourth entry on card 4 is a flag for whether the output file should contain \(S(\alpha,\beta)\) or \(\mbox{log}_{10}\big[S(\alpha,\beta)\big]\) (which correspond to an entry value of 0 or 1, respectively). Writing results in log form is a standard ENDF approach of handling very small numbers for thermal scattering.

  • The last entry on card 4 is the minimum value of \(S(\alpha,\beta)\) to store.


Card 5

leapr
  24                  / (1) output tape number
  'Simplified H(H2O)' / (2) output tape title
  1 1 100             / (3) # temps, print, phonon sum number
  1 1001 0 0 1e-75    / (4) MAT, ZA, sab type, log control, min sab value
  0.999 20.45 2 0 0 0 / (5) AWR, freeXS, #atoms, cohElastic, coldH, cohApprox  

LEAPR allows for either 1 or 2 scattering species to be considered in the same run. Card 5 is focused on the materials primary scatterer. If there is a secondary scatterer considered, that will be specified on the following card.

  • The first value is the atomic weight ratio of the primary scatterer (AWR), which is defined as the ratio of the mass of the material to that of the neutron. For hydrogen in water, this is about 0.99917.

  • The second value is the free atom scattering cross section \(\sigma_b\) for the primary scatterer (which in this example is hydrogen). These values can be obtained at https://www.nndc.bnl.gov/sigma under “resonance parameters - interpreted”.

  • The number of primary scattering atoms in the material. For water, there are two hydrogens.

  • The fourth value is a flag for coherent elastic scattering (Bragg edges). It can be 0 or 1. A value of 0 is chosen which indiates no coherent elastic calculation.

  • The fifth value is a cold hydrogen/deuterium flag, which dictates whether or not nuclear spins can be assumed to be distributed randomly. In most cases, this flag will be 0, indicating that spins are randomly distributed (i.e. the material is not cold hydrogen or cold deuterium).

  • The final value defines whether intermolecular coherence will be accounted for, and if so, how it will be approximated. If 0 is chosen, no intermolecular coherence will be considered, whereas 1 and 2 indicate that the Vineyard and Skold approximations will be used, respectively. If the latter two options are used, Cards 17-18 must be provided, and Card 19 must also be provided if a value of 2 is chosen (Skold).


Card 6

leapr
  24                  / (1) output tape number
  'Simplified H(H2O)' / (2) output tape title
  1 1 100             / (3) # temps, print, phonon sum number
  1 1001 0 0 1e-75    / (4) MAT, ZA, sab type, log control, min sab value
  0.999 20.45 2 0 0 0 / (5) AWR, freeXS, #atoms, cohElastic, coldH, cohApprox  
  1 1 15.853 3.88 1   / (6) #2nd scatterers, scatter type, AWR, freeXs, #atoms 

This card is focused on the secondary scatterer, if applicable.

  • This is the number of secondary scatterers in a material. For water, there is a single oxygen atom in a molecule, this this is set to 1. Note that values above 1 are not allowed.

  • The second input dictates how to describe the scattering of this secondary species. This entry can take a value of 0, 1, or 2 corresponding to short-collision time (SCT), free, or diffusion respectively. Oxygen in water is described as a free gas, thus a value of 1 is chosen.

  • The third entry is the atomic weight ratio (AWR) of the secondary scatterer.

  • The fourth entry is the free scattering cross section \(\sigma_b\) for the secondary scatterer.


Card 7-9

leapr
  24                  / (1) output tape number
  'Simplified H(H2O)' / (2) output tape title
  1 1 100             / (3) # temps, print, phonon sum number
  1 1001 0 0 1e-75    / (4) MAT, ZA, sab type, log control, min sab value
  0.999 20.45 2 0 0 0 / (5) AWR, freeXS, #atoms, cohElastic, coldH, cohApprox  
  1 1 15.853 3.88 1   / (6) #2nd scatterers, scatter type, AWR, freeXs, #atoms 

  22 28 1             / (7) # alphas, # betas, scaling option 
  0.01 0.02 0.04 0.06 0.08 
  0.20 0.40 0.60 0.80 2.00 
  4.00 6.00 8.00 10.0 15.0 
  20.0 25.0 30.0 35.0 40.0 
  45.0 50.0           / (8) alphas
  0.00 0.01 0.02 0.03 0.04 
  0.05 0.06 0.07 0.08 0.09 
  0.10 0.20 0.30 0.40 0.50 
  0.60 0.70 0.80 0.90 1.00 
  2.00 4.00 6.00 8.00 10.0 
  15.0 20.0 25.0      / (9) betas

LEAPR prepares the scattering law \(S(\alpha,\beta)\) for a user-defiend grid of \(\alpha\) and \(\beta\) values.

  • Card 7 defines the number of \(\alpha\) values (22), the number of \(\beta\) values (28) and whether the \(\alpha,\beta\) grids should be scaled. If the scaling option is set to 0, neither grid is scaled. Since it is set to 1, however, both grids will be scaled by \(0.0253/k_bT\) where \(k_bT\) is the temperature in eV.

  • Card 8 provides the \(\alpha\) values, and Card 9 provides the \(\beta\) values. For lines with many values of inputs, such as Cards 8 and 9 here, the input values can span multiple lines since LEAPR was already informed of the number of \(\alpha\) and \(\beta\) values to expect in Card 7.

Note that, as seen above, a blank line can be added between lines of LEAPR input to separate cards.


Card 10-12

leapr
  24                  / (1) output tape number
  'Simplified H(H2O)' / (2) output tape title
  1 1 100             / (3) # temps, print, phonon sum number
  1 1001 0 0 1e-75    / (4) MAT, ZA, sab type, log control, min sab value
  0.999 20.45 2 0 0 0 / (5) AWR, freeXS, #atoms, cohElastic, coldH, cohApprox  
  1 1 15.853 3.88 1   / (6) #2nd scatterers, scatter type, AWR, freeXs, #atoms 

  22 28 1             / (7) # alphas, # betas, scaling option 
  0.01 0.02 0.04 0.06 0.08 
  0.20 0.40 0.60 0.80 2.00 
  4.00 6.00 8.00 10.0 15.0 
  20.0 25.0 30.0 35.0 40.0 
  45.0 50.0           / (8) alphas
  0.00 0.01 0.02 0.03 0.04 
  0.05 0.06 0.07 0.08 0.09 
  0.10 0.20 0.30 0.40 0.50 
  0.60 0.70 0.80 0.90 1.00 
  2.00 4.00 6.00 8.00 10.0 
  15.0 20.0 25.0      / (9) betas

  296                 / (10) temperature (K)
  .00255 67           / (11) rho spacing (eV), # of rho values given
   .0000 .0005 .0010 .0020 .0035 
   .0050 .0075 .0100 .0130 .0165 
   .0200 .0245 .0290 .0340 .0395 
   .0450 .0506 .0562 .0622 .0686 
   .0750 .0830 .0910 .0990 .1070 
   .1150 .1197 .1214 .1218 .1195 
   .1125 .1065 .1005 .0954 .0912 
   .0871 .0839 .0807 .0779 .0757 
   .0735 .0716 .0697 .0680 .0665 
   .0650 .0634 .0618 .0602 .0586 
   .0571 .0558 .0546 .0535 .0525 
   .0515 .0504 .0493 .0482 .0470 
   .0459 .0447 .0436 .0428 .0424 
   .0420 .0000        / (12) rho values (frequency distribution) 
  • Card 10 provides the desired temperature in K.

  • Cards 11 and 12 define the vibrational frequency spectrum (phonon distribution, phonon density of states, etc) that will be used in the continuous, phonon expansion calculation. The frequency distribution is provided on a uniformly spaced energy grid (energy grid has units of eV).

    • The first entry of Card 11 is the energy spacing on this grid, and the second entry is the number of values in this frequency distribution.

    • Card 12 provides the frequency distribution values. Note that the first and last values should be 0.0. The distribution provided here is a significantly simplified model.


Card 13

leapr
  24                  / (1) output tape number
  'Simplified H(H2O)' / (2) output tape title
  1 1 100             / (3) # temps, print, phonon sum number
  1 1001 0 0 1e-75    / (4) MAT, ZA, sab type, log control, min sab value
  0.999 20.45 2 0 0 0 / (5) AWR, freeXS, #atoms, cohElastic, coldH, cohApprox  
  1 1 15.853 3.88 1   / (6) #2nd scatterers, scatter type, AWR, freeXs, #atoms 

  22 28 1             / (7) # alphas, # betas, scaling option 
  0.01 0.02 0.04 0.06 0.08 
  0.20 0.40 0.60 0.80 2.00 
  4.00 6.00 8.00 10.0 15.0 
  20.0 25.0 30.0 35.0 40.0 
  45.0 50.0           / (8) alphas
  0.00 0.01 0.02 0.03 0.04 
  0.05 0.06 0.07 0.08 0.09 
  0.10 0.20 0.30 0.40 0.50 
  0.60 0.70 0.80 0.90 1.00 
  2.00 4.00 6.00 8.00 10.0 
  15.0 20.0 25.0      / (9) betas

  296                 / (10) temperature (K)
  .00255 67           / (11) rho spacing (eV), # of rho values given
   .0000 .0005 .0010 .0020 .0035 
   .0050 .0075 .0100 .0130 .0165 
   .0200 .0245 .0290 .0340 .0395 
   .0450 .0506 .0562 .0622 .0686 
   .0750 .0830 .0910 .0990 .1070 
   .1150 .1197 .1214 .1218 .1195 
   .1125 .1065 .1005 .0954 .0912 
   .0871 .0839 .0807 .0779 .0757 
   .0735 .0716 .0697 .0680 .0665 
   .0650 .0634 .0618 .0602 .0586 
   .0571 .0558 .0546 .0535 .0525 
   .0515 .0504 .0493 .0482 .0470 
   .0459 .0447 .0436 .0428 .0424 
   .0420 .0000        / (12) rho values (frequency distribution) 
  0.05  0. 0.45       / (13) translation wgt, diffusion coeff., continuous wgt

When processing incoherent scattering, LEAPR processes the vibrational frequency spectrum from Card 12 in the phonon expansion. If requested, two additional effects can be considered: the effect of discrete ocsillators and the effect of some diffusive behavior. Card 13 defines how much, if any, attention should be paid to the diffusive nature of the material.

To combine the effects of continuous, diffusive, and discrete-oscillator behavior, each of these three components is assigned a weight, and these weights must add to 1.

  • The first entry of card 13 is the translation weight.

  • The second entry is the diffusion coefficient, which is set to zero for this model.

  • The third entry is the continuous distribution weight.

According to these input, the translative/diffusive behavior will be weighted by 0.05 andthe continuous, solid-type behavior will be weighted by 0.45. Since these add up to 0.5, that means that the weighting of the discrete oscillators (which will be defined shortly) must add to an additional 0.5.


Card 14-16

leapr
  24                  / (1) output tape number
  'Simplified H(H2O)' / (2) output tape title
  1 1 100             / (3) # temps, print, phonon sum number
  1 1001 0 0 1e-75    / (4) MAT, ZA, sab type, log control, min sab value
  0.999 20.45 2 0 0 0 / (5) AWR, freeXS, #atoms, cohElastic, coldH, cohApprox  
  1 1 15.853 3.88 1   / (6) #2nd scatterers, scatter type, AWR, freeXs, #atoms 

  22 28 1             / (7) # alphas, # betas, scaling option 
  0.01 0.02 0.04 0.06 0.08 
  0.20 0.40 0.60 0.80 2.00 
  4.00 6.00 8.00 10.0 15.0 
  20.0 25.0 30.0 35.0 40.0 
  45.0 50.0           / (8) alphas
  0.00 0.01 0.02 0.03 0.04 
  0.05 0.06 0.07 0.08 0.09 
  0.10 0.20 0.30 0.40 0.50 
  0.60 0.70 0.80 0.90 1.00 
  2.00 4.00 6.00 8.00 10.0 
  15.0 20.0 25.0      / (9) betas

  296                 / (10) temperature (K)
  .00255 67           / (11) rho spacing (eV), # of rho values given
   .0000 .0005 .0010 .0020 .0035 
   .0050 .0075 .0100 .0130 .0165 
   .0200 .0245 .0290 .0340 .0395 
   .0450 .0506 .0562 .0622 .0686 
   .0750 .0830 .0910 .0990 .1070 
   .1150 .1197 .1214 .1218 .1195 
   .1125 .1065 .1005 .0954 .0912 
   .0871 .0839 .0807 .0779 .0757 
   .0735 .0716 .0697 .0680 .0665 
   .0650 .0634 .0618 .0602 .0586 
   .0571 .0558 .0546 .0535 .0525 
   .0515 .0504 .0493 .0482 .0470 
   .0459 .0447 .0436 .0428 .0424 
   .0420 .0000        / (12) rho values (frequency distribution) 
  0.05  0. 0.45       / (13) translation wgt, diffusion coeff., continuous wgt
  2                   / (14) # of discrete oscillators
  .205 .48            / (15) oscillator locations (eV)
  .167 .333           / (16) oscillator weights

Cards 14-16 define the discrete ocsillators that will be used to supplement the continuous frequency distribution. They are typically used to represent higher-energy peaks in the vibrational spectrum.

  • Card 14 only has a single entry, indicating the number of discrete oscillators that will be used.

  • Card 15 contains the energy locations (eV) of these two discrete ocsillators.

  • Card 16 contains the weights that each of these discrete ocsillators has. Since our translational weight and continuous weight add to 0.5, that means that the sum of these oscillator weights must add to 0.5 so that the total weighting sum will combine to 1.0.


Card 20

leapr
  24                  / (1) output tape number
  'Simplified H(H2O)' / (2) output tape title
  1 1 100             / (3) # temps, print, phonon sum number
  1 1001 0 0 1e-75    / (4) MAT, ZA, sab type, log control, min sab value
  0.999 20.45 2 0 0 0 / (5) AWR, freeXS, #atoms, cohElastic, coldH, cohApprox  
  1 1 15.853 3.88 1   / (6) #2nd scatterers, scatter type, AWR, freeXs, #atoms 

  22 28 1             / (7) # alphas, # betas, scaling option 
  0.01 0.02 0.04 0.06 0.08 
  0.20 0.40 0.60 0.80 2.00 
  4.00 6.00 8.00 10.0 15.0 
  20.0 25.0 30.0 35.0 40.0 
  45.0 50.0           / (8) alphas
  0.00 0.01 0.02 0.03 0.04 
  0.05 0.06 0.07 0.08 0.09 
  0.10 0.20 0.30 0.40 0.50 
  0.60 0.70 0.80 0.90 1.00 
  2.00 4.00 6.00 8.00 10.0 
  15.0 20.0 25.0      / (9) betas

  296                 / (10) temperature (K)
  .00255 67           / (11) rho spacing (eV), # of rho values given
   .0000 .0005 .0010 .0020 .0035 
   .0050 .0075 .0100 .0130 .0165 
   .0200 .0245 .0290 .0340 .0395 
   .0450 .0506 .0562 .0622 .0686 
   .0750 .0830 .0910 .0990 .1070 
   .1150 .1197 .1214 .1218 .1195 
   .1125 .1065 .1005 .0954 .0912 
   .0871 .0839 .0807 .0779 .0757 
   .0735 .0716 .0697 .0680 .0665 
   .0650 .0634 .0618 .0602 .0586 
   .0571 .0558 .0546 .0535 .0525 
   .0515 .0504 .0493 .0482 .0470 
   .0459 .0447 .0436 .0428 .0424 
   .0420 .0000        / (12) rho values (frequency distribution) 
  0.05  0. 0.45       / (13) translation wgt, diffusion coeff., continuous wgt
  2                   / (14) # of discrete oscillators
  .205 .48            / (15) oscillator locations (eV)
  .167 .333           / (16) oscillator weights

  ' Simplified H in H2O Model '            / (20) Comments that will go in
  ' These notes go in final output file'   / (20) the output tape
  ' (Example, not for real applications)'  / (20) 
  / (20) This is a blank comment card which indicates the end of LEAPR
stop  

Cards 17-19 are invoked when an inelastic coherent approximation is requested. Since no intermolecular coherence was requested (i.e. the final value on card 5 is set to 0), these cards are omitted. Instead, we continue directly to card 20.

  • Card 20 is a set of comments that will be included in the final output tape (tape24). Card 20 will continue to be read until a blank line (consisting of only a “/”) is read in.

    This final blank card indicates the end of LEAPR. However, we still have yet to tell NJOY that we wish to run no more modules. This is done by putting “stop” after the LEAPR input, which ends the NJOY run.