1#ifndef TD_VELOCITY_OP_H
2#define TD_VELOCITY_OP_H
6#include <unordered_map>
41 std::unique_ptr<BasisFlattenedIndexing>
basis_;
48 std::array<std::unique_ptr<hamilt::HContainer<std::complex<double>>>, 3>
current_term;
74 const std::vector<std::unordered_map<
int, std::vector<double>>>& nlm1_all,
75 const std::vector<std::unordered_map<
int, std::vector<double>>>& nlm2_all,
76 std::complex<double>** current_mat_p);
80 std::complex<double>** current_mat_p);
Canonical atom-major flattening of the LCAO basis hierarchy.
Definition basis_flattened_indexing.h:40
Grid_Driver class for neighbor search interface.
Definition sltk_grid_driver.h:63
3 elements vector
Definition vector3.h:21
Parallel block-cyclic matrix distribution.
Definition parallel_blkcyc.h:25
Definition pos_op_mat.h:21
A class to compute two-center integrals.
Definition two_center_integrator.h:35
Provide the basic information about unitcell.
Definition unitcell.h:16
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
Definition velocity_op.cpp:370
std::vector< AtomBasisView > atom_rows_
Definition velocity_op.h:53
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.
Definition velocity_op.h:48
void initialize_vcomm_r(const Grid_Driver *GridD_in)
initialize HR, search the nearest neighbor atoms HContainer is used to store the non-local pseudopote...
Definition velocity_op.cpp:35
void build_atom_basis()
Definition velocity_op.cpp:184
const LCAO_Orbitals & orb_
Definition velocity_op.h:45
ModuleBase::Vector3< double > cart_At
Store the vector potential for td_ekinetic term.
Definition velocity_op.h:87
void initialize_grad_term(const Grid_Driver *GridD_in)
Definition velocity_op.cpp:118
const TwoCenterIntegrator * intor_
Definition velocity_op.h:56
const UnitCell * ucell
Definition velocity_op.h:39
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)
Definition velocity_op.cpp:17
const Parallel_Blkcyclic & layout_
Definition velocity_op.h:43
static bool init_done
Definition velocity_op.h:89
std::vector< AdjacentAtomInfo > adjs_vcommr
exact the nearest neighbor atoms from all adjacent atoms
Definition velocity_op.h:83
std::vector< AdjacentAtomInfo > adjs_grad
Definition velocity_op.h:84
std::vector< AtomBasisView > atom_cols_
Definition velocity_op.h:54
hamilt::HContainer< std::complex< double > > * get_current_term_pointer(const int &i) const
Definition velocity_op.h:31
static Position_op r_calculator
Definition velocity_op.h:88
std::unique_ptr< BasisFlattenedIndexing > basis_
Definition velocity_op.h:41
void cal_grad_IJR(const int &iat1, const int &iat2, const ModuleBase::Vector3< double > &dtau, std::complex< double > **current_mat_p)
Definition velocity_op.cpp:502
void calculate_vcomm_r()
Definition velocity_op.cpp:200
void calculate_grad_term()
Definition velocity_op.cpp:454
Definition hcontainer.h:147
Grid_Driver class for neighbor search interface.