ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
yukawa_screening.h
Go to the documentation of this file.
1#ifndef YUKAWA_SCREENING_H
2#define YUKAWA_SCREENING_H
3
4#include <vector>
5
6class UnitCell;
7class LCAO_Orbitals;
8
21{
22 public:
23 YukawaScreening() = default;
24 ~YukawaScreening() = default;
25
28 void init(const UnitCell &cell, const std::vector<int> &l_channel, double yukawa_lambda_cfg);
29
32 void cal_lambda(double **rho, int nrxx, int nspin);
33
35 void cal_slater_Fk(
36 const UnitCell &ucell,
37 int L,
38 int T,
39 const LCAO_Orbitals *orb);
40
44 void cal_slater_UJ(
45 const UnitCell &ucell,
46 double **rho,
47 int nrxx,
48 int nspin,
49 const LCAO_Orbitals *orb);
50
51 double get_lambda() const { return lambda_; }
53 double get_U(int it, int l) const { return U_Yukawa_[it][l]; }
54 double get_J(int it, int l) const { return J_Yukawa_[it][l]; }
56 double get_Ueff(int it) const
57 {
58 const int l = l_channel_[it];
59 return U_Yukawa_[it][l] - J_Yukawa_[it][l];
60 }
61
62 private:
64 static double spherical_Bessel(int k, double r, double lambda);
66 static double spherical_Hankel(int k, double r, double lambda);
67
68 double lambda_ = 0.0;
69 double yukawa_lambda_cfg_ = 0.0;
70 std::vector<int> l_channel_;
71 std::vector<std::vector<std::vector<std::vector<double>>>> Fk_;
72 std::vector<std::vector<double>> U_Yukawa_;
73 std::vector<std::vector<double>> J_Yukawa_;
74};
75
76#endif
Definition orb_read.h:18
Provide the basic information about unitcell.
Definition unitcell.h:16
double lambda_
Definition yukawa_screening.h:68
std::vector< int > l_channel_
Definition yukawa_screening.h:70
YukawaScreening()=default
double get_U(int it, int l) const
U/J of the correlated orbital (first radial channel) of atom type it.
Definition yukawa_screening.h:53
std::vector< std::vector< double > > U_Yukawa_
Definition yukawa_screening.h:72
static double spherical_Hankel(int k, double r, double lambda)
spherical modified Hankel function of the second kind, orders 0/2/4/6
Definition yukawa_screening.cpp:304
double get_lambda() const
Definition yukawa_screening.h:51
double yukawa_lambda_cfg_
Definition yukawa_screening.h:69
void cal_lambda(double **rho, int nrxx, int nspin)
Definition yukawa_screening.cpp:51
void cal_slater_Fk(const UnitCell &ucell, int L, int T, const LCAO_Orbitals *orb)
compute Slater integrals Fk for the correlated orbital of atom type T.
Definition yukawa_screening.cpp:129
double get_J(int it, int l) const
Definition yukawa_screening.h:54
std::vector< std::vector< std::vector< std::vector< double > > > > Fk_
Definition yukawa_screening.h:71
void cal_slater_UJ(const UnitCell &ucell, double **rho, int nrxx, int nspin, const LCAO_Orbitals *orb)
Definition yukawa_screening.cpp:186
void init(const UnitCell &cell, const std::vector< int > &l_channel, double yukawa_lambda_cfg)
Definition yukawa_screening.cpp:17
std::vector< std::vector< double > > J_Yukawa_
Definition yukawa_screening.h:73
static double spherical_Bessel(int k, double r, double lambda)
spherical modified Bessel function of the first kind, orders 0/2/4/6
Definition yukawa_screening.cpp:251
~YukawaScreening()=default
double get_Ueff(int it) const
effective U-J of the correlated orbital for atom type it
Definition yukawa_screening.h:56
#define T
Definition exp.cpp:237