ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
ModuleESolver::ESolver Class Referenceabstract

#include <esolver.h>

Inheritance diagram for ModuleESolver::ESolver:
Collaboration diagram for ModuleESolver::ESolver:

Public Member Functions

 ESolver ()
virtual ~ESolver ()
virtual void before_all_runners (BaseCell &cell, const Input_para &inp)=0
 initialize the energy solver by using input parameters and cell modules
virtual void runner (BaseCell &cell, const int istep)=0
 run energy solver
virtual void after_all_runners (BaseCell &cell)=0
 perform post processing calculations
virtual void others (BaseCell &, const int)
virtual double cal_energy ()=0
 calculate total energy of a given system
virtual void cal_force (BaseCell &cell, ModuleBase::matrix &force)=0
 calcualte forces for the atoms in the given cell
virtual void cal_stress (BaseCell &cell, ModuleBase::matrix &stress)=0
 calcualte stress of given cell

Public Attributes

bool conv_esolver = true
std::string classname

Protected Attributes

const Input_para * inp_ = nullptr
 Bound in before_all_runners; members use inp_->xxx instead of PARAM.inp.xxx.

Constructor & Destructor Documentation

◆ ESolver()

ModuleESolver::ESolver::ESolver ( )
inline

◆ ~ESolver()

virtual ModuleESolver::ESolver::~ESolver ( )
inlinevirtual

Member Function Documentation

◆ after_all_runners()

◆ before_all_runners()

◆ cal_energy()

◆ cal_force()

◆ cal_stress()

◆ others()

virtual void ModuleESolver::ESolver::others ( BaseCell & ,
const int  )
inlinevirtual

deal with exx and other calculation than scf/md/relax/cell-relax: such as nscf, get_wf and get_pchg

Reimplemented in ModuleESolver::ESolver_KS_LCAO< TK, TR >, ModuleESolver::ESolver_KS_LCAO< std::complex< double >, TR >, ModuleESolver::ESolver_KS_PW< T, Device >, ModuleESolver::ESolver_KS_PW< std::complex< double >, base_device::DEVICE_CPU >, and ModuleESolver::ESolver_KS_PW< T, base_device::DEVICE_CPU >.

Here is the caller graph for this function:

◆ runner()

virtual void ModuleESolver::ESolver::runner ( BaseCell & cell,
const int istep )
pure virtual

Member Data Documentation

◆ classname

std::string ModuleESolver::ESolver::classname

◆ conv_esolver

bool ModuleESolver::ESolver::conv_esolver = true

◆ inp_

const Input_para* ModuleESolver::ESolver::inp_ = nullptr
protected

Bound in before_all_runners; members use inp_->xxx instead of PARAM.inp.xxx.


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