ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
xc_grad_internal.h File Reference
#include "source_base/matrix.h"
#include "source_base/vector3.h"
#include <complex>
#include <vector>
Include dependency graph for xc_grad_internal.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  GradCorrParams
 Parameters shared by all stages of the gradcorr pipeline. More...
struct  GradCorrBuffers
 Scratch buffers shared by the gradcorr pipeline stages. More...

Namespaces

namespace  ModulePW

Functions

void gradcorr_prepare_rho (const GradCorrParams &params, ModuleBase::matrix &v, GradCorrBuffers &buf)
 First stage: build the real- and reciprocal-space density buffers and their gradients for every spin channel.
void gradcorr_xc_kernel (const GradCorrParams &params, double &vtxcgc, double &etxcgc, std::vector< double > &stress_gga, ModuleBase::matrix &v, GradCorrBuffers &buf)
 Second stage: evaluate the GGA/meta-GGA kernel on every grid point and accumulate vtxcgc, etxcgc, stress_gga and v.
void gradcorr_assemble_vxc (const GradCorrParams &params, double vtxcgc, double etxcgc, double &vtxc, double &etxc, std::vector< double > &stress_gga, ModuleBase::matrix &v, GradCorrBuffers &buf)
 Final stage: assemble the gradient-correction contribution into vtxc/etxc/stress_gga/v and restore the nspin = 4 case.

Function Documentation

◆ gradcorr_assemble_vxc()

void gradcorr_assemble_vxc ( const GradCorrParams & params,
double vtxcgc,
double etxcgc,
double & vtxc,
double & etxc,
std::vector< double > & stress_gga,
ModuleBase::matrix & v,
GradCorrBuffers & buf )

Final stage: assemble the gradient-correction contribution into vtxc/etxc/stress_gga/v and restore the nspin = 4 case.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ gradcorr_prepare_rho()

void gradcorr_prepare_rho ( const GradCorrParams & params,
ModuleBase::matrix & v,
GradCorrBuffers & buf )

First stage: build the real- and reciprocal-space density buffers and their gradients for every spin channel.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ gradcorr_xc_kernel()

void gradcorr_xc_kernel ( const GradCorrParams & params,
double & vtxcgc,
double & etxcgc,
std::vector< double > & stress_gga,
ModuleBase::matrix & v,
GradCorrBuffers & buf )

Second stage: evaluate the GGA/meta-GGA kernel on every grid point and accumulate vtxcgc, etxcgc, stress_gga and v.

Here is the call graph for this function:
Here is the caller graph for this function: