sarkas.potentials.tabulated.tab_force#

sarkas.potentials.tabulated.tab_force(r, pot_matrix)[source]#

Numba’d function to calculate the PP force between particles using the Moliere Potential.

Parameters
  • r (float) – Particles’ distance.

  • pot_matrix (numpy.ndarray) – Slice of sarkas.potentials.Potential.matrix containing the potential parameters.

Returns

  • u_r (float) – Potential.

  • f_r (float) – Force between two particles.