pele.potentials.PyInversePower#
- class pele.potentials.PyInversePower(pow, eps, radii, ndim=2, boxvec=None, boxl=None, use_cell_lists=False, ncellx_scale=1.0, exact_sum=False)[source]#
A python based inversepower potential for small system sizes with periodic boundary conditions. This takes care of when particles interact twice with each other across periodic boundaries.
The parameters are set to be the same as the Cython version.
Methods
|
return the gradient calculated numerically |
|
return the Hessian matrix of second derivatives computed numerically |
|
return the energy at the given coordinates |
|
return the energy and gradient at the given coordinates |
|
return the energy, gradient, and Hessian at the given coordinates |
|
|
|
return the gradient at the given coordinates |
|
return the hessian |
|
print some information testing whether the analytical gradients are correct |
Attributes