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

#include <molecular_lri.h>

Collaboration diagram for BSE::MolecularLRI< T >:

Public Member Functions

 MolecularLRI (const UnitCell &ucell, const int nk, const LR_IO::RI_kRlist &kRlist_in, const int nocc, const int nvirt, const psi::Psi< T > &psi_ks_in, const int bse_q_approx_mode_in, const double bse_q_approx_threshold_in, const bool out_ri_cv_in, const std::string &out_dir_in, const int my_rank_in, const int nproc_in)
 calculate V[k_ai][k_bj](j,b,i,a) and W[k_ai][k_bj](j,b,i,a) with RI method
 ~MolecularLRI ()
void init (TLRI< T > &Cs_in, TLRI< T > &Vs_in, TLRI< T > &Ws_in, const Exx_Info_RI &info_ri)
 =============== calculation interface ====================
void cal_W_for_A (std::vector< T > &m_2d, const Parallel_Blkcyclic &pm_2d, const double factor=1.0)
void cal_W_for_B (std::vector< T > &m_2d, const Parallel_Blkcyclic &pm_2d, const double factor=1.0)
void cal_hartree_for_A (std::vector< T > &m_2d, const Parallel_Blkcyclic &pm_2d, const double factor=1.0)
void cal_hartree_for_B (std::vector< T > &m_2d, const Parallel_Blkcyclic &pm_2d, const double factor=1.0)
void print_k (std::ostream &ofs, const std::vector< Tk > &kindex_map, const std::vector< int > &vec, const std::string name)
 =============== print ====================
void print_a (std::ostream &ofs, const std::vector< int > &vec, const std::string name)

Public Attributes

RI::LR< int, int, 3, T > LR_lri
RI::Cell_Nearest< int, int, 3, double, 3 > cell_nearest

Protected Member Functions

void transform_k_2dlocal (std::vector< T > &m_2d, const std::map< int, std::map< int, RI::Tensor< T > > > &m_lri, const Parallel_Blkcyclic &pm_2d, const double factor)
 =============== inner function ====================
std::map< int, std::map< TA, RI::Tensor< T > > > cal_Csk_ao_mo (const TLRI< T > &CsR_ao, const std::vector< int > &k_list, const std::vector< TA > &list_IJ)
std::map< int, std::map< TA, RI::Tensor< T > > > transform_psi_k (const psi::Psi< T > &psi_ks, const std::vector< int > &k_list)
 transform psi to <k, <iat, tensor{nmo, iat.nw}>>, mo is not sliced
void build_q_to_kpair_map (int mode, double threshold)
 build q_list and q2kpair mapping according to approximation mode

Protected Attributes

const UnitCell & ucell
const int nk
const K_Vectors & kv
const LR_IO::RI_kRlist & kRlist
const Parallel_Blkcyclic pm_2d
const int nocc
const int nvirt
const int ndim
const psi::Psi< T > & psi_ks
const int bse_q_approx_mode
const double bse_q_approx_threshold
const bool out_ri_cv
const std::string out_dir
const int my_rank
const int nproc
std::vector< bool > is_local_k1

Constructor & Destructor Documentation

◆ MolecularLRI()

template<typename T>
BSE::MolecularLRI< T >::MolecularLRI ( const UnitCell & ucell,
const int nk,
const LR_IO::RI_kRlist & kRlist_in,
const int nocc,
const int nvirt,
const psi::Psi< T > & psi_ks_in,
const int bse_q_approx_mode_in,
const double bse_q_approx_threshold_in,
const bool out_ri_cv_in,
const std::string & out_dir_in,
const int my_rank_in,
const int nproc_in )
inline

calculate V[k_ai][k_bj](j,b,i,a) and W[k_ai][k_bj](j,b,i,a) with RI method

Here is the call graph for this function:

◆ ~MolecularLRI()

template<typename T>
BSE::MolecularLRI< T >::~MolecularLRI ( )
inline

Member Function Documentation

◆ build_q_to_kpair_map()

template<typename T>
void BSE::MolecularLRI< T >::build_q_to_kpair_map ( int mode,
double threshold )
protected

build q_list and q2kpair mapping according to approximation mode

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

◆ cal_Csk_ao_mo()

template<typename T>
std::map< int, std::map< TA, RI::Tensor< T > > > BSE::MolecularLRI< T >::cal_Csk_ao_mo ( const TLRI< T > & CsR_ao,
const std::vector< int > & k_list,
const std::vector< TA > & list_IJ )
protected

◆ cal_hartree_for_A()

