sarkas.potentials.yukawa
Contents
sarkas.potentials.yukawa#
Module for handling Yukawa potential.
Potential#
The Yukawa potential between two charges \(q_i\) and \(q_j\) at distant \(r\) is defined as
where \(\kappa = 1/\lambda\) is the screening parameter.
Potential Attributes#
The elements of the sarkas.potentials.core.Potential.matrix are:
pot_matrix[0] = q_iq_j^2/(4 pi eps0)
pot_matrix[1] = 1/lambda
pot_matrix[2] = Ewald screening parameter
Functions
|
Calculate the force error by integrating the square modulus of the force over the neglected volume.n The force error is calculated from |
|
Calculate the second derivative of the potential. |
|
Auxiliary function to be used in scipy.integrate.quad to calculate the integrand. |
|
Calculate the first and second derivative of the potential. |
|
Print potential specific parameters in a user-friendly way. |
|
Assign potential dependent simulation's parameters. |
|
Numba'd function to calculate Potential and Force between two particles. |
|
Numba'd function to calculate Potential and Force between two particles when the pppm algorithm is chosen. |