sarkas.potentials.tabulated#

Module for handling custom potential of the form given below.

Potential Attributes#

The elements of the sarkas.potentials.core.Potential.matrix are:

pot_matrix[0] = q_iq_je^2/(4 pi eps_0) Force factor between two particles.
pot_matrix[1] = kappa
pot_matrix[2] = a
pot_matrix[3] = b
pot_matrix[4] = c
pot_matrix[5] = d
pot_matrix[6] = a_rs. Short-range cutoff.

Functions

calc_force_error_quad(a, beta, rc, pot_matrix)

Calculate the force error by integrating the square modulus of the force over the neglected volume.n The force error is calculated from

force_error_integrand(r, pot_matrix)

Auxiliary function to be used in scipy.integrate.quad to calculate the integrand.

potential_derivatives(r, pot_matrix)

Calculate the first and second derivative of the potential.

pretty_print_info(potential)

Print potential specific parameters in a user-friendly way.

tab_force(r, pot_matrix)

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

update_params(potential)

Assign potential dependent simulation's parameters.