galpy.df.impulse_deltav_general

galpy.df.impulse_deltav_general(v, y, b, w, pot)[source]

Calculate the delta velocity to due an encounter with a general spherical potential in the impulse approximation; allows for arbitrary velocity vectors, but y is input as the position along the stream

Parameters:
  • v (numpy.ndarray) – velocity of the stream (nstar,3)

  • y (numpy.ndarray) – position along the stream (nstar)

  • b (float) – impact parameter

  • w (numpy.ndarray) – velocity of the subhalo (3)

  • pot (Potential object or list thereof) – Potential object or list thereof (should be spherical)

Returns:

velocity kick deltav (nstar,3)

Return type:

numpy.ndarray

Notes

  • 2015-05-04 - Written - Sanders (Cambridge)

  • 2015-06-15 - Tweak to use galpy’ potential objects - Bovy (IAS)