ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
xc_kernel.h File Reference
#include "source_basis/module_pw/pw_basis.h"
#include "source_cell/unitcell.h"
#include "source_base/parallel_grid.h"
#include "source_estate/module_charge/charge.h"
#include <stdexcept>
#include <memory>
Include dependency graph for xc_kernel.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  LR::KernelXC
 Calculate the exchange-correlation (XC) kernel ($f_{xc}=\delta^2E_xc/\delta\rho^2$) and store its components. More...
struct  LR::KernelXC::ClosedShellGga
struct  LR::KernelXC::GxcCoef
 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...

Namespaces

namespace  LR
namespace  LR::libxc_idx

Macros

#define CREF(x)

Functions

constexpr int LR::libxc_idx::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 LR::libxc_idx::r2 (const int s0, const int s1)
 v2rho2 (3): (uu,ud,dd)
constexpr int LR::libxc_idx::rs (const int s, const int a)
 v2rhosigma (6): [rho u,d] x [sigma uu,ud,dd]
constexpr int LR::libxc_idx::r2s (const int s0, const int s1, const int a)
 v3rho2sigma (9): [rho-pair uu,ud,dd] x [sigma uu,ud,dd]
constexpr int LR::libxc_idx::rs2 (const int s, const int a, const int b)
 v3rhosigma2 (12): [rho u,d] x [unordered sigma pair]
double LR::sigma_potential_derivative (const double *rho_sigma, const double *sigma_sigma, const int channel, const double *density_response, const double *sigma_response, const int first_spin, const int end_spin)
std::shared_ptr< const KernelXC > LR::build_xc_kernel (const std::string &kernel_name, const ModulePW::PW_Basis &rho_basis, const UnitCell &ucell, const Charge &chg_gs, const Parallel_Grid &pgrid, const int nspin, const bool openshell, const int gxc_spin, const std::vector< std::string > &lr_init_xc_kernel)
std::shared_ptr< const KernelXC > LR::build_gs_xc_kernel (const std::string &kernel_name, const ModulePW::PW_Basis &rho_basis, const UnitCell &ucell, const Charge &chg_gs, const Parallel_Grid &pgrid, int nspin, bool openshell, const std::vector< std::string > &lr_init_xc_kernel)

Variables

constexpr int LR::libxc_idx::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 LR::libxc_idx::p3 [3][3][3]
constexpr double LR::libxc_idx::theta [2][3] = { {2., 1., 0.}, {0., 1., 2.} }
constexpr int LR::libxc_idx::chan [2][3] = { {0, 1, -1}, {-1, 0, 1} }
 which density-gradient channel goes with (tau, a); -1 where theta vanishes

Macro Definition Documentation

◆ CREF

#define CREF ( x)
Value:
const std::vector<double>& x = x##_