f4enix.input.d1suned.Reaction#

class f4enix.input.d1suned.Reaction(parent: Nuclide, MT: int | str, daughter: Nuclide, comment: str | None = None)#

Bases: object

Represents a single reaction of the reaction file

Parameters:
  • parent (Nuclide) – parent nuclide of the reaction.

  • MT (int | str) – integer, reaction type (ENDF definition, e.g. 102).

  • daughter (Nuclide) – daughter nuclide of the reaction.

  • comment (str, optional) – comment to the reaction. The default is None.

Variables:
  • parent (Nuclide) – parent nuclide of the reaction.

  • MT (str) – integer, reaction type (ENDF definition, e.g. ‘102’).

  • daughter (Nuclide) – daughter nuclide of the reaction.

  • comment (str, optional) – comment to the reaction. The default is None.

Return type:

None.

Methods

__init__(parent, MT, daughter[, comment])

Represents a single reaction of the reaction file

change_lib(newlib)

Change the library tag

from_text(text)

Create a Reaction object from text

change_lib(newlib: str) None#

Change the library tag

Parameters:

newlib (str) – library extension as used in xsdir format (e.g. 00c).

Return type:

None.

classmethod from_text(text: str) Reaction#

Create a Reaction object from text

Parameters:
  • cls (TYPE) – DESCRIPTION.

  • text (str) – formatted text describing the reaction.

Returns:

Reaction object.

Return type:

Reaction