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

NumericalDerivative(coords[, eps]) return the gradient calculated numerically
NumericalHessian(coords[, eps]) return the Hessian matrix of second derivatives computed numerically
getEnergy(angles)
getEnergyGradient(angles)
getEnergyGradientHessian(coords) return the energy, gradient, and Hessian at the given coordinates
getEnergyGradientNumerical(coords)
getGradient(coords) return the gradient at the given coordinates
getHessian(coords) return the hessian
get_phases()
get_spin_energies(angles) return the local energy of each spin
set_up_neighborlists()
test_potential(coords[, eps]) print some information testing whether the analytical gradients are correct

Next topic

pele.potentials.XYModel.NumericalDerivative