# pymatgen.core.periodic_table module¶

Module contains classes presenting Element and Specie (Element + oxidation state) and PeriodicTable.

class DummySpecie(symbol: str = 'X', oxidation_state: float = 0, properties: dict = None)[source]

A special specie for representing non-traditional elements or species. For example, representation of vacancies (charged or otherwise), or special sites, etc.

oxi_state[source]

Oxidation state associated with Specie.

Z[source]

DummySpecie is always assigned an atomic number equal to the hash number of the symbol. Obviously, it makes no sense whatsoever to use the atomic number of a Dummy specie for anything scientific. The purpose of this is to ensure that for most use cases, a DummySpecie behaves no differently from an Element or Specie.

X[source]

DummySpecie is always assigned an electronegativity of 0.

Parameters
• symbol (str) – An assigned symbol for the dummy specie. Strict rules are applied to the choice of the symbol. The dummy symbol cannot have any part of first two letters that will constitute an Element symbol. Otherwise, a composition may be parsed wrongly. E.g., “X” is fine, but “Vac” is not because Vac contains V, a valid Element.

• oxidation_state (float) – Oxidation state for dummy specie. Defaults to zero.

property X[source]

DummySpecie is always assigned an electronegativity of 0. The effect of this is that DummySpecie are always sorted in front of actual Specie.

property Z[source]

DummySpecie is always assigned an atomic number equal to the hash of the symbol. The expectation is that someone would be an actual dummy to use atomic numbers for a Dummy specie.

as_dict()[source]
Returns

MSONAble dict representation.

classmethod from_dict(d)[source]
Parameters

d – Dict representation

Returns

DummySpecie

static from_string(species_string: str)[source]

Returns a Dummy from a string representation.

Parameters

species_string (str) – A string representation of a dummy species, e.g., “X2+”, “X3+”.

Returns

A DummySpecie object.

Raises

ValueError if species_string cannot be intepreted.

property oxi_state[source]

Oxidation state associated with DummySpecie

property symbol[source]

Symbol for DummySpecie.

Type

return

class Element(symbol: str)[source]

Bases: enum.Enum

Enum representing an element in the periodic table.

Basic immutable element object with all relevant properties.

Only one instance of Element for each symbol is stored after creation, ensuring that a particular element behaves like a singleton. For all attributes, missing data (i.e., data for which is not available) is represented by a None unless otherwise stated.

Parameters

symbol (str) – Element symbol, e.g., “H”, “Fe”

Z[source]

Atomic number

symbol[source]

Element symbol

X[source]

Pauling electronegativity. Elements without an electronegativity number are assigned a value of zero by default.

number[source]

Alternative attribute for atomic number

max_oxidation_state[source]

Maximum oxidation state for element

min_oxidation_state[source]

Minimum oxidation state for element

oxidation_states[source]

Tuple of all known oxidation states

common_oxidation_states[source]

Tuple of all common oxidation states

full_electronic_structure[source]

Full electronic structure as tuple. E.g., The electronic structure for Fe is represented as: [(1, “s”, 2), (2, “s”, 2), (2, “p”, 6), (3, “s”, 2), (3, “p”, 6), (3, “d”, 6), (4, “s”, 2)]

row[source]

Returns the periodic table row of the element.

group[source]

Returns the periodic table group of the element.

block[source]

Return the block character “s,p,d,f”

is_noble_gas[source]

True if element is noble gas.

is_transition_metal[source]

True if element is a transition metal.

is_post_transition_metal[source]

True if element is a post transition metal.

is_rare_earth_metal[source]

True if element is a rare earth metal.

is_metalloid[source]

True if element is a metalloid.

is_alkali[source]

True if element is an alkali metal.

is_alkaline[source]

True if element is an alkaline earth metal (group II).

is_halogen[source]

True if element is a halogen.

is_lanthanoid[source]

True if element is a lanthanoid.

is_actinoid[source]

True if element is a actinoid.

iupac_ordering[source]

Ordering according to Table VI of “Nomenclature of Inorganic Chemistry (IUPAC Recommendations 2005)”. This ordering effectively follows the groups and rows of the periodic table, except the Lanthanides, Actanides and hydrogen.

long_name[source]

Long name for element. E.g., “Hydrogen”.

atomic_mass[source]

Atomic mass for the element.

atomic_radius[source]

Atomic radius for the element. This is the empirical value. Data is obtained from http://en.wikipedia.org/wiki/Atomic_radii_of_the_elements_(data_page).

