Skip to main content

Module parser

Module parser 

Source
Expand description

ENDF-6 File 2 resonance parameter, File 3 cross section and File 32 covariance parser.

Parses the fixed-width 80-character ENDF-6 format to extract resolved resonance region (RRR) parameters.

§ENDF-6 Line Format

Each line is exactly 80 characters:

  • Cols 1-11: Field 1 (floating point or integer)
  • Cols 12-22: Field 2
  • Cols 23-33: Field 3
  • Cols 34-44: Field 4
  • Cols 45-55: Field 5
  • Cols 56-66: Field 6
  • Cols 67-70: MAT number
  • Cols 71-72: MF (file number)
  • Cols 73-75: MT (section number)
  • Cols 76-80: Line sequence

§SAMMY Reference

  • SAMMY manual Section 9 (ENDF-6 format)
  • SAMMY source: sammy/src/endf/ module

Enums§

EndfParseError
Errors from ENDF parsing.

Functions§

parse_endf_file2
Parse ENDF-6 File 2 resonance parameters, and File 3’s cross sections when the text holds them, from raw ENDF text.
parse_resonance_covariance
The covariance, from File 32 (MT=151), of the energy, neutron width and capture width of each resonance of data with an energy in window_ev that File 32 lists with the same spin and an energy and widths that agree to a relative 1e-5. A resonance listed in several short-range sections has their contributions summed; resonances outside the window, or that File 32 does not list, are left out. None when the text has no File 32 or it lists no resonance in the window.