galpy.df.impulse_deltav_general_fullplummerintegration¶
- galpy.df.impulse_deltav_general_fullplummerintegration(v, x, b, w, x0, v0, galpot, GM, rs, tmaxfac=10.0, N=1000, integrate_method='symplec4_c')[source]¶
Calculate the delta velocity to due an encounter with a moving Plummer sphere and galactic potential relative to just in galactic potential by integrating each particle in the underlying galactic potential; allows for arbitrary velocity vectors and arbitrary shaped streams.
- Parameters:
v (numpy.ndarray) – velocity of the stream (nstar,3)
x (numpy.ndarray) – position along the stream (nstar,3)
b (float) – impact parameter
w (numpy.ndarray) – velocity of the subhalo (3)
x0 (numpy.ndarray) – position of closest approach
v0 (numpy.ndarray) – velocity of point of closest approach
galpot (Potential object or list thereof) – galpy Potential object or list thereof
GM (float) – mass of Plummer
rs (float) – scale of Plummer
tmaxfac (float) – multiple of rs/fabs(w - v0) to use for time integration interval
N (int) – number of forward integration points
integrate_method (str) – orbit integrator to use (see Orbit.integrate)
- Returns:
velocity kick deltav (nstar,3)
- Return type:
numpy.ndarray
Notes
2015-08-18 - Written - Sanders (Cambridge)