기본 정보
- 저자
- DOI
- 10.48550/arxiv.1310.6143
- 저널
- arXiv (Cornell University)
- 발행년도
- 2022
- 발행기관
- Cornell University
- 피인용수
- 0
- 라이선스
- 0
- 논문 유형
- –
- 언어
- –
- 원문 페이지
- https://doi.org/10.48550/arxiv.1310.6143
- 토픽
- Chemical and Physical Properties of Materials
- OpenAlex ID
- W6910457911
평가 내용
- 관련도
- 사업분야
- 산업용 섬유 · (10) 아라미드
- 부 분야
- –
- R&D 측면
- –
- 확신도
- –
- 근거 용어
- –
- 판단 근거
- 임베딩 유사도 기반 평가로 '산업용 섬유 > 아라미드' 분야에 선정된 논문입니다.
- R&D 활용 포인트
- –
- 평가 입력
- –
초록
Atomistic modelling of magnetic materials provides unprecedented detail about the underlying physical processes that govern their macroscopic properties, and allows the simulation of complex effects such as surface anisotropy, ultrafast laser-induced spin dynamics, exchange bias, and mi- crostructural effects. Here we present the key methods used in atomistic spin models which are then applied to a range of magnetic problems. We detail the parallelisation strategies used which enable the routine simulation of extended systems with full atomistic resolution.
본문 122,494자
본문 펼치기
Atomistic spin model simulations of magnetic nanomaterials
R. F. L. Evans, <sup>_∗_</sup> W. J. Fan, P. Chureemart, T. A. Ostler, M. O. A. Ellis, and R. W. Chantrell
_Department_ _of_ _Physics,_ _The_ _University_ _of_ _York,_ _York,_ _YO10_ _5DD,_ _UK_
(Dated: December 5, 2013)
Atomistic modelling of magnetic materials provides unprecedented detail about the underlying
physical processes that govern their macroscopic properties, and allows the simulation of complex
effects such as surface anisotropy, ultrafast laser-induced spin dynamics, exchange bias, and microstructural effects. Here we present the key methods used in atomistic spin models which are then
applied to a range of magnetic problems. We detail the parallelisation strategies used which enable
the routine simulation of extended systems with full atomistic resolution.
I. INTRODUCTION
Atomistic models of magnetic materials, where the
atoms treated as possessing a local magnetic moment,
originated with Ising in 1925 as the first model of the
phase transition in a ferromagnet[1]. The Ising model
has spin-up and spin-down only states, and is amenable
to analytical treatment, at least in two dimensions. Although it is still extensively used in the study of phase
transitions, it is limited in applicability to magnetic materials and cannot be used for dynamic simulations. A
natural extension of the Ising model is to allow the atomic
spin to vary freely in 3D space[2, 3] which yields the
classical Heisenberg model, where quantum mechanical
effects on the atomic spins are neglected[2]. Monte Carlo
simulations of the classical Heisenberg model allowed
the study of phase transitions, surface and finite size
effects in simple magnetic systems. The study of dynamic phenomena however was intrinsically limited due
to the use of Monte Carlo methods until the development
of dynamic[4, 5] and stochastic Landau-Lifshitz-Gilbert
atomistic spin models[6–8].
Today atomistic simulation of magnetic materials
has become an essential tool in understanding the
processes governing the complex behaviour of magnetic nanomaterials, including ultrafast laser-induced
magnetisation dynamics [9–11], exchange bias in coreshell nanoparticles[12–14] and multilayers[5, 15], surface
anisotropy in magnetic nanoparticles[16, 17], microstructural effects[18–20], spin valves[21] and spin torque[22],
temperature effects and properties[23–26] and magnetic
recording media[27, 28]. A significant capability of the
atomistic spin model is to bridge the gap between _ab_ _ini-_
_tio_ electronic structure calculations and micromagnetics
by using a multiscale model[29–32]. Such a model is able
to calculate effective parameters for larger scale micromagnetic simulations[33], such as anisotropies, and exchange constants[34]. The atomistic model is also able
to interface directly with micromagnetic simulations to
tackle extended systems by calculating interface properties atomistically while treating the bulk of the mate
_∗_ richard.evans@york.ac.uk; `http://www-users.york.ac.uk/`
```
~ rfle500/
```
rial with a micromagnetic discretisation[35, 36]. Despite
the broad applicability and importance of atomistic models, no easy-to-use and open-source software packages
are presently available to researchers, unlike the mesoscopic micromagnetic approaches where several packages
are currently available[37–39].
Today most magnetic modelling is performed using numerical micromagnetics in finite-difference[37] and finiteelement[38, 39] flavours. The theoretical basis of micromagnetics is that the atomic dipoles which make up
the magnetic material can be approximated as a continuous vector field where, due to the exchange interaction, the atomic dipoles in a small finite volume are perfectly aligned. Micromagnetics has proven to be an essential tool in understanding a range of complex magnetic
effects[40–42] but due to the rapid pace of technological
development in magnetic materials the continuum approximation at its heart precludes its application to many
problems of interest at the beginning of the 21 <sup>st</sup> century, such as heat assisted magnetic recording[43], ultrafast laser-induced demagnetisation[44, 45], exchange bias
in spin valves[46], surface and interface anisotropy[47,
48] and high anisotropy materials for ultrahigh density
recording media such as FePt[49]. The common theme
to these problems is a sub-nanometre spatial variation in
the magnetisation caused by high temperatures, atomic
level ordering (anti- and ferri- magnets), or atomic surface and interface effects. To tackle these problems requires a formalism to take account of the detailed atomic
structure to express its impact on the macroscopic behaviour of a nano particle, grain or complete device.
Some but not all of these problems can adequately
be tackled by next-generation micromagnetic approaches
utilising the Landau-Lifshitz-Bloch equation [50–52],
which is based on a physically robust treatment of the
coupling of a macrospin to a heat bath, allowing the
study of high temperature processes[53], ultrafast demagnetisation [54, 55] and switching[56]. However, true
atomic scale variations of the magnetisation, as apparent
in antiferromagnets, surfaces and interfaces, still require
an atomistic approach. Additionally with the decreasing
size of magnetic elements, finite size effects begin to play
in increasing role in the physical properties of magnetic
systems[57].
In this article we present an overview of the common
computational methods utilised in atomistic spin simu
lations and details of their implementation in the opensource vampire software package[58]. Testing of the code
is an essential part of ensuring the accuracy of the model
and so we also detail important tests of the various parts
of the model and compare them to analytic results while
exploring some interesting physics of small magnetic systems.
vampire is designed specifically with these problems in
mind, and can easily simulate nanoparticles, multilayer
films, interfacial mixing, surface anisotropy and roughness, core-shell systems, granular media and lithographically defined patterns, all with fully atomistic resolution.
In addition truly realistic systems predicted by Molecular Dynamics simulations[19, 20, 59] can also be used
giving unprecedented detail about the relationships between shape and structure and the magnetic properties
of nanoparticles. In addition to these physical features
vampire also utilises the computing power of multiprocessor machines through parallelisation, allowing systems
of practical interest to be simulated routinely, and largescale problems on the 100+ nm length scale to be simulated on computing clusters.
II. THE ATOMISTIC SPIN MODEL
The physical basis of the atomistic spin model is the
localisation of unpaired electrons to atomic sites, leading
to an effective local atomistic magnetic moment. The
degree of localisation of electrons has historically been a
contentious issue in 3d metals[60], due to the magnetism
originating in the outer electrons which are notionally
loosely bound to the atoms. _Ab_ _initio_ calculations of the
electron density[61] show that in reality even in ’itinerant’
ferromagnets the spin polarisation is well-localised to the
atomic sites. Essentially this suggests that the bonding
electrons are unpolarised, and after taking into account
the bonding charge the remaining d-electrons form a welldefined effective localised moment on the atomic sites.
Magnetic systems are fundamentally quantum mechanical in nature since the electron energy levels are
quantised, the exchange interaction is a purely quantum
mechanical effect, and other important effects such as
magnetocrystalline anisotropy arise from relativistic interactions of electronic orbitals with the lattice, which
are the province of _ab_ _initio_ models. In addition to these
properties at the electronic level, the properties of magnetic materials are heavily influenced by thermal effects
which are typically difficult to incorporate into standard
density functional theory approaches. Therefore models of magnetic materials should combine the quantum
mechanical properties with a robust thermodynamic formalism. The simplest model of magnetism using this
approach is the Ising model[1], which allows the atomic
moments one of two allowed states along a fixed quantisation axis. Although useful as a descriptive system, the
forced quantisation is equivalent to infinite anisotropy,
limiting the applicability of the Ising model in relation
to real materials. In the classical description the direction of the atomic moment is a continuous variable in
3D space allowing for finite anisotropies and dynamic
calculations. In some sense the classical spin model is
analogous to Molecular Dynamics, where the energetics
of the system are determined primarily from quantum
mechanics, but the time evolution and thermodynamic
properties are treated classically.
A. The classical spin Hamiltonian
The Heisenberg spin model encapsulates the essential physics of a magnetic material at the atomic level,
where the energetics of a system of interacting atomic
moments is given by a _spin_ Hamiltonian (which neglects
non-magnetic effects such the as the Coulomb term). The
spin Hamiltonian _H_ typically has the form:
_H_ = _H_ exc + _H_ ani + _H_ app (1)
denoting terms for the exchange interaction, magnetic
anisotropy, and externally applied magnetic fields respectively.
The dominant term in the spin Hamiltonian is the
Heisenberg exchange energy, which arises due to the symmetry of the electron wavefunction and the Pauli exclusion principle[60] which governs the orientation of electronic spins in overlapping electron orbitals. Due to its
electrostatic origin, the associated energies of the exchange interaction are around 1 _−_ 2 eV, which is typically
up to 1000 times larger than the next largest contribution and give rise to magnetic ordering temperatures in
the range 300-1300K. The exchange energy for a system
of interacting atomic moments is given by the expression
_H_ exc = _−_
_i̸_ = _j_
_Jij_ S _i ·_ S _j_ (2)
where _Jij_ is the exchange interaction between atomic
sites _i_ and _j_, S _i_ is a unit vector denoting the local spin
moment direction and S _j_ is the spin moment direction
of neighbouring atoms. The unit vectors are taken from
the actual atomic moment _µ_ s and given by S _i_ = _µ_ s _/|_ _µ_ s _|_ .
It is important to note here the significance of the sign
of _Jij_ . For ferromagnetic materials where neighbouring
spins align in parallel, _Jij_ _>_ 0, and for anti-ferromagnetic
materials where the spins prefer to align anti-parallel
_Jij_ _<_ 0. Due to the strong distance dependence of the
exchange interaction the sum in Eq. 2 is often truncated
to include nearest neighbours only. This significantly reduces the computational effort while being a good approximation for many materials of interest. In reality
the exchange interaction can extend to several atomic
spacings[29, 30], representing hundreds of pairwise interactions.
In the simplest case the exchange interaction _Jij_ is
isotropic, meaning that the exchange energy of two spins
depends only on their relative orientation. In more complex materials, the exchange interaction forms a tensor
with components:
is described by the expression:
_H_ ani <sup>cub</sup>
ani <sup>cub</sup> <sup>=</sup> <sup>_<u>k</u>_</sup> <sup><u>c</u></sup>
2
_y_ <sup>4</sup> <sup>+</sup> <sup>_S_</sup> _z_ <sup>4</sup>
_z_
- (6)
_i_
- _Sx_ <sup>4</sup>
_x_ <sup>4</sup> <sup>+</sup> <sup>_S_</sup> _y_ <sup>4</sup>
where _k_ c is the cubic anisotropy energy per atom, and
_Sx_, _Sy_, and _Sz_ are the _x_, _y_, and _z_ components of the spin
moment S respectively.
Most magnetic problems also involve interactions between the system and external applied fields, denoted as
H app. External fields can arise in many ways, for example a nearby magnetic material, or as an effective field
from an electric current. In all cases the applied field
energy is simply given by:
_,_ (3)
J <sup>M</sup> _ij_ <sup>=</sup>
J <sup>M</sup> _ij_
_Jxx_ _Jxy_ _Jxz_
_Jyx_ _Jyy_ _Jyz_
_Jzx_ _Jzy_ _Jzz_
which is capable of describing _anisotropic_ exchange
interactions, such as two-ion anisotropy[29] and the
Dzyaloshinskii-Moriya interaction (off-diagonal components of the exchange tensor). In the case of tensorial
exchange _H_ exc <sup>M</sup> <sup>, the exchange energy is given by the prod-</sup>
uct:
_Sx_ <sup>_j_</sup>
_Sy_ <sup>_j_</sup>
_Sz_ <sup>_j_</sup>
_._ (4)
_z_
_i_
_µ_ s S _i ·_ H app _._ (7)
_H_ exc <sup>M</sup> <sup>=</sup> <sup>_−_</sup>
_i̸_ = _j_
- _Sxi_ <sup>_S_</sup> _y_ <sup>_i_</sup>
_y_ <sup>_i_</sup> <sup>_S_</sup> _z_ <sup>_i_</sup>
_z_
_Jxx_ _Jxy_ _Jxz_
_Jyx_ _Jyy_ _Jyz_
_Jzx_ _Jzy_ _Jzz_
_H_ app = _−_
Obtaining the components of the exchange tensor may
be done phenomenologically, or via _ab_ _initio_ methods
such as the relativistic torque method[62–65] or the spincluster expansion technique[30, 66–68]. The above expressions for the exchange energy also exclude higherorder exchange interactions such as three-spin and fourspin terms. In most materials the higher order exchange
terms are significantly smaller than the leading term and
can safely be neglected.
While the exchange energy gives rise to magnetic ordering at the atomic level, the stability of a magnetic material is dominated by the magnetic anisotropy, or preference for the atomic moments to align along a preferred
spatial direction. There are several physical effects which
give rise to anisotropy, but the most important is the
magnetocrystalline anisotropy (namely the preference for
spin moments to align with particular crystallographic
axes) arising from the interaction of atomic electron orbitals with the local crystal environment[69, 70].
The simplest form of anisotropy is of the single-ion
uniaxial type, where the magnetic moments prefer to
align along a single axis, _e_, often called the easy axis and
is an interaction confined to the local moment. Uniaxial anisotropy is most commonly found in particles with
elongated shape (shape anisotropy), or where the crystal
lattice is distorted along a single axis as in materials such
as hexagonal Cobalt and L10 ordered FePt. The uniaxial
single ion anisotropy energy is given by the expression:
A note on magnetic units
The subject of magnetic units is controversial due to
the existence of multiple competing standards and historical origins.[60] Starting from the atomic level however, the dimensionality of units is relatively transparent.
Atomic moments are usually accounted for in multiples
of the Bohr magneton ( _µ_ B), the magnetic moment of an
isolated electron, with units of Joules/Tesla. Given a
number of atoms of moment _µ_ s in a volume, the moment
per unit volume is naturally in units of J/T/m <sup>3</sup>, which is
identical to the SI unit of A/m. However, the dimensionality (moment per unit volume) of the unit A/m is not
as obvious as JT <sup>_−_</sup> <sup>1</sup> m <sup>_−_</sup> <sup>3</sup>, and so the latter form is used
herein.
Applied magnetic fields are hence defined in Tesla,
which comes naturally from the derivative of the spin
Hamiltonian with respect to the local moment. The unit
of Tesla for applied field is also beneficial for hysteresis
loops, since the area enclosed a typical M-H loop is then
given as an energy density (Joules/m <sup>3</sup> ). A list of key
magnetic parameters and variables and their units are
shown in Tab. I.
III. SYSTEM PARAMETERISATION AND
GENERATION
Unlike micromagnetic simulations where the magnetic
system can be partitioned using either a finite difference or finite element discretisation, atomistic simulations generally require some _a priori_ knowledge of atomic
positions. Most simple magnetic materials such as Fe,
Co or Ni form regular crystals, while more complex systems such as oxides, antiferromagnets and Heusler alloys
possess correspondingly complex atomic structures. For
ferromagnetic metals, the details of atomic positions are
generally less important due to the strong parallel orientation of moments, and so they can often (but not al
_H_ ani <sup>uni</sup> <sup>=</sup> <sup>_−k_</sup> <sup>u</sup>
_H_ ani <sup>uni</sup>
_i_
( S _i ·_ _e_ ) <sup>2</sup> (5)
where _k_ u is the anisotropy energy per atom. Materials with a cubic crystal structure, such as Iron and
Nickel, have a different form of anisotropy known as cubic
anisotropy. Cubic anisotropy is generally much weaker
than uniaxial anisotropy, and has three principal directions which energetically are easy, hard and very hard
magnetisation directions respectively. Cubic anisotropy
TABLE I. Table of key variables and their units
<u>Variable</u> <u>Symbol</u> <u>Unit</u>
Atomic magnetic moment _µ_ s Joules/Tesla [JT <sup>_<u>−</u>_</sup> <sup><u>1</u></sup> ]
Unit cell size _a_ Angstroms [ <sup>˚</sup> A]
Exchange energy _Jij_ Joules/link [J]
Anisotropy energy _k_ u Joules/atom [J]
Applied Field H Tesla [T]
Temperature _T_ Kelvin [K]
Time _t_ Seconds [s]
<u>Parameter</u> <u>Symbol</u> <u>Value</u>
Bohr Magneton _µ_ B 9.2740 _×_ 10 <sup>_<u>−</u>_</sup> <sup><u>24</u></sup> JT <sup>_<u>−</u>_</sup> <sup><u>1</u></sup>
Gyromagnetic Ratio _γ_ 1.76 _×_ 10 <sup>11</sup> T <sup>_−_</sup> <sup>1</sup> s <sup>_−_</sup> <sup>1</sup>
Permeability of Free Space _µ_ 0 4 _π ×_ 10 <sup>_−_</sup> <sup>7</sup> T <sup>2</sup> J <sup>_−_</sup> <sup>1</sup> m <sup>3</sup>
Boltzmann Constant _k_ B 1 _._ 3807 _×_ 10 <sup>_−_</sup> <sup>23</sup> JK <sup>_−_</sup> <sup>1</sup>
terials localised spin moments, magnetic ground state
and the effective magnetocrystalline anisotropy. Standard software packages such as vasp[74], castep[75, 76]
and siesta[77] make such calculations readily accessible.
At present determining site resolved properties such as
anisotropy constants and pairwise exchange interactions
is more involved and require _ab_ _initio_ Green’s functions
techniques such as the fully relativistic Korringa-KohnRostoker method[78, 79] or the lmto method[80, 81] in
conjunction with the magnetic force theorem[62]. An alternative approach for the calculation of exchange parameters is the utilisation of the generalised Bloch theorem
for spin-spiral states in magnetic systems[82] together
with a Fourier transformation of _k_ -dependent spin-spiral
energies[83, 84].
A number of studies have determined atomic magnetic
properties from first principles calculations by direct
mapping onto a spin model, including the principal magnetic elements Co, Ni and Fe [81], metallic alloys including FePt[29], IrMn[31], oxides[85] and spin glasses[86],
and also bilayer systems such as Fe/FePt.[87] Such calculations give detailed insight into microscopic magnetic
properties, including atomic moments, long-ranged exchange interactions, magnetocrystalline anisotropies (including surface and two-ion interactions) and other details not readily available from phenomenological theories. Combined with atomistic models it is possible to
determine macroscopic properties such as the Curie temperature, temperature dependent anisotropies, and magnetic ground states, often in excellent agreement with
experiment. However, the computational complexity of
DFT calculations also means that the systems which can
be simulated with this multi scale approach are often
limited to small clusters, perfect bulk systems and 2D
periodic systems, while real materials of course often contain a plethora of defects disrupting the long range order.
Some studies have also investigated the effects of disorder in magnetic systems combined with a spin model
mapping, such as dilute magnetic semiconductors[88] and
metallic alloys[89].
Magnetic properties calculated at the electronic level
have a synergy with atomistic spin models, since the electronic properties can often be mapped onto a Heisenberg
spin model with effective local moments. This multiscale
electronic and atomistic approach avoids the continuum
approximations of micromagnetics and treats magnetic
materials at the natural atomic scale.
Atomistic parameters from macroscopic properties
The alternative approach to multiscale
atomistic/density-functional-theory simulations is
to derive the parameters from experimentally determined values. This has the advantage of speed and
lower complexity, whilst foregoing microscopic details
of the exchange interactions or anisotropies. Another
key advantage of generic parameters is the possibility of
ways) be represented using a simple cubic discretisation.
In contrast, the properties of ferrimagnetic and antiferromagnetic materials are inherently tied to the atomic
positions due to frustration and exchange interactions,
and so simulation of these materials must incorporate
details of the atomic structure.
In addition to the atomic structure of the material, it
is also necessary to parameterise the terms of the spin
Hamiltonian given by Eq. 1, principally including exchange and anisotropy values but also with other terms.
There are generally two ways in which this may be done:
using experimentally determined properties or with a
multiscale approach using _ab_ _initio_ density functional
theory calculations as input to the spin model.
Atomistic parameters from _ab_ _initio_ calculations
_Ab_ _initio_ density functional theory (DFT) calculations
utilise the Hohenberg-Kohn-Sham theory[71, 72] that the
total energy _E_ of a system can be written solely in terms
the electron density, _rho_ . Thus, if the electron density
is known then the physical properties of the system can
be found. In practice, the both electron density and the
spin density are used as fundamental quantities in the
total energy expression for spin-polarised systems[73]. In
many implementations DFT-based methods only consider the outer electrons of a system, since the inner
electrons play a minimal role in the bonding and also
partially screen the effect of the nuclear core. These effects are approximated by a pseudopotential which determines the potential felt by the valence electrons. In
all-electron methods, however, the core electron density
is also relaxed. By energy minimisation DFT enables
the calculation of a wide range of properties, including lattice constants, and in the case of magnetic ma
parametric studies, where parameters are varied explicitly to determine their importance for the macroscopic
properties of the system, such as has been done for
studies of surface anisotropy[17] and exchange bias[13].
Unlike micromagnetic simulations, the fundamental
thermodynamic approach of the atomistic model means
that all parameters must be determined for _zero_ temperature. The spin fluctuations then determine the intrinsic temperature dependence of the _effective_ parameters
which are usually put into micromagnetic simulations
as parameters. Fortunately determination of the atomic
moments, exchange constants and anisotropies from experimental values is relatively straightforward for most
systems.
_Atomic_ _spin_ _moment_
The atomic spin moment _µ_ s is related to the saturation
magnetisation simply by:
_Anisotropy_ _energy_
The atomistic magnetocrystalline anisotropy _k_ u is derived from the macroscopic anisotropy constant _K_ u by
the expression:
_k_ u = <sup>_<u>K</u>_</sup> <sup><u>u</u></sup> <sup>_<u>a</u>_</sup> <sup>3</sup>
_n_ at
(10)
where _K_ u in given in J/m <sup>3</sup> . In addition to the atomistic parameters, it is also worth noting the analogous
expressions for the anisotropy field _H_ a for a single domain particle:
_H_ a = <sup><u>2</u></sup> <sup>_<u>K</u>_</sup> <sup><u>u</u></sup>
_M_ s
= <sup><u>2</u></sup> <sup>_<u>k</u>_</sup> <sup><u>u</u></sup>
_µ_ s
(11)
_µ_ s = <sup>_<u>M</u>_</sup> <sup><u>s</u></sup> <sup>_<u>a</u>_</sup> <sup>3</sup>
_n_ at
(8)
where symbols have their usual meaning. At this point
it is worth mentioning that the measured anisotropy is
a free energy difference. While the intrinsic _k_ u remains
(to a first approximation) temperature independent, at
a non-zero temperature the free energy in the easy/hard
directions is increased/decreased due to the magnetisation fluctuations. Thus the macroscopic anisotropy value
decreases with increasing temperature, vanishing at _T_ c.
The thermodynamic basis of atomistic models makes
them highly suitable for the investigation of such phenomena, as we show later.
Applying the preceding operations, parameters for the
key ferromagnetic elements are given in Tab. II.
_Ferrimagnets_ _and_ _antiferromagnets_
In the case of ferrimagnets and anti-ferromagnets the
above methods for anisotropy and moment determination do not work due to the lack of macroscopic measurements, although the estimated exchange energies
apply equally well to the N´eel temperature provided
no magnetic frustration (due to lattice symmetry) is
present. In general, other theoretical calculations or
formalisms are required to determine parameters, such
as mean-field approaches[9] or density functional theory
calculations[31].
Atomistic system generation
In addition to determining the parameters of the spin
Hamiltonian, an essential part of the atomistic model is
the determination of the nuclear, or atomic, positions
in the system. In the multiscale approach utilising _ab_
_initio_ parameterisation of the system, the spin Hamiltonian is intrinsically tied to the atomic positions. The
additional detail offered by first principles calculations is
highly desirable even for perfect crystals and atomically
sharp interfaces, however the computational complexity
of the calculations limits the ability to parameterise a
where _M_ s is the saturation magnetisation at 0K in
JT <sup>_−_</sup> <sup>1</sup> m <sup>_−_</sup> <sup>3</sup>, _a_ is the unit cell size (m), and _n_ at is the
number of atoms per unit cell. We also note the usual
convention of expressing atomic moments in multiples or
fractions of the Bohr magneton, _µ_ B owing to their electronic origin. Taking BCC Iron as an example, the zero
temperature saturation magnetisation is 1.75 MA/m[90],
unit cell size of _a_ = 2 _._ 866 <sup>˚</sup> A, this gives an atomic moment
of 2.22 _µ_ B/atom.
_Exchange_ _energy_
For a generic atomistic model with _z_ nearest neighbour
interactions, the exchange constant is given by the meanfield expression:
_Jij_ = <sup><u>3</u></sup> <sup>_<u>kBT</u>_</sup> <sup><u>c</u></sup> (9)
_ϵz_
where _kB_ is the Boltzmann constant and _T_ c is the Curie
temperature _z_ is the number of nearest neighbours. _ϵ_
is a correction factor from the usual mean-field expression which arises due to spin waves in the 3D Heisenberg model[91] and is _∼_ 0 _._ 86. Because of this _ϵ_ is also
crystal structure and coordination number dependent,
and so the calculated _T_ c will vary slightly according to
the specifics of the system. For Cobalt with a _T_ c of
1388K and assuming a hexagonal crystal structure with
_z_ = 12, this gives a nearest neighbour exchange interaction _Jij_ = 6 _._ 064 _×_ 10 <sup>_−_</sup> <sup>21</sup> J/link.
TABLE II. Table of derived constants for the ferromagnetic elements Fe, Co, Ni and Gd.
<u>Fe</u> <u>Co</u> <u>Ni</u> <u>Gd</u> <u>Unit</u>
Crystal structure bcc hcp fcc hcp Unit cell size _a_ 2.866 2.507 3.524 3.636 ˚A
Interatomic spacing _rij_ 2.480 2.507 2.492 3.636 ˚A
Coordination number _z_ 8 12 12 12 Curie Temperature _T_ c 1043 1388 631 293 K
Spin-wave MF correction[91, 92] _ϵ_ 0.766 0.790 0.790 0.790 Atomic spin moment _µ_ s 2.22 1.72 0.606 7.63 _µ_ B
Exchange energy _Jij_ 7.050 _×_ 10 <sup>_−_</sup> <sup>21</sup> 6.064 _×_ 10 <sup>_−_</sup> <sup>21</sup> 2.757 _×_ 10 <sup>_−_</sup> <sup>21</sup> 1.280 _×_ 10 <sup>_−_</sup> <sup>21</sup> J/link
<u>Anisotropy</u> <u>energy[93]</u> _<u>k</u>_ <u>5.65</u> _<u>×</u>_ <u>10</u> <sup>_−_</sup> <sup>25</sup> <u>6.69</u> _<u>×</u>_ <u>10</u> <sup>_−_</sup> <sup>24</sup> <u>5.47</u> _<u>×</u>_ <u>10</u> <sup>_−_</sup> <sup>26</sup> <u>5.93</u> _<u>×</u>_ <u>10</u> <sup>_−_</sup> <sup>24</sup> <u>J/atom</u>
spin Hamiltonian for systems of extended defects over
10 nm+ length scales, including physical effects such as
vacancies, impurities, dislocations and even amorphous
materials.
For systems modelled using the nearest neighbour approximation, the atomic structures are much less restricted, allowing for simulations of material defects
such as interface roughness[13]and intermixing[21], magnetic multilayers[94, 95], disordered magnetic alloys[9],
surface[17] and finite size effects[57]. vampire includes
extensive functionality to generate such systems, the details of which are included in Appendix B. In addition to
crystallographic and molecular systems[96, 97] it is also
possible to investigate magnetic effects in disordered materials and nanoparticles by incorporating the results of
Molecular Dynamics simulations[19, 20, 98].
IV. INTEGRATION METHODS
Although the spin Hamiltonian describes the energetics of the magnetic system, it provides no information
regarding its time evolution, thermal fluctuations, or the
ability to determine the ground state for the system. In
the following the commonly utilised integration methods
for atomistic spin models are introduced.
Spin Dynamics
The first understanding of spin dynamics came from
ferromagnetic resonance experiments, where the time dependent behaviour of a magnetic materials is described
by the equation derived by Landau and Lifshitz [99], and
in the modern form given by:
_<u>∂</u>_ <u>m</u>
_∂t_ <sup>=</sup> <sup>_−γ_</sup> <sup>[</sup> <sup>m</sup> <sup>_×_</sup> <sup>H</sup> <sup>+</sup> <sup>_α_</sup> <sup>m</sup> <sup>_×_</sup> <sup>(</sup> <sup>m</sup> <sup>_×_</sup> <sup>H</sup> <sup>)]</sup> (12)
where m is a unit vector describing the direction of the
sample magnetisation, H is the effective applied acting
on the sample, _γ_ is the gyromagnetic ratio and _α_ is a phenomenological damping constant which is a property of
the material. The physical origin of the Landau-Lifshitz
(LL) equation arises due to two distinct physical effects.
The precession of the magnetisation (first term in Eq. 12)
arises due to the quantum mechanical interaction of an
atomic spin with an applied field. The relaxation of the
magnetisation (second term in Eq. 12) is an elementary
formulation of energy transfer representing the coupling
of the magnetisation to a heat bath which aligns the magnetisation along the field direction with a characteristic
coupling strength determined by _α_ . In the LL equation
the relaxation rate of the magnetisation to the field direction is a linear function of the damping parameter,
which was shown by Gilbert to yield incorrect dynamics for materials with high damping[100]. Subsequently
Gilbert introduced critical damping, with a maximum
effective damping for _α_ = 1, to arrive at the LandauLifshitz-Gilbert (LLG) equation. Although initially derived to describe the dynamics of the macroscopic magnetisation of a sample, the LLG is the standard equation
of motion used in numerical micromagnetics, describing
the dynamics of small magnetic elements.
The same equation of motion can also be applied at the
atomistic level. The precession term arises quantum mechanically for atomic spins and the relaxation term now
describes direct angular momentum transfer between the
spins and the heat bath, which includes contributions
from the lattice[101] and the electrons[102]. A distinction
between the macroscopic LLG and the atomistic LLG
now appears in terms of the effects included within the
damping parameter. In the macroscopic LLG, _α_ includes
all contributions, both intrinsic (such as spin-lattice and
spin-electron interactions) and extrinsic (spin-spin interactions arising from demagnetisation fields, surface
defects[103], doping[104] and temperature[50]), while the
atomistic LLG only includes the local intrinsic contributions. To distinguish the different definitions of damping
we therefore introduce a microscopic damping parameter
_λ_ . Although the form of the LLG is identical for atomistic and macroscopic length scales, the microstructural
detail in the atomistic model allows for calculations of
the effective damping including extrinsic effects, such as
rare-earth doping[104]. Including a microscopic damping
_λ_ the atomistic Landau-Lifshitz-Gilbert equation is given
by
<sup>_i_</sup> eff <sup>=</sup> <sup>_−_</sup> <sup><u>1</u></sup>
in the LLG equation with Langevin Dynamics then reads:
_µ_ s
_<u>∂</u>_ <u>S</u> _<u>i</u>_
eff <sup>_i_</sup> <sup>+</sup> <sup>_λ_</sup> <sup>S</sup> <sup>_i_</sup> <sup>_×_</sup> <sup>(</sup> <sup>S</sup> <sup>_i_</sup> <sup>_×_</sup> <sup>H</sup> <sup>_i_</sup>
eff <sup>_i_</sup> <sup>)]</sup> (13)
<u>S</u> _<u>i</u>_ _<u>γ</u>_
_∂t_ <sup>=</sup> <sup>_−_</sup> (1 + _λ_ <sup>2</sup> ) <sup>[</sup> <sup>S</sup> <sup>_i ×_</sup> <sup>H</sup> <sup>_i_</sup>
H <sup>_i_</sup>
_<u>∂H</u>_
_∂_ S _i_
+ H <sup>_i_</sup> th <sup>_._</sup> (16)
where S _i_ is a unit vector representing the direction of the
magnetic spin moment of site _i_, _γ_ is the gyromagnetic
ratio and H <sup>_i_</sup> eff <sup>is</sup> <sup>the</sup> <sup>net</sup> <sup>magnetic</sup> <sup>field</sup> <sup>on</sup> <sup>each</sup> <sup>spin.</sup>
The atomistic LLG equation describes the interaction of
an atomic spin moment _i_ with an effective magnetic field,
which is obtained from the negative first derivative of the
complete spin Hamiltonian, such that:
<sup>_i_</sup> eff <sup>=</sup> <sup>_−_</sup> <sup><u>1</u></sup>
H <sup>_i_</sup>
_µ_ s
Given that for each time step three Gaussian distributed random numbers are required for every spin,
efficient generation of such numbers is essential. vampire makes use the Mersenne Twister[109] uniform random number generator and the Ziggurat method[110] for
generating the Gaussian distribution.
It is useful at the this point to address the applicability of the atomistic LLG to slow and fast problems
respectively. In reality the thermal and magnetic fluctuations are correlated at the atomic level, arising from
the dynamic interactions between the atoms and lattice/electron system. These correlations may be important in terms of the thermal fluctuations experienced
by the atomistic spins. In the conventional Langevin
dynamics approach described above, the noise term is
completely uncorrelated in time and space. For short
timescales however, the thermal fluctuations are correlated in time, and so the noise is _Coloured_ [111]. The
effect of the Coloured noise is to lessen the effect of sudden temperature changes on the magnetisation dynamics. However, the existence of ultrafast magnetisation
dynamics[11, 44], and that it is driven by a thermal rather
than quantum mechanical process[112], requires that the
effective correlation time is short, with an upper bound
of around 1 fs. Given that the correlation time is close to
the integration timestep, the applicability of the LLG to
problems with timescales _≥_ 1 fs is sound. There will be
a point however where the LLG is no longer valid, where
direct simulation of the microscopic damping mechanisms will be necessary. Progress has been made in linking molecular dynamics and spin models [101, 113, 114]
which enables the simulation of spin-lattice interactions,
which is particularly relevant for slow problems, such as
conventional magnetic recording where switching occurs
over ns timescales. However, it is also essential to consider spin-electron effects[102, 115] necessary for ultrafast
demagnetisation processes, although the physical origins
are still currently debated[116].
_Time_ _Integration_ _of_ _the_ _LLG_ _Equation_
In order to determine the time evolution of a system
of spins, it is necessary to solve the stochastic LLG equation, as given by Eqs. 13 and 16, numerically. The choice
of solver is limited due to the stochastic nature of the
equations. Specifically, it is necessary to ensure convergence to the Stratonovich solution. This has been
considered in detail by Garcia-Palacios[106], but the essential requirement [117] is that the solver enforces the
conservation of the magnitude of the spin, either implicitly or by renormalisation. The most primitive integration scheme uses Euler’s method, which assumes a lin
_<u>∂H</u>_
_∂_ S _i_
(14)
where _µ_ s is the local spin moment. The inclusion of the
spin moment within the effective field is significant, in
that the field is then expressed in units of Tesla, given
a Hamiltonian in Joules. Given typical energies in the
Hamiltonian of 10 _µ_ eV - 100 meV range. This gives fields
typically in the range 0.1 - 1000 Tesla, given a spin moment of the same order as the Bohr magneton ( _µ_ B).
_Langevin_ _Dynamics_
In its standard form the LLG equation is strictly only
applicable to simulations at zero temperature. Thermal effects cause thermodynamic fluctuations of the spin
moments which at sufficiently high temperatures are
stronger than the exchange interaction, giving rise to the
ferromagnetic-paramagnetic transition. The effects of
temperature can be taken into account by using Langevin
Dynamics, an approach developed by Brown [105]. The
basic idea behind Langevin Dynamics is to assume that
the thermal fluctuations on each atomic site can be represented by a Gaussian white noise term. As the temperature is increased, the width of the Gaussian distribution increases, thus representing stronger thermal fluctuations. The established Langevin Dynamics method is
widely used for spin dynamics simulations and incorporates an effective thermal field into the LLG equation to
simulate thermal effects [106–108]. The thermal fluctuations are represented by a gaussian distribution Γ ( _t_ ) in
three dimensions with a mean of zero. At each time step
the instantaneous thermal field on each spin _i_ is given by:
H <sup>_i_</sup>
~~�~~
<u>2</u> _<u>λk</u>_ <u>B</u> _<u>T</u>_
(15)
_γµ_ s∆ _t_
<sup>_i_</sup> th <sup>=</sup> <sup>Γ</sup> <sup>(</sup> <sup>_t_</sup> <sup>)</sup>
where _k_ B is the Boltzmann constant, _T_ is the system
temperature, _λ_ is the Gilbert damping parameter, _γ_ is
the absolute value of the gyromagnetic ratio, _µ_ s is the
magnitude of the atomic magnetic moment, and ∆ _t_ is the
integration time step. The effective field for application
## a b
1.0
0.5
0.0
-0.5
-1.0
1.0
0.5
0.0
-0.5
-1.0
## c
Sx
Sz -1.0
0 10 20 30 40 50
Time (ps)
## d
2.0
λ = 0.1
1.0
0.0
-1.0
Sx
Sz -2.0
0 10 20 30 40 50
Time (ps)
λ = 0.05
Sx
Sz
0 20 40 60 80 100
Time (ps)
λ = 0.05
Sx
Sz
0 20 40 60 80 100
Time (ps)
λ = 0.1
1.0
0.5
0.0
-0.5
FIG. 1. Time evolution of a single isolated spin in an applied field of 10T and time step of 1 fs. magnetisation traces a and
c show relaxation of the magnetisation to the _z_ -direction and precession of the _x_ component (the _y_ -component is omitted for
clarity) for damping constants _λ_ = 0 _._ 1 and _λ_ = 0 _._ 05 respectively. The points are the result of direction integration of the
LLG and the lines are the analytical solution plotted according to Eq. 21. Panels b and d show the corresponding error traces
(difference between the expected and calculated spin components) for the two damping constants for a and c respectively. For
_λ_ = 0 _._ 1 the error is below 10 <sup>_−_</sup> <sup>6</sup>, while for lower damping the numerical error increases significantly due to the increased number
of precessions, highlighting the damping dependence of the integration time step. (Colour online).
ear change in the spin direction in a single discretised
time step, ∆ _t_ . An improved integration scheme, known
as the Heun method [106] is commonly used, which allows the use of larger time steps because of its use of a
predictor-corrector algorithm. Other more advanced integration schemes have been suggested, such as the midpoint method rule[118] and modified predictor-corrector
midpoint schemes[104, 119]. The principal advantage of
the midpoint scheme is that the length of the spin vector
is preserved during the integration which allows larger
time steps to be used. However for the midpoint scheme
the significant increase in computational complexity outweighs the benefits of larger time steps[119]. Modified
predictor-corrector schemes[104, 119] reduce the computational complexity of the midpoint scheme, but with
a loss of accuracy, particularly in the time-dependent
dynamics[104]. For valid integration of the stochastic LLG equation it is also necessary for the numerical scheme to converge to the Stratonovich solution[106,
120]. Although proven for the midpoint and Heun numerical schemes, the validity of the predictor-corrector
midpoint schemes for the stochastic LLG have yet to be
confirmed. On balance the Heun scheme, despite its relative simplicity, is sufficiently computationally efficient
that it is still the most widely used integration scheme
for stochastic magnetisation dynamics, and so we proceed
to describe its implementation in detail.
In the Heun method, the first (predictor) step calculates the new spin direction, S <sup>_′_</sup> _i_ <sup>,</sup> <sup>for a given effective field</sup>
H <sup>_i_</sup> eff <sup>by</sup> <sup>performing</sup> <sup>a</sup> <sup>standard</sup> <sup>Euler</sup> <sup>integration</sup> <sup>step,</sup>
given by:
_<u>γ</u>_
∆ S = _−_ (1 + _λ_ <sup>2</sup> ) <sup>[</sup> <sup>S</sup> <sup>_i ×_</sup> <sup>H</sup> <sup>_i_</sup>
eff <sup>_i_</sup> <sup>+</sup> <sup>_λ_</sup> <sup>S</sup> <sup>_i_</sup> <sup>_×_</sup> <sup>(</sup> <sup>S</sup> <sup>_i_</sup> <sup>_×_</sup> <sup>H</sup> <sup>_i_</sup>
eff <sup>_i_</sup> <sup>)]</sup> <sup>_._</sup> (18)
S <sup>_′_</sup> _i_ <sup>=</sup> <sup>S</sup> <sup>_i_</sup> <sup>+ ∆</sup> <sup>S</sup> <sup>∆</sup> <sup>_t_</sup> (17)
where
The Heun scheme does not preserve the spin length and
so it is essential to renormalise the spin unit vector length
S _i_ after both the predictor and corrector steps to ensure
numerical stability and convergence to the Stratanovich
solution. After the first step the effective field must be
re-evaluated as the intermediate spin positions have now
changed. It should be noted that the random thermal
field does not change between steps. The second (corrector) step then uses the predicted spin position and
revised effective field H <sup>_i_</sup> eff <sup>_′_</sup> <sup>to</sup> <sup>calculate</sup> <sup>the</sup> <sup>final</sup> <sup>spin</sup> <sup>po-</sup>
sition, resulting in a complete integration step given by:
1
0.8
0.6
0.4
0.2
0
_T_ / _T_ c = 0.000
0.310
0.932
1.086
1.553
10 <sup>-18</sup> 10 <sup>-17</sup> 10 <sup>-16</sup> 10 <sup>-15</sup> 10 <sup>-14</sup> 10 <sup>-13</sup>
Timestep (s)
<sup>_t_</sup> _i_ <sup>+∆</sup> <sup>_t_</sup> = S _i_ + <sup><u>1</u></sup>
S <sup>_t_</sup> _i_ <sup>+∆</sup> <sup>_t_</sup>
<sup><u>1</u></sup> (19)
2 <sup>[∆</sup> <sup>S</sup> <sup>+ ∆</sup> <sup>S</sup> <sup>_′_</sup> <sup>] ∆</sup> <sup>_t_</sup>
where
∆ S <sup>_′_</sup> = _−_ (1 + _<u>γ λ</u>_ <sup>2</sup> ) <sup>[</sup> <sup>S</sup> _i_ <sup>_′_</sup>
_i_ <sup>_′_</sup> <sup>_×_</sup> <sup>H</sup> <sup>_i_</sup> eff <sup>_′_</sup>
<sup>_′_</sup> _i_ <sup>_×_</sup> <sup>(</sup> <sup>S</sup> <sup>_′_</sup> _i_
<sup>_i_</sup> eff <sup>_′_</sup> <sup>+</sup> <sup>_λ_</sup> <sup>S</sup> <sup>_′_</sup> _i_
<sup>_′_</sup> _i_ <sup>_×_</sup> <sup>H</sup> eff <sup>_i′_</sup>
eff <sup>_i′_</sup> <sup>)]</sup> <sup>_._</sup> <sup>(20)</sup>
FIG. 2. Time step dependence of the mean magnetisation
for different reduced temperatures for the heun integration
scheme. Low ( _T_ _<<_ _T_ c) and high ( _T_ _>>_ _T_ c) temperatures
integrate accurately with a 1fs timestep, but in the vicinity
of _T_ c a timestep of around 10 <sup>_−_</sup> <sup>16</sup> is required for this system.
(Colour online.)
sequence of this is that for atomistic models the most
difficult region to integrate is in the immediate vicinity
of the Curie point. Errors in the integration of the system
will be apparent from a non-converged value for the average magnetisation. This gives a relatively simple case
which can then be used to test the stability of integration schemes for the stochastic LLG model. A plot of
the mean magnetisation as a function of temperature is
shown in Fig. 2 for a representative system consisting of
22 _×_ 22 _×_ 22 unit cells with generic material parameters
of FePt with an fcc crystal structure, nearest neighbour
exchange interaction of _Jij_ = 3 _._ 0 _×_ 10 <sup>_−_</sup> <sup>21</sup> J/link and uniaxial anisotropy of 1 _._ 0 _×_ 10 <sup>_−_</sup> <sup>23</sup> J/atom. The system is
first equilibrated for 10 ps at each temperature and then
the mean magnetisation is calculated over a further 10
ps.
First, comparing the effect of temperature on the minimum allowable time step, the data show that for low
temperatures reasonably large time steps of 1 _×_ 10 <sup>_−_</sup> <sup>15</sup>
give the correct solution of the LLG equations, while near
the Curie point (690 K) the deviations from the correct
equilibrium value are significant. Consequently for simulations studying high temperature reversal processes time
steps of 1 _×_ 10 <sup>_−_</sup> <sup>16</sup> s are necessary. It should be noted that
the time steps which can be used are material dependent
- specifically if a material with higher Curie temperature
is used then the usable time steps will be correspondingly
lower due to the increased exchange field.
From a practical perspective a significant advantage of
the spin dynamics method is the ability to parallelise the
integration system by domain decomposition, details of
which are given in Appendix C. This allows the efficient
simulation of relatively large systems consisting of tens
or hundreds of grains or nano structures with dimensions
greater than 100 nm for nanosecond timescales, with typ
The predictor step of the integration is performed on
every spin in the system before proceeding to evaluate the
corrector step for every spin. This is then repeated many
times so that the time evolution of the system can be simulated. Although the Heun scheme was derived specifically for a stochastic equation with multiplicative noise,
in the absence of the noise term the Heun method reduces
to a standard second order Runge-Kutta method[121]. In
order to test the implementation of the Heun integration
scheme, it is possible to compare the calculated result
with the analytical solution for the LLG. For the simple case of a single spin initially along the _x_ -axis in an
applied field along the _z_ -axis, the time evolution[122] is
given by:
- _<u>λγH</u>_
_Sx_ ( _t_ ) = sech 1 + _λ_ <sup>2</sup> <sup>_t_</sup> cos
- _<u>λγH</u>_
_Sy_ ( _t_ ) = sech 1 + _λ_ <sup>2</sup> <sup>_t_</sup> sin
- _<u>γH</u>_ 1 + _λ_ <sup>2</sup> <sup>_t_</sup>
- _<u>γH</u>_ 1 + _λ_ <sup>2</sup> <sup>_t_</sup>
- _<u>λγH</u>_
_Sz_ ( _t_ ) = tanh 1 + _λ_ <sup>2</sup> <sup>_t_</sup> _._ (21)
The expected and simulated time evolution for a single
spin with _H_ = 10T, ∆ _t_ = 1 _×_ 10 <sup>_−_</sup> <sup>15</sup> s and _λ_ = 0 _._ 1 _,_ 0 _._ 05 is
plotted in Fig 1. Superficially the simulated and expected
time evolution agree very well, with errors around 10 <sup>_−_</sup> <sup>6</sup> .
The error gives a characteristic trace the size and shape
of which is indicative of a correct implementation of the
Heun integration scheme.
Ideally one would like to use the largest time step possible so as to simulate systems for the longest time. For
micromagnetic simulations at zero temperature, the time
step is a well defined quantity since the largest field (usually the exchange term) essentially defines the precession
frequency. However, for atomistic simulations using the
stochastic LLG equation with Langevin dynamics, the
effective field becomes temperature dependent. The con
ical numbers of spins in the range 10 <sup>6</sup> _−_ 10 <sup>8</sup> .
Monte Carlo Methods
While spin dynamics are particularly useful for obtaining dynamic information about the magnetic properties
or reversal processes for a system, they are often not the
optimal method for determining the equilibrium properties, for example the temperature dependent magnetisation. The Monte Carlo Metropolis algorithm[123] provides a natural way to simulate temperature effects where
dynamics are not required due to the rapid convergence
to equilibrium and relative ease of implementation.
The Monte Carlo metropolis algorithm for a classical
spin system proceeds as follows. First a random spin _i_
is picked and its initial spin direction S _i_ is changed randomly to a new trial position S <sup>_′_</sup> _i_ <sup>,</sup> <sup>a</sup> <sup>so-called</sup> <sup>trial</sup> <sup>move.</sup>
The change in energy ∆ _E_ = _E_ ( S <sup>_′_</sup> _i_ <sup>)</sup> <sup>_−_</sup> <sup>_E_</sup> <sup>(</sup> <sup>S</sup> <sup>_i_</sup> <sup>)</sup> <sup>between</sup> <sup>the</sup>
old and new positions is then evaluated, and the trial
move is then accepted with probability
a b c
FIG. 3. Schematic showing the three principal Monte Carlo
moves: ( a ) spin flip; ( b ) gaussian; and ( a ) random. (Colour
online.)
ceptance rate. The Hinzke-Nowak method utilises three
distinct types of move: spin-flip, Gaussian and random,
as illustrated schematically in Fig. 3.
The spin-flip move simply reverses the direction of the
spin such that S <sup>_′_</sup> _i_ <sup>=</sup> <sup>_−_</sup> <sup>S</sup> <sup>_i_</sup> <sup>to explicitly allow the nucleation</sup>
of a switching event. The spin flip move is identical to
a move in Ising spin models. It should be noted that
spin flip moves do not by themselves satisfy ergodicity
in the classical spin model, since states perpendicular to
the initial spin direction are inaccessible. However, when
used in combination with other ergodic trial moves this
is quite permissible. The Gaussian trial move takes the
initial spin direction and moves the spin to a point on the
unit sphere in the vicinity of the initial position according
to the expression
_P_ = exp
- _−_ <sup><u>∆</u></sup> <sup>_<u>E</u>_</sup>
_k_ B _T_
_._ (22)
by comparison with a uniform random number in the
range 0-1. Probabilities greater than 1, corresponding
with a reduction in energy, are accepted unconditionally.
This procedure is then repeated until _N_ trial moves have
been attempted, where _N_ is the number of spins in the
complete system. Each set of _N_ trial moves comprises a
single Monte Carlo step.
The nature of the trial move is important due to two
requirements of any Monte Carlo algorithm: ergodicity
and reversibility. Ergodicity expresses the requirement
that all possible states of the system are accessible, while
reversibility requires that the transition probability between two states is invariant, explicitly _P_ ( S _i_ _→_ S <sup>_′_</sup> _i_ <sup>)</sup> <sup>=</sup>
_P_ ( S <sup>_′_</sup> _i_ <sup>_→_</sup> <sup>S</sup> <sup>_i_</sup> <sup>).</sup> <sup>From</sup> <sup>Eq.</sup> <sup>22</sup> <sup>reversibility</sup> <sup>is</sup> <sup>obvious</sup> <sup>since</sup>
the probability of a spin change depends only on the initial and final energy. Ergodicity is easy to satisfy by
moving the selected spin to a random position on the
unit sphere, however this has an undesirable consequence
at low temperatures since large deviations of spins from
the collinear direction are highly improbable due to the
strength of the exchange interaction. Thus at low temperatures a series of trial moves on the unit sphere will
lead to most moves being rejected. Ideally a move acceptance rate of around 50% is desired, since very high
and very low rates require significantly more Monte Carlo
steps to reach a state representative of true thermal equilibrium.
One of the most efficient Monte Carlo algorithms
for classical spin models was developed by Hinzke and
Nowak[124], involving a combinational approach using a
mixture of different trial moves. The principal advantage
of this method is the efficient sampling of all available
phase space while maintaining a reasonable trial move ac
<sup>_′_</sup> _i_ <sup>=</sup> <sup><u>S</u></sup> <sup>_<u>i</u>_</sup> <sup><u>+</u></sup> <sup>_<u>σ</u>_</sup> <sup><u>g</u></sup> <sup><u>Γ</u></sup>
S <sup>_′_</sup>
<sup><u>S</u></sup> <sup>_<u>i</u>_</sup> <sup><u>+</u></sup> <sup>_<u>σ</u>_</sup> <sup><u>g</u></sup> <sup><u>Γ</u></sup> (23)
_|_ S _i_ + _σ_ g Γ _|_
where Γ is a Gaussian distributed random number and
_σ_ g is the width of a cone around the initial spin S _i_ . After generating the trial position S <sup>_′_</sup> _i_ <sup>the</sup> <sup>position</sup> <sup>is</sup> <sup>nor-</sup>
malised to yield a spin of unit length. The choice of a
Gaussian distribution is deliberate since after normalisation the trial moves have a uniform sampling over the
cone. The width of the cone is generally chosen to be
temperature dependent and of the form
�1 _/_ 5
_._ (24)
_σ_ g = <sup><u>2</u></sup>
25
- _<u>k</u>_ <u>B</u> _<u>T</u>_
_µ_ B
The Gaussian trial move thus favors small angular
changes in the spin direction at low temperatures, giving
a good acceptance probability for most temperatures.
The final random trial move picks a random point on
the unit sphere according to
<sup>_′_</sup> _i_ <sup>=</sup> <sup><u>Γ</u></sup>
_|_ Γ
S <sup>_′_</sup>
<sup><u>Γ</u></sup> (25)
_|_ Γ _|_
which ensures ergodicity for the complete algorithm and
ensures efficient sampling of the phase space at high temperatures. For each trial step one of these three trial
moves is picked randomly, which in general leads to good
algorithmic properties.
a _z_ b _z_
_z_
b
Monte Carlo
LLG
m(T)
_T_ c
0 200 400 600 800 1000
Temperature (K)
_y_
_y_
_x_
_x_
FIG. 4. Visualisation of Montecarlo sampling on the unit
sphere for ( a ) random and ( b ) Gaussian sampling algorithms
at _T_ = 10 K. The dots indicate the trial moves. The random
algorithm shows a uniform distribution on the unit sphere,
and no preferential biasing along the axes. The Gaussian trial
moves are clustered around the initial spin position, along the
_z_ -axis. (Colour online.)
To verify that the random sampling and Gaussian trial
moves give the expected behaviour, a plot of the calculated trial moves on the unit sphere for the different algorithms is shown in Fig. 4. The important points are that
the random trial move is uniform on the unit sphere, and
that the Gaussian trial move is close to the initial spin
direction, along the _z_ -axis in this case.
At this point it is worthwhile considering the relative
efficiencies of Monte Carlo and spin dynamics for calculating equilibrium properties. Fig. 5 shows the simulated
temperature dependent magnetisation for a test system
using both LLG spin dynamics and Monte Carlo methods. Agreement between the two methods is good, but
the spin dynamics simulation takes around twenty times
longer to compute due to the requirements of a low time
step and slower convergence to equilibrium. However,
Monte Carlo algorithms are notoriously difficult to parallelise, and so for larger systems LLG spin dynamic simulations are generally more efficient than Monte Carlo
methods.
V. TEST SIMULATIONS
Having outlined the important theoretical and computational methods for the atomistic simulation of magnetic
materials, we now proceed to detail the tests we have refined to ensure the correct implementation of the main
components of the model. Such tests are particularly
helpful to those wishing to implement these methods.
Similar tests developed for micromagnetic packages[125]
have proven an essential benchmark for the implementation of improved algorithms and codes with different
capabilities but the same core functionality.
1.0
0.8
0.6
0.4
0.2
0.0
FIG. 5. Comparative simulation of temperature dependent
magnetisation for Monte Carlo and LLG simulations. Simulation parameters assume a nearest neighbour exchange
of 6 _._ 0 _×_ 10 <sup>_−_</sup> <sup>21</sup> J/link with a simple cubic crystal structure, periodic boundary conditions and 21952 atoms. The
Monte Carlo simulations use 50,000 equilibration and averaging steps, while the LLG simulations use 5,000,000 equilibration and averaging steps with critical damping ( _λ_ = 1)
and a time step of 0.01 fs. The value of _T_ c _∼_ 625 _K_ calculated from Eq. 9 is shown by the dashed vertical line. The
temperature-dependent magnetisation is fitted to the expression _m_ ( _T_ ) = (1 _−_ _T/T_ c) <sup>_β_</sup> (shown by the solid line) which
yields a fitted _T_ c = 631 _._ 82 K and and exponent _β_ = 0 _._ 334297.
(Colour online.)
Angular variation of the Coercivity
Assuming a correct implementation of an integration
scheme as described in the previous section, the first test
case of interest is the correct implementation of uniaxial
magnetic anisotropy. For a single spin in an applied field
and at zero temperature, the behaviour of the magnetisation is essentially that of a Stoner-Wohlfarth particle,
where the angular variation of the coercivity, or reversing field, is well known[126]. This test serves to verify the
static solution for the LLG equation by ensuring an easy
axis loop gives a coercivity of _Hk_ = 2 _k_ u _/µ_ s as expected
analytically. For this problem the Hamiltonian reads
_H_ = _−k_ u _Sz_ <sup>2</sup> <sup>_−_</sup> <sup>_µ_</sup> <sup>s</sup> <sup>S</sup> <sup>_·_</sup> <sup>H</sup> <sup>app</sup> (26)
where _k_ u is the on-site uniaxial anisotropy constant and
H app is the external applied field. The spin is initialised
pointing along the applied field direction, and then the
LLG equation is solved for the system, until the net
torque on the system S _×_ H eff _≤_ 10 <sup>_−_</sup> <sup>6</sup> T, essentially a
condition of _local_ minimum energy.
The field strength is decreased from saturation in steps
of 0.01 _H/Hk_ and solved again until the same condition
is reached. A plot of the calculated alignment of the
magnetisation to the applied field ( S _·_ H app) for different
angles from the easy axis is shown in Fig. 6. The cal
1.0
0.5
0.0
-0.5
-1.0
0 10 45
80
90
-2 -1 0 1 2
Reduced coercivity _H_ / _H_ k
1.0
0.8
0.6
0.4
0.2
0.0
_k_ u/ _k_ B _T_ = 10.0
_k_ u/ _k_ B _T_ = 1.0
_k_ u/ _k_ B _T_ = 0.1
0 π /4 π /2 3 π /4 π
Angle from easy axis, θ (rad)
FIG. 6. Plot of alignment of magnetisation with the applied
field for different angles of from the easy axis. The 0 <sup>_◦_</sup> and 90 <sup>_◦_</sup>
loops were calculated for very small angles from the easy and
hard axes respectively, since in the perfectly aligned case the
net torque is zero and no change of the spin direction occurs.
(Colour online.)
culated hysteresis curve conforms exactly to the StonerWohlfarth solution.
Boltzmann distribution for a single spin
To quantitatively test the thermal effects in the model
and the correct implementation of the stochastic LLG or
Monte Carlo integrators, the simplest case is that of the
Boltzmann distribution for a single spin with anisotropy
(or applied field), where the probability distribution is
characteristic of the temperature and the anisotropy energy. The Boltzmann distribution is given by:
FIG. 7. Calculated angular probability distribution for a single spin with anisotropy for different effective temperatures
_k_ u _/k_ B _T_ . The lines show the analytic solution given by Eq. 27.
(Colour online.)
Curie temperature
Tests such as the Stoner-Wohlfarth hysteresis or Boltzmann distribution are helpful in verifying the mechanical
implementation of an algorithm for a single spin, but interacting systems of spins present a significant challenge
in that no analytical solutions exist. Hence it is necessary to calculate some well defined macroscopic property
which ensures the correct implementation of interactions
in a system. The Curie temperature _T_ c of a nanoparticle
is primarily determined by the strength of the exchange
interaction between spins and so makes an ideal test of
the exchange interaction. As discussed previously the
bulk Curie temperature is related to the exchange coupling by the mean field expression given in Eq. 9. However, for nanoparticles with a reduction in coordination
number at the surface and a finite number of spins, the
Curie temperature and _criticality_ of the temperature dependent magnetisation will vary significantly with varying size[57].
To investigate the effects of finite size and reduction
in surface coordination on the Curie temperature, the
equilibrium magnetisation for different sizes of truncated
octahedron nanoparticles was calculated as a function of
temperature. The Hamiltonian for the simulated system
is
_P_ ( _θ_ ) _∝_ sin _θ_ exp
_−_ <sup>_<u>k</u>_</sup> <sup><u>u sin2</u></sup> <sup>_<u>θ</u>_</sup>
_k_ B _T_
(27)
where _θ_ is the angle from the easy axis. The spin is
initialised along the easy axis direction and the system is
allowed to evolve for 10 <sup>8</sup> time steps after equilibration,
recording the angle of the spin to the easy axis at each
time. Since the anisotropy energy is symmetric along
the easy axis, the probability distribution is reflected and
summed about _π/_ 2, since at low temperatures the spin
is confined to the upper well ( _θ_ _<_ _π/_ 2). Fig. 7 shows
the normalised probability distribution for three reduced
temperatures.
The agreement between the calculated distributions
is excellent, indicating a correct implementation of the
stochastic LLG equation.
where _Jij_ = 5 _._ 6 _×_ 10 <sup>_−_</sup> <sup>21</sup> J/link, and the crystal structure
is face-centred-cubic, which is believed to be representative of Cobalt nanoparticles. Given the relative strength
of the exchange interaction, anisotropy generally has a
negligible impact on the Curie temperature of a material,
and so the omission of anisotropy from the Hamiltonian
_H_ = _−_
_i̸_ = _j_
_Jij_ S _i ·_ S _j_ (28)
1.0
0.8
0.6
0.4
0.2
0.0
1 nm
2 nm
3 nm
4 nm
5 nm
10 nm
0 200 400 600 800 1000 1200 1400 1600
Temperature (K)
FIG. 8. Calculated temperature dependent magnetisation
and Curie temperature for truncated octahedron nanoparticles with different size. A visualisation of a 3nm diameter
particle is inset. (Colour online.)
is purely for simplicity. The system is simulated using
the Monte Carlo method with 10,000 equilibration and
20,000 averaging steps. The system is heated sequentially
in 10K steps, with the final state of the previous temperature taken as the starting point of the next temperature
to minimise the number of steps required to reach thermal equilibrium. The mean temperature dependent magnetisation for different particle sizes is plotted in Fig. 8.
From Eq. 9 the expected Curie temperature is 1282K,
which is in agreement with the results for the 10 nm diameter nanoparticle. For smaller particle sizes the magnetic behaviour close to the Curie temperature loses its
criticality, making _TC_ difficult to determine. Traditionally the Curie point is taken as the maximum of the gradient _dm/dT_ [57], however this significantly underestimates
the actual temperature at which magnetic order is lost
(which is, by definition, the Curie temperature). Other
estimates of the Curie point such as the divergence in
the susceptibility are probably a better estimate for finite systems, but this is beyond the scope of the present
article. Another effect visible for very small particle sizes
is the appearance of a magnetisation above the Curie
point, an effect first reported by Binder[127]. This arises
from local moment correlations which exist above _TC_ . It
is an effect only observable in nanoparticles where the
system size is close to the magnetic correlation length.
Demagnetising fields
For systems larger than the single domain limit[33] and
systems which have one dimension significantly different
from another, the demagnetisation field can have a dominant effect on the macroscopic magnetic properties. In
micromagnetic formalisms implemented in software packages such as oommf[37], magpar[38] and nmag[39], the
calculation of the demagnetisation fields is calculated ac
curately due to the routine simulation of large systems
where such fields dominate. Due to the long-ranged interaction the calculation of the demagnetisation field generally dominates the compute time and so computational
methods such as the fast-fourier-transform[128, 129] and
multipole expansion[130] have been developed to accelerate their calculation.
In large-scale atomistic calculations, it is generally sufficient to adopt a micromagnetic discretisation for the
demagnetisation fields, since they only have a significant effect on nanometer length scales[7]. Additionally
due to the generally slow variation of magnetisation, the
timescales associated with the changes in the demagnetisation field are typically much longer than the time step
for atomistic spins. Here we present a modified finite difference scheme for calculating the demagnetisation fields,
described as follows.
The complete system is first discretised into macrocells with a fixed cell size, each consisting of a number of
atoms, as shown in Fig. 9(a). The cell size is freely adjustable from atomistic resolution to multiple unit cells
depending on the accuracy required. The position of each
macrocell _p_ mc is determined from the magnetic ‘centre of
mass’ given by the expression
Depending on the particulars of the system, the macrocell
moments can vary significantly depending on position,
composition and temperature. At elevated temperatures
close to the Curie point, the macrocell magnetisation
becomes small, and so the effects of the demagnetising
field are much less important. Similarly in compensated
ferrimagnets consisting of two competing sublattices the
overall macrocell demagnetisation can also be small again
leading to a reduced influence of the demagnetising field.
The demagnetisation field within each macrocell _p_ is
_p_ <sup>_α_</sup> mc <sup>=</sup>
<u>�</u> _n_
_<u>i</u>_ <sup>_<u>µ</u>_</sup> <sup><u>s</u></sup> <sup>_<u>p</u>_</sup> _<u>i</u>_ <sup>_α_</sup>
<u>�</u> _<u>ni</u>_ <sup>_µ_</sup> <sup>s</sup>
(29)
where _n_ is the number of atoms in the macrocell and
_α_ represents the spatial dimension _x, y, z_ . For a magnetic material with the same magnetic moment at each
site, Eq. 29 corrects for partial occupation of a macrocell
by using the mean atomic position as the origin of the
macrocell dipole, as shown in Fig. 9(b). For a sample consisting of two materials with different atomic moments,
the ‘magnetic centre of mass’ is closer to the atoms with
the higher atomic moments, as shown in Fig. 9(c). This
modified micromagnetic scheme gives a good approximation of the demagnetisation field without having to use
computationally costly atomistic resolution calculation of
the demagnetisation field.
The total _moment_ in each macrocell _m_ mc is calculated
from the vector sum of the atomic moments within each
cell, given by
_m_ <sup>_α_</sup> mc <sup>=</sup>
_n_
_i_
_µ_ s _Si_ <sup>_α._</sup> (30)
a
b
c
netisation field is a reasonable approximation. The selfdemagnetisation term is often neglected in the literature,
but in fact is essential when calculating the field inside
a magnetic material. Once the demagnetisation field is
calculated for each macrocell, this is applied uniformly
to all atoms as an effective field within the macrocell. It
should be noted however that the macrocell size cannot
be larger than the smallest sample dimension, otherwise
significant errors in the calculation of the demagnetising
field will be incurred.
The volume of the macrocell _V_ mc is an effective volume
determined from the number of atoms in each cell and
given by
_V_ mc = _n_ <sup>a</sup>
<sup>a</sup> mc <sup>_V_</sup> <sup>atom</sup> <sup>=</sup> <sup>_n_</sup> <sup>a</sup>
mc
_<u>V</u>_ <u>uc</u>
_n_ <sup>a</sup> uc
(32)
where _n_ <sup>a</sup>
<sup>a</sup> mc <sup>is</sup> <sup>the</sup> <sup>number</sup> <sup>of</sup> <sup>atoms</sup> <sup>in</sup> <sup>the</sup> <sup>macrocell,</sup> <sup>_n_</sup> <sup>a</sup>
Unpopulated lattice point
Populated lattice point
Center of mass
Small magnetic moment
Large magnetic moment
mc <sup>is</sup> <sup>the</sup> <sup>number</sup> <sup>of</sup> <sup>atoms</sup> <sup>in</sup> <sup>the</sup> <sup>macrocell,</sup> <sup>_n_</sup> uc <sup>a</sup>
is the number of atoms in the unit cell and _V_ uc is the volume of the unit cell. The macrocell volume is necessary
to determine the magnetisation (moment per volume) in
the macrocell. For unit cells much smaller than the system size, Eq. 32 is a good approximation, however for
a large unit cell with significant free space, for example
a nanoparticle in vacuum, the free space contributes to
the effective volume which reduces the effective macrocell
volume.
FIG. 9. a ). Visualisation of the macrocell approach used to
calculate the demagnetisation field, with the system discretised into cubic macrocells. Each macrocell consists of several atoms, shown schematically as cones. b ). Schematic of
the macrocell discretisation at the curved surface of a material, indicated by the dashed line. The mean position of the
atoms within the macrocell defines the centre of mass where
the effective macrocell dipole is located. c ). Schematic of
a macrocell consisting of two materials with different atomic
moments. Since the magnetisation is dominated by one material, the magnetic centre of mass moves closer to the material
with the higher atomic moments. (Colour online.)
given by
<sup>_<u>µ</u>_</sup> <sup><u>0</u></sup> <u>m</u> <sup>_p_</sup>
3 _V_ mc <sup>_<u>p</u>_</sup>
<u>mc</u>
_V_ mc <sup>_<u>p</u>_</sup>
mc
<sup>mc</sup> <sup>_,p_</sup>
demag <sup>=</sup> <sup>_<u>µ</u>_</sup> <sup><u>0</u></sup>
4 _π_
H <sup>mc</sup> <sup>_,p_</sup>
4 _π_
<sup>�</sup>
_p_ = _̸_ _q_
<u>3(</u> <u>m</u> <sup>_q_</sup> <u>mc</u> <sup>_<u>·</u>_</sup> <sup><u>ˆ</u></sup> <sup><u>r</u></sup> <sup><u>)ˆ</u></sup> <sup><u>r</u></sup> <sup>_<u>−</u>_</sup> <sup><u>m</u></sup> <u>mc</u> <sup>_q_</sup>
_r_ <sup>3</sup>
_−_ <sup>_<u>µ</u>_</sup> <sup><u>0</u></sup>
(31)
where _r_ is the separation between dipoles _p_ and _q_, ˆ r is a
unit vector in the direction _p →_ _q_, and _V_ mc <sup>_p_</sup> <sup>is the volume</sup>
of the macrocell _p_ . The first term in Eq. 31 is the usual
dipole term arising from all _other_ macrocells in the system, while the second term is the self-demagnetisation
field of the macrocell, taken here as having a demagnetisation factor <sup>1</sup> _/_ 3. Strictly this is applicable only for
the field at the centre of a cube. However, the nonuniformity of the field inside a uniformly magnetised cube
is not large and the assumption of a uniform demag
_Demagnetising_ _field_ _of_ _a_ _platelet_
To verify the implementation of the demagnetisation
field calculation it is necessary to compare the calculated fields with some analytic solution. Due to the complexity of demagnetisation fields analytical solutions are
only available for simple geometric shapes such cubes
and cylinders[131], however for an infinite perpendicularly magnetised platelet the demagnetisation field approaches the magnetic saturation _−µ_ 0 _M_ . To test this
limit we have calculated the demagnetising field of a 20
nm _×_ 20 nm _×_ 1 nm platelet as shown in Fig. 10. In
the centre of the film agreement with the analytic value
is good, while at the edges the demagnetisation field is
reduced as expected.
_Performance_ _characteristics_
In micromagnetic simulations, calculation of the demagnetisation field usually dominates the runtime of the
code and generally it is preferable to have as large a cell
size as possible. For atomistic calculations however, additional flexibility in the frequency of updates of the demagnetisation field is permitted due to the short time
steps used and the fact that the magnetisation is generally a slowly varying property.
To investigate the effects of different macrocell sizes
and the time taken between updates of the demagnetisa
m
Distance from edge: 0 nm
9 nm
10 nm
-µ0 _M_ s
1.0
0.0
-1.0
-2.0
-10 -5 0 5 10
Position from center (nm)
FIG. 10. Calculated cross-section of the demagnetisation
fields in a 20 nm _×_ 20 nm _×_ 1 nm platelet (visualisation inset)
with magnetisation perpendicular to the film plane. A macrocell size of 2 unit cells is used. In the centre of the film the
calculated demagnetisation field is _−_ 2 _._ 236 T which compares
well to the analytic solution of H demag = _−µ_ 0 _M_ = _−_ 2 _._ 18 T.
Note that the 2D grid used slightly overestimates the demagnetisation field. (Colour online.)
tion field we have simulated hysteresis loops of a nanodot
of diameter 40 nm and height of 1.4 nm. Fig 11(a) shows
hysteresis loops calculated for different macrocell sizes
for the nanodot. For most cell sizes the results of the
calculation agree quite well, however, for a cell size of 4
unit cells, the calculated coercivity is significantly larger,
owing to the creation of a flat macrocell (with dimensions
4 _×_ 4 _×_ 1 unit cells). This illustrates that for systems with
small dimensions, extra care must be taken when specifying the macro cell size in order to avoid non-cubic cells.
In general, the problem with asymmetric macrocells is
not trivial to solve within the finite difference formalism,
since the problem arises due to a modification of both the
intracell and intercell contributions to the demagnetising
field.
Fig 11(b) shows the runtime for a single update of the
demagnetising field on a single CPU for different macrocell size discretisations. Noting the logarithmic scale
for the simulation time, single unit cell discretisations
are computationally costly while not giving significantly
better results than larger macrocell discretisations. Although the demagnetisation field calculation is an _n_ <sup>2</sup> mc
problem, it is possible to pre-calculate the distances between the macrocells at the cost of increased memory
usage. Due to the computational cost of calculating the
position vectors, this method is often much faster than
the brute force calculation. However, due to the fact that
memory usage increases proportionally to _n_ <sup>2</sup> mc <sup>,</sup> <sup>fine</sup> <sup>dis-</sup>
cretisations for large systems can require many GBs of
memory.
By collating terms in Eq. 31 it is possible to construct
the following matrix M _pq_ for each pairwise interaction:
(3 _rxrx −_ 1) _/r_ <sup>3</sup>
(33)
M _pq_ =
1) _/rpq_ <sup>3</sup> <sup>_−_</sup> <sup>1</sup> <sup>_/_</sup> <sup>3</sup> 3 _rxry_ 3 _rxrz_
3 _rxry_ (3 _ryry −_ 1) _/rpq_ <sup>3</sup> <sup>_−_</sup> <sup>1</sup> <sup>_/_</sup> <sup>3</sup> 3 _ryrz_
3 _rxry_ (3 _ryry −_ 1) _/rpq_ <sup>3</sup> <sup>_−_</sup> <sup>1</sup> <sup>_/_</sup> <sup>3</sup> 3 _ryrz_
3 _rxrz_ 3 _ryrz_ (3 _rzrz_ _−_ 1) _/r_ <sup>3</sup>
_pq_ <sup>3</sup> <sup>_−_</sup> <sup>1</sup> <sup>_/_</sup> <sup>3)</sup>
where _rx_, _ry_, _rz_ are the components of the unit vector in
the direction _p_ _→_ _q_, and _rpq_ is the separation of macrocells. Since the matrix is symmetric along the diagonal
only 6 numbers need to be stored in memory. The total
demagnetisation field for each macrocell _p_ is then given
by:
<sup>_<u>µ</u>_</sup> <sup><u>0</u></sup> <u>m</u> <sup>_p_</sup>
3 _V_ mc <sup>_<u>p</u>_</sup>
<sup>mc</sup> <sup>_,p_</sup>
demag <sup>=</sup> <sup>_<u>µ</u>_</sup> <sup><u>0</u></sup>
4 _π_
<u>mc</u>
_V_ mc <sup>_<u>p</u>_</sup>
mc
H <sup>mc</sup> <sup>_,p_</sup>
4 _π_
_−_ <sup>_<u>µ</u>_</sup> <sup><u>0</u></sup>
ent times between updates of the demagnetisation field
are plotted in Fig 11(c). In general hysteresis calculations are sufficiently accurate with a picosecond update
of the demagnetising field, which significantly reduces the
computational cost.
In general good accuracy for the demagnetising field
calculation can be achieved with coarse discretisation and
infrequent updates, but fast dynamics such as those induced by laser excitation require much faster updates, or
simulation of domain wall processes in high anisotropy
materials requires finer discretisations to achieve correct
results.
_Demagnetising_ _field_ _in_ _a_ _prolate_ _ellipsoid_
Since the macrocell approach works well in platelets
and nanodots, it is also interesting to apply the same
method to a slightly more complex system: a prolate ellipsoid. An ellipsoid adds an effective shape anisotropy
<sup>�</sup>
_p_ = _̸_ _q_
M _pq ·_ m <sup>_q_</sup> mc
_._ (34)
The relative performance of the matrix optimisation is
plotted for comparison in Fig 11(b), showing a significant
reduction in runtime. Where the computer memory is
sufficiently large, the recalculated matrix should always
be employed for optimal performance.
In addition to variable macrocell sizes, due to the small
time steps employed in atomistic models and that the
magnetisation is generally a slowly varying property, it
is not always necessary to update the demagnetisation
fields every single time step. Hysteresis loops for differ
a
c
1.0
0.5
0.0
-0.5
-1.0
1.0
0.5
0.0
-0.5
-1.0
10
1
0.1
0.01
0.001
100
10
1
0.1
b
d
10 <sup>-15</sup> 10 <sup>-14</sup> 10 <sup>-13</sup> 10 <sup>-12</sup> 10 <sup>-11</sup>
Time between macrocell updates (s)
1 2 3 4 5
-3 -2 -1 0 1 2 3
Applied field (T)
10 <sup>-15</sup>
10 <sup>-14</sup>
10 <sup>-13</sup>
10 <sup>-12</sup>
10 <sup>-11</sup>
-1.10 -1.05 -1.00 -0.95 -0.90
Applied field (T)
Brute force
Precalculated matrix
1 2 3 4 5
Macrocell size (Unit cells)
FIG. 11. Simulated hysteresis loops and computational efficiency for a 20 nm _×_ 1nm nanodot for different cell sizes (multiples
of unit cell size) (a,b) and update rates (seconds between update calculations) (c,d). (Colour online.)
due to the demagnetisation field, and so for a particle
with uniaxial magnetocrystalline anisotropy along the
elongated direction ( _z_ ), the calculated coercivity should
increase according to the difference in the demagnetisation field along _x_ and _z_, given by:
_H_ dm <sup>shape</sup> = +∆ _Nµ_ 0 _M_ s (35)
where ∆ _N_ = _Nz_ _−_ _Nx_ . The demagnetising factors
_Nx_, _Ny_, and _Nz_ are known analytically for various
ellipticities[132], and here we assume _c/a_ = _b/a_ = 0 _._ 5,
where _a_, _b_, and _c_ are the extent of the ellipsoid along _z_,
_x_ and _y_ respectively.
To verify the macrocell approach gives the same expected increase of the coercivity we have simulated a
generic ferromagnet with atomic moment 1.5 _µ_ B, an
FCC crystal structure with lattice spacing 3.54 <sup>˚</sup> Aand
anisotropy field of _H_ a = 1T. The particle is cut from
the lattice in the shape of an ellipsoid, of diameter 10
nm and height of 20 nm, as shown inset in Fig 12. A
macrocell size of 2 unit cells is used, which is updated
every 100 time steps (0.1 ps).
As expected the coercivity increases due to the shape
anisotropy. From Ref. 132 the expected increase in the
coercivity is _H_ dm <sup>shape</sup> = 0 _._ 37 T which compares well to the
simulated increase of 0 _._ 33 T.
1.0
0.5
0.0
-0.5
-1.0
Hd Off Hd On
-2 -1 0 1 2
Applied field (T)
FIG. 12. Simulated hysteresis loops for an ellipsoidal
nanoparticle with an axial ratio of 2 showing the effect of the
demagnetising field calculated with the macrocell approach.
A visualisation of the simulated particle is inset. (Colour online.)
100000
10000
1000
100
10
1
100000
10000
1000
100
10
1
VI. PARALLEL IMPLEMENTATION AND
SCALING
Although the algorithms and methods discussed in the
preceding sections describe the mechanics of atomistic
spin models, it is important to note finally the importance of parallel processing in simulating realistic systems which include many-particle interactions, or nano
patterned elements with large lateral sizes. Details of the
parallelisation strategies which have been adopted to enable the optimum performance of vampire for different
problems are presented in Appendix C. In general terms
the parallelisation works by subdividing the simulated
system into sections, with each processor simulating part
of the complete system. Spin orientations at the processor boundaries have to be exchanged with neighbouring
processors to calculate the exchange interactions, which
for small problems and large numbers of processors can
significantly reduce the parallel efficiency. The use of
latency hiding, where the local spins are calculated in
parallel with the inter-processor communications, is essential to ensure good scaling for these problems.
To demonstrate the performance and scalability of
vampire, we have performed tests for three different system sizes: small (10628 spins), medium (8 _×_ 10 <sup>5</sup> spins),
and large (8 _×_ 10 <sup>6</sup> spins). We have access to two beowulfclass clusters; one with 8 cores/node with an Infiniband
10 Gbps low-latency interconnect, and another with 4
cores/node with a Gigabit Ethernet interconnect. For
parallel simulations the interconnect between the nodes
can be a limiting factor for increasing performance with
increasing numbers of processors, since as more processors are added, each has to do less work per time step.
Eventually network communication will dominate the
calculation since processors with small amounts of work
require the data from other processors in shorter times,
leading to a drop in performance. The scaling performance of the code for 100,000 time steps on both machines is presented in Fig. 13.
The most challenging case for parallelisation is the
small system size, since a significant fraction of the system must be communicated to other processors during
each timestep. On the Ethernet network system for the
smallest system size reasonable scaling is seen only for
4 CPUs due to the high latency of the network. However larger problems are much less sensitive to network
latency do to latency hiding, and show excellent scalability up to 32 CPUs. Essentially this means that larger
problems scale much better than small ones, allowing
more processors to be utilised. This is of course well
known for parallel scaling problems, but even relatively
modest systems consisting of 10 <sup>5</sup> spins show significant
improvements with more processors.
For the system with the low-latency Infiniband network, excellent scalability is seen for all problems up
to 64 CPUs. Beyond 64 CPUs the reduced scalability
for all problem sizes is likely due to a lack of network
bandwidth. The bandwidth requirements are similar for
FIG. 13. Runtime scaling of vampire for three different problem sizes on the infiniband network (a) and Ethernet network
(b), normalised to the runtime for 2 cores for each problem
size. (Colour online.)
all problem sizes, since smaller problems complete more
time steps in a given period of time and so have to send
several sets of data to other processors. Nevertheless
improved performance is seen with increasing numbers
of CPUs allowing for continued reductions in compute
time. Although not shown, initial tests on an IBM Blue
Gene class system have demonstrated excellent scaling of
vampire up to 16,000 CPUs, allowing the real possibility
for atomistic simulations with lateral dimensions of micrometers. Additional scaling tests for systems including
calculation of the demagnetising field and a long-ranged
exchange interaction are presented in Appendix C.
VII. CONCLUSIONS AND PERSPECTIVES
We have described the physical basis of the rapidly
developing field of atomistic spin models, and given examples via its implementation in the form of the vampire code. Although the basic formalism underpinning
atomistic spin models is well established, ongoing developments in magnetic materials and devices means that
## a b
Large System
Medium System
Small System
Ideal Scaling
Infiniband network
1 2 4 8 16 32 64 128
Number of CPUs
Large System
Medium System
Small System
Ideal Scaling
Ethernet network
1 2 4 8 16 32 64 128
Number of CPUs
new approaches will need to be developed to simulate a
wider range of physical effects at the atomistic scale. One
of the most important phenomena is spin transport and
magnetoresistance which is behind an emergent field of
spin-electronics, or spintronics. Simulation of spin transport and spin torque switching is already in development,
and must be included in atomistic level models in order to simulation of a wide range of spintronic materials
and devices, including read sensors and MRAM (magnetic random access memory). Other areas of interest
include ferroelectrics, the spin Seebeck effect[133], and
Coloured noise[111] where simulation capabilities are desirable, and incorporation of these effects are planned in
future. In addition to modelling known physical effects,
it is hoped that improved models of damping incorporating phononic and electronic mechanisms will be developed which enable the study of magnetic properties of
materials at sub-femtosecond timescales.
The ability of atomistic models to incorporate magnetic parameters from density functional theory calculations is a powerful combination which allows complex
systems such as alloys, surfaces and defects to be accurately modelled. This multiscale approach is essential
to relate microscopic quantum mechanical effects to a
macroscopic length scale accessible to experiment. Such
a multiscale approach leads to the possibility of simulation driven technological development, where the magnetic properties of a complete device can be predicted
and optimised through a detailed understanding of the
underlying physics. Due to the potential of multiscale
simulations, it is planned in future to develop links to existing DFT codes such as castep[75, 76] to allow easier
integration of DFT parameters and atomistic spin models.
The computational methods presented here provide a
sound basis for atomistic simulation of magnetic materials, but further improvements in both algorithmic
and computational efficiency are of course likely. One
area of potential computational improvement is GPGPU
(general purpose graphics processing unit) computation,
which utilises the massively parallel nature of GPUs
to accelerate simulations, with speed ups over a single CPU of 75 times routinely reported. With several
supercomputers moving to heterogenous computing architectures utilising both CPUs and GPUs, supporting
GPGPU computation is likely to be important in future,
and an implementation in our vampire code is currently
planned. In terms of algorithmic improvements it should
be noted that the Heun numerical scheme although simple is relatively primitive by modern standards, and moving to a midpoint scheme may allow for larger time steps
than currently to be used.
With the continuing improvements in computer power,
atomistic simulations have become a viable option for the
routine simulation of magnetic materials. With the increasing complexity of devices and material properties,
atomistic models are a significant and important development. While micromagnetic models remain a powerful
tool for the simulation and design of devices, the limitations of the (continuum) micromagnetic formalism are increasingly exposed by its failure to deal with the complex
physics of elevated temperatures, ultrafast magnetisation
processes and interfaces. While micromagnetics will remain the computational model of choice for large scale
and coarse-grained applications, the ability to accurately
model the effects of microscopic details, temperature effects and ultrafast dynamics make atomistic models an
essential tool to understand the physics of magnetic materials at the forefront of of the field.
ACKNOWLEDGMENTS
The authors wish to thank Jerome Jackson for helpful discussions particularly with regard to the parallel
implementation of the code; Thomas Schrefl for insisting on the name of vampire ; Matt Probert, Phil Hasnip, Joe Barker, Uli Nowak and Ondrej Hovorka for helpful discussions; and Laszlo Szunyogh, Phivos Mavropoulos and Stefan Bl¨ugel for assistance with the section on
the _ab_ _initio_ parameterisation of the atomistic model.
We also acknowledge the financial support from the EU
Seventh Framework Programme grant agreement No.
281043 femtospin and Seagate Technology Inc. This
work made use of the facilities of N8 hpc provided
and funded by the N8 consortium and epsrc (Grant
No. EP/K000225/1) co-ordinated by the Universities of
Leeds and Manchester and the epsrc Small items of research equipment at University of York energy (Grant
No. EP/K031589/1).
Appendix A: Code structure and design philosophy
In addition to implementing the necessary computational methods for magnetic atomistic calculations, it is
also important to provide a framework structure for the
code, where new additions in the form of features or improvements can be made with minimal disturbance to
other sections of the code. Equally important for intensive computational problems is ensuring high performance of the code so that simulations proceed as rapidly
as possible.
In vampire this is achieved through hybrid coding
using a mixture of object-oriented and functional programming styles. Object-oriented programming is widely
used in modern software projects as a level of abstraction
around the data, or objects, in the code. This abstraction
makes it easy to store information about an element, for
example an atom, as a single unified data type, known
as a class. One significant caveat with object-oriented
code is that it is generally hard to optimise for maximum performance. High performance codes generally
utilise a different coding approach known as functional
programming, where the focus is on functions which operate on numerous data sets. However the organisation
of data into large blocks in functional programming generally makes it harder to organise the data. vampire
therefore makes use of both methodologies to gain the
benefits of object-oriented design during the initialisation phase, while for the performance-critical parts of
the code the data is re-arranged to use a functional style
for maximum performance. Due to the requirements of
high performance, object-oriented design and parallelisation, the C++ programming language was chosen for all
parts of the code. The popularity of the C++ language
also allows for easy future integration of other libraries,
such as nvidia’s cuda framework for utilising graphics
processing units. For portability the code also has a minimal dependence on external libraries and also conforms
to the published standard allowing simple compilation on
the widest possible variety of computer architectures.
In addition to the low-level structure described in
terms of object-oriented and functional programming
styles, the code is also designed in a modular fashion
so that most of the mechanistic operations (such as
the parallelisation and data analysis) are separated from
high level functions which control the various simulation
types. This enables users to easily add new simulation
types or physical effects to the code, without having to
be concerned with the inner workings.
Appendix B: Atomistic system generation in
VAMPIRE
vampire has a number of dedicated functions for generating atomic system within the nearest neighbour approximation. The principal advantage of the nearest
neighbour approximation is its simplicity and ability to
consider a wide range of physical effects such as finite
size, surfaces, ferri and antiferromagnets, disordered systems etc. with relative ease. vampire also includes inbuilt particle structures to enable generation of systems
with simple geometric shapes such as spheres, cylinders,
truncated octahedra and cubes.
The first step is to generate a crystal lattice of the desired type and dimensions sufficiently large to incorporate
the complete simulated system. For the nearest neighbour approximation the Hamiltonian is generally only
well defined for a single unified crystal structure, and
therefore such generic simulations require a single crystal from which the system is cut. More complex structures are readily simulated, however the user must define
the complete Hamiltonian for the system, taking into account the realistic interfaces between different crystals.
vampire uses the unit cell as the essential building block
of the atomic structure, since the exchange interactions
of atoms between neighbouring unit cells are known before the structure is generated. The global crystal is
generated by replicating the basic unit cell on a grid in
_x_, _y_ and _z_ . This bare crystal structure is then cut into
the desired geometry, for example a single nanoparticle,
voronoi granular structure, or a user defined 2D geometry
by removing atoms from the complete generated crystal.
Atoms within this geometry are then assigned to one or
more materials as desired (each material having different magnetic properties such as atomic spin moments,
anisotropy or exchange interactions), generating the complete atomic system. The assignment of different parts of
the system to different materials enables the easy simulation of multilayers and core-shell nanoparticles, as well
as combinations of these for systems such as multilayer
magnetic recording media. As an example, Fig. 14 shows
a visualisation of a multilayer magnetic recording media
generated using vampire .
Once the structure is defined the exchange interactions
for all atoms in the are calculated from a list of nearest
neighbour interactions for the defined unit cell. Since
each cell on the grid contains a fixed number of atoms,
and the exchange interactions of those atoms with other
neighbouring cells is known relative to the local cell, the
interaction list is trivial to generate. For computational
efficiency the final interaction list is then stored as a 1D
linked list.
Appendix C: Parallelisation strategies
A consistent trend among computers today is the drive
towards parallel architectures, designed to improve overall performance in a consistent and scalable fashion. The
downside of this approach is that the software must be
specially modified to take advantage of the hardware,
which still presents a significant challenge. In order
to make the best use of parallel computers, we have
adopted a number of distinct parallelisation strategies.
This approach means that for any given problem, an optimal strategy can be utilised to achieve maximum performance.
_Statistical_ _Parallelism_
The most trivial form of parallelism is batch or statistical, where the statistical properties of a system are
determined by a series of independent calculations, each
of which can be run in parallel. Statistical parallelism
has the prime advantage that the division of work leads
to an ideal scaling behaviour, since each of the runs are
entirely independent and require no intercommunication.
In magnetic simulations, the most common applications of statistical parallelism are sweeps of the parameter space for a particular system, or in determining thermodynamic averages. For the former, a given system is
calculated for different values of key parameters, for example, anisotropy or exchange constants; for the latter,
the same system is simulated, but each run is given a
different seed for the random number generator. This
leads to a different thermodynamic evolution, which can
provide information about the statistical behaviour of the
system. It should be noted that the correct seeding of the
FIG. 14. Visualisation of a magnetic recording medium generated using vampire . The medium consists of magnetically hard
and soft layers with interfacial mixing of atoms between the layers. The material is granular in nature, and so a voronoi
tessellation as overlaid on top the layers to form the isolated magnetic grains. Finally, a dilute intermixing layer is applied
between the grains representing the diffusion of magnetic atoms into the SiO2 between the grains, as seen in real media. (Colour
online.)
random number generator, where a number of uncorrelated random number sequences are generated, is quite
complex [109]. For magnetic simulations, the chaotic nature of the system, whereby a small change in the time
evolution rapidly leads to a significantly different result,
means that crude sequential number seeding is quite satisfactory.
_Geometric_ _Decomposition_
Although statistical parallelism is useful for some types
of simulation, it has one significant limitation: it can
only be applied to relatively small systems, as the entire
problem must be solved on a single processor. For larger
systems it is necessary to divide the system into smaller
parts for parallel execution. The most efficient method
for such parallelisation is generally geometric decomposition, where the space is divided into cells, and each
processor is assigned a cell to simulate. If well implemented, geometric decomposition can be scaled to run
on thousands of CPUs, and this is one of the key aims of
our implementation.
The starting point for geometric decomposition is efficiently dividing the space to run on _N_ CPU CPUs. In order
to achieve this, we have devised an algorithm which takes
into account the physical system dimensions and which
searches for a solution where
_nx · ny · nz_ = _N_ CPU (C1)
while minimising the surface to volume ratio. If the dimensions of the overall system are given by _lx_, _ly_, and _lz_,
then the volume of each cell is:
and the surface area of each cell is:
+ <sup>_<u>lylz</u>_</sup>
_nynz_
+ <sup>_<u>lxlz</u>_</sup>
_nxnz_
_._ (C3)
_A_ cell = 2
- _<u>lxly</u>_
_nxny_
The surface to volume ratio is then given by:
+ <sup>_<u>ny</u>_</sup>
_ly_
_<u>A</u>_ <u>cell</u>
_V_ cell
+ <sup>_<u>nx</u>_</sup>
_lx_
_._ (C4)
= 2
- _<u>nz</u>_
_lz_
_V_ cell = <sup>_<u>lx</u>_</sup>
_nx_
_·_ <sup>_<u>ly</u>_</sup>
_ny_
_·_ <sup>_<u>lz</u>_</sup>
_nz_
(C2)
It is clear that the minimum in the surface to volume ratio occurs for _nα/lα_ = 1 for all three dimensions, essentially showing that longer dimensions parallelise better
with more CPUs.
Given that the dimensions of the system are fixed, the
only free variables are the number of CPUs in each dimension, _nx_, _ny_, and _nz_ . These are further constrained
by equation C1. In order to find the optimal solution for a
given number of CPUs, the starting point is _nα_ = _~~√~~_ _Nlx_ CPU .
Exact solutions for _nx_, _ny_ and _nz_ are then searched for
and the one with the lowest surface to volume ratio is
selected. This approach is very flexible and allows for
efficient decomposition for any number of CPUs. The
only problematic solution is for prime numbers of CPUs,
where only one exact solution exists, though this is a rare
occurrence for large numbers of CPUs. A visualisation
of a cubic system decomposed into 48 blocks is shown in
Fig. 15.
Having decomposed the system, each CPU is allocated
a cell which defines its own spatial domain. In order to
maintain maximum scalability, each CPU generates its
own portion of the complete system, and all associated
data. This has the advantage of minimising the memory footprint and also parallelising the system creation,
which can become a significant bottleneck for very large
numbers of processors. Once the local atoms have been
generated it is necessary to know which atoms on remote
_n_ z
_n_ x
_n_ y
FIG. 15. Visualisation of the decomposition of a cubic system
into 48 blocks of equal volume.
processors (halo atoms) are potentially interacting with
atoms on the local processor (boundary atoms), as well
as which atoms are interacting locally only(core atoms).
This essentially defines three distinct regions, as shown
schematically in Fig. 16.
Core region
_P_ 1
Boundary region
Halo region
_P_ 2
FIG. 16. Visualisation of the different categorisations of
atoms on a processor, determined by their spatial location.
The core and boundary regions exist on the local processor,
denoted by the regions within the dashed line. The halo region contains atoms on remote processors which atoms on the
local processor potentially interact with. (Colour online.)
The maximum interaction range of the atoms is known
globally, and so provided all atoms in this range are included, generation of the neighbour list is trivially the
same as the serial case. In practice this is implemented
by a global broadcast of each processor’s domain, i.e.,
which regions of space are ’owned’ by each processor.
Each processor then looks at each atom in its boundary
region, and then dispatches a copy of the atom to the appropriate neighbouring processors. This method has the
advantage that it is quite general, and can be applied
to any decomposition method, not necessarily cubes. At
this point parallel periodic boundary conditions are easily implemented in the same manner, by copying atoms
at the edge of the system to the desired processors. Once
all boundary atoms have been sent, and all halo atoms
have been received, the neighbour list is generated in the
usual fashion with a linked-cell algorithm. After the actual neighbour list has been generated, it is likely that
some of the copied halo atoms are in fact not needed,
and so these atoms are deleted. Similarly some atoms
in the in the boundary region may not interact with the
halo, and these atoms are re-assigned to the core region.
Following this book-keeping exercise, parallel simulation
of the system can begin.
The method we have adopted for parallel simulation of
the system makes use of latency-hiding, where requests
for data from other processors are made prior to a locally
compute-intensive period, after which the requested data
should have arrived. Such latency-hiding is an important
consideration when running the code on many processors.
In practice atoms on each processor are ordered according to their interaction classification, ie: core; boundary;
and finally halo atoms. The integration of the system
proceeds as follows:
_•_ A request is made for all halo data from other processors
_•_ The core region is then integrated
_•_ If the halo data has not arrived, then wait for it
_•_ Integrate the boundary region
_•_ Global synchronisation
The parallel integration is repeated the desired number
of times during the simulation.
_Replicated_ _Data_
For continuous systems, geometric decomposition provides an efficient way of parallelisation of the calculation.
However, for sparse systems geometric decomposition can
be inefficient due to poor load balancing, where some processors have many more atoms than others. This means
some processors spend a significant amount of time waiting for others to complete the integration step, leading
to a reduction in scalability. In magnetism, such systems are typically granular, consisting of a small number
of grains. One solution to sparse systems is to utilise
a replicated data approach, where each processor has a
complete copy of all data, similar to the statistical parallelism method. Each processor then simulates (1 _/n_ cpu) <sup>th</sup>
of the total system, without any constraints on spatial
locality. The atoms are classified in a similar way to the
geometric decomposition approach, as core, boundary,
and halo, and integrated in exactly the same way.
The principal disadvantages of the replicated data approach are the increased memory footprint (each processor must generate a complete copy of the system),
and the tendency to have a high proportion of boundary
spins. The latter can be mitigated by re-ordering spins
in memory to ensure some degree of spatial locality. For
granular systems this is fact trivial, since the assignment
of each spin to a grain provides the necessary geometric
information, and so the spins are ordered by a unique
grain identification, which is also spatially correlated. In
addition to its use in simulation of sparse systems, the
replicated data approach is also the strategy adopted for
the parallel calculation of the long-ranged demagnetisation fields. The method for the parallel code is identical
to that described earlier, where the spins are allocated
to macrocells which then interact with each other. Since
the calculation of the demagnetisation field in each cell
requires knowledge of all other cells, replicated data is
the logical choice for the parallelisation. The demagnetisation field calculation proceeds as follows:
_•_ The macrocell moments are initialised to zero on
all processors
_•_ Each processor determines the contribution of its
spins to each macrocell
_•_ The macrocell moments are summed globally, so
that each processor has a complete copy of the
macrocell magnetisations
_•_ Each processor calculates the demagnetisation field
only for macrocells which contain local spins
_•_ The local demagnetisation field on each spin is determined from its macrocell demagnetisation field
This approach leads to excellent scaling, as for reasonable macrocell sizes the communication costs are minimal, and for _≫_ 1 macrocell per processor the method
scales linearly with _n_ cpu. Fine macrocell discretisations
( _≪_ 27 unit cells/macrocell) can lead to significant memory and computation costs, but in general this is unnecessary for most atomistic scale calculations.
_Additional_ _scaling_ _tests_
vampire has already been shown to scale well for a
generic system with nearest neighbour exchange interactions, but in order to verify the general usefulness of the
parallelisation we have also considered an extended system including the demagnetisation field calculation, and
a system using _ab initio_ parameters for FePt[29] which includes a long-ranged exchange interaction extending over
several unit cells, as shown in Fig 17.
The simulations in Fig. 17(a) including the demagnetising fields use a 2 _×_ 2 unit cell macrocell size, updated every 10 steps, for system sizes of approximately
10 <sup>4</sup> _,_ 10 <sup>5</sup> _and_ 10 <sup>6</sup> spins respectively. The high spatial and
temporal resolution are in some sense a worst case scenario as these are probably not needed for most problems,
and so for these simulations, calculation of the demagnetising fields dominates the run time. Nevertheless, the
FIG. 17. Runtime scaling of vampire for three different problem sizes including demagnetising fields (a) and a spin Hamiltonian including a long-ranged exchange interaction (b), normalised to the runtime for 2 cores for each problem size. The
cluster has 8 processors per node, and an Infiniband interconnect for inter-node communications. (Colour online.)
scaling of the code remains very good, showing the effectiveness of the parallelisation of the demagnetising field
calculation. For small system sizes the scaling breaks
down as the number of macrocells approaches the number of processors. Here the scaling is limited by the time
required to update all of the cell magnetisations and the
time required to calculate the contributions of the reduced number of local macrocells. For all problem sizes
scaling begins to reduce somewhat due to limitations in
the network bandwidth.
For the long-ranged exchange interactions shown in
Fig. 17(b) the scaling is only good within a single node
(up to 8 processors). Above that, the larger the system the worse the scaling. This arises due to the large
amount of data which has to be shared between processors. For the long-ranged exchange interaction, each
atom to be simulated must know the spin configurations
of over 1,000 neighbouring atoms. In a parallel simulation these spin directions must be passed between processors twice per time step, which is a bandwidth intensive
## a b
100000
10000
1000
100
10
1
100000
10000
1000
100
10
1
Large System
Medium System
Small System
Ideal Scaling
Demagnetizing field
1 2 4 8 16 32 64 128
Number of CPUs
Large System
Medium System
Small System
Ideal Scaling
Long-range exchange
1 2 4 8 16 32 64 128
Number of CPUs
operation. Thus, the reduced scaling, particularly with
arguer system size, is due to saturation of the network
link. Due to the long range nature of the exchange interaction, memory use also becomes an issue in terms of
storing the neighbour list. For the largest simulation size
[1] E. Ising, Z.Phys. 31, 253 (1925).
[2] R. E. Watson, M. Blume, and G. H. Vineyard, Phys.
Rev. 181, 811 (1969).
[3] K. Binder and H. Rauch, Zeitschrift fr Physik 219, 201
(1969).
[4] R. Kodama and A. Berkowitz, Phys. Rev. B 59, 6321
(1999).
[5] C. Mitsumata, A. Sakuma, and K. Fukamichi, Phys.
Rev. B 68, 014437 (2003).
[6] U. Nowak, “Classical spin models,” in _Handbook of Mag-_
_netism_ _and_ _Advanced_ _Magnetic_ _Materials_ (John Wiley
& Sons, Ltd, 2007).
[7] E. Boerner, O. Chubykalo-Fesenko, R. Chantrell,
O. Heinonen, and O. Mryasov, IEEE Trans. Magn. 41,
936 (2005).
[8] B. Skubic, J. Hellsvik, L. Nordstr¨om, and O. Eriksson,
J. Phys.: Condens. Matter 20, 315203 (2008).
[9] T. Ostler, R. F. L. Evans, R. W. Chantrell, U. Atxitia,
O. Chubykalo-Fesenko, I. Radu, R. Abrudan, F. Radu,
A. Tsukamoto, A. Itoh, A. Kirilyuk, T. Rasing, and
A. Kimel, Phys. Rev. B 84 (2011).
[10] T. A. Ostler, J. Barker, R. F. L. Evans, R. W. Chantrell,
U. Atxitia, O. Chubykalo-Fesenko, S. El Moussaoui,
L. Le Guyader, E. Mengotti, L. J. Heyderman, F. Nolting, A. Tsukamoto, A. Itoh, D. Afanasiev, B. A. Ivanov,
A. M. Kalashnikova, K. Vahaplar, J. Mentink, A. Kirilyuk, T. Rasing, and A. V. Kimel, Nature Communications 3, 666 (2012).
[11] I. Radu, K. Vahaplar, C. Stamm, T. Kachel, N. Pontius,
H. A. D¨urr, T. A. Ostler, J. Barker, R. F. L. Evans,
R. W. Chantrell, A. Tsukamoto, A. Itoh, A. Kirilyuk,
T. Rasing, and A. V. Kimel, Nature 472, 205 (2011).
[12] O. <sup>`</sup> Iglesias, X. Batlle, and A. Labarta, Phys. Rev. B
72, 212401 (2005).
[13] R. F. L. Evans, D. Bate, R. W. Chantrell, R. Yanes,
and O. Chubykalo-Fesenko, Phys. Rev. B 84, 092404
(2011).
[14] R. F. L. Evans, R. Yanes, O. Mryasov, R. W. Chantrell,
and O. Chubykalo-Fesenko, EPL (Europhysics Letters)
88, 57004 (2009).
[15] M. Ali, C. H. Marrows, M. Al-Jawad, B. J. Hickey,
A. Misra, U. Nowak, and K.-D. Usadel, Phys. Rev.
B 68, 214420 (2003).
[16] D. Garanin and H. Kachkachi, Phys. Rev. Lett. 90,
065504 (2003).
[17] R. Yanes, O. Chubykalo-Fesenko, H. Kachkachi,
D. Garanin, R. Evans, and R. Chantrell, Phys. Rev.
B 76, 064416 (2007).
[18] P.-W. Ma, S. L. Dudarev, and C. H. Woo, J. Appl.
Phys. 111, 07D114 (2012).
[19] R. Evans, U. Nowak, F. Dorfbauer, T. Shrefl,
O. Mryasov, R. W. Chantrell, and G. Grochola, J. Appl.
Phys. 99, 08G703 (2006).
[20] R. Evans, F. Dorfbauer, O. Myrasov, O. Chubykalo
of around 1 _._ 6 _×_ 10 <sup>6</sup> atoms,33GB of RAM is required to
store all the interactions. However, due to the parallel
system generation this divides nicely between all of the
processors, so the memory required per processor is quite
reasonable for larger numbers of processors.
Fesenko, T. Schrefl, and R. Chantrell, IEEE Tran.
Magn. 43, 3106 (2007).
[21] P. Ho, R. F. L. Evans, R. W. Chantrell, G. Han, G.
M. Chow, and J. Chen, IEEE Trans. Magn 47, 2646
(2011).
[22] P. Chureemart, R. F. L. Evans, and R. W. Chantrell,
Phys. Rev. B 83 (2011).
[23] P. Asselin, R. F. L. Evans, J. Barker, R. W. Chantrell,
R. Yanes, O. Chubykalo-Fesenko, D. Hinzke, and
U. Nowak, Phys. Rev. B 82, 054415 (2010).
[24] J. Barker, R. F. L. Evans, R. W. Chantrell, D. Hinzke,
and U. Nowak, Appl. Phys. Lett. 97, 192504 (2010).
[25] R. Yanes, O. Chubykalo-Fesenko, R. F. L. Evans, and
R. W. Chantrell, J. Phys. D: Appl. Phys. 43, 474009
(2010).
[26] D. S. G. Bauer, P. Mavropoulos, S. Lounis, and
S. Bl¨ugel, Journal of Physics: Condensed Matter 23,
394204 (2011).
[27] T. J. Fal, M. L. Plumer, J. P. Whitehead, J. I. Mercer,
J. van Ek, and K. Srinivasan, Appl. Phys. Lett. 102,
202404 (2013).
[28] R. H. Victora and P.-W. Huang, IEEE Trans. Magn 49,
751 (2013).
[29] O. Mryasov, U. Nowak, K. Guslienko, and R. W.
Chantrell, EPL (Europhysics Letters) 69, 805 (2005).
[30] L. Szunyogh, L. Udvardi, J. Jackson, U. Nowak, and
R. W. Chantrell, Phys. Rev. B 83 (2011).
[31] L. Szunyogh, B. Lazarovits, L. Udvardi, J. Jackson, and
U. Nowak, Phys. Rev. B 79 (2009).
[32] L. M. Sandratskii and P. Mavropoulos, Phys. Rev. B
83, 174408 (2011).
[33] N. Kazantseva, D. Hinzke, U. Nowak, R. Chantrell,
U. Atxitia, and O. Chubykalo-Fesenko, Phys. Rev. B
77, 184428 (2008).
[34] U. Atxitia, D. Hinzke, O. Chubykalo-Fesenko,
U. Nowak, H. Kachkachi, O. Mryasov, R. F. L.
Evans, and R. W. Chantrell, Phys. Rev. B 82, 134440
(2010).
[35] T. Jourdan, A. Marty, and F. Lan¸con, Phys. Rev. B
77, 224428 (2008).
[36] F. Garcia Sanchez, O. Chubykalo-Fesenko, O. Mryasov,
and R. W. Chantrell, Physica B: Condensed Matter
372, 328 (2006).
[37] http:/math.nist.gov/oommf,.
[38] W. Scholz, J. Fidler, T. Schrefl, D. Suess, R. Dittrich,
H. Forster, and V. Tsiantos, Computational Materials
Science 28, 366 (2003).
[39] T. Fischbacher, M. Franchin, G. Bordignon, and
H. Fangohr, IEEE Trans. Magn 43, 2896 (2007).
[40] Q. Mistral, M. van Kampen, G. Hrkac, J.-V. Kim,
T. Devolder, P. Crozat, C. Chappert, L. Lagae, and
T. Schrefl, Phys. Rev. Lett. 100, 257201 (2008).
[41] A. Y. Dobin and H. J. Richter, Appl. Phys. Lett. 89,
062512 (2006).
[42] T. Schrefl, J. Fidler, K. J. Kirk, and J. N. Chapman,
J. Magn. Magn. Mater 175, 193 (1997).
[43] M. H. Kryder, E. C. Gage, T. W. McDaniel, W. A.
Challener, R. E. Rottmayer, G. Ju, Y.-T. Hsia, and
M. F. Erden, Proceedings of the IEEE 96, 1810 (2008).
[44] E. Beaurepaire, J. C. Merle, A. Daunois, and J. Y.
Bigot, Phys. Rev. Lett. 76, 4250 (1996).
[45] C. Stanciu, A. Tsukamoto, A. Kimel, F. Hansteen,
A. Kirilyuk, A. Itoh, and T. Rasing, Phys. Rev. Lett.
99, 217204 (2007).
[46] K. O’Grady, L. E. Fernandez-Outon, and G. VallejoFernandez, J. Magn. Magn. Mater. 322, 883 (2010).
[47] S. Ikeda, K. Miura, H. Yamamoto, K. Mizunuma, H. D.
Gan, M. Endo, S. Kanai, J. Hayakawa, F. Matsukura,
and H. Ohno, Nature Materials 9, 721 (2010).
[48] M. Jamet, W. Wernsdorfer, C. Thirion, D. Mailly,
V. Dupuis, P. M´elinon, and A. P´erez, Phys. Rev. Lett.
86, 4676 (2001).
[49] T. Klemmer, N. Shukla, C. Liu, X. Wu, E. Svedberg,
O. Mryasov, R. Chantrell, D. Weller, M. Tanase, and
D. Laughlin, Appl. Phys. Lett. 81, 2220 (2002).
[50] D. Garanin, Phys. Rev. B 55, 3050 (1997).
[51] R. F. L. Evans, D. Hinzke, U. Atxitia, U. Nowak, R. W.
Chantrell, and O. Chubykalo-Fesenko, Phys. Rev. B
85, 014433 (2012).
[52] U. Atxitia, P. Nieves, and O. Chubykalo-Fesenko, Phys.
Rev. B 86, 104414 (2012).
[53] T. W. McDaniel, J. Appl. Phys. 112, 093920 (2012).
[54] U. Atxitia and O. Chubykalo-Fesenko, Phys. Rev. B 84,
144414 (2011).
[55] M. Sultan, U. Atxitia, A. Melnikov, O. Chubykalo
Fesenko, and U. Bovensiepen, Phys. Rev. B 85, 184407
(2012).
[56] U. Atxitia, T. Ostler, J. Barker, R. F. L. Evans, R. W.
Chantrell, and O. Chubykalo-Fesenko, Phys. Rev. B
87, 224417 (2013).
[57] O. Hovorka, S. Devos, Q. Coopman, W. J. Fan, C. J.
Aas, R. F. L. Evans, X. Chen, G. Ju, and R. W.
Chantrell, Appl. Phys. Lett. 101, 052406 (2012).
[58] Details available from vampire.york.ac.uk.
[59] F. Dorfbauer, T. Schrefl, M. Kirschner, G. Hrkac,
D. Suess, O. Ertl, and J. Fidler, J. Appl. Phys. 99,
08G706 (2006).
[60] D. Jiles, _Introduction_ _to_ _magnetism_ _and_ _magnetic_ _ma-_
_terials_ (Chapman & Hall, London, UK, 1991).
[61] K. Schwarz, P. Mohn, P. Blaha, and J. Kubler, Journal
of Physics F: Metal Physics 14, 2659 (1984).
[62] A. Liechtenstein, M. Katsnelson, V. Antropov, and
V. Gubanov, J. Magn. Magn. Mater. 67, 65 (1987).
[63] L. Udvardi, L. Szunyogh, K. Palotas, and P. Weinberger, Phys. Rev. B 68, 104436 (2003).
[64] A. Antal, B. Lazarovits, L. Udvardi, L. Szunyogh, B. Uj
falussy, and P. Weinberger, Phys. Rev. B 77, 174429
(2008).
[65] H. Ebert and S. Mankovsky, Phys. Rev. B 79, 045209
(2009).
[66] R. Drautz and M. F¨ahnle, Phys. Rev. B 69, 104404
(2004).
[67] R. Drautz and M. F¨ahnle, Phys. Rev. B 72, 212405
(2005).
[68] A. De´ak, L. Szunyogh, and B. Ujfalussy, Phys. Rev. B
84, 224413 (2011).
[69] R. Skomski, _Simple Models of Magnetism_ (OUP Oxford,
2012).
[70] P. Bruno, _Physical_ _Origins_ _and_ _Theoretical_ _Models_
_of_ _Magnetic_ _Anisotropy_ (Forschungszentrums Julich,
1993).
[71] P. Hohenberg and W. Kohn, Phys. Rev. 136, B864
(1964).
[72] W. Kohn and L. J. Sham, Phys. Rev. 140, A1133
(1965).
[73] U. von Barth and L. Hedin, J. Phys. C: Solid State Phys.
5, 1629 (1972).
[74] G. Kresse and J. Furthm¨uller, Phys. Rev. B 54, 11169
(1996).
[75] M. D. Segall, P. J. D. Lindan, M. J. Probert, C. J.
Pickard, P. J. Hasnip, S. J. Clark, and M. C. Payne, J.
Phys.: Condens. Matter 14, 2717 (2002).
[76] M. C. Payne, M. P. Teter, D. C. Allan, T. A. Arias, and
J. D. Joannopoulos, Rev. Mod. Phys. 64, 1045 (1992).
[77] J. M. Soler, E. Artacho, J. D. Gale, A. Garc´ıa, J. Jun
quera, P. Ordej´on, and D. S´anchez-Portal, J. Phys.:
Condens. Matter 14, 2745 (2002).
[78] J. Zabloudil, R. Hammerling, L. Szunyogh, and
P. Weinberger, _Electron_ _Scattering_ _in_ _Solid_ _Matter_
(Springer, Berlin, 2005).
[79] H. Ebert, D. K¨odderitzsch, and J. Min´ar, Reports on
Progress in Physics 74, 096501 (2011).
[80] M. I. Katsnelson and A. I. Lichtenstein, Phys. Rev. B
61, 8906 (2000).
[81] M. Pajda, J. Kudrnovsk´y, I. Turek, V. Drchal, and
P. Bruno, Phys. Rev. B 64, 174402 (2001).
[82] L. M. Sandratskii, Phys. Status Solidi B 136, 167
(1986).
[83] S. V. Halilov, H. Eschrig, A. Y. Perlov, and P. M.
Oppeneer, Phys. Rev. B 58, 293 (1998).
[84] M. Leˇzai´c, P. Mavropoulos, G. Bihlmayer, and
S. Bl¨ugel, Phys. Rev. B 88, 134403 (2013).
[85] M. Uhl and B. Siberchicot, J. Phys.: Condens. Matter
7, 4227 (1999).
[86] B. Skubic, O. Peil, J. Hellsvik, P. Nordblad, L. Nord
str¨om, and O. Eriksson, Phys. Rev. B 79, 024411
(2009).
[87] C. J. Aas, P. Hasnip, R. Cuadrado, E. Plotnikova,
L. Szunyogh, L. Udvardi, and R. W. Chantrell, Phys.
Rev. B 88, 174409 (2013).
[88] K. Sato, L. Bergqvist, J. Kudrnovsk, P. H. Ded
erichs, O. Eriksson, I. Turek, B. Sanyal, G. Bouzerar,
H. Katayama-Yoshida, V. A. Dinh, T. Fukushima,
H. Kizaki, and Z. R, Rev. Mod. Phys. 82, 1633 (2010).
[89] M. Leˇzai´c, P. Mavropoulos, S. Bl¨ugel, and H. Ebert,
Phys. Rev. B 83, 094434 (2011).
[90] H. Danan, J. Appl. Phys. 39, 669 (1968).
[91] D. A. Garanin, Phys. Rev. B 53, 11593 (1996).
[92] G. M. Wysin, Phys. Rev. B 62, 3251 (2000).
[93] M. Colarieti-Tosti, S. Simak, R. Ahuja, L. Nordstr¨om,
O. Eriksson, D. <sup>˚</sup> Aberg, S. Edvardsson, and M. Brooks,
Phys. Rev. Lett. 91, 157201 (2003).
[94] I. Radu, C. Stamm, A. Eschenlohr, K. Vahaplar,
T. Kachel, N. Pontius, R. Mitzner, K. Holldack, A. Fhlish, F. Radu, R. F. L. Evans, T. A. Ostler, J. Mentink,
R. W. Chantrell, A. Tsukamoto, A. Itoh, A. Kirilyuk,
A. V. Kimel, and T. Rasing, Submitted (2013).
[95] W. J. Fan, R. F. L. Evans, Y. Hancock, and R. W.
Chantrell, J. Appl. Phys. 109, (2011).
[96] C. Schr¨oder, H.-J. Schmidt, J. Schnack, and M. Luban,
Phys. Rev. Lett. 94, 207203 (2005).
[97] C. Schr¨oder, H. Nojiri, J. Schnack, P. Hage, M. Luban,
and P. K¨ogerler, Phys. Rev. Lett. 94, 017205 (2005).
[98] F. Dorfbauer, R. Evans, M. Kirschner, O. Chubykalo
Fesenko, T. Chantrell, and T. Schrefl, J. Magn. Magn.
Mater. 316, 791 (2007).
[99] L. D. Landau and E. M. Lifshitz, Phys. Z. Sowietunion
8, 153 (1935).
[100] T. Gilbert, Physical Review 100, 1243 (1955).
[101] S. Karakurt, R. W. Chantrell, and U. Nowak, J. Magn.
Magn. Mater. 316, e280 (2007).
[102] M. F¨ahnle, J. Seib, and C. Illg, Phys. Rev. B 82, 144405
(2010).
[103] A. Y. Dobin and R. H. Victora, Phys. Rev. Lett. 92,
257204 (2004).
[104] M. Ellis, T. A. Ostler, and R. W. Chantrell, Phys. Rev.
B 86, 174418 (2012).
[105] W. F. B. Jr., IEEE Trans. Mag. 15, 1196 (1979).
[106] J. L. Garc´ıa-Palacios and F. J. L´azaro, Phys. Rev. B
58, 14937 (1998).
[107] A. Lyberatos, D. V. Berkov, and R. W. Chantrell, J.
Phys.: Condens. Matter 5, 8911 (1999).
[108] U. Nowak, O. Mryasov, R. Wieser, K. Guslienko, and
R. Chantrell, Phys. Rev. B 72 (2005).
[109] M. Matsumoto and T. Nishimura, ACM Transactions
on Modeling and Computer Simulation 8, 3 (1998).
[110] G. Marsaglia and W.-W. Tsang, Journal of Statistical
Software 5 (2000).
[111] U. Atxitia, O. Chubykalo-Fesenko, R. Chantrell,
U. Nowak, and A. Rebei, Phys. Rev. Lett. 102, 057203
(2009).
[112] A. J. Schellekens and B. Koopmans, Phys. Rev. Lett.
110, 217204 (2013).
[113] B. Grossmann and D. Rancourt, Phys. Rev. B 54, 12294
(1996).
[114] P.-W. Ma, S. L. Dudarev, and C. H. Woo, Phys. Rev.
B 85, 184301 (2012).
[115] M. Battiato, K. Carva, and P. M. Oppeneer, Phys. Rev.
Lett. 105, 027203 (2010).
[116] A. J. Schellekens, W. Verhoeven, T. N. Vader, and
B. Koopmans, Appl. Phys. Lett. 102, 252408 (2013).
[117] D. V. Berkov and N. L. Gorn, J. Phys.: Condens. Matter
14, L281 (2002).
[118] M. d’Aquino, C. Serpico, and G. Miano, J. Comput.
Phys. 209, 730 (2005).
[119] J. Mentink, M. Tretyakov, A. Fasolino, M. Katsnelson,
and T. Rasing, J. Phys.: Condens. Matter 22, 176001
(2010).
[120] M. d’Aquino, C. Serpico, G. Coppola, I. D. Mayergoyz,
and G. Bertotti, J. Appl. Phys. 99, 08B905 (2006).
[121] P. E. Kloeden and E. Platen, _Numerical_ _Solution_ _of_
_Stochastic_ _Differential_ _Equations_ (Springer, Heidelberg,
Berlin, 1995).
[122] J. D. Hannay, _Computational_ _Simulations_ _of_ _Thermally_
_Activated_ _Magnetisation_ _Dynamics_ _at_ _High_ _Frequencies_,
PhD Thesis, School of Informatics, University of Wales,
Bangor, Gwynedd, UK (2001).
[123] N. Metropolis, A. W. Rosenbluth, M. N. Rosenbluth,
A. H. Teller, and E. Teller, J. Chem. Phys. 21, 1087
(1953).
[124] D. Hinzke and U. Nowak, Comput. Phys. Commun.
121, 334 (1999).
[125] http://www.ctcms.nist.gov/ _∼_ rdm/mumag.org,.
[126] E. C. Stoner and E. P. Wohlfarth, Philos. T. Roy. Soc.
A 240, 599 (1948).
[127] K. Binder, Physics Letters A 30, 273 (1969).
[128] S. W. Yuan and H. N. Bertram, IEEE Trans. Magn 28,
2031 (1992).
[129] D. V. Berkov, K. Ramst¨occk, and A. Hubert, physica
status solidi (a) 137, 207 (1993).
[130] J. Kurzak, J. Parallel. Distr. Com. 65, 870 (2005).
[131] A. Aharoni, J. Appl. Phys. 83, 3432 (1998).
[132] J. A. Osborn, Physical Review 67, 351 (1945).
[133] D. Hinzke and U. Nowak, Phys. Rev. Lett. 107, 027205
(2011).
섹션 본문
섹션 본문이 없습니다.
참고문헌
참고문헌 정보가 없습니다.