Skip to main content

parse_endf_file2

Function parse_endf_file2 

Source
pub fn parse_endf_file2(
    endf_text: &str,
) -> Result<ResonanceData, EndfParseError>
Expand description

Parse ENDF-6 File 2 resonance parameters, and File 3’s cross sections when the text holds them, from raw ENDF text.

Extracts all MF=2, MT=151 lines and parses the resolved resonance region; File 3’s sections MT=1, 2, 102 and 18 become ResonanceData::smooth. An evaluation File 1 marks LRP=2 is refused.

§Arguments

  • endf_text — Full ENDF file contents as a string.

§Returns

ResonanceData containing all parsed resonance parameters.