montepy.Nucleus#
- class montepy.Nucleus(element: Element, A: int = 0, meta_state: int = 0)#
Bases:
SingletonGroupA class to represent a nuclide irrespective of the nuclear data being used.
This is meant to be an immutable representation of the nuclide, no matter what nuclear data library is used.
U-235is alwaysU-235. Generally users don’t need to interact with this much as it is almost always wrapped by:montepy.data_inputs.nuclide.Nuclide.Note
This class is immutable, and hashable, meaning it is suitable as a dictionary key.
Added in version 1.0.0.
- Parameters:
- Raises:
TypeError – if an parameter is the wrong type.
ValueError – if non-sensical values are given.
Attributes:
The A number for this isotope.
The Z number for this isotope.
The ZZZAAA identifier following MCNP convention.
The base element for this isotope.
Whether or not this is a metastable isomer.
If this is a metastable isomer, which state is it?
- property ZAID: int#
The ZZZAAA identifier following MCNP convention.
If this is metastable the MCNP convention for ZAIDs for metastable isomers will be used.
- Return type:
- property element: Element#
The base element for this isotope.
- Returns:
The element for this isotope.
- Return type:
- property is_metastable: bool#
Whether or not this is a metastable isomer.
- Returns:
boolean of if this is metastable.
- Return type:
- property meta_state: int#
If this is a metastable isomer, which state is it?
Can return values in the range [0,4]. The exact state number is decided by who made the ACE file for this, and not quantum mechanics. Convention states that the isomers should be numbered from lowest to highest energy. The ground state will be 0.
- Returns:
the metastable isomeric state of this “isotope” in the range [0,4].
- Return type: