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

#include <hamilt_bse.h>

Collaboration diagram for BSE::HamiltBSE< T >:

Public Member Functions

 HamiltBSE (const int &nspin, const int &naos, const std::vector< int > &nocc, const std::vector< int > &nvirt, const UnitCell &ucell_in, const std::vector< double > &orb_cutoff_in, const Grid_Driver &gd_in, const psi::Psi< T > &psi_in, const psi::Psi< T > &psi_glb_in, const ModuleBase::matrix &eig_gw_in, MolecularLRI< T > &mo_lri_in, std::weak_ptr< LR::PotHxcLR > pot_in, const K_Vectors &kv_in, const std::vector< Parallel_Blkcyclic > &pX_in, const Parallel_Blkcyclic &pc_in, const Parallel_Orbitals &pmat_in, const std::vector< std::string > &spin_types_in, const std::string &tda, const bool bse_ri_hartree_in, const bool bse_mem_save_in, const int bse_continue_in, const bool out_bse_ab_in, const std::string &out_dir_in, const std::string &readin_dir_in, const int my_rank_in, const int nproc_in, const std::string &ri_hartree_benchmark_in="none")
 constructor for BSE_Matrix
void cal_V_for_A ()
void cal_W_for_A ()
void cal_V_for_B ()
void cal_W_for_B ()
void init_bse_matrix (const bool is_full, const int &st_index)
 initialize BSE matrix
void tda_solver (const int &st_index, const int &nstates, double *ene_out, T *X_out)
void full_solver (const int &st_index, const int &nstates, double *ene_out, T *X_out, T *Y_out)
void cal_V_by_grid (bool is_A)
void grid_calculation (hamilt::HContainer< T > &VR) const
void write_AB_matrix (const std::string &file, const int &prec, const T *ptr, const Parallel_Blkcyclic &pM)
void read_AB_matrix (const std::string &file, T *ptr, const Parallel_Blkcyclic &pM)
void full_solver (const int &st_index, const int &nstates, double *ene_out, double *X_out, double *Y_out)
void full_solver (const int &st_index, const int &nstates, double *ene_out, std::complex< double > *X_out, std::complex< double > *Y_out)
void grid_calculation (hamilt::HContainer< double > &VR) const
void grid_calculation (hamilt::HContainer< std::complex< double > > &VR) const

Public Attributes

std::vector< T > BSE_A_local
std::vector< T > BSE_B_local
std::vector< T > VA_local
std::vector< T > WA_local
std::vector< T > VB_local
std::vector< T > WB_local
int ndim = 0
Parallel_Blkcyclic pA

Private Attributes

const int nspin
const int naos
const std::vector< int > nocc
const std::vector< int > nvirt
const UnitCell & ucell
const std::vector< double > & orb_cutoff
const Grid_Driver & gd
const psi::Psi< T > & psi_ks
const psi::Psi< T > & psi_ks_glb
const ModuleBase::matrix & eig_gw
MolecularLRI< T > & mo_lri
std::weak_ptr< LR::PotHxcLR > pot
const K_Vectors & kv
int nk = 1
const std::vector< Parallel_Blkcyclic > & pX
const Parallel_Blkcyclic & pc
const Parallel_Orbitals & pmat
const std::vector< std::string > & spin_types
const bool bse_ri_hartree
const bool bse_mem_save
const int bse_continue
const bool out_bse_ab
const std::string out_dir
const std::string readin_dir
const int my_rank
const int nproc
const std::string ri_hartree_benchmark
std::unique_ptr< module_dm::DensityMatrix< T, T > > DM_trans = nullptr

Constructor & Destructor Documentation

◆ HamiltBSE()

