ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
Get_pchg_lcao Class Reference

Manages the computation of the charge densities for different bands (band-decomposed charge densities). More...

#include <get_pchg_lcao.h>

Collaboration diagram for Get_pchg_lcao:

Public Member Functions

 Get_pchg_lcao (const psi::Psi< double > &psi, const Parallel_Orbitals &para_orb, int nspin)
 Get_pchg_lcao (const psi::Psi< std::complex< double > > &psi, const Parallel_Orbitals &para_orb, int nspin)
void begin_gamma (const UnitCell &ucell, const Parallel_Grid &pgrid, const Grid_Driver &grid_driver, const std::vector< int > &out_pchg, const int istep, const std::string &global_out_dir, std::ofstream &ofs_running)
void begin_k (const ModulePW::PW_Basis &rho_pw, UnitCell &ucell, const Parallel_Grid &pgrid, const Grid_Driver &grid_driver, const K_Vectors &kv, const std::vector< int > &out_pchg, bool if_separate_k, const int istep, const std::string &global_out_dir, std::ofstream &ofs_running)

Private Member Functions

void prepare_get_pchg (std::ofstream &ofs_running)
std::vector< int > select_bands (const std::vector< int > &out_pchg) const
 Build the selected-band mask and reject invalid selectors.

Private Attributes

const psi::Psi< double > *const psi_gamma_
const psi::Psi< std::complex< double > > *const psi_k_
const Parallel_Orbitals & para_orb_
const int nspin_
const int nbands_

Detailed Description

Manages the computation of the charge densities for different bands (band-decomposed charge densities).

This class is responsible for initializing and managing the charge state computation process, offering functionality to calculate and plot the decomposed charge density for specified bands.

Constructor & Destructor Documentation

◆ Get_pchg_lcao() [1/2]

Get_pchg_lcao::Get_pchg_lcao ( const psi::Psi< double > & psi,
const Parallel_Orbitals & para_orb,
int nspin )

◆ Get_pchg_lcao() [2/2]

Get_pchg_lcao::Get_pchg_lcao ( const psi::Psi< std::complex< double > > & psi,
const Parallel_Orbitals & para_orb,
int nspin )

Member Function Documentation

◆ begin_gamma()

void Get_pchg_lcao::begin_gamma ( const UnitCell & ucell,
const Parallel_Grid & pgrid,
const Grid_Driver & grid_driver,
const std::vector< int > & out_pchg,
const int istep,
const std::string & global_out_dir,
std::ofstream & ofs_running )
Here is the call graph for this function:

◆ begin_k()

void Get_pchg_lcao::begin_k ( const ModulePW::PW_Basis & rho_pw,
UnitCell & ucell,
const Parallel_Grid & pgrid,
const Grid_Driver & grid_driver,
const K_Vectors & kv,
const std::vector< int > & out_pchg,
bool if_separate_k,
const int istep,
const std::string & global_out_dir,
std::ofstream & ofs_running )
Here is the call graph for this function:

◆ prepare_get_pchg()

void Get_pchg_lcao::prepare_get_pchg ( std::ofstream & ofs_running)
private
Here is the caller graph for this function:

◆ select_bands()

std::vector< int > Get_pchg_lcao::select_bands ( const std::vector< int > & out_pchg) const
private

Build the selected-band mask and reject invalid selectors.

Parameters
out_pchgINPUT parameter out_pchg, vector.
Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ nbands_

const int Get_pchg_lcao::nbands_
private

◆ nspin_

const int Get_pchg_lcao::nspin_
private

◆ para_orb_

const Parallel_Orbitals& Get_pchg_lcao::para_orb_
private

◆ psi_gamma_

const psi::Psi<double>* const Get_pchg_lcao::psi_gamma_
private

◆ psi_k_

const psi::Psi<std::complex<double> >* const Get_pchg_lcao::psi_k_
private

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