ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
LR::KernelXC::GxcCoef Struct Reference

The coefficients of $v^{(2)}(r)=\iint dr'dr''\,g^{xc}(r,r',r'')\rho^1(r')\rho^1(r'')$ for ONE spin combination, stored exactly as they appear in the final formula: $v^{(2)} = a_{s^2}s^2 + a_{st}\,s\,t + a_{t^2}t^2 + a_q\,q. More...

#include <xc_kernel.h>

Collaboration diagram for LR::KernelXC::GxcCoef:

Public Attributes

bool built = false
 Availability is independent of the number of points assigned to this rank.
std::vector< double > a_s2
std::vector< double > a_st
std::vector< double > a_t2
std::vector< double > a_q
std::vector< double > e_s2
std::vector< double > e_st
std::vector< double > e_t2
std::vector< double > e_q

Detailed Description

The coefficients of $v^{(2)}(r)=\iint dr'dr''\,g^{xc}(r,r',r'')\rho^1(r')\rho^1(r'')$ for ONE spin combination, stored exactly as they appear in the final formula: $v^{(2)} = a_{s^2}s^2 + a_{st}\,s\,t + a_{t^2}t^2 + a_q\,q.

  • \nabla\cdot[\,(e_{s^2}s^2 + e_{st}\,s\,t + e_{t^2}t^2 + e_q\,q)\,\nabla\rho
    • (c_s\,s + c_t\,t)\,\nabla\rho^1\,]$ with $s=\rho^1$, $t=\nabla\rho\cdot\nabla\rho^1$, $q=\nabla\rho^1\cdot\nabla\rho^1$.

The transition-gradient scalars c_s and c_t reuse ClosedShellGga (factor 2 for nspin=2, factor 8 for singlet-normalized nspin=1). The other factors are folded in here, so PotGradXCLR::cal_v_eff is a literal transcription of the formula with no arithmetic of its own, and nspin=1, singlet and triplet all run through the same code. For LDA only a_s2 is filled. $v^{(2)} = A - \nabla\cdot E$

NOTE the four $e$ are scalars, with the common $\nabla\rho^{gs}$ factored out of the sum. Should an open-shell version ever need $\nabla\rho_u\ne\nabla\rho_d$ under the same divergence, this factorization no longer holds and they must go back to Vector3.

Member Data Documentation

◆ a_q

std::vector<double> LR::KernelXC::GxcCoef::a_q

◆ a_s2

std::vector<double> LR::KernelXC::GxcCoef::a_s2

◆ a_st

std::vector<double> LR::KernelXC::GxcCoef::a_st

◆ a_t2

std::vector<double> LR::KernelXC::GxcCoef::a_t2

◆ built

bool LR::KernelXC::GxcCoef::built = false

Availability is independent of the number of points assigned to this rank.

◆ e_q

std::vector<double> LR::KernelXC::GxcCoef::e_q

◆ e_s2

std::vector<double> LR::KernelXC::GxcCoef::e_s2

◆ e_st

std::vector<double> LR::KernelXC::GxcCoef::e_st

◆ e_t2

std::vector<double> LR::KernelXC::GxcCoef::e_t2

The documentation for this struct was generated from the following file: