Skip to content

Commit

Permalink
Update RFcoef.f90
Browse files Browse the repository at this point in the history
Corrected lines 111-112 for reconstructing the second on-axis derivative of the longitudinal field, "tmpsumpp".  The quantities "Fcoef(j)" and "Fcoef2(j)" should be moved outside the power of 2.
  • Loading branch information
cemitch99 authored Feb 24, 2023
1 parent eff41dc commit 1c8f922
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions utilities/RFcoef.f90
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,8 @@ program rfcoef
Fcoef2(j)*sin((j-1)*2*pi*zz/zlen)
tmpsump = tmpsump-(j-1)*2*pi*Fcoef(j)*sin((j-1)*2*pi*zz/zlen)/zlen +&
(j-1)*2*pi*Fcoef2(j)*cos((j-1)*2*pi*zz/zlen)/zlen
tmpsumpp = tmpsumpp-((j-1)*2*pi*Fcoef(j)/zlen)**2*cos((j-1)*2*pi*zz/zlen) -&
((j-1)*2*pi*Fcoef2(j)/zlen)**2*sin((j-1)*2*pi*zz/zlen)
tmpsumpp = tmpsumpp-((j-1)*2*pi/zlen)**2*Fcoef(j)*cos((j-1)*2*pi*zz/zlen) -&
((j-1)*2*pi/zlen)**2*Fcoef2(j)*sin((j-1)*2*pi*zz/zlen)
enddo
write(8,*)zdata(i),tmpsum,tmpsump,tmpsumpp
enddo
Expand Down

0 comments on commit 1c8f922

Please sign in to comment.