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

#include <psi_init_random.h>

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

Public Member Functions

 psi_init_random ()
 ~psi_init_random ()
virtual void init_psig (T *psig, const int &ik) override
 calculate and output planewave wavefunction
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
Public Member Functions inherited from psi_base< T >
 psi_base ()
virtual ~psi_base ()
virtual void tabulate ()
 CENTRAL FUNCTION: calculate the interpolate table if needed.
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)

Private Types

using Real = typename GetTypeReal<T>::type

Additional Inherited Members

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 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

Member Typedef Documentation

◆ Real

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

Constructor & Destructor Documentation

◆ psi_init_random()

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

◆ ~psi_init_random()

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

Member Function Documentation

◆ init_psig()

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

calculate and output planewave wavefunction

Parameters
ikkpoint index
Returns
initialized planewave wavefunction (psi::Psi<std::complex<double>>*)

Implements psi_base< T >.

Here is the call graph for this function:

◆ initialize()

template<typename T>
void psi_init_random< 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 >.

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

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