ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
psi_init_atomic< T > Class Template Reference

#include <psi_init_atomic.h>

Inheritance diagram for psi_init_atomic< T >:
Collaboration diagram for psi_init_atomic< T >:

Public Member Functions

 psi_init_atomic ()
 ~psi_init_atomic ()
void prepare_params (const int &nqx, const double &dq, const int &nspin, const bool &domag, const bool &domag_z, const bool &pseudo_mesh, const int &lmaxkb)
 Prepare parameters before initialization.
virtual void initialize (const Structure_Factor *sf, const ModulePW::PW_Basis_K *pw_wfc, const UnitCell *p_ucell, const std::vector< int > &ik2iktot, const int &random_seed, const int &rank, const int &npol, const int &nbands) override
 initialize the psi_base with external data and methods
virtual void tabulate () override
 CENTRAL FUNCTION: calculate the interpolate table if needed.
virtual void init_psig (T *psig, const int &ik) override
 CENTRAL FUNCTION: init psi in pw basis.
Public Member Functions inherited from psi_base< T >
 psi_base ()
virtual ~psi_base ()
std::string method () const
int nbands_start () const
int nbands_complem () const
template<typename U>
std::enable_if< std::is_same< U, float >::value, U >::type cast_to_T (const std::complex< double > in)
template<typename U>
std::enable_if< std::is_same< U, double >::value, U >::type cast_to_T (const std::complex< double > in)
template<typename U>
std::enable_if< std::is_same< U, std::complex< float > >::value, U >::type cast_to_T (const std::complex< double > in)
template<typename U>
std::enable_if< std::is_same< U, std::complex< double > >::value, U >::type cast_to_T (const std::complex< double > in)

Protected Member Functions

void allocate_ps_table ()
Protected Member Functions inherited from psi_base< T >
void stick_to_pool (Real *stick, const int &ir, Real *out) const
 mapping from (ix, iy) to is
void random_t (T *psi, const int iw_start, const int iw_end, const int ik, const int mode=1)
 mode, 0 for rr*exp(i*arg), 1 for rr/(1+gk2)*exp(i*arg)

Protected Attributes

std::vector< std::string > pseudopot_files_
ModuleBase::realArray ovlp_pswfcjlq_
Protected Attributes inherited from psi_base< T >
const Structure_Factor * sf_ = nullptr
 Structure_Factor.
const ModulePW::PW_Basis_K * pw_wfc_ = nullptr
 use |k+G>, |G>, getgpluskcar and so on in PW_Basis_K
const UnitCell * p_ucell_ = nullptr
 UnitCell.
std::vector< int > ik2iktot_
 local->global k-point mapping
int random_seed_ = 1
 random seed, shared by random, atomic+random, nao+random
std::vector< int > ixy2is_
 used by stick_to_pool function
std::string method_ = "none"
 method name
int nbands_complem_ = 0
 complement number of bands, which is nbands_start_ - ucell.natomwfc
double mixing_coef_ = 0
 mixing coefficient for atomic+random and nao+random
int nbands_start_ = 0
 starting nbands, which is no less than PARAM.inp.nbands
int npol_ = 1
 number of polarizations

Private Types

using Real = typename GetTypeReal<T>::type

Private Attributes

int nqx_ = 0
double dq_ = 0.0
int nspin_ = 1
bool domag_ = false
bool domag_z_ = false
bool pseudo_mesh_ = false
int lmaxkb_ = 0
bool params_prepared_ = false

Member Typedef Documentation

◆ Real

template<typename T>
using psi_init_atomic< T >::Real = typename GetTypeReal<T>::type
private

Constructor & Destructor Documentation

◆ psi_init_atomic()

template<typename T>
psi_init_atomic< T >::psi_init_atomic ( )
inline

◆ ~psi_init_atomic()

template<typename T>
psi_init_atomic< T >::~psi_init_atomic ( )
inline

Member Function Documentation

◆ allocate_ps_table()

template<typename T>
void psi_init_atomic< T >::allocate_ps_table ( )
protected
Here is the call graph for this function:
Here is the caller graph for this function:

◆ init_psig()

template<typename T>
void psi_init_atomic< T >::init_psig ( T * psig,
const int & ik )
overridevirtual

CENTRAL FUNCTION: init psi in pw basis.

Implements psi_base< T >.

Reimplemented in psi_init_atomic_random< T >.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ initialize()

template<typename T>
void psi_init_atomic< T >::initialize ( const Structure_Factor * sf,
const ModulePW::PW_Basis_K * pw_wfc,
const UnitCell * p_ucell,
const std::vector< int > & ik2iktot,
const int & random_seed,
const int & rank,
const int & npol,
const int & nbands )
overridevirtual

initialize the psi_base with external data and methods

Reimplemented from psi_base< T >.

Reimplemented in psi_init_atomic_random< T >.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ prepare_params()

template<typename T>
void psi_init_atomic< T >::prepare_params ( const int & nqx,
const double & dq,
const int & nspin,
const bool & domag,
const bool & domag_z,
const bool & pseudo_mesh,
const int & lmaxkb )

Prepare parameters before initialization.

This method must be called before initialize(). It sets up the necessary parameters for the psi initialization process.

Parameters
nqxNumber of q-points for interpolation
dqSpacing between q-points
nspinNumber of spin components
domagWhether to use non-collinear magnetism
domag_zWhether to use z-axis only non-collinear magnetism
pseudo_meshWhether to use pseudo mesh for radial grid
lmaxkbMax angular momentum for non-local projectors
See also
initialize()
Here is the caller graph for this function:

◆ tabulate()

template<typename T>
void psi_init_atomic< T >::tabulate ( )
overridevirtual

CENTRAL FUNCTION: calculate the interpolate table if needed.

Reimplemented from psi_base< T >.

Here is the call graph for this function:

Member Data Documentation

◆ domag_

template<typename T>
bool psi_init_atomic< T >::domag_ = false
private

◆ domag_z_

template<typename T>
bool psi_init_atomic< T >::domag_z_ = false
private

◆ dq_

template<typename T>
double psi_init_atomic< T >::dq_ = 0.0
private

◆ lmaxkb_

template<typename T>
int psi_init_atomic< T >::lmaxkb_ = 0
private

◆ nqx_

template<typename T>
int psi_init_atomic< T >::nqx_ = 0
private

◆ nspin_

template<typename T>
int psi_init_atomic< T >::nspin_ = 1
private

◆ ovlp_pswfcjlq_

template<typename T>
ModuleBase::realArray psi_init_atomic< T >::ovlp_pswfcjlq_
protected

◆ params_prepared_

template<typename T>
bool psi_init_atomic< T >::params_prepared_ = false
private

◆ pseudo_mesh_

template<typename T>
bool psi_init_atomic< T >::pseudo_mesh_ = false
private

◆ pseudopot_files_

template<typename T>
std::vector<std::string> psi_init_atomic< T >::pseudopot_files_
protected

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