onix – Data and library readers

Library readers

A few functions to read text libraries and extract nuclear data as dictionnaries.

onix.data.read_mass_lib

Reads a mass library and returns a Python dictionnary with nuclides’ zamid as keys and mass in grams as entries.

onix.data.read_decay_lib

Reads a decay library and returns a Python dictionnary with nuclides’ zamid as keys and decay sub-dictionnaries as entries.

onix.data.conv_decay_b_a

Converts a fractionnal decay constant dictionnary to an absolute decay constant dictionnary (fractionnal decay dictionnary stores decay constant as fraction over total decay constant, absolute decay dictionnary stores absolute values of decay constants).

onix.data.read_xs_lib

Reads a constant one-group cross section library and returns a Python dictionnary with nuclides’ zamid as keys and cross section sub-dictionnaries as entries.

onix.data.read_fy_lib

Reads a fission yield library and returns a Python dictionnary with fissio products’ zamid as keys and fission yield sub-dictionnaries as entries.

onix.data.xs_mat_from_Btxt

Builds a neutron-induced transmutation matrix from a compressed matrix stored in a text file.

onix.data.decay_mat_from_Ctxt

Builds a decay matrix from a compressed matrix stored in a text file.

onix.data.nucl_list_from_txt

Builds a list of nuclides from a compressed matrix stored in a text file.

onix.data.read_isomeric_data

Reads the EAF-2010 activation transmutation neutron nuclear data library and returns a point-wise isomeric branching dictionnary for (n,gamma) reactions.