ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
ctrl_scf_lcao.h
Go to the documentation of this file.
1#ifndef CTRL_SCF_LCAO_H
2#define CTRL_SCF_LCAO_H
3
4#include "source_basis/module_nao/two_center_bundle.h" // use TwoCenterBundle
5#include "source_basis/module_pw/pw_basis_k.h" // use ModulePW::PW_Basis_K and ModulePW::PW_Basis
6#include "source_cell/klist.h" // use K_Vectors
7#include "source_cell/unitcell.h" // use UnitCell
8#include "source_estate/elecstate.h" // use elecstate::ElecStateLCAO<TK>
9#include "source_estate/module_dm/density_matrix.h" // mohan add 2025-11-04
10#include "source_hamilt/module_surchem/surchem.h" // use surchem (for dH veff pots)
11#include "source_lcao/hamilt_lcao.h" // use hamilt::HamiltLCAO<TK, TR>
12#include "source_pw/module_pwdft/dftu_base.h" // Plus_U_Base, mohan add 20251107
13#include "source_lcao/module_rdmft/rdmft.h" // use RDMFT codes
14#include "source_lcao/setup_deepks.h" // for deepks, mohan add 20251008
15#include "source_lcao/setup_exx.h" // for exx, mohan add 20251008
16#include "source_psi/psi.h" // use Psi<TK>
17#include "source_cell/stru_fac.h" // use Structure_Factor
18
19#include <complex>
20#include <fstream>
21
22namespace ModuleIO
23{
24// in principle, we need to add const for all of the variables, mohan note 2025-06-05
25template <typename TK, typename TR>
26void ctrl_scf_lcao(UnitCell& ucell,
27 const Input_para& inp,
28 K_Vectors& kv,
29 elecstate::ElecState* pelec,
30 module_dm::DensityMatrix<TK, double>* dm, // mohan add 2025-11-04
31 Parallel_Orbitals& pv,
32 Grid_Driver& gd,
33 psi::Psi<TK>* psi,
34 hamilt::HamiltLCAO<TK, TR>* p_hamilt,
35 Plus_U_Base& dftu, // mohan add 2025-11-07
36 TwoCenterBundle& two_center_bundle,
37 LCAO_Orbitals& orb,
38 const ModulePW::PW_Basis_K* pw_wfc, // for berryphase
39 const ModulePW::PW_Basis* pw_rho, // for berryphase
40 const ModulePW::PW_Basis_Big* pw_big, // for Wannier90
41 Structure_Factor& sf, // for Wannier90
42 const ModulePW::PW_Basis* pw_rhod, // dense charge grid (for dH veff pots)
43 const ModuleBase::matrix& vloc, // local pseudopotential (for dH veff pots)
44 surchem& solvent, // solvent model (for dH veff pots)
45 rdmft::RDMFT<TK, TR>& rdmft_solver, // for RDMFT
46 Setup_DeePKS<TK>& deepks,
47 Exx_NAO<TK>& exx_nao,
48 const Exx_Info& exx_info,
49 const bool conv_esolver,
50 const bool scf_nmax_flag,
51 const bool last_ion_step,
52 const int istep,
53 std::ofstream& ofs_running);
54} // namespace ModuleIO
55#endif
Internal helpers shared by the R-space sparse text writers. Declared here (instead of duplicated in e...
Definition csr_reader.cpp:8
void ctrl_scf_lcao(UnitCell &ucell, const Input_para &inp, K_Vectors &kv, elecstate::ElecState *pelec, module_dm::DensityMatrix< TK, double > *dm, Parallel_Orbitals &pv, Grid_Driver &gd, psi::Psi< TK > *psi, hamilt::HamiltLCAO< TK, TR > *p_hamilt, Plus_U_Base &dftu, TwoCenterBundle &two_center_bundle, LCAO_Orbitals &orb, const ModulePW::PW_Basis_K *pw_wfc, const ModulePW::PW_Basis *pw_rho, const ModulePW::PW_Basis_Big *pw_big, Structure_Factor &sf, const ModulePW::PW_Basis *pw_rhod, const ModuleBase::matrix &vloc, surchem &solvent, rdmft::RDMFT< TK, TR > &rdmft_solver, Setup_DeePKS< TK > &deepks, Exx_NAO< TK > &exx_nao, const Exx_Info &exx_info, const bool conv_esolver, const bool scf_nmax_flag, const bool last_ion_step, const int istep, std::ofstream &ofs_running)
Definition ctrl_scf_lcao.cpp:83
Plus_U_Base dftu
Definition test_dftu_nao_op.cpp:11