ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
|
#include <esolver_ks_lcaopw.h>
Public Member Functions | |
ESolver_KS_LIP () | |
~ESolver_KS_LIP () | |
void | before_all_runners (UnitCell &ucell, const Input_para &inp) override |
Initialize of the first-principels energy solver. | |
void | after_all_runners (UnitCell &ucell) override |
perform post processing calculations | |
virtual void | before_scf (UnitCell &ucell, const int istep) override |
Something to do before SCF iterations. | |
![]() | |
ESolver_KS_PW () | |
~ESolver_KS_PW () | |
void | before_all_runners (UnitCell &ucell, const Input_para &inp) override |
Initialize of the first-principels energy solver. | |
double | cal_energy () override |
calculate total energy of a given system | |
void | cal_force (UnitCell &ucell, ModuleBase::matrix &force) override |
calcualte forces for the atoms in the given cell | |
void | cal_stress (UnitCell &ucell, ModuleBase::matrix &stress) override |
calcualte stress of given cell | |
void | after_all_runners (UnitCell &ucell) override |
perform post processing calculations | |
![]() | |
ESolver_KS () | |
Constructor. | |
virtual | ~ESolver_KS () |
Deconstructor. | |
virtual void | runner (UnitCell &ucell, const int istep) override |
run energy solver | |
![]() | |
ESolver_FP () | |
Constructor. | |
virtual | ~ESolver_FP () |
Deconstructor. | |
![]() | |
ESolver () | |
virtual | ~ESolver () |
Protected Member Functions | |
virtual void | iter_init (UnitCell &ucell, const int istep, const int iter) override |
Something to do before hamilt2rho function in each iter loop. | |
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. | |
virtual void | hamilt2rho_single (UnitCell &ucell, const int istep, const int iter, const double ethr) override |
All the other interfaces except this one are the same as ESolver_KS_PW. | |
virtual void | allocate_hamilt (const UnitCell &ucell) override |
virtual void | deallocate_hamilt () override |
![]() | |
virtual void | update_pot (UnitCell &ucell, const int istep, const int iter, const bool conv_esolver) override |
<Temporary> It should be replaced by a function in Hamilt Class | |
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. | |
virtual void | others (UnitCell &ucell, const int istep) override |
![]() | |
void | hamilt2rho (UnitCell &ucell, const int istep, const int iter, const double ethr) |
Protected Attributes | |
psi::Psi< T, base_device::DEVICE_CPU > * | psi_local = nullptr |
psi for all local NAOs | |
![]() | |
psi::Psi< std::complex< double >, base_device::DEVICE_CPU > * | psi |
hide the psi in ESolver_KS for tmp use | |
psi::PSIInit< T, base_device::DEVICE_CPU > * | p_psi_init |
base_device::DEVICE_CPU * | ctx |
base_device::AbacusDevice_t | device |
psi::Psi< T, base_device::DEVICE_CPU > * | kspw_psi |
psi::Psi< std::complex< double >, base_device::DEVICE_CPU > * | __kspw_psi |
bool | already_initpsi |
![]() | |
hamilt::Hamilt< T, Device > * | p_hamilt = nullptr |
Hamiltonian. | |
ModulePW::PW_Basis_K * | pw_wfc = nullptr |
PW for wave functions, only used in KSDFT, not in OFDFT. | |
Charge_Mixing * | p_chgmix = nullptr |
Charge mixing method. | |
pseudopot_cell_vnl | ppcell |
nonlocal pseudopotentials | |
psi::Psi< T > * | psi = nullptr |
Electronic wavefunctions. | |
std::string | basisname |
double | esolver_KS_ne = 0.0 |
esolver_ks_lcao.cpp | |
double | diag_ethr |
number of electrons | |
double | scf_thr |
the threshold for diagonalization | |
double | scf_ene_thr |
scf density threshold | |
double | drho |
scf energy threshold | |
double | hsolver_error |
the difference between rho_in (before HSolver) and rho_out (After HSolver) | |
int | maxniter |
the error of HSolver | |
int | niter |
maximum iter steps for scf | |
bool | oscillate_esolver = false |
iter steps actually used in scf | |
![]() | |
elecstate::ElecState * | pelec = nullptr |
Electronic states. | |
K_Vectors | kv |
K points in Brillouin zone. | |
Charge | chr |
Electorn charge density. | |
ModulePW::PW_Basis * | pw_rho |
ModulePW::PW_Basis * | pw_rhod |
ModulePW::PW_Basis_Big * | pw_big |
dense grid for USPP | |
Parallel_Grid | Pgrid |
parallel for rho grid | |
Structure_Factor | sf |
Structure factors that used with plane-wave basis set. | |
pseudopot_cell_vl | locpp |
local pseudopotentials | |
Charge_Extra | CE |
charge extrapolation method | |
surchem | solvent |
solvent model | |
int | pw_rho_flag = false |
flag for pw_rho, 0: not initialized, 1: initialized | |
double | iter_time |
the start time of scf iteration | |
Private Types | |
using | Real = typename GetTypeReal< T >::type |
Additional Inherited Members | |
![]() | |
Exx_Helper< T, base_device::DEVICE_CPU > | exx_helper |
![]() | |
bool | conv_esolver = true |
std::string | classname |
![]() | |
using | castmem_2d_d2h_op = base_device::memory::cast_memory_op< std::complex< double >, T, base_device::DEVICE_CPU, base_device::DEVICE_CPU > |
|
private |
ModuleESolver::ESolver_KS_LIP< T >::ESolver_KS_LIP | ( | ) |
ModuleESolver::ESolver_KS_LIP< T >::~ESolver_KS_LIP | ( | ) |
|
overridevirtual |
perform post processing calculations
Reimplemented from ModuleESolver::ESolver_KS< T, Device >.
|
overrideprotectedvirtual |
Reimplemented from ModuleESolver::ESolver_KS_PW< T, base_device::DEVICE_CPU >.
|
overridevirtual |
Initialize of the first-principels energy solver.
1) initialize "before_all_runniers" in ESolver_FP
3) it has been established that
4) setup the charge mixing parameters
5) ESolver depends on the Symmetry module
6) Setup the k points according to symmetry.
7) print information
8) setup plane wave for electronic wave functions
9) initialize the real-space uniform grid for FFT and parallel distribution of plane waves
10) calculate the structure factor
1) read pseudopotentials
2) initialie the plane wave basis for rho
3) initialize the double grid (for uspp) if necessary
4) print some information
5) initialize the charge extrapolation method if necessary
Reimplemented from ModuleESolver::ESolver_KS< T, Device >.
|
overridevirtual |
Something to do before SCF iterations.
Reimplemented from ModuleESolver::ESolver_KS_PW< T, base_device::DEVICE_CPU >.
|
overrideprotectedvirtual |
Reimplemented from ModuleESolver::ESolver_KS_PW< T, base_device::DEVICE_CPU >.
|
overrideprotectedvirtual |
All the other interfaces except this one are the same as ESolver_KS_PW.
Reimplemented from ModuleESolver::ESolver_KS_PW< T, base_device::DEVICE_CPU >.
|
overrideprotectedvirtual |
Something to do after hamilt2rho function in each iter loop.
Reimplemented from ModuleESolver::ESolver_KS_PW< T, base_device::DEVICE_CPU >.
|
overrideprotectedvirtual |
Something to do before hamilt2rho function in each iter loop.
Reimplemented from ModuleESolver::ESolver_KS_PW< T, base_device::DEVICE_CPU >.
|
protected |
psi for all local NAOs