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

The open-shell $g^{xc}$ term, i.e. $\sum_{\kappa\lambda\sigma'}\sum_{\alpha\beta\sigma''}D^X_{\sigma'}D^X_{\sigma''} g^{xc}_{\kappa\lambda\sigma',\alpha\beta\sigma'',pq\tau}$ projected onto the MO block selected by mo_type (VO for the Z-vector right-hand side, OO for $W^c$). More...

#include <op_gxc_ulr.h>

Collaboration diagram for LR::OperatorGxcULR< T >:

Public Member Functions

 OperatorGxcULR (const KernelXC &kxc, const ModulePW::PW_Basis &rho_basis, const UnitCell &ucell, const std::vector< double > &orb_cutoff, const Grid_Driver &gd, const K_Vectors &kv, const Parallel_Orbitals &pmat, const Parallel_Blkcyclic &pc, const psi::Psi< T > &psi_ks, const std::vector< int > &nocc, const std::vector< int > &nvirt, const int naos, const std::vector< Parallel_Blkcyclic > &pX, const std::vector< Parallel_Blkcyclic > &pout, const LR_Util::MO_TYPE mo_type, const T factor, const int &nspin, const std::string &ks_solver)
void act (const T *const X_full, T *const out_full) const
 out += factor * <p tau| v^{(2)}_tau[X, X] |q tau> for both spin channels

Private Attributes

PotGradXCLR pot_grad_
const UnitCell & ucell_
const Grid_Driver & gd_
const K_Vectors & kv_
const Parallel_Orbitals & pmat_
const Parallel_Blkcyclic & pc_
const psi::Psi< T > & psi_ks_
std::vector< psi::Psi< T > > psi_spin_
const std::vector< int > & nocc_
const std::vector< int > & nvirt_
const int naos_ = 1
const std::vector< Parallel_Blkcyclic > & pX_
const std::vector< Parallel_Blkcyclic > & pout_
std::vector< double > orb_cutoff_
const LR_Util::MO_TYPE mo_type_ = LR_Util::VO
const T factor_ = T(1)
const int nk_ = 1
const int nrxx_ = 1
const std::string ks_solver_
std::unique_ptr< hamilt::HContainer< double > > hR_

Detailed Description

template<typename T>
class LR::OperatorGxcULR< T >

The open-shell $g^{xc}$ term, i.e. $\sum_{\kappa\lambda\sigma'}\sum_{\alpha\beta\sigma''}D^X_{\sigma'}D^X_{\sigma''} g^{xc}_{\kappa\lambda\sigma',\alpha\beta\sigma'',pq\tau}$ projected onto the MO block selected by mo_type (VO for the Z-vector right-hand side, OO for $W^c$).

This cannot be an OperatorLRHxc block like the other kernel terms: it is quadratic in $D^X$ rather than bilinear in a (out, in) spin pair, so BOTH transition-density channels have to be on the grid at the same time while the free spin $\tau$ is the output index. Hence the density is built once for the whole X vector and the potential is evaluated twice, once per $\tau$.

Only the real (gamma-only) path is implemented, matching the rest of the LR gradient – solve_Z_CG has no complex version either.

Constructor & Destructor Documentation

◆ OperatorGxcULR()

template<typename T>
LR::OperatorGxcULR< T >::OperatorGxcULR ( const KernelXC & kxc,
const ModulePW::PW_Basis & rho_basis,
const UnitCell & ucell,
const std::vector< double > & orb_cutoff,
const Grid_Driver & gd,
const K_Vectors & kv,
const Parallel_Orbitals & pmat,
const Parallel_Blkcyclic & pc,
const psi::Psi< T > & psi_ks,
const std::vector< int > & nocc,
const std::vector< int > & nvirt,
const int naos,
const std::vector< Parallel_Blkcyclic > & pX,
const std::vector< Parallel_Blkcyclic > & pout,
const LR_Util::MO_TYPE mo_type,
const T factor,
const int & nspin,
const std::string & ks_solver )
inline
Parameters
pXlayout of the X blocks (always VO)
poutlayout of the output blocks (VO or OO)
Here is the call graph for this function:

Member Function Documentation

◆ act()

template<typename T>
void LR::OperatorGxcULR< T >::act ( const T *const X_full,
T *const out_full ) const
inline

out += factor * <p tau| v^{(2)}_tau[X, X] |q tau> for both spin channels

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

Member Data Documentation

◆ factor_

template<typename T>
const T LR::OperatorGxcULR< T >::factor_ = T(1)
private

◆ gd_

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

◆ hR_

template<typename T>
std::unique_ptr<hamilt::HContainer<double> > LR::OperatorGxcULR< T >::hR_
private

◆ ks_solver_

template<typename T>
const std::string LR::OperatorGxcULR< T >::ks_solver_
private

◆ kv_

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

◆ mo_type_

template<typename T>
const LR_Util::MO_TYPE LR::OperatorGxcULR< T >::mo_type_ = LR_Util::VO
private

◆ naos_

template<typename T>
const int LR::OperatorGxcULR< T >::naos_ = 1
private

◆ nk_

template<typename T>
const int LR::OperatorGxcULR< T >::nk_ = 1
private

◆ nocc_

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

◆ nrxx_

template<typename T>
const int LR::OperatorGxcULR< T >::nrxx_ = 1
private

◆ nvirt_

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

◆ orb_cutoff_

template<typename T>
std::vector<double> LR::OperatorGxcULR< T >::orb_cutoff_
private

◆ pc_

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

◆ pmat_

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

◆ pot_grad_

template<typename T>
PotGradXCLR LR::OperatorGxcULR< T >::pot_grad_
private

◆ pout_

template<typename T>
const std::vector<Parallel_Blkcyclic>& LR::OperatorGxcULR< T >::pout_
private

◆ psi_ks_

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

◆ psi_spin_

template<typename T>
std::vector<psi::Psi<T> > LR::OperatorGxcULR< T >::psi_spin_
private

◆ pX_

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

◆ ucell_

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

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