sarkas.particles.remove_drift_nb#

sarkas.particles.remove_drift_nb(vel, nums)[source]#

Numba’d function to enforce conservation of total linear momentum. It updates sarkas.particles.Particles.vel.

Parameters
  • vel (numpy.ndarray) – Particles’ velocities.

  • nums (numpy.ndarray) – Number of particles of each species.

  • masses (numpy.ndarray) – Mass of each species.