We have developed a finite-element micromagnetic simulation code based on the FEniCS package called magnum.fe. Here we describe the numerical methods that are applied as well as their implementation with FEniCS. We apply a transformation method for the solution of the demagnetization-field problem. A semi-implicit weak formulation is used for the integration of the Landau-Lifshitz-Gilbert equation. Numerical experiments show the validity of simulation results. magnum.fe is open source and well documented. The broad feature range of the FEniCS package makes magnum.fe a good choice for the implementation of novel micromagnetic finite-element algorithms.
@article{arxiv.1301.3061,
title = {magnum.fe: A micromagnetic finite-element simulation code based on FEniCS},
author = {Claas Abert and Lukas Exl and Florian Bruckner and André Drews and Dieter Suess},
journal= {arXiv preprint arXiv:1301.3061},
year = {2014}
}