onix.utils.xs_lib¶
-
class
onix.utils.
xs_lib
(id_number)[source]¶ xs_lib objects allow users to build and store custom, small size one-group cross section libraries.
- Parameters
id_number (int) – The id number associated with the xs_lib object
-
add_data
(zamid, **kwargs)[source]¶ Add cross section data for a specified nuclide to the cross section object.
- Parameters
zamid (int) – z-a-m id of the nuclide
data (float) –
Keywords should be cross section names. Input should be the value in barn. Possible keyword entries:
ngamma
n2n
n3n
nalpha
fission
removal
-
add_xs_dict
(zamid, xs_dict)[source]¶ Add cross section data from a cross section disctionnary for a specified nuclide to the cross section object.
- Parameters
zamid (int) – z-a-m id of the nuclide
xs_dict (dict) –
A dictionnary where keys are cross section names and entries are values in barn. Possible dictionnary entries:
(n,gamma)
(n,2n)
(n,3n)
(n,alpha)
fission
removal
-
property
xs
¶ Returns the cross section dictionnary of the cross section object. This dictionnary has nuclides’ z-a-m id as keys and cross section sub-dictionnaries as entries. Cross section sub-dictionnaries have cross sections’ names as keys and corresponding values in barn as entries.