Skip to content
Merged
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
12 changes: 9 additions & 3 deletions pentrc/torque.F90
Original file line number Diff line number Diff line change
Expand Up @@ -443,10 +443,16 @@ subroutine tpsi(tpsi_var,psi,n,l,zi,mi,wdfac,divxfac,electron, &
kappa = sqrt((1 - lmda*(1- epsr))/(2*epsr*lmda))
endif
lnq = 1.0*l
! cylindrical bounce and precessions
wbbar = pi*SQRT(2*epsr*lmda*bo)/(4*q*ro*ellipk(kappa**2))
! cylindrical bounce and precessions. These forms come from
! PENT, where the pitch variable was dimensional (1/Tesla,
! vpar = 1 - lmda*b). Here lmda is the dimensionless
! Lambda = lmda_pent*bo, so the PENT expressions map to
! sqrt(2*epsr*lmda) (no bo) and a bo in the wdbar
! denominator; keeping the PENT text verbatim inflated
! omega_b by sqrt(bo) and omega_D by bo.
wbbar = pi*SQRT(2*epsr*lmda)/(4*q*ro*ellipk(kappa**2))
wdbar = (2*q*lmda*(ellipe(kappa**2)/ellipk(kappa**2)-0.5)&
/(ro**2*epsr))*wdfac
/(bo*ro**2*epsr))*wdfac
bhat = SQRT(2*kin_f(s+2)/mass)
dhat = (kin_f(s+2)/chrg)
! perturbed action Eq. (12) [Park, Phys. Rev. Lett. 2009] divided by 2pi for DCON phi normalization
Expand Down
Loading