- plasmapy.simulation.particle_integrators.boris_push(x, v, B, E, q, m, dt)
The explicit Boris pusher.
ndarray) – Particle position at full timestep, in SI (meter) units.
ndarray) – Particle velocity at half timestep, in SI (meter/second) units.
ndarray) – Magnetic field at full timestep, in SI (tesla) units.
float) – Electric field at full timestep, in SI (V/m) units.
float) – Particle charge, in SI (coulomb) units.
float) – Particle mass, in SI (kg) units.
float) – Timestep, in SI (second) units.
Conceptually, the algorithm has three phases:
Add half the impulse from electric field.
Rotate the particle velocity about the direction of the magnetic field.
Add the second half of the impulse from the electric field.
This ends up causing the magnetic field action to be properly “centered” in time, and the algorithm, being a symplectic integrator, conserves energy.