Name

PeriodicTable — A class for representing elements from the periodic table.

Description

A set of classes used for constructing the elements from periodic table.

Object Methods

A PeriodicTable object provides the following query functions:

  • atomicNumber(): Return the atomic number of the element.

  • symbol(): Return the elements symbol.

  • name(): Return the name of the element.

  • atomicMass(): Return the atomic mass of the element.

Usage Examples

Use the elements Hydrogen and Oxygen to set up a MoleculeConfiguration

# Set up elements and positions
elm = [ Oxygen, Hydrogen, Hydrogen ]         
pos = [[ 0.000, 0.000, 0.0],
       [ 0.757, 0.586, 0.0],
       [-0.757, 0.586, 0.0]]*Angstrom

# Add them to a configuration
h2o = MoleculeConfiguration(elm, pos)

molecule_configuration.py

Alternatively, the shorter names H and O can also be used as in

# Set up elements and positions
elm = [PeriodicTable.O, PeriodicTable.H, PeriodicTable.H]         
pos = [[ 0.000, 0.000, 0.0],
       [ 0.757, 0.586, 0.0],
       [-0.757, 0.586, 0.0]]*Angstrom

# Add them to a configuration
h2o = MoleculeConfiguration(elm, pos)

Periodic table

The entire set of elements from the periodic system, as well as some of their key properties are listed in the atomic data appendix.