A full-fledged micromagnetic code in fewer than 70 lines of NumPy

作者:Abert Claas*; Bruckner Florian; Vogler Christoph; Windl Roman; Thanhoffer Raphael; Suess Dieter
来源:Journal of Magnetism and Magnetic Materials, 2015, 387: 13-18.
DOI:10.1016/j.jmmm.2015.03.081

摘要

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 Unite-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.

  • 出版日期2015-8-1