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

LCAO-specific implementation of non-local pseudopotential information. More...

#include <lcao_nonlocal_info.h>

Inheritance diagram for LCAONonlocalInfo:
Collaboration diagram for LCAONonlocalInfo:

Public Member Functions

 LCAONonlocalInfo ()=default
 Default constructor.
 ~LCAONonlocalInfo ()=default
 Destructor.
const double & get_rcutmax_Beta () const override
 Get the maximum cutoff radius among all non-local projectors.
int get_nproj (const int &type_in) const override
 Get the number of projectors for a specific atom type.
int get_nprojmax () const override
 Get the maximum number of projectors across all atom types.
double get_rcut_max (const int &type_in) const override
 Get the cutoff radius for a specific atom type's projectors.
const std::string & get_label (const int &type_in) const override
 Get the element label for a specific atom type.
int get_type (const int &type_in) const override
 Get the type index for a specific atom type.
int get_proj_L (const int &type_in, const int &ip_in) const override
 Get the angular momentum L for a specific projector.
int get_proj_Nr (const int &type_in, const int &ip_in) const override
 Get the number of radial mesh points for a specific projector.
const double * get_proj_radial (const int &type_in, const int &ip_in) const override
 Get the radial mesh array for a specific projector.
const double * get_proj_beta_r (const int &type_in, const int &ip_in) const override
 Get the beta radial function array for a specific projector.
int get_proj_Nk (const int &type_in, const int &ip_in) const override
 Get the number of k-space mesh points for a specific projector.
double get_proj_dk (const int &type_in, const int &ip_in) const override
 Get the k-space spacing for a specific projector.
double get_proj_dr_uniform (const int &type_in, const int &ip_in) const override
 Get the uniform real-space spacing for a specific projector.
void setupNonlocal (const int &ntype_in, Atom *atoms_in, std::ofstream &log, LCAO_Orbitals &orb, const std::string &basis_type, const bool &out_element_info, const bool &lspinorb, const int &nspin, const int &my_rank)
 Setup non-local projectors for LCAO basis.
InfoNonlocal & get_nonlocal ()
 Get non-const reference to internal InfoNonlocal object. Used for special operations that require direct access.
const InfoNonlocal & get_nonlocal () const
 Get const reference to internal InfoNonlocal object. Used for read-only access in special cases.
Public Member Functions inherited from NonlocalInfoBase
virtual ~NonlocalInfoBase ()=default
 Virtual destructor for proper cleanup of derived classes.

Private Attributes

InfoNonlocal nonlocal

Detailed Description

LCAO-specific implementation of non-local pseudopotential information.

Adapts the InfoNonlocal class to the NonlocalInfoBase interface, enabling the UnitCell module to access LCAO non-local projector data without direct dependency on LCAO-specific implementations.

Constructor & Destructor Documentation

◆ LCAONonlocalInfo()

LCAONonlocalInfo::LCAONonlocalInfo ( )
default

Default constructor.

◆ ~LCAONonlocalInfo()

LCAONonlocalInfo::~LCAONonlocalInfo ( )
default

Destructor.

Member Function Documentation

◆ get_label()

const std::string & LCAONonlocalInfo::get_label ( const int & type_in) const
inlineoverridevirtual

Get the element label for a specific atom type.

Parameters
[in]type_inAtom type index.
Returns
const reference to label string.

Implements NonlocalInfoBase.

◆ get_nonlocal() [1/2]

InfoNonlocal & LCAONonlocalInfo::get_nonlocal ( )
inline

Get non-const reference to internal InfoNonlocal object. Used for special operations that require direct access.

Returns
Reference to internal InfoNonlocal.
Here is the caller graph for this function:

◆ get_nonlocal() [2/2]

const InfoNonlocal & LCAONonlocalInfo::get_nonlocal ( ) const
inline

Get const reference to internal InfoNonlocal object. Used for read-only access in special cases.

Returns
Const reference to internal InfoNonlocal.

◆ get_nproj()

int LCAONonlocalInfo::get_nproj ( const int & type_in) const
inlineoverridevirtual

Get the number of projectors for a specific atom type.

Parameters
[in]type_inAtom type index.
Returns
Number of projectors.

Implements NonlocalInfoBase.

◆ get_nprojmax()

