Abstract
The Atomic Cluster Expansion (ACE) provides a formally complete basis for the local atomic environment. ACE is not limited to representing energies as a function of atomic positions and chemical species, but can be generalized to vectorial or tensorial properties and to incorporate further degrees of freedom (DOF). This is crucial for magnetic materials with potential energy surfaces that depend on atomic positions and atomic magnetic moments simultaneously. In this work, we employ the ACE formalism to develop a non-collinear magnetic ACE parametrization for the prototypical magnetic element Fe. The model is trained on a broad range of collinear and non-collinear magnetic structures calculated using spin density functional theory. We demonstrate that the non-collinear magnetic ACE is able to reproduce not only ground state properties of various magnetic phases of Fe but also the magnetic and lattice excitations that are essential for a correct description of finite temperature behavior and properties of crystal defects.
Similar content being viewed by others
Introduction
Recent advancements of data-driven methods and machine-learned (ML) interatomic potentials have led to dramatically improved descriptions of the potential energy surface (PES) for many material systems. However, the incorporation of spin degrees of freedom (DOF), which are crucial to capture finite temperature phenomena in magnetic materials, has remained a challenging endeavor. In spin density functional theory (SDFT), magnetizaton emerges from the competition of magnetic exchange and band energy contributions1,2, where the energy required for reshuffling electrons in up and down spin channels depends on the local density of states (DOS). The bimodal DOS of iron in the body-centred crystal (bcc) structure affords large DOS values close to the Fermi level, leading to larger magnetic moments than in the face-centred cubic (fcc) structure with its more unimodal DOS that is lower at the Fermi level3,4. This intricate interplay between magnetic and atomic structure implies that multi-atom multi-spin interactions are necessary for capturing different magnetic and atomic structures in a single model.
Unlike approaches that were derived from electronic structure theory and that seamlessly incorporate the complexity of magnetic interactions5,6,7, classical interatomic potentials needed to be supplemented via suitable interaction terms that mimic the quantum exchange interactions. The simplest possibility was to employ a classical Heisenberg Hamiltonian8, where the atomic spin operators are substituted by spin vectors and the exchange interactions are parameterized using first-principles calculations9. Such strategies have been adopted also in most current ML approaches for magnetic systems.
Nikolov et al.10 augmented the spectral neighborhood analysis potential (SNAP) framework with a two-spin bi-linear Heisenberg model with atomic magnetic moment magnitudes being fixed and independent of the environment. A similar approach, where a neural network was trained to describe contributions to the Heisenberg Hamiltonian based on the local magnetic environment, was developed by Yu et al.11. However, this approach did not include information about the underlying lattice and treated the magnetic moments as unit vectors. Eckhoff et al.12 extended the formalism based on Behler-Parrinello symmetry functions13 in a framework that was limited to collinear configurations. Magnetic moments as additional DOF were incorporated by Novikov et al.14 in the moment tensor potential framework15. Even though the description was confined to collinear moments only, the magnetic moment tensor potential was able to reproduce a number of thermodynamic properties of bulk bcc Fe. Recently, Domina et al.16 extended the SNAP framework to deal with arbitrary vectorial fields and demonstrated its functionality by training to non-collinear spin configurations generated using a model Landau-Heisenberg Hamiltonian. In a follow-up work, Suzuki et al.17 showed that it is necessary to include higher-order spin-dependent partial spectra to discriminate configurations with different spin orientations and magnetic anisotropy. Finally, aiming at large-scale spin-lattice dynamics simulations, Chapman et al.18 added a neural network correction term to an embedded atom method potential augmented with a Heisenberg-Landau Hamiltonian. The model was successfully applied in finite temperature simulations of bulk Fe phases as well as complex defects. However, due to its simplicity, absolute errors were in some cases larger than a few tens of meV that are comparable to the fluctuations of exchange parameters with temperature. Thus, none of the existing magnetic ML approaches has so far succeeded in achieving a transferable and quantitatively accurate description of magnetic interactions suitable for modeling magnetism in different crystal structures.
We present an explicit treatment of non-collinear magnetic DOF within the atomic cluster expansion (ACE)19,20, which provides a complete basis in the space of atomic environments19,21. Accurate, transferable and computationally efficient parameterizations of ACE have been developed for diverse bonding environments including bulk metallic systems as well as covalent molecules22,23,24,25,26. Thanks to ACE universality, additional scalar, vectorial or tensorial DOF can be incorporated seamlessly into ACE models20. Specifically for magnetic systems, ACE provides a body-ordered decomposition of combined atomic and magnetic PES in terms of a complete set of basis functions that depend on atomic and magnetic DOF. The inclusion of magnetic DOF requires an extension of the ACE equivariant basis such that any transformation of the relevant translation and rotation symmetry group acting on both atomic and magnetic spaces leaves the energy invariant. Magnetic ACE can therefore be considered as a generalization of most existing magnetic ML models as well as the classical spin-cluster expansion (SCE)27,28,29,30,31.
In this work, we develop a non-collinear magnetic ACE parameterization for the prototypical magnetic element Fe. The model is trained on a large dataset of both collinear and non-collinear DFT calculations and validated for a broad range of structural, thermodynamic, and defect properties. The resulting interatomic potential is able to describe accurately complex potential energy landscapes of different magnetic and atomic phases of Fe as a function of both atomic positions and local magnetic moment vectors.
Results
Reference DFT data
A comprehensive sampling of variations in both atomic positions and magnetic moments is crucial for the construction of any atomistic magnetic ML model. Sampling of the atomic DOF can be carried out following well established protocols employed in ML fitting of PES, commonly by choosing a set of structures and varying their geometries and atomic positions. In contrast, sampling of the magnetic DOF presents a significant difficulty, both from the computational and methodological point of view. Firstly, the number of required calculations increases drastically due to the additional spin degrees of freedom and, secondly, the local atomic magnetic moments need to be constrained to desired magnitudes and orientations32. While it is, in principle, possible to fix both the direction and the magnitude of each atomic magnetic moment to a target vector32, these calculations are computationally demanding. Furthermore, as atomic magnetic moments are computed by integrating over a sphere, different magnetization densities within the sphere may in principle lead to identical moments.
To generate the training dataset for magnetic ACE, we considered both conventional, unconstrained, and collinear as well as constrained non-collinear spin-polarized configurations. These configurations ranged from various spin spirals in ideal bcc cells to supercells with random orientations of the moments and perturbed atomic positions. For bulk phases along the Bain transformation path, we sampled the magnitudes of the collinear magnetic moment over the whole physically reasonable range from 0 to ~ 3 μB atom−1. The simultaneous sampling of both atomic and magnetic DOF enabled to generate a set of uniformly distributed configurations that are relevant for the properties of interest for a wide range of atomic densities as well as magnitudes and directions of the atomic magnetic moments. An example of data collected with this strategy is given in Fig. 1 for the bcc and fcc ferromagnetic (FM) phases. Each data point corresponds to the energy of either structure at a given volume and a constrained value of the magnetic moment. The ground state configurations are marked by the black curve. While the bcc phase has only one minimum, corresponding to the ground state FM bcc phase, the fcc phase exhibits two minima corresponding to high-spin and low-spin configurations.
The constrained magnetic calculations required convergence of the energy and forces with respect to a constraining penalty term32. In some limited cases it was computationally prohibitive to achieve numerically small penalty contributions, mainly for configurations far from equilibrium such as highly distorted structures and defects (see Supplementary Note 2 for representative examples). Therefore, we excluded configurations for which the penalty energy was larger than ≈ 5 meV atom−1 as these would significantly increase the noise in the data and adversely affect the parameterization.
The resulting training dataset contained about 70,000 structures in total that can be divided into several categories, each associated with a particular property of interest. The categories are listed in Table 1, where we specify the number of configurations and the range of volumes and magnetic moment magnitudes that we considered. The free atom data, obtained from calculations of a bcc unit cell with lattice parameter equal to 12 Å at different magnitudes of the magnetic moment, was used to fit the first-order contribution of the expansion that characterizes the asymptotic large volume limit for each structure with a given magnetic moment. Detailed information about the free atom reference is provided in the Supplementary Note 1.
Training procedure
The fitting of the magnetic ACE potential for Fe was done following procedures that were established for the non-magnetic ACE22,33. A hierarchical basis extension was employed, starting from one-body contribution and adding gradually contributions with higher body orders. In the first step, expansion coefficients for the first order contribution were parameterized using the free magnetic atom data. This term can be reduced to a Ginzburg-Landau expansion \({\sum }_{n}{A}_{n}{{{{\bf{m}}}}}_{i}^{2n}\), where a maximum number of three terms is commonly used31,34,35,36,37. In our parameterization, excellent agreement with the reference data ( ~ 2 meV atom−1 error) could be obtained using four terms (n = 4). After the first order contribution was fixed, we fitted second-order contributions. The ACE second-order contributions are formally equivalent to a distance-dependent Heisenberg Hamiltonian ∑i > jJij(rij)mi ⋅ mj, its biquadratic correction \({\sum }_{i\ > \ j}{B}_{ij}({r}_{ij}){({{{{\bf{m}}}}}_{i}\cdot {{{{\bf{m}}}}}_{j})}^{2}\), and its bicubic term for \({l}_{max}^{{\prime} }=1\), 2 and 3, respectively (see Methods). In addition, a third-order magnetic contribution, analogous to a screened three-spin interaction ∑ijkKijk(mi ⋅ mj)(mj ⋅ mk), was also included. Angular contributions in higher-order magnetic terms did not improve the fit significantly and were neglected, which reduced the number of basis functions significantly. Radial and angular indices for the atomic contributions were then incremented following a hierarchical basis expansion scheme33, where contributions with increasing body order were gradually added. The cutoff distance of the present parametrization was set to 4.5 Å, but it can be extended if necessary28. Additional hyperparameters, relevant to magnetic DOF only, include the magnetic cutoff mcut = 4 μB, which defines the upper bound of the possible magnitude of atomic magnetic moments, and the upper bounds for magnetic radial functions and spherical harmonics \({n}_{max}^{{\prime} }\) and \({l}_{max}^{{\prime} }\) for each body order (see Methods for details).
The resulting model consists of 6519 parameters and its overall accuracy is equal to 8 meV atom−1 and 37 meV Å−1 for energies and forces, respectively. The main limiting factor in reducing the error further was numerical noise in the reference DFT data that originated from the magnetic moment confinement procedure. In addition, another parameterization was constructed with a particular focus on defect properties (see Supplementary Note 3).
Predicted properties at 0 K
We carried out a thorough validation of the non-collinear magnetic ACE against the reference DFT data and evaluated a broad range of properties of various bulk Fe phases that were not included explicitly in the training. The predicted volume-energy curves for the bcc and fcc magnetic and non-magnetic (NM) Fe phases are plotted in Fig. 2, where the corresponding cohesive energies are given with respect to the non-magnetic free atom. It is obvious that ACE predictions agree closely with the reference DFT data for all considered magnetic and non-magnetic phases, including the portion of the magnetic energy landscape where the NM to magnetic transitions take place. Moreover, our potential is able to distinguish subtly different magnetic states within one structure, such as the low-spin and high-spin states of the FM fcc structure.
Variations of the magnetic energy as a function of magnetic moment are displayed for FM bcc in Fig. 3, where each curve corresponds to a constant volume. As expected, these dependencies are positive and monotonic for small volumes (dark blue curves), while above a certain critical volume their behavior qualitatively changes to include a minimum at finite value of the magnetic moment in analogy to a Landau expansion. In the limit of large volumes (dark red curves), the magnetic energy approaches the free atom value. Graphs for other bcc and fcc structures are given in the Supplementary Figure 6.
Two contour plots of magnetic PES for FM bcc and fcc phases are shown in Fig. 4. These plots demonstrate that ACE can capture simultaneously PES of different phases over a broad range of volumes and magnetic moments (from zero up to ≈ 3.2 μB). In agreement with DFT, the bcc phase has a single global minimum at the corresponding equilibrium volume and magnetic moment, while the FM fcc phase exhibits two local minima corresponding to the low-spin and high-spin states.
The equilibrium properties of the most important bulk Fe phases are listed in Table 2. Further properties, such as magnetic moment variations and phonon spectra, are presented in the Supplementary Figures 7 and 8. As one can see, the equilibrium lattice parameters, magnetic moments, and elastic constants of the magnetic phases are in good agreement with the reference DFT values. Larger discrepancies exist for the non-magnetic phases since only very few of these configurations were included in the training dataset.
The Bain transformation path is closely related to the bcc-fcc phase transformation. In the case of Fe, the energetics of this transformation depends sensitively on the magnetic state of both phases38,39,40,41. Variations of energy along the Bain path, computed at the FM bcc equilibrium volume for different magnetic phases of Fe are shown in Fig. 5 for ACE and DFT. Unlike the ground state FM bcc phase, the AFM and NM bcc phases are not mechanically stable with respect to tetragonal distortion, as reflected by negative values of the \({C}^{{\prime} }=\frac{1}{2}({C}_{11}-{C}_{12})\) elastic constant (cf. Table 2). For the fcc phase (\(c/a=\sqrt{2}\)), the energies of the FM and AFM magnetic states are almost identical, but both phases are unstable. The minimum energy AFM structure is a body-centered tetragonal phase with c/a ≈ 1.45. The excellent agreement between ACE and DFT for the Bain path is due to correct incorporation of the coupling between the magnetic and lattice DOF, which is anomalously strong in Fe40.
The energy barrier for spin rotations depends sensitively on angular interactions between atomic magnetic moments and changes in moment magnitudes. Here, we demonstrate that ACE captures the energetics of spin rotation between FM and AFM bcc phases. In Fig. 6, we show the energetics associated with the rotation of one magnetic moment in a two-atom bcc cell. As the moment on the central atom is rotated, the magnetic configuration gradually transforms from FM to AFM. The contour plot in Fig. 6(b) depicts PES as a function of volume and rotation angle. The black arrow marks the minimum energy path between the FM and AFM phases. While the equilibrium volumes of both phases are not very different, the magnetic moment of the AFM phase is significantly lower than that of the FM phase (cf. Table 2). This is also correctly reproduced by ACE, as shown in Fig. 6(c), where we plot the rotation energy barriers evaluated at constant magnetic moments. The minimum energy path (dashed gray curve), corresponding to a reduction of the absolute value of magnetic moment from 2.22 μB in FM bcc to 1.25 μB in AFM bcc, is in excellent agreement with the DFT reference (black points).
The energy of magnetic moment orientations that deviate only slightly from the collinear alignment can be described by lowest order contributions only, i.e., a bilinear Heisenberg model. From the distance-dependent exchange interactions Jij in the bilinear Heisenberg model, the magnon spectrum can be obtained in adiabatic approximation as
We determined the exchange interactions for different coordination shells following the real space approach by Liechtenstein et al.42,43,44, where infinitesimal perturbations to the directions of two neighboring magnetic moments are applied. Calculating the energy δEij for rotating two spins at atomic sites i and j by opposite infinitesimal angles ± θ/2 and comparing to the energy for rotating the two spins individually, δEi and δEj, results in
The distance dependent exchange interactions are then obtained by fitting δEij − (δEi + δEj) with respect to the tilting angle for consecutive coordination shells in a large supercell. The resulting adiabatic magnon spectrum is shown in Fig. 7 with reference data obtained using the spin-polarized relativistic Korringa-Kohn-Rostoker (SPRKKR) framework45. Small discrepancies between the ACE and SPRKKR results visible for some high frequencies in the magnon spectrum can be attributed to the long range part of the magnetic interactions neglected in the present ACE parameterization. Nevertheless, the overall agreement is good, indicating the ability of our parameterization to describe spin spirals with different frequencies.
Phase transformations at finite temperatures
The magnetic ACE can be applied in large-scale finite temperature simulations to investigate properties that depend on both spin and lattice DOF. The ACE prediction of the FM to paramagnetic (PM) phase transition in bcc Fe is presented in Fig. 8. In a simulation with 3456 atoms, we employed coupled molecular dynamics (MD) - Monte Carlo (MC) sampling46, where the atoms follow Langevin dynamics while MC is employed for updating the directions of the atomic magnetic moments. A direct simulation of the dynamics of the combined atomic and magnetic system is difficult due to the lack of numerically stable and efficient symplectic integrators for multi-spin models beyond Heisenberg-Landau. The MC sampling enabled us to overcome this problem and to investigate the effect of longitudinal spin fluctuations (LSF) on the FM-PM transition by carrying the simulations with either constant or variable spin magnitudes. The variation of magnetization with temperature shown in Fig. 8 is consistent with previous theoretical studies34,47,48,49. The predicted Curie temperatures from both approaches are about 980 K (without LSF) and 890 K (with LSF). The smaller value of TC obtained in the latter case can be attributed to a decrease of the average local magnetic moment magnitude with temperature, which was reported in previous studies34,50. The underestimation in comparison with the experimental value of 1043 K is likely related to neglect of thermal expansion, as all simulations were performed at volume corresponding to the FM bcc phase at 0 K.
Apart from the magnetic transition, we also investigated the structural transitions from α to γ (bcc to fcc) and γ to δ (fcc to bcc) phases of Fe using the stress-strain thermodynamic integration method (SSTI)51,52 (see Methods). In these simulations, it is essential to include the effect of lattice expansion. As shown in Fig. 9(a), ACE predicts qualitatively correctly the increase of lattice parameters with increasing temperature for both bcc and fcc phases. The discrepancy with respect to the experimental values can be traced to overbinding of the GGA functional.
The estimated transition temperatures of the two transitions are 1430 and 1710 K, respectively. These theoretical predictions agree reasonably well with the experimental values \({T}_{\alpha -\gamma }^{exp}=1185\) K and \({T}_{\gamma -\delta }^{exp}=1667\) K53, as also visible in Fig. 9(b). The overestimation of Tα−γ could be due to the insufficient description of the effect of magnetic fluctuations on the free energy difference, that is responsible for the α to γ transformation54, while the interplay between vibrations and magnetic excitations, which largely affects the γ to δ transition54,55, is correctly captured by our parameterization.
Defects
To demonstrate that ACE is able to capture properties of crystal defects, we also included several defect configurations in the DFT training data. However, as discussed in Sec. Reference DFT data, it is often not possible to reach sufficiently small penalty energies in the constrained DFT calculations for such distorted configurations. Therefore, we needed to resort in many cases to unconstrained spin-polarized calculations only, which limited the sampling of the magnetic PES for defects.
Here we present results for three types of defects - a monovacancy, generalized stacking faults, and a screw dislocation. For most defects, the Heisenberg model is insufficient and it is necessary to include higher-order terms in the magnetic Hamiltonian56. In addition, an accurate reproduction of defect properties can be achieved only if the coupling between spin and lattice excitations is taken into account.
The monovacancy formation and migration energies of 2.57 eV and 0.65 eV, respectively, agree well with the reference DFT data (equal to 2.17 and 0.67 eV, respectively). The generalized stacking fault energy surface, the γ-surface, for the {110} plane is shown in Fig. 10(a). Figure 10(b) shows cuts along the 〈111〉 direction on both the {110} and {211} planes that are related to atomic structures of \(\frac{1}{2}\langle 111\rangle\) screw dislocations. The ACE predictions for both cuts are in excellent agreement with the DFT reference. ACE also predicts the core structure of the \(\frac{1}{2}\langle 111\rangle\) screw dislocation, which governs the low-temperature plasticity of Fe, in quantitative agreement with DFT reference57,58 as demonstrated in Fig. 10(c).
To examine the ability of ACE to reproduce properties of other defects, we constructed a smaller training dataset containing also surfaces and interstitials and generated another ACE parameterization. As shown in the Supplementary Note 3, ACE can reproduce properties of these defects as well.
Discussion
By incorporating magnetic DOF in the form of atomic magnetic moment vectors into ACE, we demonstrated that constrained non-collinear DFT reference data can be reproduced with excellent accuracy and transferability, exceeding those of existing magnetic ML interatomic potentials. We constructed a non-collinear ACE parametrization for Fe and validated it for a wide range of properties, including volume-energy curves, elastic moduli, phonon spectra, Bain transformation paths, spin rotations and magnon spectra, and point and extended defects. These tests showed that magnetic ACE is not only able to capture large structural and magnetic variations but also resolves subtle spin fluctuations that are crucial for a correct reproduction of phase transitions and thermodynamic properties. To this end, it is necessary to include multi-atom multi-spin interactions that are missing in simple models with pairwise couplings between atoms and/or magnetic moments. In iron magnetic angular contributions of body order four and higher are numerically small and can be neglected.
The magnetic ACE was parameterized from DFT reference data that was generated by constraining both the magnitude and direction of the atomic magnetic moments. For configurations with defects or significant atomic displacements, it was often difficult to achieve self-consistency. Furthermore, as the constraints were implemented by integrating magnetization over spheres about atoms, various intra-atomic magnetization distributions could result in the same atomic magnetic moment. This non-uniqueness effectively led to noise in the DFT reference data that ultimately limited the accuracy of our parameterization. Therefore, there is a strong incentive to implement more advanced constraints in DFT that would help to increase the accuracy of magnetic ACE as well as other magnetic ML approaches.
The numerical efficiency of ACE enables to carry out large-scale molecular and spin dynamics simulations to study the dynamics of combined magnetic and structural phase transitions. Nevertheless, to predict both magnetic and structural phase transitions in iron, we employed MD simulations for the atomic positions and MC sampling to vary the atomic magnetic moments. One of the reasons is that there is a lack of classical or semi-classical equations of motion and corresponding, numerically robust integrators applicable to combined atomic and spin dynamics in systems with multi-atom multi-spin interactions and including changes of magnitudes of magnetic moments59.
The ACE for iron can be extended directly to multicomponent systems, such as technologically important magnetic alloys and carbides. While this is straightforward from a formal point of view, the generation of accurate and comprehensive DFT reference data for magnetic multicomponent materials is challenging. Here efficient sampling based on D-optimality active learning60 extended to include magnetic DOF will help to reduce the number of required DFT reference calculations.
Methods
We provide a summary of the magnetic ACE formalism together with aspects of its implementation. Further explanations on implementation and workflow are available in the Supplementary Methods. We also provide computational details of the DFT calculations, the combined MD-MC simulations that were employed for the calculation of the FM-PM transition and the SSTI method.
Energies, forces, and magnetic gradients
We define state variables σji of atom j neighboring atom i in terms of interatomic distances vectors rji, chemical species μj, magnetic moments mj, etc. as
with \({\sigma }_{ii}=\left({\mu }_{i},{{{{\bf{m}}}}}_{i}\right)\). A neighbor density on atom i including atomic and magnetic contributions can then be written as
Magnetic contributions also enter the single bond basis functions,
where \(v=(knlm{n}^{{\prime} }{l}^{{\prime} }{m}^{{\prime} })\) and the primed indices are used to label basis functions that depend on magnetic contributions, and \({\phi }_{v}\left({\sigma }_{ii}\right)={\delta }_{k}\left({\mu }_{i}\right){M}_{{n}^{{\prime} }{l}^{{\prime} }}^{{\mu }_{i}{\mu }_{i}}\left({m}_{i}\right){Y}_{{l}^{{\prime} }}^{{m}^{{\prime} }}\left({\hat{m}}_{i}\right)\).
The projection of the density in Eq. (4) on the corresponding single atom basis functions leads to the atomic basis Aiv and \({A}_{iv}^{(0)}\)
and
From the two atomic bases the tensor product basis is formed
and symmetrized to ensure invariance with respect to rotation and inversion, leading to equivariant basis functions
where \({{{\mathcal{C}}}}\) is a sparse matrix of products of the Clebsch-Gordan coefficients of the atomic and magnetic systems. The coupling tree, used to form possible tuples v (see Supplementary Methods for an example), can be simplified assuming that spin-orbit coupling can be neglected. This is typically an excellent approximation as the spin-orbit coupling energy is on the order of a few μeV for iron bulk systems. Then the atomic and magnetic systems can be completely decoupled and the total angular momenta of the atomic and magnetic channels couple to zero individually, leading to a significant reduction in the number of basis functions (see Supplementary Methods for a detailed explanation). A further reduction of the allowed combinations of atomic and magnetic indices can be obtained by requiring inversion invariance for both atomic and magnetic spaces by restricting the sum of the corresponding angular momenta to even numbers.
We represent the energy for atom i including atomic and magnetic contributions as a linear expansion
where c is the vector of the expansion coefficients.
The energy can be rewritten in terms of the \(\tilde{{{{\bf{c}}}}}\) basis introduced in20,22 as
This expansion was used to fit the DFT energies and forces. In order that the expression reduces to the non-magnetic ACE when the magnetic moments are zero, the first order equivariant basis was taken as \({A}_{i{\mu }_{i}{n}^{{\prime} }}^{(0)}\left({{{\bf{m}}}}={{{\bf{0}}}}\right)\)=1 by our choice of magnetic radial functions (see the following Sec. Magnetic radial functions).
Expressions for forces and magnetic gradients are obtained by taking the derivative of the energy with respect to atomic positions and magnetic moments, respectively, and are written in a compact notation as
and
The pairwise atomic forces fki are given by
and magnetic forces tk and tki by
and
The calculation of the adjoints \({\omega }_{i{\mu }_{i}nlm{n}^{{\prime} }{l}^{{\prime} }{m}^{{\prime} }}\) and \({\omega }_{i{\mu }_{i}{n}^{{\prime} }{l}^{{\prime} }{m}^{{\prime} }}^{(0)}\) can be further decomposed to the evaluation of two distinct terms,
where
and
The adjoint \({\omega }_{i{\mu }_{i}{n}^{{\prime} }{l}^{{\prime} }{m}^{{\prime} }}^{(0)}\) does not contain the onsite basis contribution and is simply given by
with
The summation over N in Eq. (20) starts from zero because even a single atom contributes to the total magnetic gradient.
Magnetic radial functions
The magnetic radial functions \({M}_{{n}^{{\prime} }{l}^{{\prime} }}^{{\mu }_{j}{\mu }_{i}}\) used in this work exhibit a different functional form to their atomic counterparts that are given in terms of Chebyshev polynomials19,33). In particular, one has to ensure that the energy is invariant under time reversal symmetry, i.e., mi → − mi for every i. For these reasons, we chose a linear combination of Chebyshev polynomials Tk as
with
The scaled distance x guarantees the invariance under time reversal symmetry
where mcut is the cutoff for the magnetic moment magnitude. The expansion coefficients \({c}_{{n}^{{\prime} }{l}^{{\prime} }{k}^{{\prime} }}^{{\mu }_{j}{\mu }_{i}}\) for both magnetic and atomic radial functions are adjusted during the fitting procedure.
DFT calculations
All our reference DFT calculations were performed using the non-collinear and collinear versions of VASP 5.4.161,62,63,64 and the projector augment wave (PAW) method65. The constrained local moment approach32 was employed to constrain either both size and direction or just the direction of the atomic magnetic moments. The exchange-correlation energy was represented using the Perdew-Burke-Ernzerhof (PBE) generalized gradient approximation (GGA) method66. We carried out carefully converged calculations with tight settings of the principal parameters in order to obtain accurate results for the energy, forces and magnetic moments. Specifically, the kinetic energy cutoff was set to 500 eV, the convergence threshold for the energy to 10−5 eV and the k-mesh density to 0.18 Å−1. The integration radius for the atomic magnetic moments (VASP parameter RWIGS) was kept constant at the value of the Fe PAW (1.302 Å). The LAMBDA parameter was initially increased in smaller steps and then gradually with larger steps. A typical sequence of values is (1,2,6,10,15,20,25,30). See Supplementary Notes 1 and 2 for the convergence of magnetic moment magnitude with respect to the integration radius and for a discussion on the convergence of the penalty energy in the constrained local moment method.
MD-MC calculations
The MD-MC simulations of the FM-PM transition in bcc Fe consisted of alternating MD and MC steps. The MD simulations were performed using Langevin dynamics (from ASE67 package) with a time step of 1 fs. The MC sampling included uniform spin rotations on a unit sphere with and without additional perturbations of the magnetic moment magnitudes. The simulation supercell had dimensions 12 × 12 × 12 of a bcc cell and contained 3456 atoms. The dimensions of the supercell were kept fixed at all temperatures so that the effect of thermal expansion was neglected. At each temperature, we carried out about 107 steps, with the initial 10% used for equilibration.
The free energy difference between bcc and fcc, shown in Fig. 9b, was calculated following the application of the SSTI method51 to magnetic Fe52. In this approach, stresses are integrated along a deformation path between the bcc and fcc structures. Our calculations employed supercells of dimension 8 × 8 × 8 (512 atoms). The lattice parameters of bcc and fcc at each temperature were adjusted to the values obtained from the corresponding thermal expansions.
Data availability
The authors declare that all data supporting the findings of this study are available from M.R. on reasonable request.
Code availability
The magnetic ACE presented in the manuscript was evaluated and parameterized with a magnetic version of the PACEmaker code33. The magnetic ACE implementation is not yet distributed with PACEmaker, but we plan to make it available in a future release. A Fortran evaluator code interfaced with the SPIN package of LAMMPS is available from https://github.com/mttrin93/mag-ace.
References
von Barth, U. & Hedin, L. A local exchange-correlation potential for the spin polarized case. J. Phys. C: Solid State Phys. 5, 1629–1642 (1972).
Stoner, E. C. Collective electron ferronmagnetism. Proc. R. Soc. Lond. A. 165, 372–414 (1938).
Pettifor, D. G. Bonding and Structure in Molecules and Solids. Oxford University Press (1995).
Drautz, R. & Pettifor, D. G. Valence-dependent analytic bond-order potential for transition metals. Phys. Rev. B 74, 174117 (2006).
Soulairol, R., Fu, C.-C. & Barreteau, C. Structure and magnetism of bulk Fe and Cr: from plane waves to LCAO methods. J. Phys.: Condens. Matter 22, 295502 (2010).
Drautz, R. & Pettifor, D. G. Valence-dependent analytic bond-order potential for magnetic transition metals. Phys. Rev. B 84, 214114 (2011).
Mrovec, M., Nguyen-Manh, D., Elsässer, C. & Gumbsch, P. Magnetic bond-order potential for iron. Phys. Rev. Lett. 106, 246402 (2011).
Heisenberg, W. Zur theorie des ferromagnetismus. Z. Phys. 49, 619–636 (1928).
Tranchida, J., Plimpton, S. J., Thibaudeau, P. & Thompson, A. P. Massively parallel symplectic algorithm for coupled magnetic spin dynamics and molecular dynamics. J. Comput. Phys. 372, 406–425 (2018).
Nikolov, S. et al. Data-driven magneto-elastic predictions with scalable classical spin-lattice dynamics. npj Comput. Mater. 7, 153 (2021).
Yu, H. et al. Complex spin Hamiltonian represented by an artificial neural network. Phys. Rev. B 105, 174422 (2022).
Eckhoff, M. & Behler, J. High-dimensional neural network potentials for magnetic systems using spin-dependent atom-centered symmetry functions. npj Comput. Mater. 7, 170 (2021).
Behler, J. & Parrinello, M. Generalized neural-network representation of high-dimensional potential-energy surfaces. Phys. Rev. Lett. 98, 146401 (2007).
Novikov, I., Grabowski, B., Körmann, F. & Shapeev, A. Magnetic Moment Tensor Potentials for collinear spin-polarized materials reproduce different magnetic states of bcc Fe. npj Comput. Mater. 8, 13 (2022).
Shapeev, A. V. Moment tensor potentials: a class of systematically improvable interatomic potentials. Multiscale Model. Simul. 14, 1153–1173 (2016).
Domina, M., Cobelli, M. & Sanvito, S. Spectral neighbor representation for vector fields: Machine learning potentials including spin. Phys. Rev. B 105, 214439 (2022).
Suzuki, M.-T., Nomoto, T., Morooka, E. V., Yanagi, Y. & Kusunose, H. High-performance descriptor for magnetic materials: accurate discrimination of magnetic structure. Phys. Rev. B 108, 014403 (2023).
Chapman, J. B. J. & Ma, P.-W. A machine-learned spin-lattice potential for dynamic simulations of defective magnetic iron. Sci. Rep. 12, 22451 (2022).
Drautz, R. Atomic cluster expansion for accurate and transferable interatomic potentials. Phys. Rev. B 99, 014104 (2019).
Drautz, R. Atomic cluster expansion of scalar, vectorial, and tensorial properties including magnetism and charge transfer. Phys. Rev. B 102, 024104 (2020).
Dusson, G. et al. Atomic cluster expansion: completeness, efficiency and stability. J. Comput. Phys. 454, 110946 (2022).
Lysogorskiy, Y. et al. Performant implementation of the atomic cluster expansion (PACE) and application to copper and silicon. npj Comput. Mater. 7, 97 (2021).
Kovács, D. P. et al. Linear atomic cluster expansion force fields for organic molecules: beyond RMSE. J. Chem. Theory Comput. 17, 7696–7711 (2021).
Qamar, M., Mrovec, M., Lysogorskiy, Y., Bochkarev, A. & Drautz, R. Atomic cluster expansion for quantum-accurate large-scale simulations of carbon. J. Chem. Theory Comput. 19, 5151–5167 (2023).
Liang, Y. et al. Atomic cluster expansion for Pt-Rh catalysts: from ab initio to the simulation of nanoclusters in few steps. J. Mater. Res. 38, 5125–5135 (2023).
Ibrahim, E., Lysogorskiy, Y., Mrovec, M. & Drautz, R. Atomic cluster expansion for a general-purpose interatomic potential of magnesium. Phys. Rev. Mater. 7, 113801 (2023).
Singer, R. & Fähnle, M. Construction of basis functions for the spin-cluster expansion of the magnetic energy on the atomic scale in rotationally invariant systems. J. Math. Phys. 47, 113503 (2006).
Singer, R., Dietermann, F. & Fähnle, M. Spin interactions in bcc and fcc Fe beyond the Heisenberg model. Phys. Rev. Lett. 107, 017204 (2011).
Drautz, R. & Fähnle, M. Spin-cluster expansion: parametrization of the general adiabatic magnetic energy surface with ab initio accuracy. Phys. Rev. B 69, 104404 (2004).
Drautz, R. & Fähnle, M. Parametrization of the magnetic energy at the atomic level. Phys. Rev. B 72, 212405 (2005).
Lavrentiev, M. Y., Nguyen-Manh, D. & Dudarev, S. L. Magnetic cluster expansion model for bcc-fcc transitions in Fe and Fe-Cr alloys. Phys. Rev. B 81, 184202 (2010).
Ma, P.-W. & Dudarev, S. L. Constrained density functional for noncollinear magnetism. Phys. Rev. B 91, 054420 (2015).
Bochkarev, A. et al. Efficient parametrization of the atomic cluster expansion. Phys. Rev. Mater. 6, 013804 (2022).
Ma, P.-W. & Dudarev, S. L. Longitudinal magnetic fluctuations in Langevin spin dynamics. Phys. Rev. B 86, 054416 (2012).
Rosengaard, N. M. & Johansson, B. Finite-temperature study of itinerant ferromagnetism in Fe, Co, and Ni. Phys. Rev. B 55, 14975–14986 (1997).
Uhl, M. & Kübler, J. Exchange-coupled spin-fluctuation theory: application to Fe, Co, and Ni. Phys. Rev. Lett. 77, 334–337 (1996).
Gambino, D., Brännvall, M. A., Ehn, A., Hedström, Y. & Alling, B. Longitudinal spin fluctuations in bcc and liquid Fe at high temperature and pressure calculated with a supercell approach. Phys. Rev. B 102, 014402 (2020).
Herper, H. C., Hoffmann, E. & Entel, P. Ab initio full-potential study of the structural and magnetic phase stability of iron. Phys. Rev. B 60, 3839–3848 (1999).
Okatov, S. V., Kuznetsov, A. R., Gornostyrev, Yu. N., Urtsev, V. N. & Katsnelson, M. I. Effect of magnetic state on the γ − α transition in iron: first-principles calculations of the Bain transformation path. Phys. Rev. B 79, 094111 (2009).
Okatov, S. V., Gornostyrev, Yu. N., Lichtenstein, A. I. & Katsnelson, M. I. Magnetoelastic coupling in γ-iron investigated within an ab initio spin spiral approach. Phys. Rev. B 84, 214422 (2011).
Wang, K., Shang, S.-L., Wang, Y., Liu, Z.-K. & Liu, F. Martensitic transition in Fe via Bain path at finite temperatures: a comprehensive first-principles study. Acta Mater. 147, 261–276 (2018).
Liechtenstein, A. I., Katsnelson, M. I. & Gubanov, V. A. Exchange interactions and spin-wave stiffness in ferromagnetic metals. J. Phys. F: Met. Phys. 14, L125–L128 (1984).
Liechtenstein, A. I., Katsnelson, M. I., Antropov, V. P. & Gubanov, V. A. Local spin density functional approach to the theory of exchange interactions in ferromagnetic metals and alloys. J. Magn. Magn. Mater. 67, 65–74 (1987).
Liechtenstein, A. I., Katsnelson, M. I., Antropov, V. P. & Gubanov, V. A. LSDF-approach to the theory of exchange interactions in magnetic metals. J. Magn. Magn. Mater. 54, 965–966 (1986).
Ebert, H. The SPRKKR package version 7. https://www.ebert.cup.uni-muenchen.de/index.php/en/software-en/13-sprkkr, (2014)
Stockem, I. et al. Anomalous phonon lifetime shortening in paramagnetic CrN caused by spin-lattice coupling: a combined spin and ab initio molecular dynamics study. Phys. Rev. Lett. 121, 125902 (2018).
Ma, P.-W., Dudarev, S. L. & Wróbel, J. S. Dynamic simulation of structural phase transitions in magnetic iron. Phys. Rev. B 96, 094418 (2017).
Ma, P.-W., Woo, C. H. & Dudarev, S. L. Large-scale simulation of the spin-lattice dynamics in ferromagnetic iron. Phys. Rev. B 78, 024434 (2008).
Körmann, F. et al. Free energy of bcc iron: Integrated ab initio derivation of vibrational, electronic, and magnetic contributions. Phys. Rev. B 78, 033102 (2008).
Ruban, A. V., Khmelevskyi, S., Mohn, P. & Johansson, B. Temperature-induced longitudinal spin fluctuations in Fe and Ni. Phys. Rev. B 75, 054402 (2007).
Klarbring, J. & Simak, S. I. Phase Stability of Dynamically Disordered Solids from First Principles. Phys. Rev. Lett. 121, 225702 (2018).
Gambino, D., Klarbring, J. & Alling, B. Phase stability of fe from first principles: Atomistic spin dynamics coupled with ab initio molecular dynamics simulations and thermodynamic integration. Phys. Rev. B 107, 014102 (2023).
Basinski, Z. S., Hume-Rothery, W. & Sutton, A. L. The lattice expansion of iron. Proc. R. Soc. Lond. A. 229, 459–467 (1955).
Wang, N., Hammerschmidt, T., Hickel, T., Rogal, J. & Drautz, R. Influence of spin fluctuations on structural phase transitions of iron. Phys. Rev. B 107, 104108 (2023).
Alling, B. et al. Strong impact of lattice vibrations on electronic and magnetic properties of paramagnetic Fe revealed by disordered local moments molecular dynamics. Phys. Rev. B 93, 224411 (2016).
Chapman, J. B. J., Ma, P.-W. & Dudarev, S. L. Effect of non-Heisenberg magnetic interactions on defects in ferromagnetic iron. Phys. Rev. B 102, 224106 (2020).
Ventelon, L. & Willaime, F. Core structure and Peierls potential of screw dislocations in α-Fe from first principles: cluster versus dipole approaches. J. Comput. Aided Mater. Des. 14, 85–94 (2007).
Dezerald, L. et al. Ab initio modeling of the two-dimensional energy landscape of screw dislocations in bcc transition metals. Phys. Rev. B 89, 024104 (2014).
Wang, N., Hammerschmidt, T., Rogal, J. & Drautz, R. Accelerating spin-space sampling by auxiliary spin dynamics and temperature-dependent spin-cluster expansion. Phys. Rev. B 99, 094402 (2019).
Lysogorskiy, Y., Bochkarev, A., Mrovec, M. & Drautz, R. Active learning strategies for atomic cluster expansion models. Phys. Rev. Mater. 7, 043801 (2023).
Kresse, G. & Hafner, J. Ab initio molecular dynamics for liquid metals. Phys. Rev. B 47, 558–561 (1993).
Kresse, G. & Hafner, J. Ab initio molecular-dynamics simulation of the liquid-metal–amorphous-semiconductor transition in germanium. Phys. Rev. B 49, 14251–14269 (1994).
Kresse, G. & Furthmüller, J. Efficiency of ab-initio total energy calculations for metals and semiconductors using a plane-wave basis set. Comput. Mater. Sci. 6, 15–50 (1996).
Kresse, G. & Furthmüller, J. Efficient iterative schemes for ab initio total-energy calculations using a plane-wave basis set. Phys. Rev. B 54, 11169–11186 (1996).
Blöchl, P. E. Projector augmented-wave method. Phys. Rev. B 50, 17953–17979 (1994).
Perdew, J. P., Burke, K. & Ernzerhof, M. Generalized gradient approximation made simple. Phys. Rev. Lett. 77, 3865–3868 (1996).
Larsen, A. H. et al. The atomic simulation environment-a Python library for working with atoms. J. Phys.: Condens. Matter 29, 273002 (2017).
Dragoni, D., Daff, T. D., Csányi, G. & Marzari, N. Achieving DFT accuracy with a machine-learning interatomic potential: Thermomechanics and defects in bcc ferromagnetic iron. Phys. Rev. Mater. 2, 013808 (2018).
Ridley, N. & Stuart, H. Lattice parameter anomalies at the Curie point of pure iron. J. Phys. D Appl. Phys. 1, 1291–1295 (1968).
Körmann, F. Magnetic Systems studied by First-Principles Thermodynamics. Paderborn University (2011).
Acknowledgements
M.R. acknowledges support from the International Max Planck Research School for Interface Controlled Materials for Energy Conversion (IMPRS-SurMat). M.R. acknowledges D.Gambino for the fruitful discussion on the SSTI method. This work was in part supported by the German Science Foundation (DFG), projects 405621081, 405621217, and 403582885. We acknowledge computational time from the Interdisciplinary Centre for Advanced Materials Simulation (ICAMS) and the Center for Interface Dominated High Performance Materials (ZGH), both at Ruhr University Bochum.
Funding
Open Access funding enabled and organized by Projekt DEAL.
Author information
Authors and Affiliations
Contributions
M.R. implemented the magnetic ACE by extending non-magnetic ACE implementations in Fortran and in Tensorflow. M.R. produced the DFT reference data with support from M.M. and fitted the magnetic ACE. M.R. carried out all calculations presented in the manuscript and drafted the manuscript. M.M. and R.D. supervised the work, advised on theory and edited the manuscript. A.B., Y.L. and R.D. supported the implementation of magnetic ACE and advised on numerical aspects of the implementation.
Corresponding authors
Ethics declarations
Competing interests
The authors declare no competing interests.
Additional information
Publisher’s note Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Supplementary information
Rights and permissions
Open Access This article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons license, and indicate if changes were made. The images or other third party material in this article are included in the article’s Creative Commons license, unless indicated otherwise in a credit line to the material. If material is not included in the article’s Creative Commons license and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this license, visit http://creativecommons.org/licenses/by/4.0/.
About this article
Cite this article
Rinaldi, M., Mrovec, M., Bochkarev, A. et al. Non-collinear magnetic atomic cluster expansion for iron. npj Comput Mater 10, 12 (2024). https://doi.org/10.1038/s41524-024-01196-8
Received:
Accepted:
Published:
DOI: https://doi.org/10.1038/s41524-024-01196-8
- Springer Nature Limited