Skip to main content

rocacc

Function rocacc 

Source
pub fn rocacc(q: f64, r: &Vec3, v: &Vec3) -> (f64, f64, f64)
Expand description

rocacc calculates and returns the acceleration (in the rotating frame) in a Roche potential of a particle of given position and velocity.

\param q mass ratio = M2/M1 \param r position, scaled in units of separation. \param v velocity, scaled in units of separation