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 device abstraction and optimizations of PyTorch enabling the efficient execution of micromagnetic simulations on a number of computational platforms including graphics processing units and potentially Tensor processing unit systems. We demonstrate a competitive performance to state-of-the-art micromagnetic codes such as 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.

Download full-text PDF

Source
http://www.ncbi.nlm.nih.gov/pmc/articles/PMC10368681PMC
http://dx.doi.org/10.1038/s41598-023-39192-5DOI Listing

Publication Analysis

Top Keywords

high level
8
magnumnp pytorch
4
pytorch based
4
based gpu
4
gpu enhanced
4
enhanced finite
4
finite difference
4
micromagnetic
4
difference micromagnetic
4
micromagnetic simulation
4

Similar Publications

Want AI Summaries of new PubMed Abstracts delivered to your In-box?

Enter search terms and have AI summaries delivered each week - change queries or unsubscribe any time!