atomlib.elem
ELEMENTS
module-attribute
ELEMENTS = {
"h": 1,
"he": 2,
"li": 3,
"be": 4,
"b": 5,
"c": 6,
"n": 7,
"o": 8,
"f": 9,
"ne": 10,
"na": 11,
"mg": 12,
"al": 13,
"si": 14,
"p": 15,
"s": 16,
"cl": 17,
"ar": 18,
"k": 19,
"ca": 20,
"sc": 21,
"ti": 22,
"v": 23,
"cr": 24,
"mn": 25,
"fe": 26,
"co": 27,
"ni": 28,
"cu": 29,
"zn": 30,
"ga": 31,
"ge": 32,
"as": 33,
"se": 34,
"br": 35,
"kr": 36,
"rb": 37,
"sr": 38,
"y": 39,
"zr": 40,
"nb": 41,
"mo": 42,
"tc": 43,
"ru": 44,
"rh": 45,
"pd": 46,
"ag": 47,
"cd": 48,
"in": 49,
"sn": 50,
"sb": 51,
"te": 52,
"i": 53,
"xe": 54,
"cs": 55,
"ba": 56,
"la": 57,
"ce": 58,
"pr": 59,
"nd": 60,
"pm": 61,
"sm": 62,
"eu": 63,
"gd": 64,
"tb": 65,
"dy": 66,
"ho": 67,
"er": 68,
"tm": 69,
"yb": 70,
"lu": 71,
"hf": 72,
"ta": 73,
"w": 74,
"re": 75,
"os": 76,
"ir": 77,
"pt": 78,
"au": 79,
"hg": 80,
"tl": 81,
"pb": 82,
"bi": 83,
"po": 84,
"at": 85,
"rn": 86,
"fr": 87,
"ra": 88,
"ac": 89,
"th": 90,
"pa": 91,
"u": 92,
"np": 93,
"pu": 94,
"am": 95,
"cm": 96,
"bk": 97,
"cf": 98,
"es": 99,
"fm": 100,
"md": 101,
"no": 102,
"lr": 103,
"rf": 104,
"db": 105,
"sg": 106,
"bh": 107,
"hs": 108,
"mt": 109,
"ds": 110,
"rg": 111,
"cn": 112,
"nh": 113,
"fl": 114,
"mc": 115,
"lv": 116,
"ts": 117,
"og": 118,
}
ELEMENT_SYMBOLS
module-attribute
ELEMENT_SYMBOLS = [
"H",
"He",
"Li",
"Be",
"B",
"C",
"N",
"O",
"F",
"Ne",
"Na",
"Mg",
"Al",
"Si",
"P",
"S",
"Cl",
"Ar",
"K",
"Ca",
"Sc",
"Ti",
"V",
"Cr",
"Mn",
"Fe",
"Co",
"Ni",
"Cu",
"Zn",
"Ga",
"Ge",
"As",
"Se",
"Br",
"Kr",
"Rb",
"Sr",
"Y",
"Zr",
"Nb",
"Mo",
"Tc",
"Ru",
"Rh",
"Pd",
"Ag",
"Cd",
"In",
"Sn",
"Sb",
"Te",
"I",
"Xe",
"Cs",
"Ba",
"La",
"Ce",
"Pr",
"Nd",
"Pm",
"Sm",
"Eu",
"Gd",
"Tb",
"Dy",
"Ho",
"Er",
"Tm",
"Yb",
"Lu",
"Hf",
"Ta",
"W",
"Re",
"Os",
"Ir",
"Pt",
"Au",
"Hg",
"Tl",
"Pb",
"Bi",
"Po",
"At",
"Rn",
"Fr",
"Ra",
"Ac",
"Th",
"Pa",
"U",
"Np",
"Pu",
"Am",
"Cm",
"Bk",
"Cf",
"Es",
"Fm",
"Md",
"No",
"Lr",
"Rf",
"Db",
"Sg",
"Bh",
"Hs",
"Mt",
"Ds",
"Rg",
"Cn",
"Nh",
"Fl",
"Mc",
"Lv",
"Ts",
"Og",
]
get_elem
Get the atomic number corresponding to a given symbol.
Examples
>>> get_elem("Gd")
62
>>> get_elem(polars.Series(["Gd", "Ce", "O"]))
shape: (3,)
Series: 'elem' [i8]
[
64
58
8
]
Source code in atomlib/elem.py
get_elems
Get the elements and quantities corresponding to a formula unit.
Examples
>>> get_elems("AlN")
[(13, 1.0), (7, 1.0)]
>>> get_elems("Al0.93Sc0.07N")
[(13, 0.93), (21, 0.07), (7, 1.0)]
Source code in atomlib/elem.py
get_sym
Get the symbol corresponding to an atomic number.
Examples
Source code in atomlib/elem.py
get_mass
Get the standard atomic mass for the given element. Follows the 2021 IUPAC definitions [1].
[1] 2021 table of the IUPAC Commission on Isotopic Abundances and Atomic Weights https://doi.org/10.1515/pac-2019-0603
Source code in atomlib/elem.py
get_ionic_radius
Get crystal ionic radius in angstroms for elem
in charge state charge
.
Follows the values in [2].
[2] R.D. Shannon, Acta Cryst. A32 (1976) https://doi.org/10.1107/S0567739476001551
Source code in atomlib/elem.py
get_radius
Get the neutral atomic radius for the given element(s), in angstroms. Follows the values in [3].
[3] E. Clementi et. al, J. Chem. Phys. 47 (1967) https://doi.org/10.1063/1.1712084