armi.nucDirectory.elements module¶
Deals with elements of the periodic table.
-
class
armi.nucDirectory.elements.Element(z, symbol, name)[source]¶ Bases:
objectRepresents an element, defined by its atomic number.
-
nuclideBases¶ nuclideBases for this element
- Type
list of nuclideBases
Creates an instance of an Element.
- Parameters
-
isNaturallyOccurring()[source]¶ Calculates the total natural abundance and if this value is zero returns False. If any isotopes are naturally occurring the total abundance will be >0 so it will return True
-
-
armi.nucDirectory.elements.getName(z=None, symbol=None)[source]¶ Returns element name
Examples
>>> elements.getName(10) 'Neon' >>> elements.getName(symbol='Ne') 'Neon'
-
armi.nucDirectory.elements.getSymbol(z=None, name=None)[source]¶ Returns element abbreviation given atomic number Z
Examples
>>> elements.getSymbol(10) 'Ne' >>> elements.getSymbol(name='Neon') 'Ne'
-
armi.nucDirectory.elements.getElementZ(symbol=None, name=None)[source]¶ Get element atomic number given a symbol or name.
Examples
>>> elements.getZ('Zr') 40 >>> elements.getZ(name='Zirconium') 40
Notes
Element Z is stored in elementZBySymbol, indexed by upper-case element symbol.
-
armi.nucDirectory.elements.clearNuclideBases()[source]¶ Delete all nuclide base links.
Necessary when initializing nuclide base information multiple times (often in testing).
-
armi.nucDirectory.elements.deriveNaturalWeights()[source]¶ Loop over all defined elements and compute the natural isotope-weighted atomic weight.
Must be run after all nuclideBases are initialized.
Notes
Abundances may not add exactly to 1.0 because they’re read from measurements that have uncertainties.