Skip to content

Commit

Permalink
Remove a normalisation by vth in the krook operator that shouldn't be…
Browse files Browse the repository at this point in the history
… there (grid is already normalised when evolve_ppar = true
  • Loading branch information
Lucas McConnell authored and Lucas McConnell committed May 22, 2024
1 parent 7650b7d commit e2a6c33
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions moment_kinetics/src/krook_collisions.jl
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,8 @@ function krook_collisions!(pdf_out, fvec_in, moments, composition, collisions, v
@loop_vperp_vpa ivperp ivpa begin
pdf_out[ivpa,ivperp,iz,ir,is] -= dt * nu_ii *
(fvec_in.pdf[ivpa,ivperp,iz,ir,is]
- exp(-((vpa.grid[ivpa] - fvec_in.upar[iz,ir,is])/vth)^2
- (vperp.grid[ivperp]/vth)^2))
- exp(-((vpa.grid[ivpa] - fvec_in.upar[iz,ir,is]))^2
- (vperp.grid[ivperp])^2))
end
end
elseif moments.evolve_upar
Expand Down

0 comments on commit e2a6c33

Please sign in to comment.