MADNESS 0.10.1
madness::Atom Class Reference

#include <molecule.h>

Public Member Functions

 Atom ()
 Default construct makes a zero charge ghost atom at origin.
 Atom (const Atom &a)
 Atom (double x, double y, double z, double q, unsigned int atomic_number)
 Atom (double x, double y, double z, double q, unsigned int atomic_number, bool pseudo_atom)
int get_atomic_number () const
madness::Vector< double, 3 > get_coords () const
double get_mass_in_au () const
 return the mass in atomic units (electron mass = 1 a.u.)
hashT hash () const
bool operator== (const Atom &other) const
template<typename Archive>
void serialize (Archive &ar)

Public Attributes

unsigned int atomic_number
 Atomic number.
double mass
 Mass.
bool pseudo_atom
 Indicates if this atom uses a pseudopotential.
double q
 Coordinates and charge in atomic units.
double x
double y
double z

Constructor & Destructor Documentation

◆ Atom() [1/4]

madness::Atom::Atom ( double x,
double y,
double z,
double q,
unsigned int atomic_number,
bool pseudo_atom )
inlineexplicit

◆ Atom() [2/4]

madness::Atom::Atom ( double x,
double y,
double z,
double q,
unsigned int atomic_number )
inlineexplicit

◆ Atom() [3/4]

madness::Atom::Atom ( const Atom & a)
inline

References Atom(), a, atomic_number, mass, pseudo_atom, q, x, y, and z.

◆ Atom() [4/4]

madness::Atom::Atom ( )
inline

Default construct makes a zero charge ghost atom at origin.

References atomic_number, mass, pseudo_atom, q, x, y, and z.

Member Function Documentation

◆ get_atomic_number()

int madness::Atom::get_atomic_number ( ) const
inline

◆ get_coords()

◆ get_mass_in_au()

double madness::Atom::get_mass_in_au ( ) const
inline

return the mass in atomic units (electron mass = 1 a.u.)

References madness::constants::atomic_mass_in_au, and mass.

Referenced by madness::MolecularOptimizer::projector_external_dof(), and projector_external_dof().

◆ hash()

hashT madness::Atom::hash ( ) const
inline

◆ operator==()

bool madness::Atom::operator== ( const Atom & other) const
inline

◆ serialize()

template<typename Archive>
void madness::Atom::serialize ( Archive & ar)
inline

References atomic_number, mass, pseudo_atom, q, x, y, and z.

Member Data Documentation

◆ atomic_number

◆ mass

double madness::Atom::mass

◆ pseudo_atom

bool madness::Atom::pseudo_atom

◆ q

◆ x

◆ y

◆ z


The documentation for this class was generated from the following file: