← Modern Nuclear Data Processing
Learning AMPX · ENDF/B-VIII.1 · SCALE
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 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.
=module and ends with end; =shell blocks link the input files in and copy results out.ftNNf001 in a temporary working directory: input=31 output=36 means read ft31f001, write ft36f001.scalerte -m input.inp runs the blocks in order and writes input.out and input.msg next to the input.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.
Scroll sideways to see the whole chain.
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:
A path through the pages, from an empty machine to a checked library. Each page quotes real inputs from the two projects.
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 →A complete 76-line input for B-11 that finishes in about a minute, and what each block does and writes.
The first input →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 →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 →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 →Which NJOY2016 module does each job, the options used on both sides, and the differences found when the results were compared.
Processing map →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
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
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
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
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 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.
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