gonzales.lib.brute_force

  • gonzales.lib.brute_force.calculate_accs_pp(r, m, G, eps)

    Parallel brute-force calculation of accelerations.

    Parameters
    • r – N x 3 numpy array, position vectors of the particles

    • m – N x 1 numpy array, mass vector of the particles

    • G – gravitational constant

    • eps – gravitational softening

    Returns

    N x 3 numpy array, acceleration vectors of particles