f4enix.input.xsdirpyne.XsdirTable#

class f4enix.input.xsdirpyne.XsdirTable#

Bases: object

Stores all information that describes a xsdir table entry, which appears as a single line in xsdir file. Attribute names are based off of those found in the MCNP5 User’s Guide Volume 3, appendix K.

Variables:
  • name (str) – The ZAID and library identifier, delimited by a ‘.’.

  • awr (float) – The atomic mass ratio of the nuclide.

  • filename (str) – The relative path of the file containing the xs table.

  • access (str) – Additional string to specify an access route, such as UNIX directory. This entry is typically 0.

  • filetype (int) – Describes whether the file contains formated (1) or unformated (2) file.

  • address (int) – If filetype is 1, address is the line number of the xsdir table. If filetype is 2, address is the record number.

  • tablelength (int) – Length of the second block of a data table.

  • recordlength (int) – Unused for filetype = 1. For filetype = 2, recordlength is the number of entires per record times the size (in bytes) of each entry.

  • entries (int) – Unused for filetype = 1. For filetype = 2, it is the number of entries per record

  • temperature (float) – Temperature in MeV for neutron data only.

  • ptable (bool) – True if xs table describes continuous energy neutron data with unresolved resonance range probability tables.

Methods

__init__()

to_serpent([directory])

Converts table to serpent format.

Attributes

alias

Returns the name of the table entry <ZIAD>.<library id>.

metastable

Returns 1 is xsdir table nuclide is metastable.

serpent_type

Converts cross section table type to Serpent format: :1: continuous energy (c).

zaid

Returns the ZIAD of the nuclide.

property alias#

Returns the name of the table entry <ZIAD>.<library id>.

property metastable#

Returns 1 is xsdir table nuclide is metastable. Returns zero otherwise.

property serpent_type#

Converts cross section table type to Serpent format: :1: continuous energy (c). :2: dosimetry table (y). :3: termal (t).

to_serpent(directory='')#

Converts table to serpent format.

Parameters:

directory (str) – The directory where Serpent data is to be stored.

property zaid#

Returns the ZIAD of the nuclide.