Atomistic simulator for magnetic materials