← Modern Nuclear Data Processing

Learning AMPX · ENDF/B-VIII.1 · SCALE

Learning AMPX by example

AMPX is the code system that processes evaluated nuclear data into SCALE's libraries. These pages show how it was used here to build a SCALE continuous-energy library and 56-group covariance libraries from ENDF/B-VIII.1: the real inputs, what each module does and produces, what it cost on one laptop, and the pitfalls that cost the most time.

Most of this work, including this page, was generated with AI (Claude, Anthropic) under the direction of Ian H; it has not been independently reviewed. Inputs and numbers are taken from the two projects' files and work logs; check them before relying on them.

AMPX SCALE 7.0 beta 3 public source Data ENDF/B-VIII.1 Machine one laptop, Linux under WSL Updated 21 October 2026
557ENDF/B-VIII.1 neutron evaluations in the continuous-energy library run
458finished nuclide files loaded by SCALE's CE data loader at every temperature (20 October)
266evaluations with covariance data processed with PUFF-IV into SCALE's 56 groups
3 pcmagreement of the AMPX and NJOY covariance libraries in the k uncertainty of three benchmarks

What AMPX is, in practice

AMPX is Oak Ridge National Laboratory's system for turning ENDF-6 evaluations into the continuous-energy, multigroup and covariance libraries that SCALE reads. Its modules are part of SCALE's public source (SCALE-Public, the open-source components of SCALE 7.0 beta 3), so the processing chain can be built and run without the rest of SCALE. The transport codes that read the libraries (KENO, Shift) are not in that source.

How the modules fit together

The chain for one nuclide of a continuous-energy library, as it was run for every ENDF/B-VIII.1 evaluation here. Each row is one kind of data; PLATINUM takes them all and writes one HDF5 file with every temperature.

AMPX module chain for one continuous-energy nuclide The ENDF/B-VIII.1 neutron file feeds POLIDENT then BROADEN (cross sections), PURM then PURM_UP (unresolved-range probability tables) and Y12 then JAMAICAN (fast secondary distributions). Free-gas or split S(alpha,beta) data feed Y12 then JAMAICAN at each temperature. PLATINUM reads them through its cross, info, ptable and kinematics inputs and writes the nuclide file, which a master file links into the library; SCALE's CE data loader checks it. ENDF/B-VIII.1 neutron evaluation MF1–MF6 Thermal data free gas, or MF7 per T Cross sections Unresolved resonance range Secondary distributions Thermal scattering, each temperature POLIDENT 0 K point data BROADEN each T from 0 K PURM resonance ladders PURM_UP probability tables Y12 fast, neutrons only JAMAICAN PDF/CDF in HDF5 Y12 ×2 cross section + kinematics JAMAICAN thermal distributions PLATINUM one nuclide file, all temperatures Nuclide file HDF5, all T Master file external links Load check SCALE CE loader cross= info= ptable= kinematics= kinematics=

Scroll sideways to see the whole chain.

Not drawn: the helper modules PICKEZE (select), ZEST (merge) and TOMATO (relabel). They merge the temperatures, and the 1-D thermal cross sections from the first Y12 pass of row 4, into the file PLATINUM reads as cross=. PICKEZE also takes the 0 K elastic cross section from POLIDENT's file for PLATINUM's dbrc= input (U-238 and Pu-239 here). The probability-table row is needed only for evaluations with an unresolved range.

For covariances the chain is shorter and ends in PUFF-IV, which writes a COVERX file:

Where to start

A path through the pages, from an empty machine to a checked library. Each page quotes real inputs from the two projects.

  1. Build AMPX from the public source

    On a machine without root access: the dependencies, the CMake options that matter (Qt must be on, or the processing modules are silently left out) and how to run an input.

    Building AMPX →
  2. Run one nuclide at one temperature

    A complete 76-line input for B-11 that finishes in about a minute, and what each block does and writes.

    The first input →
  3. Build a continuous-energy library

    Fifteen temperatures, probability tables, DBRC data and thermal scattering; time and memory per step, and the driver that runs all 557 evaluations.

    Step by step →
  4. Make multigroup covariances

    From POLIDENT to PUFF-IV in SCALE's 56 groups: why TGEL runs twice, MT3, where the fission spectrum comes from, cross-material blocks.

    Covariances →
  5. Read the lessons before a long run

    Pitfalls with their symptom, cause, fix and the evidence: from a broadening error that grows with each temperature to restarts after the laptop slept.

    Tips and lessons →
  6. Compare with NJOY

    Which NJOY2016 module does each job, the options used on both sides, and the differences found when the results were compared.

    Processing map →

Five things worth knowing first

1 · Broaden each temperature from 0 K

Given a list of temperatures, BROADEN broadens each one from the previous result, and the error accumulates: O-16 capture at 0.0253 eV, which should not change with temperature, drifted +0.50 % by 2500 K. Broadened one by one from the 0 K file it stays within 0.012 %. Details

2 · Set the tolerance step by step

Cross sections at 1e-3 (POLIDENT, BROADEN, the Y12 thermal cross-section pass), secondary distributions from Y12 at 1e-2, JAMAICAN at 1e-3. Tightening Y12 is what costs hours and gigabytes: H-2's fast distributions took about 4.5 h at 1e-3 against about a minute at 1e-2. Details

3 · Memory, not CPU, is the limit

Process thermal kernels one temperature at a time, set OPENBLAS_NUM_THREADS=1, and cap each job's address space at about twice its expected memory use. Details

4 · scalerte carries on after a failed module

Check that each step wrote its file, and copy expensive results out of the temporary directory as soon as they exist. A wrong label on PURM's probability tables made U-238 fail after 98 hours of PURM; when the same kind of failure hit Am-242m after 35 hours, PURM's output had been kept, and rerunning PURM_UP alone took 3 seconds. Details

5 · Compare with something independent

NJOY-processed data of the same evaluation, analytic checks (a 1/v cross section must not change with temperature; free-gas scattering has an exact formula) and SCALE's own data loader. The comparisons found the broadening error and a zero at 20 MeV; the loader shows that every finished file reads cleanly. Details

The two projects behind these pages

Continuous-energy library

The ENDF/B-VIII.1 neutron sublibrary processed with AMPX into SCALE's HDF5 continuous-energy format, for CANDU lattice physics: 15 temperatures from 293.6 to 2500 K, D in D₂O thermal scattering at its 17 tabulated temperatures (the other bound nuclides are queued), probability tables and DBRC data. Work in progress.

Progress and results · Repository · Work log

56-group covariance libraries

The covariance data of ENDF/B-VIII.1 processed into SCALE's 56 groups twice, with NJOY2016 and with AMPX's PUFF-IV, and compared matrix by matrix. Release v1.2.

Paper (preprint by Claude and Ian Hill) · Covariance explorer · Repository