ABACUS
develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
source
source_estate
module_pot
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
6
namespace
elecstate
7
{
8
9
class
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
32
ModuleBase::matrix
*
vofk
=
nullptr
;
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
Charge
Definition
charge.h:24
ModuleBase::matrix
Definition
matrix.h:15
ModulePW::PW_Basis
A class which can convert a function of "r" to the corresponding linear superposition of plane waves ...
Definition
pw_basis.h:60
UnitCell
Provide the basic information about unitcell.
Definition
unitcell.h:16
elecstate::PotBase::rho_basis_
const ModulePW::PW_Basis * rho_basis_
Definition
pot_base.h:52
elecstate::PotBase::dynamic_mode
bool dynamic_mode
Definition
pot_base.h:49
elecstate::PotBase::fixed_mode
bool fixed_mode
Definition
pot_base.h:48
elecstate::PotBase::PotBase
PotBase()
Definition
pot_base.h:26
elecstate::PotXC::PotXC
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
elecstate::PotXC::cal_v_eff
void cal_v_eff(const Charge *const chg, const UnitCell *const ucell, ModuleBase::matrix &v_eff) override
Definition
pot_xc.cpp:14
elecstate::PotXC::domag_z_
const bool domag_z_
Definition
pot_xc.h:37
elecstate::PotXC::vofk
ModuleBase::matrix * vofk
Definition
pot_xc.h:32
elecstate::PotXC::domag_
const bool domag_
Definition
pot_xc.h:36
elecstate::PotXC::xc_gpu_
const bool xc_gpu_
Definition
pot_xc.h:39
elecstate::PotXC::gga_grad_
const int gga_grad_
Definition
pot_xc.h:38
elecstate::PotXC::etxc_
double * etxc_
Definition
pot_xc.h:33
elecstate::PotXC::vtxc_
double * vtxc_
Definition
pot_xc.h:34
elecstate
Definition
read_atoms_hlp_test.cpp:13
pot_base.h
Generated by
1.15.0