Skip to content

Commit

Permalink
Correct s=0 case (tn)
Browse files Browse the repository at this point in the history
  • Loading branch information
BrieucLD committed Jun 20, 2024
1 parent 0885a47 commit 7ede207
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/models.jl
Original file line number Diff line number Diff line change
Expand Up @@ -512,7 +512,7 @@ function chaincoeffs_ohmic(nummodes, α, s; ωc=1, soft=false)
if s==0
c0 = sqrt(2α)*ωc
e = fill(0.5*ωc,nummodes)
t = [ωc*(n+1)/(4n+2) for n in 0:(nummodes-2)]
t = [ωc*(1+n)^2/((2+2n)*(3+2n))*sqrt((3+2n)/(1+2n)) for n in 0:(nummodes-2)]
else
c0 = sqrt(2α/(s+1))*ωc
e = [(ωc/2)*(1 + (s^2)/((s+2n)*(2+s+2n))) for n in 0:(nummodes-1)]
Expand Down

0 comments on commit 7ede207

Please sign in to comment.