MADNESS 0.10.1
Public Member Functions | Public Attributes | List of all members
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
 
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

◆ Atom() [4/4]

madness::Atom::Atom ( )
inline

Default construct makes a zero charge ghost atom at origin.

Member Function Documentation

◆ get_atomic_number()

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

◆ get_coords()

madness::Vector< double, 3 > madness::Atom::get_coords ( ) const
inline

◆ 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 projector_external_dof(), and madness::MolecularOptimizer::projector_external_dof().

◆ hash()

hashT madness::Atom::hash ( ) 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

unsigned int madness::Atom::atomic_number

◆ mass

double madness::Atom::mass

◆ pseudo_atom

bool madness::Atom::pseudo_atom

◆ q

double madness::Atom::q

◆ x

double madness::Atom::x

◆ y

double madness::Atom::y

◆ z

double madness::Atom::z

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