ploonetide.utils.functions.roche_radius_masses

ploonetide.utils.functions.roche_radius_masses(M: float | ndarray, m: float | ndarray, Rm: float | ndarray, rfac: float) float | ndarray[source]

Calculate the Roche radius of a secondary body orbiting a primary body. Works with scalars or NumPy arrays.

Parameters:
  • M (float or ndarray) – Mass of the primary body [kg]

  • m (float or ndarray) – Mass of the secondary body [kg]

  • Rm (float or ndarray) – Radius of the secondary body [m]

  • rfac (float, optional) – Dimensionless Roche factor. Default is 2.46

Returns:

Roche radius [m].

Return type:

float or ndarray