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

Protected Member Functions

void SetUp () override
void TearDown () override

Protected Attributes

ModuleBase::Matrix3 latvec_
UnitCell ucell_
ModulePW::PW_Basis pw_rho_
ModulePW::PW_Basis_K pw_wfc_
ModuleCell::QList qlist_
ModuleDFPT::DFPT_PW_Data data_
ModuleBase::Vector3< double > q_cart_
Structure_Factor sf_
ModuleDFPT::DFPT_Pert pert_
const ModuleBase::Vector3< double > k_d_ {-0.13, 0.0, -0.07}
const ModuleBase::Vector3< double > q_d_ {0.13, 0.0, 0.07}
const ModuleBase::Vector3< double > tau_ {1.1, 2.3, 0.7}

Detailed Description

  • Tested Functions:
    • rho_gvec: reconstruction of rho-grid G vectors must coincide with the distributed gcar array filled by the real serial collect_local_pw().
    • dVloc_dtau: the analytic first-order local potential is validated against a finite difference of the full displaced potential vloc(|Delta+q|) * exp(i 2pi (Delta+q).tau) for q != 0.
    • build_dv + apply_dv: the stored reciprocal coefficients and the FFT convolution dpsi(G'') = sum_G' psi(G') c(G''-G') are checked against the analytic matrix elements on the k+q basis (no extra q-phase).
    • build_vkb: l=0 projector against an independent hand-rolled Simpson transform; pure phase response under a tau shift.
    • dVnl_dtau: the two-term NC identity is validated against a finite difference of the displaced separable operator; USPP is rejected.
    • build_dv under with_u()/u_active()==false (pure-PW DFT+U safety).

Member Function Documentation

◆ SetUp()

void DFPTPertSerialTest::SetUp ( )
inlineoverrideprotected
Here is the call graph for this function:

◆ TearDown()

void DFPTPertSerialTest::TearDown ( )
inlineoverrideprotected

Member Data Documentation

◆ data_

ModuleDFPT::DFPT_PW_Data DFPTPertSerialTest::data_
protected

◆ k_d_

const ModuleBase::Vector3<double> DFPTPertSerialTest::k_d_ {-0.13, 0.0, -0.07}
protected

◆ latvec_

ModuleBase::Matrix3 DFPTPertSerialTest::latvec_
protected

◆ pert_

ModuleDFPT::DFPT_Pert DFPTPertSerialTest::pert_
protected

◆ pw_rho_

ModulePW::PW_Basis DFPTPertSerialTest::pw_rho_
protected

◆ pw_wfc_

ModulePW::PW_Basis_K DFPTPertSerialTest::pw_wfc_
protected

◆ q_cart_

ModuleBase::Vector3<double> DFPTPertSerialTest::q_cart_
protected

◆ q_d_

const ModuleBase::Vector3<double> DFPTPertSerialTest::q_d_ {0.13, 0.0, 0.07}
protected

◆ qlist_

ModuleCell::QList DFPTPertSerialTest::qlist_
protected

◆ sf_

Structure_Factor DFPTPertSerialTest::sf_
protected

◆ tau_

const ModuleBase::Vector3<double> DFPTPertSerialTest::tau_ {1.1, 2.3, 0.7}
protected

◆ ucell_

UnitCell DFPTPertSerialTest::ucell_
protected

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