The Landau–Lifshitz equation in atomistic models