sarkas.time_evolution.integrators.Integrator.magnetic_verlet_zdir
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
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
-direction. This is the preferred choice in this case.