A full-fledged micromagnetic code in fewer than 70 lines of NumPy
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-differ...
Saved in:
| Published in | Journal of magnetism and magnetic materials Vol. 387; pp. 13 - 18 |
|---|---|
| Main Authors | , , , , , |
| Format | Journal Article |
| Language | English |
| Published |
Elsevier B.V
01.08.2015
|
| Subjects | |
| Online Access | Get full text |
| ISSN | 0304-8853 |
| DOI | 10.1016/j.jmmm.2015.03.081 |
Cover
| Summary: | 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.
•A very concise but complete micromagnetic code written in Python is presented.•An introduction to finite-difference micromagnetics is provided.•The code is a perfect starting point for the development of novel algorithms. |
|---|---|
| Bibliography: | ObjectType-Article-1 SourceType-Scholarly Journals-1 ObjectType-Feature-2 content type line 23 |
| ISSN: | 0304-8853 |
| DOI: | 10.1016/j.jmmm.2015.03.081 |