atomic_radius_calculated[source]

Calculated atomic radius for the element. This is the empirical value. Data is obtained from http://en.wikipedia.org/wiki/Atomic_radii_of_the_elements_(data_page).

van_der_waals_radius[source]

Van der Waals radius for the element. This is the empirical value. Data is obtained from http://en.wikipedia.org/wiki/Atomic_radii_of_the_elements_(data_page).

mendeleev_no[source]

Mendeleev number from definition given by Pettifor, D. G. (1984). A chemical scale for crystal-structure maps. Solid State Communications, 51 (1), 31-34

electrical_resistivity[source]

Electrical resistivity

velocity_of_sound[source]

Velocity of sound

reflectivity[source]

Reflectivity

refractive_index[source]

Refractice index

poissons_ratio[source]

Poisson’s ratio

molar_volume[source]

Molar volume

electronic_structure[source]

Electronic structure. Simplified form with HTML formatting. E.g., The electronic structure for Fe is represented as [Ar].3d<sup>6</sup>.4s<sup>2</sup>

atomic_orbitals[source]

Atomic Orbitals. Energy of the atomic orbitals as a dict. E.g., The orbitals energies in eV are represented as {‘1s’: -1.0, ‘2s’: -0.1} Data is obtained from https://www.nist.gov/pml/data/atomic-reference-data-electronic-structure-calculations The LDA values for neutral atoms are used

thermal_conductivity[source]

Thermal conductivity

boiling_point[source]

Boiling point

melting_point[source]

Melting point

critical_temperature[source]

Critical temperature

superconduction_temperature[source]

Superconduction temperature

liquid_range[source]

Liquid range

bulk_modulus[source]

Bulk modulus

youngs_modulus[source]

Young’s modulus

brinell_hardness[source]

Brinell hardness

rigidity_modulus[source]

Rigidity modulus

mineral_hardness[source]

Mineral hardness

vickers_hardness[source]

Vicker’s hardness

density_of_solid[source]

Density of solid phase

coefficient_of_linear_thermal_expansion[source]

Coefficient of linear thermal expansion

average_ionic_radius[source]

Average ionic radius for element in ang. The average is taken over all oxidation states of the element for which data is present.

average_cationic_radius[source]

Average cationic radius for element in ang. The average is taken over all positive oxidation states of the element for which data is present.

average_anionic_radius[source]

Average ionic radius for element in ang. The average is taken over all negative oxidation states of the element for which data is present.

ionic_radii[source]

All ionic radii of the element as a dict of {oxidation state: ionic radii}. Radii are given in ang.

Ac = 'Ac'[source]
Ag = 'Ag'[source]
Al = 'Al'[source]
Am = 'Am'[source]
Ar = 'Ar'[source]
As = 'As'[source]
At = 'At'[source]
Au = 'Au'[source]
B = 'B'[source]
Ba = 'Ba'[source]
Be = 'Be'[source]
Bi = 'Bi'[source]
Bk = 'Bk'[source]
Br = 'Br'[source]
C = 'C'[source]
Ca = 'Ca'[source]
Cd = 'Cd'[source]
Ce = 'Ce'[source]
Cf = 'Cf'[source]
Cl = 'Cl'[source]
Cm = 'Cm'[source]
Co = 'Co'[source]
Cr = 'Cr'[source]
Cs = 'Cs'[source]
Cu = 'Cu'[source]
Dy = 'Dy'[source]
Er = 'Er'[source]
Es = 'Es'[source]
Eu = 'Eu'[source]
F = 'F'[source]
Fe = 'Fe'[source]
Fm = 'Fm'[source]
Fr = 'Fr'[source]
Ga = 'Ga'[source]
Gd = 'Gd'[source]
Ge = 'Ge'[source]
H = 'H'[source]
He = 'He'[source]
Hf = 'Hf'[source]
Hg = 'Hg'[source]
Ho = 'Ho'[source]
I = 'I'[source]
In = 'In'[source]
Ir = 'Ir'[source]
K = 'K'[source]
Kr = 'Kr'[source]
La = 'La'[source]
Li = 'Li'[source]
Lr = 'Lr'[source]
Lu = 'Lu'[source]
Md = 'Md'[source]
Mg = 'Mg'[source]
Mn = 'Mn'[source]
Mo = 'Mo'[source]
N = 'N'[source]
Na = 'Na'[source]
Nb = 'Nb'[source]
Nd = 'Nd'[source]
Ne = 'Ne'[source]
Ni = 'Ni'[source]
No = 'No'[source]
Np = 'Np'[source]
O = 'O'[source]
Os = 'Os'[source]
P = 'P'[source]
Pa = 'Pa'[source]
Pb = 'Pb'[source]
Pd = 'Pd'[source]
Pm = 'Pm'[source]
Po = 'Po'[source]
Pr = 'Pr'[source]
Pt = 'Pt'[source]
Pu = 'Pu'[source]
Ra = 'Ra'[source]
Rb = 'Rb'[source]
Re = 'Re'[source]
Rh = 'Rh'[source]
Rn = 'Rn'[source]
Ru = 'Ru'[source]
S = 'S'[source]
Sb = 'Sb'[source]
Sc = 'Sc'[source]
Se = 'Se'[source]
Si = 'Si'[source]
Sm = 'Sm'[source]
Sn = 'Sn'[source]
Sr = 'Sr'[source]
Ta = 'Ta'[source]
Tb = 'Tb'[source]
Tc = 'Tc'[source]
Te = 'Te'[source]
Th = 'Th'[source]
Ti = 'Ti'[source]
Tl = 'Tl'[source]
Tm = 'Tm'[source]
U = 'U'[source]
V = 'V'[source]
W = 'W'[source]
property X[source]