template<typename T>
BSE::HamiltBSE< T >::HamiltBSE ( const int & nspin,
const int & naos,
const std::vector< int > & nocc,
const std::vector< int > & nvirt,
const UnitCell & ucell_in,
const std::vector< double > & orb_cutoff_in,
const Grid_Driver & gd_in,
const psi::Psi< T > & psi_in,
const psi::Psi< T > & psi_glb_in,
const ModuleBase::matrix & eig_gw_in,
MolecularLRI< T > & mo_lri_in,
std::weak_ptr< LR::PotHxcLR > pot_in,
const K_Vectors & kv_in,
const std::vector< Parallel_Blkcyclic > & pX_in,
const Parallel_Blkcyclic & pc_in,
const Parallel_Orbitals & pmat_in,
const std::vector< std::string > & spin_types_in,
const std::string & tda,
const bool bse_ri_hartree_in,
const bool bse_mem_save_in,
const int bse_continue_in,
const bool out_bse_ab_in,
const std::string & out_dir_in,
const std::string & readin_dir_in,
const int my_rank_in,
const int nproc_in,
const std::string & ri_hartree_benchmark_in = "none" )

constructor for BSE_Matrix

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

Member Function Documentation

◆ cal_V_by_grid()

template<typename T>
void BSE::HamiltBSE< T >::cal_V_by_grid ( bool is_A)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ cal_V_for_A()

template<typename T>
void BSE::HamiltBSE< T >::cal_V_for_A ( )
Note
these four functions shouldn't be called when bse_mem_save is true
Here is the call graph for this function:
Here is the caller graph for this function:

◆ cal_V_for_B()

template<typename T>
void BSE::HamiltBSE< T >::cal_V_for_B ( )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ cal_W_for_A()

template<typename T>
void BSE::HamiltBSE< T >::cal_W_for_A ( )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ cal_W_for_B()

template<typename T>
void BSE::HamiltBSE< T >::cal_W_for_B ( )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ full_solver() [1/3]

void BSE::HamiltBSE< double >::full_solver ( const int & st_index,
const int & nstates,
double * ene_out,
double * X_out,
double * Y_out )
Here is the call graph for this function:

◆ full_solver() [2/3]

void BSE::HamiltBSE< std::complex< double > >::full_solver ( const int & st_index,
const int & nstates,
double * ene_out,
std::complex< double > * X_out,
std::complex< double > * Y_out )
Here is the call graph for this function:

◆ full_solver() [3/3]

template<typename T>
void BSE::HamiltBSE< T >::full_solver ( const int & st_index,
const int & nstates,
double * ene_out,
T * X_out,
T * Y_out )
Here is the caller graph for this function:

◆ grid_calculation() [1/3]

void BSE::HamiltBSE< double >::grid_calculation ( hamilt::HContainer< double > & VR) const
Here is the call graph for this function:

◆ grid_calculation() [2/3]

void BSE::HamiltBSE< std::complex< double > >::grid_calculation ( hamilt::HContainer< std::complex< double > > & VR) const
Here is the call graph for this function:

◆ grid_calculation() [3/3]

template<typename T>
void BSE::HamiltBSE< T >::grid_calculation ( hamilt::HContainer< T > & VR) const
Here is the caller graph for this function:

◆ init_bse_matrix()

template<typename T>
void BSE::HamiltBSE< T >::init_bse_matrix ( const bool is_full,
const int & st_index )

initialize BSE matrix

Note
if bse_mem_save is true, V and W matrix will be added directly
Here is the call graph for this function:
Here is the caller graph for this function:

◆ read_AB_matrix()

template<typename T>
void BSE::HamiltBSE< T >::read_AB_matrix ( const std::string & file,
T * ptr,
const Parallel_Blkcyclic & pM )
inline
Here is the call graph for this function:
Here is the caller graph for this function:

◆ tda_solver()

template<typename T>
void BSE::HamiltBSE< T >::tda_solver ( const int & st_index,
const int & nstates,
double * ene_out,
T * X_out )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ write_AB_matrix()

template<typename T>
void BSE::HamiltBSE< T >::write_AB_matrix ( const std::string & file,
const int & prec,
const T * ptr,
const Parallel_Blkcyclic & pM )
inline
Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ BSE_A_local

template<typename T>
std::vector<T> BSE::HamiltBSE< T >::BSE_A_local

