 
 
 
 
 
 
 
  
Dipolar energy (often called magnetostatic or demagnetising energy) is
the resultant energy from the interaction of magnetic moments with
each other. Two magnetic moments at positions 
 and
 and
 have the dipolar energy:
 have the dipolar energy:
|  |  |  | (2.12) | 
 The dipolar energy between two magnetic moments
The dipolar energy between two magnetic moments 

 and
 and 

 
where
|  |  |  | (2.13) | 
 The distance between two magnetic moments
The distance between two magnetic moments 

 and
 and 

 at positions
 at positions 
 and
 and 
 
 
For  magnetic moments this becomes:
 magnetic moments this becomes:
Computing the dipolar energy is the most expensive part of any
micromagnetic simulation as the dipolar energy is a long-range
interaction and therefore must consider the interaction of each
magnetic moment 

 with every other magnetic moment
 with every other magnetic moment

 .
.
 
 
 
 
 
 
