Skip to content

Commit 373fb76

Browse files
committed
add notes
1 parent 63d2694 commit 373fb76

File tree

2 files changed

+27
-2
lines changed

2 files changed

+27
-2
lines changed

source/module_ri/gaussian_abfs.h

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,24 @@
1919

2020
class Gaussian_Abfs
2121
{
22+
/**
23+
* @brief Calculating bare Coulomb integrals in reciprocal space, using Gaussians.
24+
*/
25+
26+
27+
/* Gaussian integral
28+
(f_{l_am_a}|f_{l_bm_b})=\sum_{LM}A_{LM}\sum_{\bfG}\largebra{k^{l_a+l_b-L}G_{LM}(\bfk)\tilde{v}(\bfk)e^{-\ci\bfk\cdot\tau}}\Bigg|_{\bfk=\bfq-\bfG}
29+
30+
A_{LM}=\ci^{(l_a-l_b)}\tilde{N}_{l_a}^*\tilde{N}_{l_b}C^{LM}_{l_am_al_bm_b}
31+
32+
G_{LM}(\bfk)=k^Le^{-\frac{k^2}{\gamma}}\tilde{Y}_{L}^{M}(\hat{\bfk})
33+
34+
N_l=\frac{\gamma^{l+3/2}}{\sqrt{\pi/2}(2l-1)!!}
35+
36+
\tilde{N}_l=\frac{N_l}{\gamma^{l+3/2}}=\frac{1}{\sqrt{\pi/2}(2l-1)!!}
37+
38+
C^{LM}_{lm,l'm'}: Gaunt coefficient
39+
*/
2240
public:
2341
void init(const UnitCell& ucell,
2442
const int& Lmax,
@@ -43,8 +61,8 @@ class Gaussian_Abfs
4361

4462
/*
4563
Calculate the lattice sum over a Gaussian:
46-
S(k) := \sum_G |k+G|^{power+L} \exp(-lambda*|k+G|^2) Y_{LM}(k+G) *
47-
\exp(i(k+G)\tau) d_S(k) := S(k) * i * (k+G)
64+
S(k) := \sum_G |k+G|^{power+L} \exp(-lambda*|k+G|^2) Y_{LM}(k+G) * \exp(i(k+G)\tau)
65+
d_S(k) := S(k) * i * (k+G)
4866
*/
4967
std::vector<std::complex<double>> get_lattice_sum(
5068
const double& tpiba,

source/module_ri/singular_value.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,13 @@
1616

1717
namespace Singular_Value
1818
{
19+
/**
20+
* @brief Calculating correction of Coulomb singularity
21+
*
22+
Type_0, // Phys. Rev. B, 75:205126, May 2007.
23+
Type_1, // Phys. Rev. B 48, 5058. August 1993.
24+
*/
25+
1926
using T_cal_fq_type = std::function<double(const ModuleBase::Vector3<double>& gk)>;
2027
using T_cal_fq_type_no = std::function<double()>;
2128

0 commit comments

Comments
 (0)