sarkas.time_evolution.integrators.Integrator.magnetic_boris
sarkas.time_evolution.integrators.Integrator.magnetic_boris#
- Integrator.magnetic_boris(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.