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. More...
 
 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.) More...
 
hashT hash () const
 
template<typename Archive >
void serialize (Archive &ar)
 

Public Attributes

unsigned int atomic_number
 Atomic number. More...
 
double mass
 Mass. More...
 
bool pseudo_atom
 Indicates if this atom uses a pseudopotential. More...
 
double q
 Coordinates and charge in atomic units. More...
 
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

Coordinates and charge in atomic units.

Referenced by EwaldNuclearPotentialFunctor::EwaldNuclearPotentialFunctor(), madness::NuclearCorrelationFactor::U1X_functor::U1X_functor(), madness::NuclearCorrelationFactor::U2X_functor::U2X_functor(), compute_madelung_energy(), compute_madelung_energy_PWSCF(), EwaldNuclearPotentialFunctor::do_G_sum_v2(), EwaldNuclearPotentialFunctor::do_R_sum_v1(), hash(), madness::NuclearCorrelationFactor::R_functor::operator()(), madness::NuclearCorrelationFactor::U1_functor::operator()(), madness::NuclearCorrelationFactor::U1_atomic_functor::operator()(), madness::NuclearCorrelationFactor::U1_dot_U1_functor::operator()(), madness::NuclearCorrelationFactor::U2_functor::operator()(), madness::NuclearCorrelationFactor::U3_functor::operator()(), madness::NuclearCorrelationFactor::U2_atomic_functor::operator()(), madness::NuclearCorrelationFactor::U3_atomic_functor::operator()(), madness::NuclearCorrelationFactor::square_times_V_functor::operator()(), madness::NuclearCorrelationFactor::square_times_V_derivative_functor::operator()(), madness::NuclearCorrelationFactor::RX_functor::operator()(), madness::NuclearCorrelationFactor::U1X_functor::operator()(), madness::NuclearCorrelationFactor::U2X_functor::operator()(), madness::NuclearCorrelationFactor::U3X_functor::operator()(), MolecularNuclearPotentialFunctor2::operator()(), madchem::AtomicAttractionFunctor::operator()(), operator<<(), madness::operator<<(), serialize(), and test_nuclear_potential_big_unit_cell().

◆ 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: