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

#include <exciton_plotter.h>

Collaboration diagram for OrbitalEvaluator:

Classes

struct  AtomTypeData

Public Member Functions

void init (const LCAO_Orbitals &orb, const UnitCell &ucell)
 Initialize evaluator by extracting radial function pointers from LCAO_Orbitals.
void eval_phi (int it, const ModuleBase::Vector3< double > &dr, double *phi_out) const
 Evaluate all NAO values for one atom type at relative position dr (in Bohr).
void eval_phi_all_bloch (const ModuleBase::Vector3< double > &r, const UnitCell &ucell, std::complex< double > *phi_bloch, const ModuleBase::Vector3< double > &kvec_d) const
 Evaluate Bloch-summed NAO values including neighboring cell contributions phi^B_mu(r, k) = Sum_R exp(i * 2pi * k_d·R_int) * phi_mu(r - tau - R). The R-sum runs over all lattice vectors within the orbital cutoff radius. Output is complex because the Bloch phase contributes a complex factor. The caller must zero-initialize phi_bloch before calling (this function accumulates).
template<typename T>
std::complex< double > eval_wfc_bloch (const ModuleBase::Vector3< double > &r_fix, int ik, int iband, const psi::Psi< T > &psi_ks, const UnitCell &ucell, const ModuleBase::Vector3< double > &kvec_d) const
 Evaluate a Bloch-summed LCAO KS wavefunction at r_fix point. Uses the same neighboring-cell AO sum as eval_phi_all_bloch().

Public Attributes

std::vector< AtomTypeData > atypes_

Member Function Documentation

◆ eval_phi()

void OrbitalEvaluator::eval_phi ( int it,
const ModuleBase::Vector3< double > & dr,
double * phi_out ) const

Evaluate all NAO values for one atom type at relative position dr (in Bohr).

Replicates the cubic Hermite interpolation from GintAtom::set_phi().

Parameters
itatom type index
drCartesian vector from atom center to evaluation point (Bohr)
phi_outarray of length nw[it], filled with phi values
Here is the call graph for this function:
Here is the caller graph for this function:

◆ eval_phi_all_bloch()

void OrbitalEvaluator::eval_phi_all_bloch ( const ModuleBase::Vector3< double > & r,
const UnitCell & ucell,
std::complex< double > * phi_bloch,
const ModuleBase::Vector3< double > & kvec_d ) const

Evaluate Bloch-summed NAO values including neighboring cell contributions phi^B_mu(r, k) = Sum_R exp(i * 2pi * k_d·R_int) * phi_mu(r - tau - R). The R-sum runs over all lattice vectors within the orbital cutoff radius. Output is complex because the Bloch phase contributes a complex factor. The caller must zero-initialize phi_bloch before calling (this function accumulates).

Parameters
revaluation point in Bohr
ucellunit cell
phi_blochoutput array of length total_naos (complex), values are added
kvec_ddirect-coordinate k-vector
Here is the call graph for this function:
Here is the caller graph for this function:

◆ eval_wfc_bloch()

template<typename T>
std::complex< double > OrbitalEvaluator::eval_wfc_bloch ( const ModuleBase::Vector3< double > & r_fix,
int ik,
int iband,
const psi::Psi< T > & psi_ks,
const UnitCell & ucell,
const ModuleBase::Vector3< double > & kvec_d ) const
inline

Evaluate a Bloch-summed LCAO KS wavefunction at r_fix point. Uses the same neighboring-cell AO sum as eval_phi_all_bloch().

Here is the call graph for this function:

◆ init()

void OrbitalEvaluator::init ( const LCAO_Orbitals & orb,
const UnitCell & ucell )

Initialize evaluator by extracting radial function pointers from LCAO_Orbitals.

Parameters
orbnumerical atomic orbital data (one Numerical_Orbital per atom type)

Member Data Documentation

◆ atypes_

std::vector<AtomTypeData> OrbitalEvaluator::atypes_

The documentation for this struct was generated from the following files: