calculate_newtonian_potential_from_bcrf_positions#

pride.astro.calculate_newtonian_potential_from_bcrf_positions(massive_bodies_gm: numpy.ndarray, x_target_bcrf: numpy.ndarray, x_bodies_bcrf: numpy.ndarray) numpy.ndarray#

Newtonian potential from GMs and BCRF positions

The Newtonian gravitational potential at distance r from a point mass M is given by: U = GM/r. This function calculates the total potential at a target point due to multiple massive bodies by summing their individual potentials.

In the description of the arguments, M is the number of massive bodies, N is the number of points at which the potential is calculated, and the tuples indicate the dimensions of the arrays.

Parameters:
  • massive_bodies_gm – Gravitational parameters of the massive bodies (M,)

  • x_target_bcrf – BCRF position of the target point (N, 3)

  • x_bodies_bcrf – BCRF positions of the massive bodies (M, N, 3)

Returns:

Total Newtonian potential (N,)