pele.potentials.XYModel#
- class pele.potentials.XYModel(dim=None, phi=3.141592653589793, periodic=True, phases=None)[source]#
XY model of 2d spins on a lattice
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 |
|
return the local energy of each spin |
|
print some information testing whether the analytical gradients are correct |
Attributes