Skip to content

Commit

Permalink
Reverted back to epsilon0 prescreening
Browse files Browse the repository at this point in the history
  • Loading branch information
dpaulzc committed Feb 13, 2025
1 parent 2267733 commit 6cdc326
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions src/interactions.f90
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ pure real(r64) function gchimp2_TF(el, crys, qcrys, evec_k, evec_kp)
screened_qTF_sq = crys%qTF**2/crys%epsiloninf
!Following Eq. 7 of Nat. Comm. 12:2222 (2021)
!G + q dependent dielectric function
eps_3x3 = (crys%epsiloninf + (crys%qTF/twonorm(Gplusq))**2)*eye(3_i64)
eps_3x3 = (crys%epsilon0 + (crys%qTF/twonorm(Gplusq))**2)*eye(3_i64)

!Only want G /= -q in the sum over G
if(all(Gplusq /= 0)) Gsum = Gsum + &
Expand All @@ -116,11 +116,8 @@ pure real(r64) function gchimp2_TF(el, crys, qcrys, evec_k, evec_kp)
end function gchimp2_TF

pure real(r64) function gchimp2_RPA(el, crys, qcrys, evec_k, evec_kp, X0_qw)
!! Function to calculate the squared electron-charged impurity vertex.
!!
!! The expression implemented here was derived by Leveillee et al.
!! in PRB 107, 125207 (2023) with the G-dependent dielectric
!! from Ganose et al. Nat. Comm. 12:2222 (2021).
!! Function to calculate the RPA screened squared electron-charged
!! impurity vertex.

type(crystal), intent(in) :: crys
type(electron), intent(in) :: el
Expand Down Expand Up @@ -153,7 +150,7 @@ pure real(r64) function gchimp2_RPA(el, crys, qcrys, evec_k, evec_kp, X0_qw)
+ ik3*crys%reclattvecs(:, 3) ) + qcart

!G + q dependent dielectric function
eps_3x3 = (crys%epsiloninf - prefac*X0_qw/twonorm(Gplusq)**2)*eye(3_i64)
eps_3x3 = (crys%epsilon0 - prefac*X0_qw/twonorm(Gplusq)**2)*eye(3_i64)

!Only want G /= -q in the sum over G
if(all(Gplusq /= 0)) Gsum = Gsum + &
Expand Down

0 comments on commit 6cdc326

Please # to comment.