GQCP
|
#include <Nucleus.hpp>
Public Member Functions | |
Nucleus (const size_t Z, const double x, const double y, const double z) | |
Nucleus (const size_t Z, const Vector< double, 3 > &position) | |
Nucleus () | |
double | calculateDistanceWith (const Nucleus &other) const |
std::string | description () const |
std::string | element () const |
size_t | charge () const |
const Vector< double, 3 > & | position () const |
Static Public Member Functions | |
static std::function< bool(const Nucleus &, const Nucleus &)> | sortComparer (const double tolerance=1.0e-08) |
static std::function< bool(const Nucleus &, const Nucleus &)> | equalityComparer (const double tolerance=1.0e-08) |
Friends | |
std::ostream & | operator<< (std::ostream &os, const Nucleus &nucleus) |
A class that represents a nucleus: it has a charge and a position in space
GQCP::Nucleus::Nucleus | ( | const size_t | Z, |
const double | x, | ||
const double | y, | ||
const double | z | ||
) |
Z | the atomic number (Z) of the nucleus |
x | the x-position of the nucleus in bohr |
y | the y-position of the nucleus in bohr |
z | the z-position of the nucleus in bohr |
GQCP::Nucleus::Nucleus | ( | const size_t | Z, |
const Vector< double, 3 > & | position | ||
) |
Z | the atomic number (Z) of the nucleus |
position | the position of the nucleus in bohr |
GQCP::Nucleus::Nucleus | ( | ) |
Default constructor, creating a 'ghost' nucleus (i.e. Bq) in the origin
double GQCP::Nucleus::calculateDistanceWith | ( | const Nucleus & | other | ) | const |
other | the other nucleus |
|
inline |
|
inline |
|
inline |
|
static |
|
inline |
|
static |
|
friend |
Overloading of operator<< for a Nucleus to be used with ostreams
os | the output stream to which the nucleus should be concatenated |
nucleus | the nucleus which should be concatenated to the output stream |