ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
ChgToolsTest Class Reference
Inheritance diagram for ChgToolsTest:
Collaboration diagram for ChgToolsTest:

Protected Member Functions

void SetUp () override

Protected Attributes

const int nrxx = 8
 local real-space grid points
const int nxyz = 8
 global real-space grid points
const double omega = 2.0
 cell volume
const double nelec = 4.0
 target electron number
std::vector< double > rho_up
std::vector< double > rho_dn
std::vector< double * > rho

Detailed Description

  • Tested Functions:
    • cal_rho2ne: integrate a single spin channel over the grid and scale by omega / nxyz to obtain the electron number
    • check_rho: nspin == 1/4 total-density check, nspin == 2 spin-up/down checks, mismatch warning path and negative-channel abort path
    • core_charge_form_factor: the shared per-point radial kernel against the closed-form Gaussian transform – this pins the ABSOLUTE radial normalization (4pi/Omega and the Simpson mesh convention), which the DFPT localization/phase regressions do not constrain independently

Member Function Documentation

◆ SetUp()

void ChgToolsTest::SetUp ( )
inlineoverrideprotected

Member Data Documentation

◆ nelec

const double ChgToolsTest::nelec = 4.0
protected

target electron number

◆ nrxx

const int ChgToolsTest::nrxx = 8
protected

local real-space grid points

◆ nxyz

const int ChgToolsTest::nxyz = 8
protected

global real-space grid points

◆ omega

const double ChgToolsTest::omega = 2.0
protected

cell volume

◆ rho

std::vector<double*> ChgToolsTest::rho
protected

◆ rho_dn

std::vector<double> ChgToolsTest::rho_dn
protected

◆ rho_up

std::vector<double> ChgToolsTest::rho_up
protected

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