sarkas.time_evolution.integrators.Integrator.magnetic_boris_zdir#

Integrator.magnetic_boris_zdir(ptcls)[source]#

Update particles’ class using the Boris algorithm in the case of a constant magnetic field along the \(z\) axis. For more info see eqs. (80) - (81) of Ref. [Chin, 2008]

Parameters

ptcls (sarkas.particles.Particles) – Particles data.

Returns

potential_energy (float) – Total potential energy.