Article ID Journal Published Year Pages File Type
8155864 Journal of Magnetism and Magnetic Materials 2015 6 Pages PDF
Abstract
We present a complete micromagnetic finite-difference code in fewer than 70 lines of Python. The code makes a large use of the NumPy library and computes the exchange field by finite differences and the demagnetization field with a fast convolution algorithm. Since the magnetization in finite-difference micromagnetics is represented by a multi-dimensional array and the NumPy library features a rich interface for this data structure, the code we present is an ideal starting point for the development of novel algorithms.
Related Topics
Physical Sciences and Engineering Physics and Astronomy Condensed Matter Physics
Authors
, , , , , ,