ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
td_pot_hybrid.h
Go to the documentation of this file.
1#ifndef TD_POT_HYBRID_H
2#define TD_POT_HYBRID_H
5#include "source_cell/klist.h"
10#include <vector>
12
13namespace hamilt
14{
15
16#ifndef __TD_POT_HYBRIDTEMPLATE
17#define __TD_POT_HYBRIDTEMPLATE
18
24template <class T>
25class TD_pot_hybrid : public T
26{
27};
28
29#endif
30
36template <typename TK, typename TR>
37class TD_pot_hybrid<OperatorLCAO<TK, TR>> : public OperatorLCAO<TK, TR>
38{
39 public:
44 const K_Vectors* kv_in,
45 HContainer<TR>* hR_in,
46 HContainer<TR>* SR_in,
47 const LCAO_Orbitals& orb,
48 const UnitCell* ucell_in,
49 const std::vector<double>& orb_cutoff,
50 const Grid_Driver* GridD_in,
51 const TwoCenterIntegrator* intor);
52
57
62 virtual void contributeHR() override;
63 //ETD
64 virtual void contributeHk(int ik) override;
65 //ETD
66
67 virtual void set_HR_fixed(void*) override;
68
69
70 private:
71 const UnitCell* ucell = nullptr;
72 std::vector<double> orb_cutoff_;
74
75 hamilt::HContainer<TR>* HR_fixed = nullptr;
76
78
79 const TwoCenterIntegrator* intor_ = nullptr;
80
81 bool allocated = false;
82
83 bool HR_fixed_done = false;
84 //tddft part
86 //ETD
87 //std::vector<std::complex<double>> hk_hybrid;
88 //ETD
92
93
99 void initialize_HR(const Grid_Driver* GridD_in);
100
101 void init_td();
102 void update_td();
103
109
113 void cal_HR_IJR(const int& iat1,
114 const int& iat2,
115 const Parallel_Orbitals* paraV,
116 const ModuleBase::Vector3<double>& dtau,
117 TR* hr_mat_p,
118 TR* sr_p);
119
121 std::vector<AdjacentAtomInfo> adjs_all;
122};
123
124} // namespace hamilt
125#endif
Definition sltk_grid_driver.h:40
Definition klist.h:12
Definition ORB_read.h:18
3 elements vector
Definition vector3.h:24
Definition parallel_orbitals.h:9
A class to compute two-center integrals.
Definition two_center_integrator.h:35
Definition unitcell.h:15
Definition cal_r_overlap_R.h:24
Definition hcontainer.h:144
Definition hs_matrix_k.hpp:11
Definition operator_lcao.h:12
std::vector< double > orb_cutoff_
Definition td_pot_hybrid.h:72
void cal_HR_IJR(const int &iat1, const int &iat2, const Parallel_Orbitals *paraV, const ModuleBase::Vector3< double > &dtau, TR *hr_mat_p, TR *sr_p)
calculate the HR local matrix of <I,J,R> atom pair
virtual void set_HR_fixed(void *) override
set_HR_fixed() is used for pass HR_fixed matrix to the next node in sub-chain table not used in base ...
void initialize_HR(const Grid_Driver *GridD_in)
initialize HR, search the nearest neighbor atoms HContainer is used to store the electronic kinetic m...
ModuleBase::Vector3< double > cart_At
Store the vector potential for td_ekinetic term.
Definition td_pot_hybrid.h:90
ModuleBase::Vector3< double > Et
Definition td_pot_hybrid.h:91
virtual void contributeHk(int ik) override
void calculate_HR()
calculate the electronic kinetic matrix with specific <I,J,R> atom-pairs use the adjs_all to calculat...
const LCAO_Orbitals & orb_
Definition td_pot_hybrid.h:73
cal_r_overlap_R * r_calculator
Definition td_pot_hybrid.h:85
virtual void contributeHR() override
contributeHR() is used to calculate the HR matrix <phi_{\mu, 0}|-\Nabla^2|phi_{\nu,...
std::vector< AdjacentAtomInfo > adjs_all
exact the nearest neighbor atoms from all adjacent atoms
Definition td_pot_hybrid.h:121
Definition td_pot_hybrid.h:26
#define T
Definition exp.cpp:237
Definition hamilt.h:13