Computational micromagnetics with Commics

Pfeiler, Carl-Martin and Ruggeri, Michele and Stiftner, Bernhard and Exl, Lukas and Hochsteger, Matthias and Hrkac, Gino and Schöberl, Joachim and Mauser, Norbert J. and Praetorius, Dirk (2020) Computational micromagnetics with Commics. Computer Physics Communications, 248. 106965. ISSN 0010-4655 (

[thumbnail of Pfeiler-etal-CPC-2020-Computational-micromagnetics-with-Commics]
Text. Filename: Pfeiler_etal_CPC_2020_Computational_micromagnetics_with_Commics.pdf
Accepted Author Manuscript
License: Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 logo

Download (1MB)| Preview


We present our open-source Python module Commics for the study of the magnetization dynamics in ferromagnetic materials via micromagnetic simulations. It implements state-of-the-art unconditionally convergent finite element methods for the numerical integration of the Landau–Lifshitz–Gilbert equation. The implementation is based on the multiphysics finite element software Netgen/NGSolve. The simulation scripts are written in Python, which leads to very readable code and direct access to extensive post-processing. Together with documentation and example scripts, the code is freely available on GitLab.


Pfeiler, Carl-Martin, Ruggeri, Michele ORCID logoORCID:, Stiftner, Bernhard, Exl, Lukas, Hochsteger, Matthias, Hrkac, Gino, Schöberl, Joachim, Mauser, Norbert J. and Praetorius, Dirk;