A magnetostatic energy formula arising from the $L^2$-orthogonal   decomposition of the stray field
  A formula for the magnetostatic energy of a finite magnet is proven. In contrast to common approaches, the new energy identity does not rely on evaluation of a nonlocal boundary integral inside the magnet or the solution of an equivalent Dirichlet problem. The formula is therefore computationally efficient, which is also shown numerically. Algorithms for the simulation of magnetic materials could benefit from incorporating the presented representation of the energy. In addition, a natural analogue for the energy via the magnetic induction is given. Proofs are carried out within a setting which is suitable for common discretizations in computational micromagnetics. 
Lukas Exl
physics.comp-ph math.NA