sarkas.potentials.fitted_pot
Contents
sarkas.potentials.fitted_pot#
Module for handling custom potential of the form given below.
Average Atom Fit Potential#
The form of the potential is
where \(\kappa, a, b, c, d, h, i, j, k, l\) are fit parameters to be passed. Remember to use the correct units.
Force Error#
The force error is calculated from the ratio
where \(F(x)\) is the force between two particles at distance \(x\), and \(a_{ws}\) is the Wigner-Seitz radius.
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
|
Calculate the force error by integrating the square modulus of the force over the neglected volume.n The force error is calculated from |
|
Numba'd function to calculate the PP force between particles using the Moliere 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. |