Electronegativity of element. Note that if an element does not have an electronegativity, a NaN float is returned.

Type

return

Xe = 'Xe'[source]
Y = 'Y'[source]
Yb = 'Yb'[source]
Zn = 'Zn'[source]
Zr = 'Zr'[source]
as_dict()[source]

Makes Element obey the general json interface used in pymatgen for easier serialization.

property atomic_mass[source]

The atomic mass of the element in amu.

Type

Returns

property atomic_radius[source]

The atomic radius of the element in Ångstroms.

Type

Returns

property average_anionic_radius[source]

Average anionic radius for element (with units). The average is taken over all negative oxidation states of the element for which data is present.

property average_cationic_radius[source]

Average cationic radius for element (with units). The average is taken over all positive oxidation states of the element for which data is present.

property average_ionic_radius[source]

Average ionic radius for element (with units). The average is taken over all oxidation states of the element for which data is present.

property block[source]

Return the block character “s,p,d,f”

property common_oxidation_states[source]

Tuple of all known oxidation states

property data[source]

Returns dict of data for element.

from_Z = <function Element.from_Z>[source]
from_dict = <function Element.from_dict>[source]
from_row_and_group = <function Element.from_row_and_group>[source]
property full_electronic_structure[source]

Full electronic structure as tuple. E.g., The electronic structure for Fe is represented as: [(1, “s”, 2), (2, “s”, 2), (2, “p”, 6), (3, “s”, 2), (3, “p”, 6), (3, “d”, 6), (4, “s”, 2)]

property ground_state_term_symbol[source]

Ground state term symbol Selected based on Hund’s Rule

property group[source]

Returns the periodic table group of the element.

property icsd_oxidation_states[source]

Tuple of all oxidation states with at least 10 instances in ICSD database AND at least 1% of entries for that element

property ionic_radii[source]

All ionic radii of the element as a dict of {oxidation state: ionic radii}. Radii are given in ang.

property is_actinoid[source]

True if element is a actinoid.

property is_alkali[source]

True if element is an alkali metal.

property is_alkaline[source]

True if element is an alkaline earth metal (group II).

property is_chalcogen[source]

True if element is a chalcogen.

property is_halogen[source]

True if element is a halogen.

property is_lanthanoid[source]

True if element is a lanthanoid.

property is_metal[source]

True if is a metal.

Type

return

property is_metalloid[source]

True if element is a metalloid.

property is_noble_gas[source]

True if element is noble gas.

property is_post_transition_metal[source]

True if element is a post-transition or poor metal.

property is_quadrupolar[source]

Checks if this element can be quadrupolar

property is_rare_earth_metal[source]

True if element is a rare earth metal.

property is_transition_metal[source]

True if element is a transition metal.

is_valid_symbol = <function Element.is_valid_symbol>[source]
property iupac_ordering[source]

Ordering according to Table VI of “Nomenclature of Inorganic Chemistry (IUPAC Recommendations 2005)”. This ordering effectively follows the groups and rows of the periodic table, except the Lanthanides, Actanides and hydrogen.

property max_oxidation_state[source]

Maximum oxidation state for element

property metallic_radius[source]

