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

#include <lr_density.h>

Collaboration diagram for LR::LR_Density< T >:

Public Member Functions

 LR_Density (const UnitCell &ucell, const K_Vectors &kv, const Grid_Driver &gd, const psi::Psi< T > &psi_ks, const std::vector< double > &orb_cutoff, const Parallel_Grid &pgrid, const int &nspin, const std::vector< int > &nocc, const std::vector< int > &nvirt, const int &nao, const std::vector< Parallel_Blkcyclic > &pX, const Parallel_Blkcyclic &pc, const Parallel_Orbitals &pmat, const bool openshell, const int output_precision, const std::string &output_directory)
void cal_eh_density_single_state (const T *const X_istate, const int ispin, double **density)
 calculate the electron density from the density matrix in 2d-block distribution
void write_density_single_state (const double *const *const density, const std::string &filepath, std::ofstream &ofs_running)
void output_eh_density_all_states (const T *const X, const int ispin, const int nstate, const std::string &channel_label, std::ofstream &ofs_running)

Private Member Functions

void dm_to_density (module_dm::DensityMatrix< double, double > &dm, double **density)
void dm_to_density (module_dm::DensityMatrix< std::complex< double >, std::complex< double > > &dm, double **density)

Private Attributes

const UnitCell & ucell_
const K_Vectors & kv_
const Grid_Driver & gd_
const psi::Psi< T > & psi_ks_
const std::vector< double > & orb_cutoff_
const Parallel_Grid & pgrid_
const int nspin_
const std::vector< int > & nocc_
const std::vector< int > & nvirt_
const int nao_
int nk_
const std::vector< Parallel_Blkcyclic > & pX_
const Parallel_Blkcyclic & pc_
const Parallel_Orbitals & pmat_
const bool openshell_
const int out_chg_precision_
 cached aliases, read once here instead of at every call site below
const std::string global_out_dir_

Constructor & Destructor Documentation

◆ LR_Density()

template<typename T>
LR::LR_Density< T >::LR_Density ( const UnitCell & ucell,
const K_Vectors & kv,
const Grid_Driver & gd,
const psi::Psi< T > & psi_ks,
const std::vector< double > & orb_cutoff,
const Parallel_Grid & pgrid,
const int & nspin,
const std::vector< int > & nocc,
const std::vector< int > & nvirt,
const int & nao,
const std::vector< Parallel_Blkcyclic > & pX,
const Parallel_Blkcyclic & pc,
const Parallel_Orbitals & pmat,
const bool openshell,
const int output_precision,
const std::string & output_directory )
Here is the call graph for this function:

Member Function Documentation

◆ cal_eh_density_single_state()

template<typename T>
void LR::LR_Density< T >::cal_eh_density_single_state ( const T *const X_istate,
const int ispin,
double ** density )

calculate the electron density from the density matrix in 2d-block distribution

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

◆ dm_to_density() [1/2]

template<typename T>
void LR::LR_Density< T >::dm_to_density ( module_dm::DensityMatrix< double, double > & dm,
double ** density )
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ dm_to_density() [2/2]

template<typename T>
void LR::LR_Density< T >::dm_to_density ( module_dm::DensityMatrix< std::complex< double >, std::complex< double > > & dm,
double ** density )
private
Here is the call graph for this function:

◆ output_eh_density_all_states()

template<typename T>
void LR::LR_Density< T >::output_eh_density_all_states ( const T *const X,
const int ispin,
const int nstate,
const std::string & channel_label,
std::ofstream & ofs_running )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ write_density_single_state()

template<typename T>
void LR::LR_Density< T >::write_density_single_state ( const double *const *const density,
const std::string & filepath,
std::ofstream & ofs_running )
Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ gd_

template<typename T>
const Grid_Driver& LR::LR_Density< T >::gd_
private

◆ global_out_dir_

template<typename T>
const std::string LR::LR_Density< T >::global_out_dir_
private

◆ kv_

template<typename T>
const K_Vectors& LR::LR_Density< T >::kv_
private

◆ nao_

template<typename T>
const int LR::LR_Density< T >::nao_
private

◆ nk_

template<typename T>
int LR::LR_Density< T >::nk_
private

◆ nocc_

template<typename T>
const std::vector<int>& LR::LR_Density< T >::nocc_
private

◆ nspin_

template<typename T>
const int LR::LR_Density< T >::nspin_
private

◆ nvirt_

template<typename T>
const std::vector<int>& LR::LR_Density< T >::nvirt_
private

◆ openshell_

template<typename T>
const bool LR::LR_Density< T >::openshell_
private

◆ orb_cutoff_

template<typename T>
const std::vector<double>& LR::LR_Density< T >::orb_cutoff_
private

◆ out_chg_precision_

template<typename T>
const int LR::LR_Density< T >::out_chg_precision_
private

cached aliases, read once here instead of at every call site below

◆ pc_

template<typename T>
const Parallel_Blkcyclic& LR::LR_Density< T >::pc_
private

◆ pgrid_

template<typename T>
const Parallel_Grid& LR::LR_Density< T >::pgrid_
private

◆ pmat_

template<typename T>
const Parallel_Orbitals& LR::LR_Density< T >::pmat_
private

◆ psi_ks_

template<typename T>
const psi::Psi<T>& LR::LR_Density< T >::psi_ks_
private

◆ pX_

template<typename T>
const std::vector<Parallel_Blkcyclic>& LR::LR_Density< T >::pX_
private

◆ ucell_

template<typename T>
const UnitCell& LR::LR_Density< T >::ucell_
private

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