◆ BSE_B_local

template<typename T>
std::vector<T> BSE::HamiltBSE< T >::BSE_B_local

◆ bse_continue

template<typename T>
const int BSE::HamiltBSE< T >::bse_continue
private

◆ bse_mem_save

template<typename T>
const bool BSE::HamiltBSE< T >::bse_mem_save
private

◆ bse_ri_hartree

template<typename T>
const bool BSE::HamiltBSE< T >::bse_ri_hartree
private

◆ DM_trans

template<typename T>
std::unique_ptr<module_dm::DensityMatrix<T, T> > BSE::HamiltBSE< T >::DM_trans = nullptr
private

◆ eig_gw

template<typename T>
const ModuleBase::matrix& BSE::HamiltBSE< T >::eig_gw
private

◆ gd

template<typename T>
const Grid_Driver& BSE::HamiltBSE< T >::gd
private

◆ kv

template<typename T>
const K_Vectors& BSE::HamiltBSE< T >::kv
private

◆ mo_lri

template<typename T>
MolecularLRI<T>& BSE::HamiltBSE< T >::mo_lri
private

◆ my_rank

template<typename T>
const int BSE::HamiltBSE< T >::my_rank
private

◆ naos

template<typename T>
const int BSE::HamiltBSE< T >::naos
private

◆ ndim

template<typename T>
int BSE::HamiltBSE< T >::ndim = 0

◆ nk

template<typename T>
int BSE::HamiltBSE< T >::nk = 1
private

◆ nocc

template<typename T>
const std::vector<int> BSE::HamiltBSE< T >::nocc
private

◆ nproc

template<typename T>
const int BSE::HamiltBSE< T >::nproc
private

◆ nspin

template<typename T>
const int BSE::HamiltBSE< T >::nspin
private

◆ nvirt

template<typename T>
const std::vector<int> BSE::HamiltBSE< T >::nvirt
private

◆ orb_cutoff

template<typename T>
const std::vector<double>& BSE::HamiltBSE< T >::orb_cutoff
private

◆ out_bse_ab

template<typename T>
const bool BSE::HamiltBSE< T >::out_bse_ab
private

◆ out_dir

template<typename T>
const std::string BSE::HamiltBSE< T >::out_dir
private

◆ pA

template<typename T>
Parallel_Blkcyclic BSE::HamiltBSE< T >::pA

◆ pc

template<typename T>
const Parallel_Blkcyclic& BSE::HamiltBSE< T >::pc
private

◆ pmat

template<typename T>
const Parallel_Orbitals& BSE::HamiltBSE< T >::pmat
private

◆ pot

template<typename T>
std::weak_ptr<LR::PotHxcLR> BSE::HamiltBSE< T >::pot
private

◆ psi_ks

template<typename T>
const psi::Psi<T>& BSE::HamiltBSE< T >::psi_ks
private

◆ psi_ks_glb

template<typename T>
const psi::Psi<T>& BSE::HamiltBSE< T >::psi_ks_glb
private

◆ pX

template<typename T>
const std::vector<Parallel_Blkcyclic>& BSE::HamiltBSE< T >::pX
private

◆ readin_dir

template<typename T>
const std::string BSE::HamiltBSE< T >::readin_dir
private

◆ ri_hartree_benchmark

template<typename T>
const std::string BSE::HamiltBSE< T >::ri_hartree_benchmark
private

◆ spin_types

template<typename T>
const std::vector<std::string>& BSE::HamiltBSE< T >::spin_types
private

◆ ucell

template<typename T>
const UnitCell& BSE::HamiltBSE< T >::ucell
private

◆ VA_local

template<typename T>
std::vector<T> BSE::HamiltBSE< T >::VA_local

◆ VB_local

template<typename T>
std::vector<T> BSE::HamiltBSE< T >::VB_local

◆ WA_local

template<typename T>
std::vector<T> BSE::HamiltBSE< T >::WA_local

◆ WB_local

template<typename T>
std::vector<T> BSE::HamiltBSE< T >::WB_local

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