# Monte Carlo SimulationΒΆ

In the atomistic part of Fidimag, Monte Carlo based on Metropolis algorithm is integrated. The supported interactions include the exchange interaction, the bulk DMI, the external field and cubic anisotropy. The total Hamiltonian of the system is therefore given by

where \(\mathcal{H}_{ex}\) is the nearest-neighbor exchange interaction,

Note that the summation is taken only once for each pair and \(\vec{m}_i\) is the unit vector of spin \(\vec{S}\) at site \(i\).

The Hamiltonian of bulk DMI can be expressed as,

where \(\vec{D}_{ij} = D \vec{e}_{ij}\) with \(\vec{e}_{ij}\) is the unit vector between \(\vec{S}_{i}\) and \(\vec{S}_{j}\).

The Hamiltonian of external field is

where \(\mu_s = g \mu_B S\).

The cubic anisotropy implemented in Fidimag is,

which is equivalent to the form