ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
esolver_fp.h
Go to the documentation of this file.
1#ifndef ESOLVER_FP_H
2#define ESOLVER_FP_H
3
4#include "esolver.h"
5#include "source_base/parallel_grid.h" // Parallel_Grid (value member below)
7#include "source_basis/module_pw/pw_basis_sup.h" // plane wave basis
8#include "source_cell/stru_fac.h" // structure factor
9#include "source_estate/elecstate.h" // electronic states
10#include "source_estate/module_charge/chg_extra.h" // charge extrapolation
11#include "source_hamilt/module_surchem/surchem.h" // solvation model
12#include "source_pw/module_pwdft/vl_pw.h" // local pseudopotential
13
14#include <fstream>
15#include <memory>
16
17namespace vdw
18{
19struct VdwResult;
20}
21
23
29
30namespace ModuleESolver
31{
32class ESolver_FP : public ESolver
33{
34 public:
35 ESolver_FP();
36
37 virtual ~ESolver_FP();
38
40 virtual void before_all_runners(BaseCell &basecell, const Input_para &inp) override;
41
42 virtual void after_all_runners(BaseCell &basecell) override;
43
44 protected:
45 virtual void before_scf(UnitCell &ucell, const int istep);
46
47 virtual void after_scf(UnitCell &ucell, const int istep, const bool conv_esolver);
48
49 virtual void iter_finish(
50 UnitCell &ucell,
51 const int istep,
52 int &iter,
53 bool &conv_esolver);
54
55 const vdw::VdwResult *get_vdw_result() const { return this->vdw_result_.get(); }
56
58 std::unique_ptr<const vdw::VdwResult> vdw_result_;
59
62
65
68
77
80
83
86
89
92
93 bool pw_rho_flag = false;
94
97};
98} // namespace ModuleESolver
99
100#endif
Definition basecell.h:9
Definition charge.h:24
Class for k-points management.
Definition klist.h:20
bool pw_rho_flag
flag for pw_rho, 0: not initialized, 1: initialized
Definition esolver_fp.h:93
Charge chr
Electorn charge density.
Definition esolver_fp.h:67
ModulePW::PW_Basis * pw_rhod
Definition esolver_fp.h:75
virtual void iter_finish(UnitCell &ucell, const int istep, int &iter, bool &conv_esolver)
Definition esolver_fp.cpp:247
ModulePW::PW_Basis_Big * pw_big
dense grid for USPP
Definition esolver_fp.h:76
module_charge::Charge_Extra CE
charge extrapolation method
Definition esolver_fp.h:88
pseudopot_cell_vl locpp
local pseudopotentials
Definition esolver_fp.h:85
K_Vectors kv
K points in Brillouin zone.
Definition esolver_fp.h:64
ESolver_FP()
Definition esolver_fp.cpp:28
surchem solvent
solvent model
Definition esolver_fp.h:91
virtual void after_scf(UnitCell &ucell, const int istep, const bool conv_esolver)
Definition esolver_fp.cpp:140
virtual void after_all_runners(BaseCell &basecell) override
perform post processing calculations
Definition esolver_fp.cpp:271
virtual void before_all_runners(BaseCell &basecell, const Input_para &inp) override
Initialize of the first-principels energy solver.
Definition esolver_fp.cpp:41
virtual ~ESolver_FP()
Definition esolver_fp.cpp:30
ModulePW::PW_Basis * pw_rho
Definition esolver_fp.h:74
elecstate::ElecState * pelec
These pointers will be deleted in the free_pointers() function every ion step.
Definition esolver_fp.h:61
virtual void before_scf(UnitCell &ucell, const int istep)
Definition esolver_fp.cpp:161
Structure_Factor sf
Structure factors that used with plane-wave basis set.
Definition esolver_fp.h:82
const vdw::VdwResult * get_vdw_result() const
Definition esolver_fp.h:55
ModuleBase::TimePoint iter_time
the start time of scf iteration
Definition esolver_fp.h:96
Parallel_Grid Pgrid
parallel for rho grid
Definition esolver_fp.h:79
std::unique_ptr< const vdw::VdwResult > vdw_result_
vdW correction evaluated once for the current ionic configuration.
Definition esolver_fp.h:58
ESolver()
Definition esolver.h:15
bool conv_esolver
Definition esolver.h:46
Definition pw_basis_big.h:11
A class which can convert a function of "r" to the corresponding linear superposition of plane waves ...
Definition pw_basis.h:60
Definition parallel_grid.h:8
Definition stru_fac.h:10
Provide the basic information about unitcell.
Definition unitcell.h:16
Definition elecstate.h:20
charge extrapolation method
Definition chg_extra.h:42
Definition vl_pw.h:13
Definition surchem.h:34
double TimePoint
Time point type that works in both MPI and non-MPI environments.
Definition timer_wrapper.h:15
The First-Principles (FP) Energy Solver Class.
Definition opt_test_tools.cpp:93
Definition esolver_fp.h:18
Definition input_parameter.h:13
Definition vdw.h:30