classes
¶
Classes:
|
Chemical element. |
|
Ordered dict of Elements with lookup by number, symbol, and name. |
|
Subclass of Element to handle the Heavy Hydrogen isotopes Deuterium and Tritium. |
|
Isotope massnumber, relative atomic mass, and abundance. |
Data:
Type alias for isotope dictionaries. |
-
class
Element
(number, symbol, name, group=0, period=0, block='', series=0, mass=0.0, eleneg=0.0, eleaffin=0.0, covrad=0.0, atmrad=0.0, vdwrad=0.0, tboil=0.0, tmelt=0.0, density=0.0, eleconfig='', oxistates='', ionenergy=None, isotopes=None, description='')[source]¶ Bases:
Dictable
Chemical element.
- Parameters
number (
int
)symbol (
str
)name (
str
)group (
int
) – Default0
.period (
int
) – Default0
.block (
str
) – Default''
.series (
int
) – Default0
.mass (
float
) – Default0.0
.eleneg (
float
) – Default0.0
.eleaffin (
float
) – Default0.0
.covrad (
float
) – Default0.0
.atmrad (
float
) – Default0.0
.vdwrad (
float
) – Default0.0
.tboil (
float
) – Default0.0
.tmelt (
float
) – Default0.0
.density (
float
) – Default0.0
.eleconfig (
str
) – Default''
.oxistates (
str
) – Default''
.isotopes (
Optional
[Dict
[int
,Union
[Isotope
,Tuple
[float
,float
]]]]) – DefaultNone
.description (
str
) – Default''
.
Methods:
__repr__
()Return a string representation of the
Element
.__str__
()Return
str(self)
.validate
()Check consistency of data.
Attributes:
The Atomic radius in Angstrom.
The Block of the element in the periodic table.
The Covalent radius in Angstrom.
The density at 295K in g/cm3 respectively g/L.
A description of the element.
The electron affinity in eV.
The Ground state electron configuration.
The ground state electron configuration.
The number of electrons in the element.
The Electronegativity (Pauling scale).
The number of electrons per shell as tuple.
The relative atomic mass calculated from the isotopic composition.
The group of the element in the periodic table.
The ionization energies in
eV
.The Isotopic composition.
The relative atomic mass.
The relative atomic mass.
The name of the element in English.
The number of neutrons in the most abundant natural stable isotope.
The mass number of the most abundant natural stable isotope.
The atomic number of the element.
The oxidation states.
The Period of the element in the periodic table.
The number of protons in the element.
Index to chemical series.
The chemical symbol of the element.
The boiling temperature in K.
The melting temperature in K.
The Van der Waals radius in Angstrom.
-
property
eleconfig_dict
¶ The ground state electron configuration.
Mapping of Tuple(shell, subshell): electrons.
-
property
exactmass
¶ The relative atomic mass calculated from the isotopic composition.
- Return type
-
property
isotopes
¶ The Isotopic composition.
keys: isotope mass numbervalues: Isotope(relative atomic mass, abundance)
-
property
molecular_weight
¶ The relative atomic mass.
Ratio of the average mass of atoms.
- Return type
-
property
neutrons
¶ The number of neutrons in the most abundant natural stable isotope.
- Return type
-
class
Elements
(*elements)[source]¶ Bases:
object
Ordered dict of Elements with lookup by number, symbol, and name.
- Parameters
*elements – The elements to add to the dictionary.
Methods:
__contains__
(item)Return
key in self
.__getitem__
(key)Return
self[key]
.__iter__
()__len__
()- rtype
__repr__
()Return a string representation of the
Elements
.__str__
()Return
str(self)
.add_alternate_spelling
(element, spelling)Adds an alternate spelling for an element.
split_isotope
(string)Attributes:
The names of the elements, all in lowercase.
The names of the elements.
The symbols of the elements.
-
class
HeavyHydrogen
(*args, **kwargs)[source]¶ Bases:
Element
Subclass of Element to handle the Heavy Hydrogen isotopes Deuterium and Tritium.
- Parameters
number
symbol
name
group
period
block
series
mass
eleneg
eleaffin
covrad
atmrad
vdwrad
tboil
tmelt
density
eleconfig
oxistates
ionenergy
isotopes
description
Chemical element.
- Parameters
number
symbol
name
group
period
block
series
mass
eleneg
eleaffin
covrad
atmrad
vdwrad
tboil
tmelt
density
eleconfig
oxistates
ionenergy
isotopes
description
Attributes:
Return the isotope in
H[X]
format.Return mass number of most abundant natural stable isotope.
-
class
Isotope
(mass=0.0, abundance=1.0, massnumber=0)[source]¶ Bases:
Dictable
Isotope massnumber, relative atomic mass, and abundance.
- Parameters
Methods:
__repr__
()Return a string representation of the
Isotope
.__str__
()Return
str(self)
.Attributes:
The natural abundance of the isotope.
The mass of the isotope.
The mass number of the isotope.