Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions src/electron_system/interacting/screening/impl.jl
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,12 @@ Represents the bare Coulomb pseudo potential: V(q) = e² / q².
"""
struct CoulombPseudoPotential <: AbstractPseudoPotential end

# TODO: insert 4pi!
# NOTE: in the literature, usually here there is a 4pi, which comes from the vacuum
# permittivity eps_0 = 1/4pi in atomic units. In natural units used here, eps_0=1.
# This also aligns with the definition of the DSF (see, e.g., PHYSICAL REVIEW E 78, 026411 2008)
function _compute(::CoulombPseudoPotential, om_q::NTuple{2, T}) where {T <: Real}
om, q = om_q
return 4 * pi * ELEMENTARY_CHARGE_SQUARED / q^2
return ELEMENTARY_CHARGE_SQUARED / q^2
end

### screening
Expand Down
2 changes: 1 addition & 1 deletion test/electron_system/screening.jl
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ APPROXS = [NoApprox(), NonDegenerated(), Degenerated()]
pseudo_potential(scr, (om, q)),
)

@test isapprox(pseudo_potential(scr, (om, q)), 4 * pi * ELEMENTARY_CHARGE_SQUARED / q^2)
@test isapprox(pseudo_potential(scr, (om, q)), ELEMENTARY_CHARGE_SQUARED / q^2)

@test isapprox(local_field_correction(scr, (om, q)), zero(om))
end
Expand Down
Loading