template<typename T>
void BSE::MolecularLRI< T >::cal_hartree_for_A ( std::vector< T > & m_2d,
const Parallel_Blkcyclic & pm_2d,
const double factor = 1.0 )
inline
Here is the call graph for this function:

◆ cal_hartree_for_B()

template<typename T>
void BSE::MolecularLRI< T >::cal_hartree_for_B ( std::vector< T > & m_2d,
const Parallel_Blkcyclic & pm_2d,
const double factor = 1.0 )
inline
Here is the call graph for this function:

◆ cal_W_for_A()

template<typename T>
void BSE::MolecularLRI< T >::cal_W_for_A ( std::vector< T > & m_2d,
const Parallel_Blkcyclic & pm_2d,
const double factor = 1.0 )
inline
Here is the call graph for this function:

◆ cal_W_for_B()

template<typename T>
void BSE::MolecularLRI< T >::cal_W_for_B ( std::vector< T > & m_2d,
const Parallel_Blkcyclic & pm_2d,
const double factor = 1.0 )
inline
Here is the call graph for this function:

◆ init()

template<typename T>
void BSE::MolecularLRI< T >::init ( TLRI< T > & Cs_in,
TLRI< T > & Vs_in,
TLRI< T > & Ws_in,
const Exx_Info_RI & info_ri )

=============== calculation interface ====================

Here is the call graph for this function:

◆ print_a()

template<typename T>
void BSE::MolecularLRI< T >::print_a ( std::ostream & ofs,
const std::vector< int > & vec,
const std::string name )
inline
Here is the caller graph for this function:

◆ print_k()

template<typename T>
void BSE::MolecularLRI< T >::print_k ( std::ostream & ofs,
const std::vector< Tk > & kindex_map,
const std::vector< int > & vec,
const std::string name )
inline

=============== print ====================

Here is the caller graph for this function:

◆ transform_k_2dlocal()

template<typename T>
void BSE::MolecularLRI< T >::transform_k_2dlocal ( std::vector< T > & m_2d,
const std::map< int, std::map< int, RI::Tensor< T > > > & m_lri,
const Parallel_Blkcyclic & pm_2d,
const double factor )
protected

=============== inner function ====================

W[k_ai][k_bj] to 2d local matrix WA[aik1, bjk2].

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

◆ transform_psi_k()

template<typename T>
std::map< int, std::map< TA, RI::Tensor< T > > > BSE::MolecularLRI< T >::transform_psi_k ( const psi::Psi< T > & psi_ks,
const std::vector< int > & k_list )
protected

transform psi to <k, <iat, tensor{nmo, iat.nw}>>, mo is not sliced

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

Member Data Documentation

◆ bse_q_approx_mode

template<typename T>
const int BSE::MolecularLRI< T >::bse_q_approx_mode
protected

◆ bse_q_approx_threshold

template<typename T>
const double BSE::MolecularLRI< T >::bse_q_approx_threshold
protected

◆ cell_nearest

template<typename T>
RI::Cell_Nearest<int, int, 3, double, 3> BSE::MolecularLRI< T >::cell_nearest

◆ is_local_k1

template<typename T>
std::vector<bool> BSE::MolecularLRI< T >::is_local_k1
protected

◆ kRlist

template<typename T>
const LR_IO::RI_kRlist& BSE::MolecularLRI< T >::kRlist
protected

◆ kv

template<typename T>
const K_Vectors& BSE::MolecularLRI< T >::kv
protected

◆ LR_lri

template<typename T>
RI::LR<int,int,3,T> BSE::MolecularLRI< T >::LR_lri

◆ my_rank

template<typename T>
const int BSE::MolecularLRI< T >::my_rank
protected

◆ ndim

template<typename T>
const int BSE::MolecularLRI< T >::ndim
protected

◆ nk

template<typename T>
const int BSE::MolecularLRI< T >::nk
protected

◆ nocc

template<typename T>
const int BSE::MolecularLRI< T >::nocc
protected

◆ nproc

template<typename T>
const int BSE::MolecularLRI< T >::nproc
protected

◆ nvirt

template<typename T>
const int BSE::MolecularLRI< T >::nvirt
protected

◆ out_dir

template<typename T>
const std::string BSE::MolecularLRI< T >::out_dir
protected

◆ out_ri_cv

template<typename T>
const bool BSE::MolecularLRI< T >::out_ri_cv
protected

◆ pm_2d

template<typename T>
const Parallel_Blkcyclic BSE::MolecularLRI< T >::pm_2d
protected

◆ psi_ks

template<typename T>
const psi::Psi<T>& BSE::MolecularLRI< T >::psi_ks
protected

◆ ucell

template<typename T>
const UnitCell& BSE::MolecularLRI< T >::ucell
protected

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