Applied Surface Science, Vol.490, 352-364, 2019
Magnetostatic dipolar energy of large periodic Ni fcc nanowires, slabs and spheres
The computational effort to calculate the magnetostatic dipolar energy, MDE, of a periodic cell of N magnetic moments is an O(N-2) task. Compared with the calculation of the Exchange and Zeeman energy terms, this is the most computationally expensive part of the atomistic simulations of the magnetic properties of large periodic magnetic systems. Two strategies to reduce the computational effort have been studied: An analysis of the traditional Ewald method to calculate the MDE of periodic systems and parallel calculations. The detailed analysis reveals that, for certain types of periodic systems, there are many matrix elements of the Ewald method identical to other elements, due to some symmetry properties of the periodic systems. Computation timing experiments of the MDE of large periodic Ni fcc nanowires, slabs and spheres, up to 32,000 magnetic moments in the periodic cell, have been carried out and they show that the number of matrix elements that should be calculated is approximately equal to N, instead of N-2/2, if these symmetries are used, and that the computation time decreases in an important amount. The time complexity of the analysis of the symmetries is O(N-3), increasing the time complexity of the traditional Ewald method. MDE is a very small energy and therefore, the usual required precision of the calculation of the MDE is so high, about 10(-6) eV/cell, that the calculations of large periodic magnetic systems are very expensive and the use of the symmetries reduces, in practical terms, the computation time of the MDE in a significant amount, in spite of the increase of the time complexity. The second strategy consists of parallel calculations of the MDE without using the symmetries of the periodic systems. The parallel calculations have been compared with serial calculations that use the symmetries.