These calculations used done using a finite difference scheme, with one cell across the thickness of the sample. Magnetostatic interactions were calculated using FFT techniques assuming constant volume charges within each cell and fields calculated at the center of each cell. Exchange interactions were calculated for the four neighbors of each cell, along each relevant axis. Boundary conditions were accurately enforced [M. Labrune and J. Miltat, J. Magn. Magn. Mater. 151, 231 (1995)]. Two meshings were used, approx. 2 nm cells and approx. 4 nm cells.
The time integration was done using a semi-implicit Crank-Nicholson scheme with accuracy feedback from monitoring of the damping coefficient, maximum torque and total energy.
For an approx. 4 nm mesh size, the results are insensitive to the time step in the range of 10-50 fs (femtoseconds). A time step of 25 fs was used to calculate the results shown below.
For the first part of the problem, with the field applied 170° from the x-axis (Field 1):

A plot of the spatially averaged magnetization calculated using 2 nm
cells.

Comparison
of M vs. t data calculated with 2 nm cells and 4 nm cells. These
results demonstrate that the results cannot be entirely independent of
mesh size.

and an image of the magnetization when Mx
first crosses zero.

A plot of the
spatially averaged magnetization calculated with a 2 nm mesh.

Comparison of M vs. t data calculated with 2 nm cells and 4 nm
cells.

and an image of the magnetization when Mx
first crosses zero.