English

magnum.np -- A PyTorch based GPU enhanced Finite Difference Micromagnetic Simulation Framework for High Level Development and Inverse Design

Computational Physics 2023-02-20 v1

Abstract

magnum.np is a micromagnetic finite-difference library completely based on the tensor library PyTorch. The use of such a high level library leads to a highly maintainable and extensible code base which is the ideal candidate for the investigation of novel algorithms and modeling approaches. On the other hand magnum.np benefits from the devices abstraction and optimizations of PyTorch enabling the efficient execution of micromagnetic simulations on a number of computational platforms including GPU and potentially TPU systems. We demonstrate a competitive performance to state-of-the art micromagnetic codes such a mumax3 and show how our code enables the rapid implementation of new functionality. Furthermore, handling inverse problems becomes possible by using PyTorch's autograd feature.

Keywords

Cite

@article{arxiv.2302.08843,
  title  = {magnum.np -- A PyTorch based GPU enhanced Finite Difference Micromagnetic Simulation Framework for High Level Development and Inverse Design},
  author = {Florian Bruckner and Sabri Koraltan and Claas Abert and Dieter Suess},
  journal= {arXiv preprint arXiv:2302.08843},
  year   = {2023}
}

Comments

20 pages, 6 figures, 5 listings

R2 v1 2026-06-28T08:42:42.640Z