← Modern Nuclear Data Processing · Learning AMPX by example
Learning AMPX · covariances
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.
| Module | Job | When |
|---|---|---|
| polident_new | 0 K point cross sections, resonances reconstructed to 0.1 % | always |
| broaden | Doppler broadening to 293.6 K | always |
| tgel | adds MT 4, 18 and 103–107 where only their parts are given | always |
| tgel | the sums: total (MT 1), inelastic (4), capture (101), absorption (27) | always, as a second run |
| funccalc · zest | MT 3 as total minus elastic | when the evaluation has no MF3 MT3 |
| jergens | the weighting spectrum (made once, reused) | once |
| y12 · x10 | distributions and a 56-group master library, which supplies χ | only with MF35 (fission spectrum covariances) |
| puff_iv | covariances on a fine grid, collapsed to 56 groups: MF33 with MF32, MF31, MF35 | always |
| puff_iv | again, with the partners' uncollapsed files, for cross-material blocks | a 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.
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 (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
0$$ units, 2$$ MAT and unit of the ENDF file, 4** with the reconstruction tolerances 0.001 as entries 1 and 5); the continuous-energy inputs use the keyword form (globaleps=). Both are accepted.endf=11 is the evaluation, point=36 the broadened cross sections, flux=34 with matwt=99 mtwt=1099 the JERGENS weighting function. cross=true res=true process the cross-section covariances with the resonance-parameter covariances (MF33 with MF32); chi=true adds MF35 and needs a master library. fix_correlation=false leaves the correlations as processed, as in the NJOY library; PUFF-IV's default is true.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:
' 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
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:
' 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
for=leg nl=5, id= the MAT); the continuous-energy chain uses for=tab and id=1.ein=0.0253 when a master library is given. For U-235 both energies fall in the same block (1e-5 eV to 500 keV).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 (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.
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.
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.
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.
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.
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.
The same evaluations, groups and weighting were processed independently with NJOY2016 (ERRORR, driven by SANDY):
| Check | Result |
|---|---|
| U-235, every reaction | relative 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 libraries | AMPX 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 1 | NJOY 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.