ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
pot_xc.h
Go to the documentation of this file.
1#ifndef POTXC_H
2#define POTXC_H
3
4#include "pot_base.h"
5
6namespace elecstate
7{
8
9class PotXC : public PotBase
10{
11 public:
12 // constructor for exchange-correlation potential
13 // meta-GGA should input matrix of kinetic potential, it is optional
14 PotXC(const bool domag,
15 const bool domag_z,
16 const int gga_grad,
17 const bool xc_gpu,
18 const ModulePW::PW_Basis* rho_basis_in,
19 double* etxc_in,
20 double* vtxc_in,
21 ModuleBase::matrix* vofk_in = nullptr)
22 : vofk(vofk_in), etxc_(etxc_in), vtxc_(vtxc_in),
23 domag_(domag), domag_z_(domag_z), gga_grad_(gga_grad), xc_gpu_(xc_gpu)
24 {
25 this->rho_basis_ = rho_basis_in;
26 this->dynamic_mode = true;
27 this->fixed_mode = false;
28 }
29
30 void cal_v_eff(const Charge*const chg, const UnitCell*const ucell, ModuleBase::matrix& v_eff) override;
31
33 double* etxc_ = nullptr;
34 double* vtxc_ = nullptr;
35 private:
36 const bool domag_;
37 const bool domag_z_;
38 const int gga_grad_;
39 const bool xc_gpu_;
40};
41
42} // namespace elecstate
43
44#endif
Definition charge.h:24
Definition matrix.h:15
A class which can convert a function of "r" to the corresponding linear superposition of plane waves ...
Definition pw_basis.h:60
Provide the basic information about unitcell.
Definition unitcell.h:16
const ModulePW::PW_Basis * rho_basis_
Definition pot_base.h:52
bool dynamic_mode
Definition pot_base.h:49
bool fixed_mode
Definition pot_base.h:48
PotBase()
Definition pot_base.h:26
PotXC(const bool domag, const bool domag_z, const int gga_grad, const bool xc_gpu, const ModulePW::PW_Basis *rho_basis_in, double *etxc_in, double *vtxc_in, ModuleBase::matrix *vofk_in=nullptr)
Definition pot_xc.h:14
void cal_v_eff(const Charge *const chg, const UnitCell *const ucell, ModuleBase::matrix &v_eff) override
Definition pot_xc.cpp:14
const bool domag_z_
Definition pot_xc.h:37
ModuleBase::matrix * vofk
Definition pot_xc.h:32
const bool domag_
Definition pot_xc.h:36
const bool xc_gpu_
Definition pot_xc.h:39
const int gga_grad_
Definition pot_xc.h:38
double * etxc_
Definition pot_xc.h:33
double * vtxc_
Definition pot_xc.h:34
Definition read_atoms_hlp_test.cpp:13