1#ifndef ABACUS_SOURCE_LCAO_MODULE_LR_POTENTIALS_POT_GRAD_XC_H
2#define ABACUS_SOURCE_LCAO_MODULE_LR_POTENTIALS_POT_GRAD_XC_H
17 const int&
nrxx,
const int nspin,
const bool triplet);
40 std::vector<ModuleBase::Vector3<double>>
drho1[2];
41 std::vector<ModuleBase::Vector3<double>>
gdot;
43 std::vector<double>
div;
44 void alloc(
const int nrxx,
const bool two_channel,
const bool gga);
Calculate the exchange-correlation (XC) kernel ($f_{xc}=\delta^2E_xc/\delta\rho^2$) and store its com...
Definition xc_kernel.h:84
static Scratch & scratch()
Definition pot_grad_xc.cpp:14
void cal_v_eff_openshell(const double *const *const rho1, const UnitCell &ucell, ModuleBase::matrix &v_eff, const int tau) const
Open-shell (spin-unrestricted) $v^{(2)}_\tau$. Unlike the closed-shell case this is NOT a per-(sl,...
Definition pot_grad_xc.cpp:179
const bool triplet_
Definition pot_grad_xc.h:32
virtual void cal_v_eff(double **rho, const UnitCell &ucell, ModuleBase::matrix &v_eff, const std::vector< int > &ispin_op={ 0, 0 }) const override
Definition pot_grad_xc.cpp:71
const KernelXC & xc_kernel_components_
kernel components from PotHxcLR
Definition pot_grad_xc.h:31
PotGradXCLR(const KernelXC &xc_kernel_in, const ModulePW::PW_Basis &rho_basis, const UnitCell &ucell, const int &nrxx, const int nspin, const bool triplet)
Definition pot_grad_xc.cpp:50
~PotGradXCLR()
Definition pot_grad_xc.h:18
PotLRBase(const ModulePW::PW_Basis &rho_basis, const int &nspin, const int &nrxx, const double &tpiba)
Definition pot_lr_base.h:20
const int & nrxx
Definition pot_lr_base.h:27
const int & nspin
Definition pot_lr_base.h:28
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
Definition esolver_lr_lcao_tddft.h:28
Definition pot_grad_xc.h:39
void alloc(const int nrxx, const bool two_channel, const bool gga)
Definition pot_grad_xc.cpp:20
std::vector< double > vtmp
local part $A$
Definition pot_grad_xc.h:42
std::vector< double > div
$-\nabla\cdot\boldsymbol{E}$
Definition pot_grad_xc.h:43
std::vector< ModuleBase::Vector3< double > > drho1[2]
$\nabla\rho^1_\sigma$
Definition pot_grad_xc.h:40
std::vector< ModuleBase::Vector3< double > > gdot
integrand of the divergence
Definition pot_grad_xc.h:41