occ
|
Utility class representing and holding data for a chemical element. More...
#include <element.h>
Public Member Functions | |
Element ()=delete | |
Element (const std::string &string, bool exact_match=false) | |
Construct an Element instance from its chemical symbol or name. | |
Element (int num) | |
Construct an Element instance from its atomic number. | |
const std::string & | symbol () const |
The Element symbol e.g. | |
const std::string & | name () const |
The Element name e.g. | |
float | mass () const |
The average isotopic mass of this Element e.g. | |
float | covalent_radius () const |
The covalent radius of this Element. | |
float | van_der_waals_radius () const |
The van der Waals radius of this Element. | |
int | atomic_number () const |
The atomic number this Element. | |
bool | operator< (const Element &rhs) const |
Overload of the < operator. | |
bool | operator> (const Element &rhs) const |
Overload of the > operator. | |
bool | operator== (const Element &rhs) const |
Overload of the == operator. | |
bool | operator!= (const Element &rhs) const |
Overload of the != operator. | |
double | polarizability (bool charged=false) const |
The free-atom atom polarizibility of this Element. | |
Utility class representing and holding data for a chemical element.
Element is a simple class with getter methods for typical useful values of common data convenient for common operations in computational chemistry.
Defined for the periodic table from H-Lr, using average isotopic data.
|
delete |
occ::core::Element::Element | ( | const std::string & | string, |
bool | exact_match = false |
||
) |
Construct an Element instance from its chemical symbol or name.
string | a string object representing the chemical symbol, element name, or label to identify the relevant Element. |
exact_match | whether to only find exact matches for the given string. |
The string parameter is trimmed of whitespace, then capitalized prior to attempted matching so it should be case insensitive.
If exact_match is false, then things like labels e.g. H1, HA will be able to match (based on a partial match) with the relevant element. This behaviour may be undesirable, hence the optional parameter.
occ::core::Element::Element | ( | int | num | ) |
Construct an Element instance from its atomic number.
num | the atomic number of the element, should be in range [1,103] |
|
inline |
The atomic number this Element.
|
inline |
The covalent radius of this Element.
|
inline |
The average isotopic mass of this Element e.g.
1.00794f, 4.00262f
|
inline |
The Element name e.g.
"hydrogen", "helium", "lithium"
|
inline |
|
inline |
|
inline |
|
inline |
double occ::core::Element::polarizability | ( | bool | charged = false | ) | const |
The free-atom atom polarizibility of this Element.
Data taken from Thakkar
|
inline |
The Element symbol e.g.
"H", "He", "Li"
|
inline |
The van der Waals radius of this Element.