ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
esolver_double_xc.h
Go to the documentation of this file.
1#ifndef ESOLVER_DOUBLE_XC_H
2#define ESOLVER_DOUBLE_XC_H
3
5
6namespace ModuleESolver
7{
8// used in deepks, run target and base xc functional simultaneously
9template <typename TK, typename TR>
10class ESolver_DoubleXC : public ESolver_KS_LCAO<TK, TR>
11{
12 public:
15
16 void before_all_runners(BaseCell &basecell, const Input_para &inp) override;
17
18 void cal_force(BaseCell &basecell, ModuleBase::matrix &force) override;
19
20 protected:
21 void before_scf(UnitCell &ucell, const int istep) override;
22
23 void iter_finish(
24 UnitCell &ucell,
25 const int istep,
26 int &iter,
27 bool &conv_esolver) override;
28
31
34
37
40
43};
44} // namespace ModuleESolver
45#endif
Definition basecell.h:9
Definition charge.h:24
Definition matrix.h:15
ESolver_DoubleXC()
Definition esolver_double_xc.cpp:27
void before_scf(UnitCell &ucell, const int istep) override
Prepare an ionic step using istep for both initialization and initial-state output.
Definition esolver_double_xc.cpp:126
hamilt::Hamilt< TK > * p_hamilt_base
Hamiltonian.
Definition esolver_double_xc.h:30
void cal_force(BaseCell &basecell, ModuleBase::matrix &force) override
calcualte forces for the atoms in the given cell
Definition esolver_double_xc.cpp:371
Charge chr_base
Electorn charge density.
Definition esolver_double_xc.h:42
module_dm::Setup_DM< TK > dmat_base
Density Matrix, mohan add 2025-11-03.
Definition esolver_double_xc.h:39
void before_all_runners(BaseCell &basecell, const Input_para &inp) override
Initialize of the first-principels energy solver.
Definition esolver_double_xc.cpp:42
elecstate::ElecState * pelec_base
Electronic states.
Definition esolver_double_xc.h:36
void iter_finish(UnitCell &ucell, const int istep, int &iter, bool &conv_esolver) override
Finish an SCF iteration with energy corrections, mixing, convergence checks, and output.
Definition esolver_double_xc.cpp:180
~ESolver_DoubleXC()
Definition esolver_double_xc.cpp:34
psi::Psi< TK > * psi_base
Electronic wavefunctions.
Definition esolver_double_xc.h:33
ESolver_KS_LCAO()
Initialize the solver identity and DFT+U storage.
Definition esolver_ks_lcao.cpp:72
bool conv_esolver
Definition esolver.h:46
Provide the basic information about unitcell.
Definition unitcell.h:16
Definition elecstate.h:20
Definition hamilt.h:17
Definition dm_holder.h:10
Definition psi.h:37
The First-Principles (FP) Energy Solver Class.
Definition opt_test_tools.cpp:93
Definition input_parameter.h:13