grogupy._core.interaction_energy
- grogupy._core.interaction_energy(Vu1_1: ndarray[Any, dtype[_ScalarType_co]], Vu1_2: ndarray[Any, dtype[_ScalarType_co]], Gij: ndarray[Any, dtype[_ScalarType_co]], Gji: ndarray[Any, dtype[_ScalarType_co]], weights: ndarray[Any, dtype[_ScalarType_co]]) float[source]
The interaction energy variation upon rotations.
It can be used to calculate the interaction energy between two magnetic entities or to calculate some of the elements of the anisotropy tensor.
Parameters
- Vu1_1NDArray
First order perturbation of a rotation to one direction
- Vu1_2NDArray
First order perturbation of a rotation to another direction
- GijNDArray
First Green’s function slice between the magnetic entities
- GjiNDArray
Second Green’s function slice between the magnetic entities
- weightsNDArray
The weights from the energy contour integral
Returns
- float
The interaction energy variation