← Modern Nuclear Data Processing · repository · covariance paper (preprint by Claude and Ian Hill) · Learning AMPX by example
AMPX–NJOY processing map
The AMPX modules used to build a SCALE continuous-energy (CE) library for CANDU lattice physics, and the earlier 56-group covariance library, set beside the NJOY2016 modules that do the same jobs. Each row gives the options used here, the matching NJOY options, and the differences found when the results were compared.
The AMPX inputs behind each row are explained, with real examples, in a continuous-energy library step by step and multigroup covariances with PUFF-IV; pitfalls are collected in tips and lessons learned.
The two paths at a glance
AMPX → SCALE CE library (Robus HDF5)
- POLIDENT resonance reconstruction, 0 K pointwise data + abbreviated info file
- BROADEN Doppler broadening, one temperature at a time merged with PICKEZE + ZEST
- PURM + PURM_UP unresolved-resonance probability tables
- Y12 secondary distributions: fast, free gas, S(α,β) tabulated, plus 1-D thermal cross sections
- TOMATO / ZEST relabel and merge the thermal cross sections
- JAMAICAN distributions to sampling PDF/CDF form
- PLATINUM one nuclide file, all temperatures + DBRC 0 K elastic
- CE_SIMONIZE master library file with links to the nuclide files
NJOY2016 → ACE (→ OpenMC HDF5)
- RECONR resonance reconstruction, 0 K PENDF
- BROADR Doppler broadening, all temperatures in one step
- PURR unresolved-resonance probability tables (UNRESR for Bondarenko factors)
- HEATR, GASPR heating and gas production (not needed for k)
- THERMR free gas and S(α,β) thermal cross sections and distributions
- no separate step: the PENDF tape accumulates each module's output
- ACER keeps the ENDF laws (Kalbach-Mann, tabulated) in ACE form
- ACER one table per temperature OpenMC: openmc.data merges the tables into one HDF5 file
Step-by-step mapping
Columns: the job, the AMPX module with the options used in this project, the NJOY2016 module and options that do the same job, and what the comparisons showed.
| Step | Job | AMPX (options used) | NJOY2016 equivalent | Comparison and differences |
|---|---|---|---|---|
| 1 | Read ENDF, reconstruct resonances, linearize | POLIDENT (polident_new): globaleps=1e-3 (mesh tolerance), globalcombeps=1e-4 (merge with File 3); writes the 0 K TAB1 file and the abbreviated info file (MF1 header, ν̄) that PLATINUM needs. |
RECONR: err=0.001 on card 3; R-matrix-limited (LRF=7) evaluations through the SAMMY-based routines. |
R-matrix grid For U-238 (Reich-Moore, 1e-5 eV–20 keV) the 0 K output was byte-identical at globaleps 1e-3 and 1e-4, so the tolerance did not refine that grid. O-16 has no resonance parameters (fully pointwise). |
| 2 | Doppler broadening | BROADEN: eps=1e-3, t= one temperature per call, always from the 0 K file; PICKEZE (temp_sel=1) keeps only the new temperature's functions; ZEST merges them. |
BROADR: errthn=0.001, list of temperatures; broadening up to thnmax. |
sequential error Given several temperatures, BROADEN broadens each from the previous one and the error accumulates: O-16 1/v capture at 0.0253 eV drifted +0.25 % (600 K) and +0.50 % (2500 K) over 15 steps. Directly from 0 K it holds to 0.01 %, matching NJOY. MeV range The NJOY-processed OpenMC library shows the same O-16 2.889 MeV resonance peak at 294, 600 and 1200 K (not broadened above about 1 MeV); AMPX broadens it (2.70 → 2.54 b, 293.6 → 600 K), with integrals equal to 0.007 %. |
| 3 | Unresolved-resonance self-shielding (CE) | PURM: Monte Carlo resonance ladders, nbatch=300 iter=600 nband=20, all temperatures; PURM_UP adds the File 3 background (eps=1e-3, matp=ZA); PLATINUM ptable={file= id=ZA}. PURM labels its tables with the ENDF ZA, which has no metastable flag (Am-242m: 95242, not the SCALE ID 1095242). |
PURR: ladder sampling, nbin=20, nladr ladders, all temperatures; ACER carries the tables. |
compared Band averages against the NJOY tables of the OpenMC library: U-238 elastic and capture within 0.01 % (median, 20–150 keV); U-235 within 0.32 % (median 0.03 %) at NJOY's energies; Am-242m median 0.005–0.46 %, max 1.4 %. Self-shielded cross sections at a 1 b background differ by up to 9 % (U-238), the scale of the sampling noise of two independent ladder samplings. table total AMPX's "total" holds only elastic + capture + fission; NJOY's also includes the smooth inelastic. Na-22 PURM cannot sample its unresolved range (negative File 3 background at 15 keV in ENDF/B-VIII.1), so it is processed without probability tables. |
| 3b | Unresolved self-shielding (multigroup) | PRUDE (Bondarenko factors); FABULOUS (full-range Bondarenko tables). | UNRESR (Bondarenko); GROUPR with σ0 values. | not used Multigroup path only. |
| 4 | Fast secondary distributions (angle and energy) | Y12 for=tab: tabulated double-differential data, eps=1e-2 (option A), zap=1 awp=1 (outgoing neutrons only), id=1 (incident-particle ZA expected by JAMAICAN); reads a copy without MF6 MT18 for VIII.1 actinides. |
ACER (iopt=1) translates MF4/MF5/MF6 laws directly into ACE laws; no tabulation tolerance. | different method AMPX re-tabulates every distribution. At Y12 1e-3, H-2 (n,2n) break-up alone is 49 million exit-energy points and conversion takes about 4.5 h, against minutes at 1e-2. Y12 1e-2 against 1e-3: elastic μ̄ within 0.003, mean secondary energy within 0.3 % (median 0.08 %). LAW = −5 Y12 cannot read VIII.1 MF6 MT18 neutron-multiplicity subsections: U-235, U-238 and Pu-239 use MF5/MF4 MT18 instead (recorded modification). Th-232, Pa-231 and Pa-233 have MF6 MT18 only, but as LAW 1: Y12 and JAMAICAN processed it without error in a test (7 October), so they need no copy. |
| 5 | Distribution format for sampling | JAMAICAN (jamaican_new): result=native equi=false eps=1e-3; converts to lab-frame PDF/CDF (centre-of-mass → lab for elastic). |
ACER (laws kept; equiprobable bins only for old formats). | compared Robus rejects equiprobable exit energies (equi=false, neutron-only input). JAMAICAN thinning 1e-2 vs 1e-3: μ̄ within 7e-7, Ē′ within 0.05 %. |
| 6 | Free-gas thermal scattering | Y12 free awr= pot= temp=T, one temperature per call: a 1e-3 pass for the 1-D cross section (point=, MT 1007), a 1e-2 pass for the distributions. |
THERMR iin=1 (free gas), emax; ACER thermal treatment. |
compared O-16 MT 1007 against the exact free-gas formula: median 0.016 %, max 0.14 %, all 15 temperatures (0.10 % at 1e-2). Thermal cutoff 5.05 eV (Y12 default emax). |
| 7 | Bound thermal scattering S(α,β) | Y12 on MF7, one temperature per call from single-temperature files (tsl_split.py, format-only split); 1e-3 cross-section pass + 1e-2 distribution pass. |
THERMR iin=2 (incoherent inelastic), icoh (elastic), emax; ACER iopt=2 thermal tables. (LEAPR builds MF7 from phonon spectra; not needed.) |
283.6–573.6 K D in D₂O MT 1007 against NJOY: median 0.05–0.27 %, within 0.2 % at 0.0253, 0.1 and 1 eV. 600–650 K Y12 converges slowly on the very narrow quasi-elastic peak of these three tables: at eps 1e-3 AMPX was up to +3.9 % at 1 eV. The library uses a 5e-4 cross-section pass at 600, 623.6 and 650 K: median 0.29, 0.58 and 0.82 %; +0.43, +1.07 and +1.90 % at 1 eV. Converged, Y12's lookup rules agree with NJOY within 0.1 % from 0.0253 to 2 eV (independent integration, sab_integral.py). Cutoff 5.05 eV (AMPX) vs 10 eV (OpenMC/NJOY). |
| 8 | Manipulate pointwise files | TOMATO (relabel MAT), ZEST (merge, select), PICKEZE (select MAT/MT/temperature), TGEL (sum partials), CHARMIN (format conversion, text dumps for checks), FUNCCALC. | MODER (format); otherwise the PENDF tape is passed from module to module. | no direct equivalent AMPX keeps each step's output as a separate TAB1 file. |
| 9 | DBRC data | PICKEZE MT 2 of the 0 K POLIDENT file → PLATINUM dbrc= (U-238 and Pu-239). |
0 K elastic from RECONR; OpenMC stores it as the "0K" elastic data. | compared U-238 0 K elastic against OpenMC's: median 0.0125 % on the union grid, 99th percentile 0.69 %, 1 eV–20 keV lethargy integral within 0.001 %; the maximum (56 %) is at 20 keV, the end of the resolved range. Pu-239 processed in the library run (8 October), not compared. |
| 10 | Assemble the nuclide file | PLATINUM (platinum_new): cross=, info=, kinematics=[…], ptable=, dbrc=, sigp=, zaid=; all temperatures in one Robus HDF5 nuclide file. |
ACER (one ACE table per temperature) → openmc.data HDF5. |
compared Point data against NJOY at all common temperatures, median: O-16 (15 T) and H-2 in D₂O (17 T) 0.02–0.03 %; U-235 0.02–0.04 %; U-238 0.02–0.12 %; Am-242m 0.025–0.037 %. For the actinides the largest differences are at the end of the resolved range, where the two codes take different sides of the discontinuity. 20 MeV see the open issues below. |
| 11 | Library index | CE_SIMONIZE: master HDF5 file with external links (like ce_v8.0_endf.h5). |
MCNP xsdir; OpenMC cross_sections.xml. |
pending |
| MG | Multigroup library | JERGENS (weight function), X10 (master library), SIMONIZE, WORM. | GROUPR (ign, iwt), MATXSR / WIMSR. |
used for covariance only |
| COV | Covariance (SCALE 56 groups) | PUFF-IV: MF33, MF32, MF31, MF35 from a master library; fix_correlation=false; COVERX output. |
ERRORR (+ COVR / BOXER). | compared Sandwich uncertainties of the two 56-group libraries agree within 3 pcm; 10 (AMPX) vs 19 (NJOY) matrices with |ρ| > 1; NJOY ERRORR χ uncertainty is wrong where χ varies inside groups. |
Settings used for the CANDU CE library
| Setting | AMPX value | Nearest NJOY setting |
|---|---|---|
| Cross-section tolerance | 1e-3: POLIDENT globaleps, BROADEN eps, Y12 cross-section passes (5e-4 for D in D₂O at 600, 623.6 and 650 K) | RECONR err, BROADR errthn, THERMR tol = 0.001 |
| Distribution tolerance (option A) | Y12 eps 1e-2 for distributions; JAMAICAN eps 1e-3 | none (ACER keeps the ENDF laws) |
| Temperatures, bound moderators | the kernel's own: D/O in D₂O 283.6–650 K (17); U/O in UO₂ 296–1200 K (8) | THERMR / BROADR at the same temperatures |
| Temperatures, all other nuclides | 293.6, 350, 400, 450, 500, 550, 600, 700, 800, 900, 1000, 1200, 1500, 1800, 2500 K | BROADR temperature list |
| Thermal cutoff | 5.05 eV (Y12 emax) | THERMR emax (10 eV in the OpenMC library) |
| Probability tables | PURM 20 bands, 300 × 600 histories | PURR nbin=20, nladr |
| DBRC | U-238, Pu-239 | 0 K elastic in the library (OpenMC: resonance scattering method) |
| SCALE nuclide IDs | 1002 D in D₂O · 2008016 O-16 in D₂O · 1001 H in H₂O · 1008016 O in UO₂ · 1092235/1092238 U in UO₂ · 8001001/8001002 free-gas H/D | OpenMC: thermal tables (c_D_in_D2O, …) attached to nuclides in a material |
Differences and open issues
- Sequential broadening in BROADEN (fixed in the chain). Several temperatures in one call accumulate an error at low energy that grows with the number of steps: +0.5 % on O-16 capture at 0.0253 eV by 2500 K. Each temperature is now broadened from 0 K.
- D₂O kernel at 600–650 K (explained; kept as is, 7 October). The excess over NJOY there is Y12's integration tolerance, not the evaluation or a difference in conventions: an independent integration with NJOY's S(α,β) lookup rules reproduces NJOY within 0.03 %, and with Y12's rules, converged, agrees with NJOY within 0.1 % from 0.0253 to 2 eV. Y12's error falls roughly in proportion to its tolerance, but 1e-4 and 3e-4 need more than 6 GB per temperature, so the library uses 5e-4 at these three temperatures: +0.43 %, +1.07 % and +1.90 % at 1 eV (600, 623.6, 650 K). The CANDU moderator (about 340 K) and coolant up to 573.6 K use unaffected tables.
- Distribution tabulation cost. AMPX re-tabulates every secondary distribution, and its run time grows steeply as Y12's tolerance is tightened. NJOY's ACER has no equivalent cost.
- VIII.1 MF6 MT18 (LAW = −5). Y12 cannot read these subsections. Copies without MF6 MT18 are used for Y12 only, and the removal is recorded in
modifications.csv. Th-232, Pa-231 and Pa-233 need no conversion: their MF6 MT18 is LAW 1, with no LAW < 0 subsections. - Thermal cutoff. AMPX uses 5.05 eV and the OpenMC/NJOY library 10 eV. Between 5 and 10 eV, free-atom scattering is used in the AMPX library.
- MeV-range broadening. The NJOY-processed reference is not broadened above about 1 MeV (BROADR
thnmax), so narrow MeV resonances (O-16 at 2.889 MeV) differ point by point. Integrals agree. - Memory.
jamaican_newreads a whole kinematics file and needs about 8× its size in memory. Thermal kernels are therefore processed one temperature at a time. - Zero at 20 MeV (open, found 14 October). In 63 of the 224 nuclide files finished by then, elastic (for Am-242m also fission and capture) ends with a doubled point at 20 MeV whose value is 0; the ENDF/B-VIII.1 data run continuously to 20 MeV. The affected interval is 2e-9 eV wide, so transport results are not affected; the module that introduces it has not been identified. Later finding (20 October): PLATINUM introduces it, see the lessons page.
Sources: the project log ~/ampx-ce/NOTES.md, the comparison outputs ~/ampx-ce/results/verify_*.txt, and the AMPX source documentation in ~/scale-public/packages/Ampx. NJOY options are from the NJOY2016 manual and the OpenMC processing scripts.