ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
setup_pot.h
Go to the documentation of this file.
1#ifndef SETUP_POT_H
2#define SETUP_POT_H
3
4#include "source_base/module_device/device.h" // use Device
6#include "source_cell/klist.h"
11#include "source_lcao/module_dftu/dftu.h" // mohan add 2025-11-06
12
13namespace pw
14{
15
16template <typename T, typename Device>
17void setup_pot(const int istep,
18 UnitCell& ucell, // unitcell
19 const K_Vectors &kv, // kpoints
20 Structure_Factor &sf, // structure factors
21 elecstate::ElecState *pelec, // pointer of electrons
22 const Parallel_Grid &para_grid, // parallel of FFT grids
23 const Charge &chr, // charge density
24 pseudopot_cell_vl &locpp, // local pseudopotentials
25 pseudopot_cell_vnl &ppcell, // non-local pseudopotentials
26 Plus_U &dftu, // mohan add 2025-11-06
27 VSep* vsep_cell, // U-1/2 method
28 psi::Psi<T, Device>* kspw_psi, // electronic wave functions
29 hamilt::Hamilt<T, Device>* p_hamilt, // hamiltonian
30 ModulePW::PW_Basis_K *pw_wfc, // pw for wfc
31 const ModulePW::PW_Basis *pw_rhod, // pw for rhod
32 const Input_para& inp); // input parameters
33
34}
35
36
37
38#endif
Definition charge.h:18
Definition klist.h:13
Special pw_basis class. It includes different k-points.
Definition pw_basis_k.h:57
A class which can convert a function of "r" to the corresponding linear superposition of plane waves ...
Definition pw_basis.h:56
Definition parallel_grid.h:8
Definition dftu.h:20
Definition structure_factor.h:11
Definition unitcell.h:17
Definition VSep_in_pw.h:11
Definition elecstate.h:15
Definition hamilt.h:16
Definition VL_in_pw.h:11
Definition VNL_in_pw.h:21
Definition psi.h:37
Definition setup_pot.h:14
void setup_pot(const int istep, UnitCell &ucell, const K_Vectors &kv, Structure_Factor &sf, elecstate::ElecState *pelec, const Parallel_Grid &para_grid, const Charge &chr, pseudopot_cell_vl &locpp, pseudopot_cell_vnl &ppcell, Plus_U &dftu, VSep *vsep_cell, psi::Psi< T, Device > *kspw_psi, hamilt::Hamilt< T, Device > *p_hamilt, ModulePW::PW_Basis_K *pw_wfc, const ModulePW::PW_Basis *pw_rhod, const Input_para &inp)
Definition setup_pot.cpp:10
Definition input_parameter.h:13
Plus_U dftu
Definition test_dftu.cpp:14