ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
center2orb_orb11.h
Go to the documentation of this file.
1//=========================================================
2// AUTHOR : Peize Lin
3// DATE : 2016-01-24
4//=========================================================
5
6#ifndef W_ABACUS_DEVELOP_ABACUS_DEVELOP_SOURCE_MODULE_HAMILT_LCAO_HAMILT_LCAODFT_CENTER2_ORB_ORB11_H
7#define W_ABACUS_DEVELOP_ABACUS_DEVELOP_SOURCE_MODULE_HAMILT_LCAO_HAMILT_LCAODFT_CENTER2_ORB_ORB11_H
8
9#include "center2orb.h"
11#include "source_base/vector3.h"
14
15#include <map>
16#include <set>
17#include <vector>
18
20{
21 public:
22 Orb11(const Numerical_Orbital_Lm& nA_in,
23 const Numerical_Orbital_Lm& nB_in,
25 const ORB_gaunt_table& MGT_in);
26
27 void init_radial_table();
28 void init_radial_table(const std::set<size_t>& radials); // unit: Bohr/MOT.dr
29
31 static void init_radial_table(const std::vector<Orb11 *> &orbitals, const bool use_gpu);
32
34 const ModuleBase::Vector3<double>& RB, // unit: Bohr
35 const int& mA,
36 const int& mB) const;
37
38 ModuleBase::Vector3<double> cal_grad_overlap( // caoyu add 2021-11-19
40 const ModuleBase::Vector3<double>& RB, // unit: Bohr
41 const int& mA,
42 const int& mB) const;
43
45 std::vector<double> cal_overlap(const ModuleBase::Vector3<double> &RA, const ModuleBase::Vector3<double> &RB) const;
46 std::vector<ModuleBase::Vector3<double>> cal_grad_overlap(
48
49 private:
50 template <typename T> std::vector<T> contract_angular(const std::vector<T> &components) const;
51
54
57
58 std::map<int, std::vector<double>> Table_r; // unit: Bohr/MOT.dr
59 std::map<int, std::vector<double>> Table_dr;
60
61 // NOTE: the following variable is introduced during refactoring in order
62 // to decouple this class with ORB_table_phi. Before, MOT.dr is widely
63 // used by this class. MOT.dr, however, is in fact ORB.dR, which is in
64 // turn lcao_dr, one of the four parameters that define the two-center
65 // integration grid. This parameter is usually not set and defaults to
66 // 0.01.
67 const double dr_ = 0.01;
68};
69
70// this->Table_r[LAB][ir]
71
72#endif // W_ABACUS_DEVELOP_ABACUS_DEVELOP_SOURCE_MODULE_HAMILT_LCAO_HAMILT_LCAODFT_CENTER2_ORB_ORB11_H
Definition center2orb_orb11.h:20
std::map< int, std::vector< double > > Table_r
Definition center2orb_orb11.h:58
std::map< int, std::vector< double > > Table_dr
Definition center2orb_orb11.h:59
const double dr_
Definition center2orb_orb11.h:67
const ORB_gaunt_table & MGT
Definition center2orb_orb11.h:56
void init_radial_table()
Definition center2orb_orb11.cpp:39
double cal_overlap(const ModuleBase::Vector3< double > &RA, const ModuleBase::Vector3< double > &RB, const int &mA, const int &mB) const
Definition center2orb_orb11.cpp:338
std::vector< T > contract_angular(const std::vector< T > &components) const
Definition center2orb_orb11.cpp:494
const Numerical_Orbital_Lm & nA
Definition center2orb_orb11.h:52
ModuleBase::Vector3< double > cal_grad_overlap(const ModuleBase::Vector3< double > &RA, const ModuleBase::Vector3< double > &RB, const int &mA, const int &mB) const
Definition center2orb_orb11.cpp:411
const ModuleBase::Sph_Bessel_Recursive::D2 * psb_
Definition center2orb_orb11.h:55
const Numerical_Orbital_Lm & nB
Definition center2orb_orb11.h:53
Orb11(const Numerical_Orbital_Lm &nA_in, const Numerical_Orbital_Lm &nB_in, const ModuleBase::Sph_Bessel_Recursive::D2 *psb, const ORB_gaunt_table &MGT_in)
Definition center2orb_orb11.cpp:31
Definition sph_bessel_recursive.h:52
3 elements vector
Definition vector3.h:21
Definition orb_atomic_lm.h:21
Definition orb_gaunt_table.h:9