 
 
 
 
 
 
 
  
For our problem of calculating the effective field and integrating the Landau-Lifshitz equation, we have to discretize time and space into regular lattices. For the space discretization a regular cubic lattice has been chosen, because it allows the simplest implementation and irregular lattices are more efficiently handled with the finite element method (cf. chapter ![[*]](../icons/crossref.gif) ). The time integration is also done on a regular lattice and described in detail in chapter
). The time integration is also done on a regular lattice and described in detail in chapter ![[*]](../icons/crossref.gif) .
.
In order to calculate the contribution of the exchange interaction to the effective field, we have to discretize (![[*]](../icons/crossref.gif) ). The first partial derivative
). The first partial derivative
 
 denote the lattice spacing in the three dimensions of space, which is identical on a regular cubic lattice and we will simply write
 denote the lattice spacing in the three dimensions of space, which is identical on a regular cubic lattice and we will simply write  .
. 
 indicate the finite difference operators in
 indicate the finite difference operators in  and
 and  direction, respectively.
 direction, respectively.
Let us now consider the magnetization vector  at lattice point
 at lattice point  and
 and 
 on the neighbouring lattice point in
 on the neighbouring lattice point in  direction. Then, we can rewrite the first term in (
 direction. Then, we can rewrite the first term in (![[*]](../icons/crossref.gif) ) as
) as
 
![[*]](../icons/crossref.gif) ) we get the contribution of the
) we get the contribution of the  and
 and  component of the magnetization vectors. Since
 component of the magnetization vectors. Since 
 we can simplify and get for the finite difference
 we can simplify and get for the finite difference
![[*]](../icons/crossref.gif) ), which represent the contributions of the nearest neighbours in
), which represent the contributions of the nearest neighbours in  and
 and  direction, we get analogous expressions. The same procedure can be carried out for the opposite neighbours in the negative directions of space. Then we take the arithmetic mean of the two opposite nearest neighbours.
 direction, we get analogous expressions. The same procedure can be carried out for the opposite neighbours in the negative directions of space. Then we take the arithmetic mean of the two opposite nearest neighbours.
Our final result for the exchange energy density is
|  | (3.3) | 
 stands for the indices of the nearest neighbours.
 stands for the indices of the nearest neighbours.
The approximation of the partial derivatives by finite differences is only valid for small arguments, and in our case for small angles between neighbouring magnetization vectors. Other exchange energy representations have been suggested and compared [21], but none of them has significant advantages over the one derived above.
In a discretized form [22] the effective field is defined by
 
 we find
 we find
 
 
 
 
 
 
 
