Skip to content

Commit

Permalink
Fix exponential cutoff for negative frequencies
Browse files Browse the repository at this point in the history
  • Loading branch information
cerisola committed Nov 7, 2023
1 parent 8591311 commit b7101c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ExponentialCutoffSD.jl
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ the underlying spectral density `J` and the given frequency cutoff `ωcutoff`.
"""
ExponentialCutoffSD(J, ωcutoff) = ExponentialCutoffSD(J, float(ωcutoff))

sdoverω(J::ExponentialCutoffSD, ω) = sdoverω(J.J, ω)*exp(-ω/J.ωcutoff)
sdoverω(J::ExponentialCutoffSD, ω) = sdoverω(J.J, ω)*exp(-abs(ω)/J.ωcutoff)

reorganisation_energy(J::ExponentialCutoffSD{OhmicSD}) = J.J.α*J.ωcutoff
reorganisation_energy(J::ExponentialCutoffSD{PolySD}) = J.J.α*J.ωcutoff^J.J.n*factorial(J.J.n-1)
Expand Down

0 comments on commit b7101c6

Please sign in to comment.