Skip to content

Commit

Permalink
BEAMS3D: further fix to vel. diff calc.
Browse files Browse the repository at this point in the history
(cherry picked from commit 1440758)
  • Loading branch information
kudav committed Jan 7, 2025
1 parent c484bd4 commit 21d43cd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions BEAMS3D/Sources/beams3d_physics_mod.f90
Original file line number Diff line number Diff line change
Expand Up @@ -386,8 +386,8 @@ SUBROUTINE beams3d_physics_gc(t, q)
!-----------------------------------------------------------
dve = speed*tau_spit_inv*(1-2*te_temp*inv_mymass*e_charge/speed**2.0)
dvi = vc3_tauinv/(speed*speed)*(1+ti_temp*inv_mymass*e_charge/speed**2.0)
reduction = dve + dvi
newspeed = speed - reduction*dt+sigma*zeta
reduction = (dve + dvi)*dt+sigma*zeta
newspeed = speed - reduction
dve=dve+ddve
dvi=dvi+ddvi
vfrac = newspeed/speed
Expand Down

0 comments on commit 21d43cd

Please sign in to comment.