1#ifndef ESOLVER_SDFT_PW_H
2#define ESOLVER_SDFT_PW_H
13template <
typename T,
typename Device = base_device::DEVICE_CPU>
43 const double ethr)
override;
ESolver_KS_PW()
Definition esolver_ks_pw.cpp:35
Stochastic_WF< T, Device > stowf
Definition esolver_sdft_pw.h:32
void cal_stress(BaseCell &basecell, ModuleBase::matrix &stress) override
calcualte stress of given cell
Definition esolver_sdft_pw.cpp:220
typename GetTypeReal< T >::type Real
Definition esolver_sdft_pw.h:17
virtual void after_scf(UnitCell &ucell, const int istep, const bool conv_esolver) override
Something to do after SCF iterations when SCF is converged or comes to the max iter step.
Definition esolver_sdft_pw.cpp:132
StoHamiltPW< T, Device > * p_hamilt_sto
Definition esolver_sdft_pw.h:34
virtual void iter_finish(UnitCell &ucell, const int istep, int &iter, bool &conv_esolver) override
Something to do after hamilt2rho function in each iter loop.
Definition esolver_sdft_pw.cpp:114
int method_sto
method of SDFT
Definition esolver_sdft_pw.h:57
virtual void after_all_runners(BaseCell &basecell) override
perform post processing calculations
Definition esolver_sdft_pw.cpp:234
void cal_force(BaseCell &basecell, ModuleBase::matrix &force) override
calcualte forces for the atoms in the given cell
Definition esolver_sdft_pw.cpp:206
virtual void hamilt2rho_single(UnitCell &ucell, const int istep, const int iter, const double ethr) override
Definition esolver_sdft_pw.cpp:144
StoChe< Real, Device > stoche
Definition esolver_sdft_pw.h:33
int nche_sto
norder of Chebyshev
Definition esolver_sdft_pw.h:56
virtual void before_scf(UnitCell &ucell, const int istep) override
Something to do before SCF iterations.
Definition esolver_sdft_pw.cpp:92
void before_all_runners(BaseCell &basecell, const Input_para &inp) override
Initialize of the first-principels energy solver.
Definition esolver_sdft_pw.cpp:39
~ESolver_SDFT_PW()
Definition esolver_sdft_pw.cpp:31
ESolver_SDFT_PW()
Definition esolver_sdft_pw.cpp:24
double cal_energy() override
calculate total energy of a given system
Definition esolver_sdft_pw.cpp:200
bool conv_esolver
Definition esolver.h:46
Definition sto_hamilt_pw.h:8
Provide the basic information about unitcell.
Definition unitcell.h:16
The First-Principles (FP) Energy Solver Class.
Definition opt_test_tools.cpp:93
T type
Definition macros.h:8