We present flatspin, a novel simulator for systems of interacting mesoscopic spins on a lattice, also known as artificial spin ice (ASI). Our magnetic switching criteria enables ASI dynamics to be captured in a dipole model. Through GPU acceleration, flatspin can simulate realistic dynamics of millions of magnets within practical time frames. We demonstrate flatspin's versatility through the reproduction of a diverse set of established experimental results from the literature. In particular, magnetization details of "pinwheel" ASI during field-driven reversal have been reproduced, for the first time, by a dipole model. The simulation framework enables quick exploration and investigation of new ASI geometries and properties at unprecedented speeds.
@article{arxiv.2002.11401,
title = {flatspin: A Large-Scale Artificial Spin Ice Simulator},
author = {Johannes H. Jensen and Anders Strømberg and Odd Rune Lykkebø and Arthur Penty and Magnus Själander and Erik Folven and Gunnar Tufte},
journal= {arXiv preprint arXiv:2002.11401},
year = {2022}
}