sarkas.time_evolution.integrators.Integrator.magnetic_verlet_zdir#

Integrator.magnetic_verlet_zdir(ptcls)[source]#

Update particles’ class based on velocity verlet method in the case of a constant magnetic field along the \(z\) axis. For more info see eq. (78) of Ref. [Chin, 2008]

Parameters

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

Returns

potential_energy (float) – Total potential energy.

Notes

This integrator is faster than magnetic_verlet but valid only for a magnetic field in the \(z\)-direction. This is the preferred choice in this case.