int LCAONonlocalInfo::get_nprojmax ( ) const
inlineoverridevirtual

Get the maximum number of projectors across all atom types.

Returns
Maximum nproj value.

Implements NonlocalInfoBase.

◆ get_proj_beta_r()

const double * LCAONonlocalInfo::get_proj_beta_r ( const int & type_in,
const int & ip_in ) const
inlineoverridevirtual

Get the beta radial function array for a specific projector.

Parameters
[in]type_inAtom type index.
[in]ip_inProjector index.
Returns
const pointer to beta_r array.

Implements NonlocalInfoBase.

◆ get_proj_dk()

double LCAONonlocalInfo::get_proj_dk ( const int & type_in,
const int & ip_in ) const
inlineoverridevirtual

Get the k-space spacing for a specific projector.

Parameters
[in]type_inAtom type index.
[in]ip_inProjector index.
Returns
Delta k value.

Implements NonlocalInfoBase.

◆ get_proj_dr_uniform()

double LCAONonlocalInfo::get_proj_dr_uniform ( const int & type_in,
const int & ip_in ) const
inlineoverridevirtual

Get the uniform real-space spacing for a specific projector.

Parameters
[in]type_inAtom type index.
[in]ip_inProjector index.
Returns
Delta r uniform value.

Implements NonlocalInfoBase.

◆ get_proj_L()

int LCAONonlocalInfo::get_proj_L ( const int & type_in,
const int & ip_in ) const
inlineoverridevirtual

Get the angular momentum L for a specific projector.

Parameters
[in]type_inAtom type index.
[in]ip_inProjector index.
Returns
Angular momentum L.

Implements NonlocalInfoBase.

◆ get_proj_Nk()

int LCAONonlocalInfo::get_proj_Nk ( const int & type_in,
const int & ip_in ) const
inlineoverridevirtual

Get the number of k-space mesh points for a specific projector.

Parameters
[in]type_inAtom type index.
[in]ip_inProjector index.
Returns
Number of k-space mesh points.

Implements NonlocalInfoBase.

◆ get_proj_Nr()

int LCAONonlocalInfo::get_proj_Nr ( const int & type_in,
const int & ip_in ) const
inlineoverridevirtual

Get the number of radial mesh points for a specific projector.

Parameters
[in]type_inAtom type index.
[in]ip_inProjector index.
Returns
Number of radial mesh points.

Implements NonlocalInfoBase.

◆ get_proj_radial()

const double * LCAONonlocalInfo::get_proj_radial ( const int & type_in,
const int & ip_in ) const
inlineoverridevirtual

Get the radial mesh array for a specific projector.

Parameters
[in]type_inAtom type index.
[in]ip_inProjector index.
Returns
const pointer to radial mesh array.

Implements NonlocalInfoBase.

◆ get_rcut_max()

double LCAONonlocalInfo::get_rcut_max ( const int & type_in) const
inlineoverridevirtual

Get the cutoff radius for a specific atom type's projectors.

Parameters
[in]type_inAtom type index.
Returns
Cutoff radius.

Implements NonlocalInfoBase.

◆ get_rcutmax_Beta()

const double & LCAONonlocalInfo::get_rcutmax_Beta ( ) const
inlineoverridevirtual

Get the maximum cutoff radius among all non-local projectors.

Returns
const reference to rcutmax_Beta.

Implements NonlocalInfoBase.

◆ get_type()

int LCAONonlocalInfo::get_type ( const int & type_in) const
inlineoverridevirtual

Get the type index for a specific atom type.

Parameters
[in]type_inAtom type index.
Returns
Type index.

Implements NonlocalInfoBase.

◆ setupNonlocal()

void LCAONonlocalInfo::setupNonlocal ( const int & ntype_in,
Atom * atoms_in,
std::ofstream & log,
LCAO_Orbitals & orb,
const std::string & basis_type,
const bool & out_element_info,
const bool & lspinorb,
const int & nspin,
const int & my_rank )
inline

Setup non-local projectors for LCAO basis.

Parameters
[in]ntype_inNumber of atom types.
[in]atoms_inPointer to atoms array.
[in]logReference to log file stream.
[in]orbReference to LCAO orbitals object.
Here is the caller graph for this function:

Member Data Documentation

◆ nonlocal

InfoNonlocal LCAONonlocalInfo::nonlocal
private

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