atomdb.periodic module

atomdb.periodic.setup_element()

Generate the Element class and helper functions.

atomdb.periodic.read_csv(file)

Read a CSV file into a list of lists.

atomdb.periodic.get_data()

Extract the contents of data/elements_data.csv.

atomdb.periodic.get_info()

Extract the contents of data/data_info.csv.

atomdb.periodic.indent_lines(input_string, indent)

Indent each line of a string by a given number of spaces.

atomdb.periodic.make_property(data, prop, prop2col)

Construct a property method for the Element class.

class atomdb.periodic.Element(elem)

Bases: object

Element properties.

atnum

Atomic number of the element.

Type

int

symbol

Symbol of the element.

Type

str

name

Name of the element.

Type

str

group

Group of the element.

Type

int

period

Period of the element.

Type

int

mult

Multiplicity of the element.

Type

int

cov_radius

Covalent radius of the element.

Type

Dict[float]

vdw_radius

van der Waals radius of the element.

Type

Dict[float]

at_radius

atomic radius of the element.

Type

Dict[float]

eneg

Electronegativity of the element.

Type

Dict[float]

pold

Isolated atom dipole polarizability of the element.

Type

Dict[float]

c6

Isolated atom C6 dispersion coefficients of the element.

Type

Dict[float]

mass

Atomic mass of the element.

Type

Dict[float]

Initialize an Element instance.

Parameters

elem ((str | int)) – Symbol, name, or number of an element.

property at_radius

atomic radius of the element.

Returns

at_radius

Return type

Dict[float]

Notes

This property is a dictionary with the following keys:
property atnum

Atomic number of the element.

Returns

atnum

Return type

int

property c6

Isolated atom C6 dispersion coefficients of the element.

Returns

c6

Return type

Dict[float]

Notes

This property is a dictionary with the following keys:
property cov_radius

Covalent radius of the element.

Returns

cov_radius

Return type

Dict[float]

Notes

This property is a dictionary with the following keys:
  • “cordero”
    • Source

      B. Cordero, V. Gomez, A. E. Platero-Prats, M. Reves, J. Echeverria,E. Cremades, F. Barragan, and S. Alvarez, Dalton Trans. pp. 2832–2838 (2008)

    • Units

      angstrom

    • URL

      http://dx.doi.org/10.1039/b801115j

    • Notes

      For carbon the number is a weighted average over the data for different hybridizations. For Mn, Fe, and Co, the number is a weighted average over the data for different spins (high spin and low spin)

  • “bragg”
  • “slater”
property eneg

Electronegativity of the element.

Returns

eneg

Return type

Dict[float]

Notes

This property is a dictionary with the following keys:
property group

Group of the element.

Returns

group

Return type

int

property mass

Atomic mass of the element.

Returns

mass

Return type

Dict[float]

Notes

This property is a dictionary with the following keys:
property mult

Multiplicity of the element.

Returns

mult

Return type

int

property name

Name of the element.

Returns

name

Return type

str

property period

Period of the element.

Returns

period

Return type

int

property pold

Isolated atom dipole polarizability of the element.

Returns

pold

Return type

Dict[float]

Notes

This property is a dictionary with the following keys:
  • “crc”
    • Source

      CRC Handbook of Chemistry and Physics (CRC, Boca Raton, FL, 2003).

    • Units

      angstrom**3

    • Notes

      If multiple values were present in the CRC book, the value used in Erin’s postg code is taken

  • “chu”
property symbol

Symbol of the element.

Returns

symbol

Return type

str

property vdw_radius

van der Waals radius of the element.

Returns

vdw_radius

Return type

Dict[float]

Notes

This property is a dictionary with the following keys:
atomdb.periodic.element_number(elem)

Return the element number from a string or int.

Parameters

elem ((str | int)) – Symbol, name, or number of an element.

Returns

atnum – Atomic number.

Return type

int

atomdb.periodic.element_symbol(elem)

Return the element symbol from a string or int.

Parameters

elem ((str | int)) – Symbol, name, or number of an element.

Returns

symbol – Element symbol.

Return type

str

atomdb.periodic.element_name(elem)

Return the element name from a string or int.

Parameters

elem ((str | int)) – Symbol, name, or number of an element.

Returns

name – Element name.

Return type

str