OpenCAP
Electronic structure of metastable states
|
Object for storing atomic data. More...
#include <Atom.h>
Public Member Functions | |
void | ang_to_bohr () |
Atom (string symbol, double x, double y, double z) | |
Atom (int atom_num, double x, double y, double z) | |
element | get_element_info (std::string symbol) |
element | get_element_info (int Z) |
Public Attributes | |
std::string | symbol |
std::string | name |
int | Z |
std::array< double, 3 > | coords |
Object for storing atomic data.
Contains atomic name, symbol, nuclear charge, and coordinates.
Atom::Atom | ( | string | symbol, |
double | x, | ||
double | y, | ||
double | z | ||
) |
Constructs Atom object from atomic symbol and coordinates.
symbol | element symbol |
x | x coordinate |
y | y coordinate |
z | z coordinate |
Atom::Atom | ( | int | atom_num, |
double | x, | ||
double | y, | ||
double | z | ||
) |
Constructs Atom object from atomic number and coordinates.
atom_num | atomic number |
x | x coordinate |
y | y coordinate |
z | z coordinate |
void Atom::ang_to_bohr | ( | ) |
Converts coordinates from angstrom to bohr units.
element Atom::get_element_info | ( | std::string | symbol | ) |
Returns element struct corresponding to atomic symbol
symbol | atomic symbol |
element Atom::get_element_info | ( | int | Z | ) |
Returns element struct corresponding to atomic number
Z | atomic number |
std::array<double,3> Atom::coords |
Atomic coordinates, assumed to be in bohr units by the rest of the program
std::string Atom::name |
Element name
std::string Atom::symbol |
Atomic symbol
int Atom::Z |
Nuclear charge