Metallic radius of the element. Radius is given in ang.

property min_oxidation_state[source]

Minimum oxidation state for element

property nmr_quadrupole_moment[source]

Get a dictionary the nuclear electric quadrupole moment in units of e*millibarns for various isotopes

property number[source]

Alternative attribute for atomic number

property oxidation_states[source]

Tuple of all known oxidation states

print_periodic_table = <function Element.print_periodic_table>[source]
property row[source]

Returns the periodic table row of the element.

property term_symbols[source]

All possible Russell-Saunders term symbol of the Element eg. L = 1, n_e = 2 (s2) returns

[[‘1D2’], [‘3P0’, ‘3P1’, ‘3P2’], [‘1S0’]]

property valence[source]

# From full electron config obtain valence subshell # angular moment (L) and number of valence e- (v_e)

class Specie(symbol: str, oxidation_state: float = 0.0, properties: dict = None)[source]

Bases: monty.json.MSONable

An extension of Element with an oxidation state and other optional properties. Properties associated with Specie should be “idealized” values, not calculated values. For example, high-spin Fe2+ may be assigned an idealized spin of +5, but an actual Fe2+ site may be calculated to have a magmom of +4.5. Calculated properties should be assigned to Site objects, and not Specie.

Initializes a Specie.

Parameters
• symbol (str) – Element symbol, e.g., Fe

• oxidation_state (float) – Oxidation state of element, e.g., 2 or -2

• properties – Properties associated with the Specie, e.g., {“spin”: 5}. Defaults to None. Properties must be one of the Specie supported_properties.

oxi_state[source]

Oxidation state associated with Specie

ionic_radius[source]

Ionic radius of Specie (with specific oxidation state).

Changed in version 2.6.7: Properties are now checked when comparing two Species for equality.

as_dict()[source]
Returns

Json-able dictionary representation.

property element[source]

Underlying element object

classmethod from_dict(d)[source]
Parameters

d – Dict representation.

Returns

Specie.

static from_string(species_string: str)[source]

Returns a Specie from a string representation.

Parameters

species_string (str) – A typical string representation of a species, e.g., “Mn2+”, “Fe3+”, “O2-“.

Returns

A Specie object.

Raises

ValueError if species_string cannot be intepreted.

get_crystal_field_spin(coordination: str = 'oct', spin_config: str = 'high')[source]

Calculate the crystal field spin based on coordination and spin configuration. Only works for transition metal species.

Parameters
• coordination (str) – Only oct and tet are supported at the moment.

• spin_config (str) – Supported keywords are “high” or “low”.

Returns

Crystal field spin in Bohr magneton.

Raises
• AttributeError if species is not a valid transition metal or has

• an invalid oxidation state.

• ValueError if invalid coordination or spin_config.

get_nmr_quadrupole_moment(isotope=None)[source]

Gets the nuclear electric quadrupole moment in units of e*millibarns

Parameters

isotope (str) – the isotope to get the quadrupole moment for default is None, which gets the lowest mass isotope

get_shannon_radius(cn: str, spin: str = '', radius_type: str = 'ionic')[source]

Get the local environment specific ionic radius for species.

Parameters
• cn (str) – Coordination using roman letters. Supported values are I-IX, as well as IIIPY, IVPY and IVSQ.

• spin (str) – Some species have different radii for different spins. You can get specific values using “High Spin” or “Low Spin”. Leave it as “” if not available. If only one spin data is available, it is returned and this spin parameter is ignored.

• radius_type (str) – Either “crystal” or “ionic” (default).

Returns

Shannon radius for specie in the specified environment.

property ionic_radius[source]

Ionic radius of specie. Returns None if data is not present.

property oxi_state[source]

Oxidation state of Specie.

supported_properties = ('spin',)[source]
get_el_sp(obj)[source]

Utility method to get an Element or Specie from an input obj. If obj is in itself an element or a specie, it is returned automatically. If obj is an int or a string representing an integer, the Element with the atomic number obj is returned. If obj is a string, Specie parsing will be attempted (e.g., Mn2+), failing which Element parsing will be attempted (e.g., Mn), failing which DummyElement parsing will be attempted.

Parameters

obj (Element/Specie/str/int) – An arbitrary object. Supported objects are actual Element/Specie objects, integers (representing atomic numbers) or strings (element symbols or species strings).

Returns

Specie or Element, with a bias for the maximum number of properties that can be determined.

Raises

ValueError if obj cannot be converted into an Element or Specie.