ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
LR::libxc_idx Namespace Reference

Functions

constexpr int r3 (const int s0, const int s1, const int s2)
 v3rho3 (4): (uuu,uud,udd,ddd) – indexed by the number of d's
constexpr int r2 (const int s0, const int s1)
 v2rho2 (3): (uu,ud,dd)
constexpr int rs (const int s, const int a)
 v2rhosigma (6): [rho u,d] x [sigma uu,ud,dd]
constexpr int r2s (const int s0, const int s1, const int a)
 v3rho2sigma (9): [rho-pair uu,ud,dd] x [sigma uu,ud,dd]
constexpr int rs2 (const int s, const int a, const int b)
 v3rhosigma2 (12): [rho u,d] x [unordered sigma pair]

Variables

constexpr int p2 [3][3] = { {0,1,2},{1,3,4},{2,4,5} }
 unordered sigma PAIR -> v2sigma2 (6) and the per-rho block of v3rhosigma2
constexpr int p3 [3][3][3]
constexpr double theta [2][3] = { {2., 1., 0.}, {0., 1., 2.} }
constexpr int chan [2][3] = { {0, 1, -1}, {-1, 0, 1} }
 which density-gradient channel goes with (tau, a); -1 where theta vanishes

Detailed Description

libxc component layout for the spin-POLARIZED case, shared by the closed- and open-shell $g^{xc}$ code. Spin: 0=u, 1=d. Sigma: 0=uu, 1=ud, 2=dd. libxc stores only the unique (unordered) index combinations, which is where all the multiplicities in the contractions come from.

Function Documentation

◆ r2()

int LR::libxc_idx::r2 ( const int s0,
const int s1 )
inlineconstexpr

v2rho2 (3): (uu,ud,dd)

Here is the caller graph for this function:

◆ r2s()

int LR::libxc_idx::r2s ( const int s0,
const int s1,
const int a )
inlineconstexpr

v3rho2sigma (9): [rho-pair uu,ud,dd] x [sigma uu,ud,dd]

Here is the caller graph for this function:

◆ r3()

int LR::libxc_idx::r3 ( const int s0,
const int s1,
const int s2 )
inlineconstexpr

v3rho3 (4): (uuu,uud,udd,ddd) – indexed by the number of d's

Here is the caller graph for this function:

◆ rs()

int LR::libxc_idx::rs ( const int s,
const int a )
inlineconstexpr

v2rhosigma (6): [rho u,d] x [sigma uu,ud,dd]

Here is the caller graph for this function:

◆ rs2()

int LR::libxc_idx::rs2 ( const int s,
const int a,
const int b )
inlineconstexpr

v3rhosigma2 (12): [rho u,d] x [unordered sigma pair]

Here is the caller graph for this function:

Variable Documentation

◆ chan

int LR::libxc_idx::chan[2][3] = { {0, 1, -1}, {-1, 0, 1} }
constexpr

which density-gradient channel goes with (tau, a); -1 where theta vanishes

◆ p2

int LR::libxc_idx::p2[3][3] = { {0,1,2},{1,3,4},{2,4,5} }
constexpr

unordered sigma PAIR -> v2sigma2 (6) and the per-rho block of v3rhosigma2

◆ p3

int LR::libxc_idx::p3[3][3][3]
constexpr
Initial value:
= {
{ {0,1,2},{1,3,4},{2,4,5} },
{ {1,3,4},{3,6,7},{4,7,8} },
{ {2,4,5},{4,7,8},{5,8,9} } }

unordered sigma TRIPLE -> v3sigma3 (10): (000)(001)(002)(011)(012)(022)(111)(112)(122)(222)

◆ theta

double LR::libxc_idx::theta[2][3] = { {2., 1., 0.}, {0., 1., 2.} }
constexpr

$\partial\sigma_a/\partial\nabla\rho_\tau = \theta^\tau_a\,\nabla\rho_{c(\tau,a)}$ tau=u: (uu -> 2 grad rho_u, ud -> 1 grad rho_d, dd -> 0) tau=d: (uu -> 0, ud -> 1 grad rho_u, dd -> 2 grad rho_d)