← Modern Nuclear Data Processing · Learning AMPX by example

Learning AMPX · covariances

Multigroup covariances with AMPX and PUFF-IV

PUFF-IV is the AMPX module SCALE uses for its covariance libraries. This is how the ENDF/B-VIII.1 covariance data were processed with it into SCALE's 56 groups: the chain per nuclide, complete real inputs, the places where the chain needed care, and how the result compares with an independent NJOY library made from the same evaluations.

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. The inputs are quoted unchanged from the project; the full account is the paper on the covariance libraries (preprint by Claude and Ian Hill) and the project's theory manual.

Groups SCALE 56 Weighting thermal-reactor spectrum, 293.6 K Evaluations 266 with covariance data Updated 21 October 2026

The chain for one nuclide

ModuleJobWhen
polident_new0 K point cross sections, resonances reconstructed to 0.1 %always
broadenDoppler broadening to 293.6 Kalways
tgeladds MT 4, 18 and 103–107 where only their parts are givenalways
tgelthe sums: total (MT 1), inelastic (4), capture (101), absorption (27)always, as a second run
funccalc · zestMT 3 as total minus elasticwhen the evaluation has no MF3 MT3
jergensthe weighting spectrum (made once, reused)once
y12 · x10distributions and a 56-group master library, which supplies χonly with MF35 (fission spectrum covariances)
puff_ivcovariances on a fine grid, collapsed to 56 groups: MF33 with MF32, MF31, MF35always
puff_ivagain, with the partners' uncollapsed files, for cross-material blocksa second pass, for nuclides with such blocks

All 266 ENDF/B-VIII.1 evaluations with covariance data went through it without a failed module: 4.3 CPU-hours, about 40 minutes on 16 cores. Fe-56 takes about a minute; U-235, with MF35 and cross-material partners, 19 minutes for the first pass and 8 for the second.

A complete input: Fe-56

The first-pass input of Fe-56, as the driver (ampx_library.py) wrote it. Fe-56 has no fission spectrum, so there is no Y12 or X10, and its evaluation has no MF3 MT3, so FUNCCALC builds one. It ran in 57 seconds.

n-026_Fe_056/pass1.inpwritten by ampx_library.py
' n-026_Fe_056 (MAT 2631) ENDF/B-VIII.1, SCALE-56, thermal weighting; ampx_library.py
=shell
ln -sf ${RTNDIR}/n-026_Fe_056.endf ft11f001
ln -sf /home/hardtohit10/ampx-lib/group.bounds.big_endian ft77f001
cp /home/hardtohit10/ampx-lib/weight.tab1 ft34f001
end
=polident_new
0$$ 31 32 0
1$$ 1 t
2$$ 2631 11 0 0
4** 0.001 0 0 0 0.001 0 0 0 0 0
t
end
=broaden
input=31 output=38 t=293.6
end
=tgel
input=38 output=39
end
=tgel
input=39 output=36 total inelastic capture absorption
end
=funccalc
in=36 out=41 el=1e-5 eh=2e7 eps=1e-5 id1=2631 id2=3
mat=2631 mt=1 mat=2631 mt=2
com=sr ireg=1 creg=1 com=sr ireg=2 creg=2 com=vr ireg=3 creg=-1
com=mr ireg=2 creg=3 com=ar ireg=1 creg=2 com=sv ireg=1
end
=zest
0$$ 40 0
1$$ 2 t
2$$ 36 -1 t
3$$ 2631 4$$ 3 5$$ 3 t
2$$ 41 0 t
end
=shell
mv ft40f001 ft36f001
end
=puff_iv
endf=11 point=36 flux=34 matwt=99 mtwt=1099
mat=2631 ngrp=56 out=44
cross=true res=true chi=false ein=0.0253
fix_correlation=false
end
=shell
cp ft44f001 ${RTNDIR}/n-026_Fe_056.coverx
cp ft36f001 ${RTNDIR}/n-026_Fe_056_293.6K.tab1
end

The weighting spectrum

Both libraries use the same spectrum: Maxwellian (kT = 0.0253 eV) up to 0.1 eV, then 1/E, then a fission spectrum (θ = 1.4 MeV) above 820.3 keV, NJOY's iwt=4. JERGENS writes it as a function on unit 34:

u235.inplines 24–34 · the whole deck
' weighting: Maxwellian kT=0.0253 eV up to 0.1 eV, 1/E, fission spectrum theta=1.4 MeV
' above 820.3 keV (the NJOY iwt=4 spectrum); MAT 99, id 1099
=jergens
0$$ 0 34 18
1$$ 1
2** 1e-5 2e7
t
3$$ 1099 0 2
4** 293.61 3.95257 1.4e6 820.3e3 0 1e-4
t
end

The fission spectrum: a master library first

PUFF-IV takes χ only from a multigroup master library, so for the 67 evaluations with MF35 data Y12 and X10 build one on the same 56 groups and weighting before PUFF-IV runs:

u235.inplines 35–54
' kinematics for the master library that supplies chi to PUFF-IV. Y12 reads
' u235_y12.endf = u235.endf without MF6 MT18 (VIII.1 LAW=-5 neutron multiplicity
' subsections, which this Y12 does not handle); chi comes from MF5/MF4 MT18
=y12
eps=1e-3 ndf=12 kin=35 mat=9228 id=9228 zap=1.0 awp=1.0 for=leg nl=5
end
' 56-group AMPX master library, same weighting
=x10
type=neutron igm=56 iftg=34 id=9228 master=41 logwt=34 matwt=99 mtwt=1099 nl=5
kin=35 tab1=36
title=U-235 ENDF/B-VIII.1 56g thermal weighting
end
' covariances: MF33+MF32 (cross), MF31 (nu-bar), MF35 (chi); correlations left
' as processed (fix_correlation=false, as in the NJOY library)
=puff_iv
endf=11 point=36 master=41 flux=34 matwt=99 mtwt=1099
mat=9228 ngrp=56 out=44 uncol=45
cross=true res=true chi=true ein=0.0253
fix_correlation=false
end

Cross-material blocks: a second pass

Covariances between two nuclides (U-235 with Li-6, Au-197 and U-238, for example) need the partner's data on PUFF-IV's fine grid. The first pass keeps each partner's uncollapsed file (uncol=45); the second pass links them to numbered units, because PUFF-IV's input takes unit numbers, not paths:

n-092_U_235/pass2.inpwritten by ampx_library.py · 498 s
' n-092_U_235 (MAT 9228) ENDF/B-VIII.1, SCALE-56, thermal weighting; ampx_library.py
=shell
ln -sf ${RTNDIR}/n-092_U_235.endf ft11f001
ln -sf ${RTNDIR}/n-092_U_235_y12.endf ft12f001
ln -sf /home/hardtohit10/ampx-lib/group.bounds.big_endian ft77f001
cp /home/hardtohit10/ampx-lib/weight.tab1 ft34f001
ln -sf /home/hardtohit10/ampx-lib/n-003_Li_006/n-003_Li_006_uncol.coverx ft61f001
ln -sf /home/hardtohit10/ampx-lib/n-079_Au_197/n-079_Au_197_uncol.coverx ft62f001
ln -sf /home/hardtohit10/ampx-lib/n-092_U_238/n-092_U_238_uncol.coverx ft63f001
cp ${RTNDIR}/n-092_U_235_293.6K.tab1 ft36f001
cp ${RTNDIR}/n-092_U_235_56g.master ft41f001
end
=puff_iv
endf=11 point=36 master=41 flux=34 matwt=99 mtwt=1099
mat=9228 ngrp=56 out=44
cross=true res=true chi=true ein=0.0253
fix_correlation=false
coverx=[ 61 62 63 ]
end
=shell
cp ft44f001 ${RTNDIR}/n-092_U_235.cross.coverx
end

