QMCPACK
Atom Class Referenceabstract
+ Inheritance diagram for Atom:
+ Collaboration diagram for Atom:

Public Member Functions

virtual AtomType Type ()=0
 
virtual void UpdateVHXC ()=0
 
virtual void CalcEnergies (double &kinetic, double &potential, double &hartree, double &HXC)=0
 
virtual void Solve ()=0
 
virtual void Write (IOSectionClass &out)=0
 
virtual void Read (IOSectionClass &in)=0
 
virtual void SetGrid (std::shared_ptr< Grid > &newGrid)=0
 
GridGetGrid ()
 
double NumElecs ()
 
virtual void SetBarePot (Potential *pot)=0
 

Public Attributes

Array< RadialWF, 1 > RadialWFs
 

Protected Attributes

std::shared_ptr< Gridgrid
 

Detailed Description

Definition at line 30 of file AtomBase.h.

Member Function Documentation

◆ CalcEnergies()

virtual void CalcEnergies ( double &  kinetic,
double &  potential,
double &  hartree,
double &  HXC 
)
pure virtual

Implemented in DFTAtom.

◆ GetGrid()

Grid* GetGrid ( )
inline

Definition at line 44 of file AtomBase.h.

References grid.

44 { return grid.get(); }
std::shared_ptr< Grid > grid
Definition: AtomBase.h:33

◆ NumElecs()

double NumElecs ( )
inline

Definition at line 49 of file AtomBase.h.

References RadialWFs, and Array< T, D, ALLOC >::size().

50 {
51  double num = 0.0;
52  for (int i = 0; i < RadialWFs.size(); i++)
53  num += RadialWFs(i).Occupancy;
54  return num;
55 }
Array< RadialWF, 1 > RadialWFs
Definition: AtomBase.h:36
size_t size() const
Definition: OhmmsArray.h:57

◆ Read()

virtual void Read ( IOSectionClass in)
pure virtual

Implemented in DFTAtom.

◆ SetBarePot()

virtual void SetBarePot ( Potential pot)
pure virtual

Implemented in DFTAtom.

◆ SetGrid()

virtual void SetGrid ( std::shared_ptr< Grid > &  newGrid)
pure virtual

Implemented in DFTAtom.

◆ Solve()

virtual void Solve ( )
pure virtual

Implemented in DFTAtom.

◆ Type()

virtual AtomType Type ( )
pure virtual

Implemented in DFTAtom.

◆ UpdateVHXC()

virtual void UpdateVHXC ( )
pure virtual

Implemented in DFTAtom.

◆ Write()

virtual void Write ( IOSectionClass out)
pure virtual

Implemented in DFTAtom.

Member Data Documentation

◆ grid

std::shared_ptr<Grid> grid
protected

Definition at line 33 of file AtomBase.h.

Referenced by GetGrid().

◆ RadialWFs

Array<RadialWF, 1> RadialWFs

Definition at line 36 of file AtomBase.h.

Referenced by NumElecs().


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