ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
PotGradXCTest Class Reference

Compare unrestricted GXC with a separate derivative of the LR quadratic form. More...

Inheritance diagram for PotGradXCTest:
Collaboration diagram for PotGradXCTest:

Protected Member Functions

void SetUp () override
bool has_hse_kxc ()
std::shared_ptr< const LR::KernelXC > kernel (const std::string &name, const bool open, const int gxc)
std::vector< ModuleBase::Vector3< double > > gradient (const std::vector< double > &values) const
double quadratic (const std::string &name, const std::vector< double > transition[2])
 Independently evaluate the second-order LR quadratic form, without KXC.

Protected Attributes

ModulePW::PW_Basis basis
UnitCell cell
Charge charge
Parallel_Grid grid
std::vector< double > up
std::vector< double > down
double * density [2]

Detailed Description

Compare unrestricted GXC with a separate derivative of the LR quadratic form.

Member Function Documentation

◆ gradient()

std::vector< ModuleBase::Vector3< double > > PotGradXCTest::gradient ( const std::vector< double > & values) const
inlineprotected
Returns
Discrete gradient with the same linear operator as the isolated FFT mock.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ has_hse_kxc()

bool PotGradXCTest::has_hse_kxc ( )
inlineprotected
Returns
Whether this installed HSE implementation advertises KXC.
Here is the call graph for this function:

◆ kernel()

std::shared_ptr< const LR::KernelXC > PotGradXCTest::kernel ( const std::string & name,
const bool open,
const int gxc )
inlineprotected
Returns
Borrowed-grid kernel with explicit shell layout and derivative request.
Here is the caller graph for this function:

◆ quadratic()

double PotGradXCTest::quadratic ( const std::string & name,
const std::vector< double > transition[2] )
inlineprotected

Independently evaluate the second-order LR quadratic form, without KXC.

Parameters
[in]nameFunctional for the evaluated LR kernel.
[in]transitionTwo real transition-density channels on the three-point grid.
Returns
Unweighted quadratic form in Hartree conventions.
Here is the call graph for this function:

◆ SetUp()

void PotGradXCTest::SetUp ( )
inlineoverrideprotected

Member Data Documentation

◆ basis

ModulePW::PW_Basis PotGradXCTest::basis
protected

◆ cell

UnitCell PotGradXCTest::cell
protected

◆ charge

Charge PotGradXCTest::charge
protected

◆ density

double* PotGradXCTest::density[2]
protected

◆ down

std::vector<double> PotGradXCTest::down
protected

◆ grid

Parallel_Grid PotGradXCTest::grid
protected

◆ up

std::vector<double> PotGradXCTest::up
protected

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