pele.potentials.HeisenbergModelRA#
- class pele.potentials.HeisenbergModelRA(dim=None, field_disorder=1.0, fields=None)[source]#
The classical Heisenberg Model of 3d spins on a lattice with random anisotropy.
- Parameters:
- dim: list
an array giving the dimensions of the lattice
- field_disorder: float
the magnitude of the randomness in the fields
- fields: array
use this to explicitly set the values of the field disorder
Notes
The Hamiltonian is
H = - sum_ij J_ij dot( s_i, s_j ) - sum_i dot( h_i, s_i )**2
where h_i are quenched random variables. (h_i is a vector)
Methods
|
return the gradient calculated numerically |
|
return the Hessian matrix of second derivatives computed numerically |
|
coords is a list of (theta, phi) spherical coordinates of the spins where phi is the azimuthal angle (angle to the z axis) |
|
coords is a list of (theta, phi) spherical coordinates of the spins where phi is the azimuthal angle (angle to the z axis) |
|
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