A gyro-orbit and the E×B drift by the Boris push
The Boris push moves a charged particle through electric and magnetic fields in almost every particle-in-cell code. In a magnetic field alone it keeps the speed to rounding and puts every position on one circle; the gyroperiod comes out 6.28449 instead of , longer by . With an electric field added, a particle started at moves at exactly that velocity forever, and any other start averages to it.
Look inside this program
- Atlas
The program’s map: every function and which calls which.
There’s no recorded run of this program yet.