Without the second pass PUFF-IV skips those blocks. For both libraries, three cross-material fission blocks of the evaluations (U-235 × U-238, U-235 × Pu-239, U-233 × Pu-240) were removed before processing: checked against the partners' variances, they implied correlations up to 15.7. The cross-nuclide paper looks at what they would change.

Where the chain needed care

TGEL makes its totals from its input file

Reactions TGEL creates in a run (MT 103 from MT 600–649, for example) are not yet in the file it sums, so one run leaves them out of the totals. For Be-7 a single run gave a total cross section of 43 b instead of 1.4 × 10⁵ b, the difference being the (n,p) reaction. Run TGEL twice: first to create the missing reactions, then for the sums.

MT3 is not total minus elastic in TGEL

TGEL adds an MT3 by an older AMPX sum rule that leaves out absorption (MT 102–117), and PUFF-IV does not rebuild a missing MT3. Where the evaluation has none, FUNCCALC computes MT 1 + (−1) × MT 2 (it has no subtraction) and ZEST replaces TGEL's MT3. For Cr-50 that gives 53.50 b at thermal and 1.370 b in the top group, against NJOY's 53.47 and 1.370 b. FUNCCALC hangs on partial evaluations with no MF3 total and elastic, so they skip this step.

Unit 77 must be big-endian

scalerte makes units 21–26, 33, 77–80, 88 and 89 big-endian, and X10 always reads the group structure from unit 77. It gets a byte-swapped copy of etc/group.bounds; with the little-endian file there, X10 crashed. The 56-group bounds in that file were checked to be identical to the ones used with NJOY.

Y12 and ENDF/B-VIII.1 MF6 MT18

ENDF/B-VIII.1 adds neutron-multiplicity subsections (LAW −5) to MF6 MT18 of U-235, U-238 and Pu-239. Y12 cannot read them, and X10 then fails. Y12 gets a copy of the evaluation without MF6 MT18 (χ comes from MF5 MT18); PUFF-IV reads the original. Only the χ weights depend on it. The copy is recorded as a change to the evaluated data.

Assembling a SCALE library

PUFF-IV labels everything with the ENDF MAT and writes more reactions than SCALE's libraries carry (MT 3, 5, 17, 27, 51, 101, 851 and up), some reaction pairs in both orders. SCALE's CADILLAC merges and relabels per-nuclide files (add=/new=, secondary=/matid= for partners); here a script (ampx_assemble.py) writes one COVERX library with SCALE IDs and SCALE's reaction set, keeping the first of each duplicated pair, as CADILLAC does.

How it compares with NJOY

The same evaluations, groups and weighting were processed independently with NJOY2016 (ERRORR, driven by SANDY):

CheckResult
U-235, every reactionrelative standard deviations within 0.002 %-points in every group; correlations within 0.0005; all PUFF-IV matrices positive semi-definite
Sandwich-rule k uncertainty, whole librariesAMPX 0.667 / 0.717 / 0.758 % against NJOY 0.666 / 0.719 / 0.755 % for LEU-COMP-THERM-093, HEU-SOL-THERM-046 and PU-SOL-THERM-039: within 3 pcm
Library-wide (release v1.0)153 SCALE IDs agree within 0.1 %-points and 0.01 in correlation; of the 130 nuclides that differ by 1 %-point or 0.1 in correlation or more, 105 have the largest difference inside the resolved-resonance range of MF32
Correlations above 1NJOY gives them for nine R-matrix evaluations (Cl-35, Ca-40, Cu-63, Cu-65, Rh-103, W-182, W-183, W-184, W-186); PUFF-IV processes the same evaluations without them

So the codes agree closely except in how they propagate resonance-parameter covariances. The matrices of both libraries can be browsed and compared side by side in the covariance explorer, and used for sandwich-rule uncertainties in the S/U calculator.