Function adas.i4eiz0

def i4eiz0(esym)

Return the nuclear charge of the atomic symbol.

Parameters

esym : str
Atomic symbol. Can be an array.

Returns

int
Nuclear charge, which may be an array. Set to -1 if an unknown element is requested.

Notes

Last element is Lawrencium (Z0=103).

Version History

  • Martin O'Mullane, 17-12-2012

    • First version
  • Martin O'Mullane, 18-05-2020

    • Vectorize and allow a list as input.
  • Martin O'Mullane, 31-05-2021

    • Remove spaces in input before searching for element.
  • Martin O'Mullane, 15-09-2023

    • Extend to Lawrencium (the last actinide).
    • The temporary ununquadium has been named as flerovium.

Example

Although flerovium (Z0=114) does exist this routine returns -1.

>>> import adas as adas
>>> adas.i4eiz0('Be')
4
>>> adas.i4eiz0(['Be', 'C', 'W'])
array([ 4,  6, 74])
>>> adas.i4eiz0(['Li', 'Uuq'])
array([ 3, -1])