montepy.data_inputs.isotope module#

class montepy.data_inputs.isotope.Isotope(ZAID='', node=None, suppress_warning=False)#

Bases: object

A class to represent an MCNP isotope

Deprecated since version 0.4.1: This will class is deprecated, and will be renamed: Nuclde. For more details see the Migration plan for MontePy 1.0.0.

Parameters:
  • ZAID (str) – the MCNP isotope identifier

  • suppress_warning (bool) – Whether to suppress the FutureWarning.

property A#

The A number for this isotope.

Returns:

the isotope’s mass.

Return type:

int

property Z#

The Z number for this isotope.

Returns:

the atomic number.

Return type:

int

property ZAID#

The ZZZAAA identifier following MCNP convention

Return type:

int

property element#

The base element for this isotope.

Returns:

The element for this isotope.

Return type:

Element

get_base_zaid()#

Get the ZAID identifier of the base isotope this is an isomer of.

This is mostly helpful for working with metastable isomers.

Returns:

the mcnp ZAID of the ground state of this isotope.

Return type:

int

property is_metastable#

Whether or not this is a metastable isomer.

Returns:

boolean of if this is metastable.

Return type:

bool

property library#

The MCNP library identifier e.g. 80c

Return type:

str

mcnp_str()#

Returns an MCNP formatted representation.

E.g., 1001.80c

Returns:

a string that can be used in MCNP

Return type:

str

property meta_state#

If this is a metastable isomer, which state is it?

Can return values in the range [1,4] (or None). 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.

Returns:

the metastable isomeric state of this “isotope” in the range [1,4], or None if this is a ground state isomer.

Return type:

int

nuclide_str()#