ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
Velocity_op< TR > Class Template Reference

#include <velocity_op.h>

Collaboration diagram for Velocity_op< TR >:

Public Member Functions

 Velocity_op (const UnitCell *ucell_in, const Grid_Driver *GridD_in, const BasisFlattenedIndexing &basis, const Parallel_Blkcyclic &layout, const LCAO_Orbitals &orb, const TwoCenterIntegrator *intor)
hamilt::HContainer< std::complex< double > > * get_current_term_pointer (const int &i) const
void calculate_vcomm_r ()
void calculate_grad_term ()

Private Member Functions

void initialize_vcomm_r (const Grid_Driver *GridD_in)
 initialize HR, search the nearest neighbor atoms HContainer is used to store the non-local pseudopotential matrix with specific <I,J,R> atom-pairs the size of HR will be fixed after initialization
void initialize_grad_term (const Grid_Driver *GridD_in)
void build_atom_basis ()
void cal_vcomm_r_IJR (const int &iat1, const int &iat2, const int &T0, const std::vector< std::unordered_map< int, std::vector< double > > > &nlm1_all, const std::vector< std::unordered_map< int, std::vector< double > > > &nlm2_all, std::complex< double > **current_mat_p)
 calculate the HR local matrix of <I,J,R> atom pair
void cal_grad_IJR (const int &iat1, const int &iat2, const ModuleBase::Vector3< double > &dtau, std::complex< double > **current_mat_p)

Private Attributes

const UnitCell * ucell = nullptr
std::unique_ptr< BasisFlattenedIndexing > basis_
const Parallel_Blkcyclic & layout_
const LCAO_Orbitals & orb_
std::array< std::unique_ptr< hamilt::HContainer< std::complex< double > > >, 3 > current_term
 Cartesian current terms. TD terms include an imaginary part, so they are complex.
std::vector< AtomBasisView > atom_rows_
std::vector< AtomBasisView > atom_cols_
const TwoCenterIntegrator * intor_ = nullptr
std::vector< AdjacentAtomInfo > adjs_vcommr
 exact the nearest neighbor atoms from all adjacent atoms
std::vector< AdjacentAtomInfo > adjs_grad
ModuleBase::Vector3< double > cart_At
 Store the vector potential for td_ekinetic term.

Static Private Attributes

static Position_op r_calculator
static bool init_done

Constructor & Destructor Documentation

◆ Velocity_op()

template<typename TR>
Velocity_op< TR >::Velocity_op ( const UnitCell * ucell_in,
const Grid_Driver * GridD_in,
const BasisFlattenedIndexing & basis,
const Parallel_Blkcyclic & layout,
const LCAO_Orbitals & orb,
const TwoCenterIntegrator * intor )
Here is the call graph for this function:

Member Function Documentation

◆ build_atom_basis()

template<typename TR>
void Velocity_op< TR >::build_atom_basis ( )
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ cal_grad_IJR()

template<typename TR>
void Velocity_op< TR >::cal_grad_IJR ( const int & iat1,
const int & iat2,
const ModuleBase::Vector3< double > & dtau,
std::complex< double > ** current_mat_p )
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ cal_vcomm_r_IJR()

template<typename TR>
void Velocity_op< TR >::cal_vcomm_r_IJR ( const int & iat1,
const int & iat2,
const int & T0,
const std::vector< std::unordered_map< int, std::vector< double > > > & nlm1_all,
const std::vector< std::unordered_map< int, std::vector< double > > > & nlm2_all,
std::complex< double > ** current_mat_p )
private

calculate the HR local matrix of <I,J,R> atom pair

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

◆ calculate_grad_term()

template<typename TR>
void Velocity_op< TR >::calculate_grad_term ( )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ calculate_vcomm_r()

template<typename TR>
void Velocity_op< TR >::calculate_vcomm_r ( )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ get_current_term_pointer()

template<typename TR>
hamilt::HContainer< std::complex< double > > * Velocity_op< TR >::get_current_term_pointer ( const int & i) const
inline
Here is the caller graph for this function:

◆ initialize_grad_term()

template<typename TR>
void Velocity_op< TR >::initialize_grad_term ( const Grid_Driver * GridD_in)
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ initialize_vcomm_r()

template<typename TR>
void Velocity_op< TR >::initialize_vcomm_r ( const Grid_Driver * GridD_in)
private

initialize HR, search the nearest neighbor atoms HContainer is used to store the non-local pseudopotential matrix with specific <I,J,R> atom-pairs the size of HR will be fixed after initialization

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

Member Data Documentation

◆ adjs_grad

template<typename TR>
std::vector<AdjacentAtomInfo> Velocity_op< TR >::adjs_grad
private

◆ adjs_vcommr

template<typename TR>
std::vector<AdjacentAtomInfo> Velocity_op< TR >::adjs_vcommr
private

exact the nearest neighbor atoms from all adjacent atoms

◆ atom_cols_

template<typename TR>
std::vector<AtomBasisView> Velocity_op< TR >::atom_cols_
private

◆ atom_rows_

template<typename TR>
std::vector<AtomBasisView> Velocity_op< TR >::atom_rows_
private

◆ basis_

template<typename TR>
std::unique_ptr<BasisFlattenedIndexing> Velocity_op< TR >::basis_
private

◆ cart_At

template<typename TR>
ModuleBase::Vector3<double> Velocity_op< TR >::cart_At
private

Store the vector potential for td_ekinetic term.

◆ current_term

template<typename TR>
std::array<std::unique_ptr<hamilt::HContainer<std::complex<double> > >, 3> Velocity_op< TR >::current_term
private

Cartesian current terms. TD terms include an imaginary part, so they are complex.

◆ init_done

template<typename TR>
bool Velocity_op< TR >::init_done
staticprivate

◆ intor_

template<typename TR>
const TwoCenterIntegrator* Velocity_op< TR >::intor_ = nullptr
private

◆ layout_

template<typename TR>
const Parallel_Blkcyclic& Velocity_op< TR >::layout_
private

◆ orb_

template<typename TR>
const LCAO_Orbitals& Velocity_op< TR >::orb_
private

◆ r_calculator

template<typename TR>
Position_op Velocity_op< TR >::r_calculator
staticprivate

◆ ucell

template<typename TR>
const UnitCell* Velocity_op< TR >::ucell = nullptr
private

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