Equations
Energies and effective field
Atomistic spin model
In the atomistic spin model, the effective field can be computed from
where $\mathcal{H}$ is the total Hamiltonian including the exchange interaction, Dzyaloshinskii-Moriya interaction, dipolar interaction, anisotropy interaction and Zeeman interaction. The exchange interaction is given by
and the Dzyaloshinskii-Moriya interaction reads
and anisotropy
and the zeeman field
Micromagnetic model
In micromagnetics, the effective field can be computed from the total micromagnetic energy
The typical energy terms are
Exchange energy
\[E_\mathrm{ex} = \int_{V} A (\nabla \vec{m})^2 \mathrm{d}V\]where $(\nabla \vec{m})^{2}=\left(\nabla m_{x}\right)^{2}+\left(\nabla m_{y}\right)^{2}+\left(\nabla m_{z}\right)^{2}$. So the corresponding effective field is
\[\vec{H}_{\mathrm{ex}}=\frac{2 A}{\mu_{0} M_{s}} \nabla^{2} \vec{m}\]Zeeman energy
\[E_\mathrm{ex} = - \mu_0 \int_{V} \vec{H} \cdot \vec{M} \mathrm{d}V\]as expected, the effective field is $\vec{H}$.
Anisotropy
The uniaxial anisotropy energy is given by
\[E_\mathrm{anis} = -\int_{V} K_{u} (\vec{m} \cdot \hat{u})^2 \, dV\]from which the effective field can be computed as
\[\vec{H}_{\mathrm{an}}=\frac{2 K_u}{\mu_0 M_s}\left(\vec{m} \cdot \hat{u}\right) \hat{u}\]Cubic Anisotropy
The cubic anisotropy energy is given by
\[E_\mathrm{cubic} = -\int_{V} K_c (m_x^4 + m_y^4 + m_z^4) \, dV\]and thus the corresponding effective field reads
\[\vec{H}_{\mathrm{cubic}}= \frac{4 K_c}{\mu_0 M_s} \left( m_x^3 \mathbf{e}_x + m_y^3 \mathbf{e}_y + m_z^3 \mathbf{e}_z \right)\]Bulk DMI energy The Bulk DMI energy reads
\[E_{\mathrm{dmi}} = \int_V D \vec{m} \cdot (\nabla \times \vec{m}) \, \mathrm{d}V\]so the effective field is
\[\vec{H}_\mathrm{D}=-\frac{2 D}{\mu_{0} M_{s}}(\nabla \times \vec{m})\]Magnetostatic energy
\[E_{\mathrm{d}}=-\frac{\mu_{0}}{2} \int_{V} \vec{H}_{\mathrm{d}}(\mathbf{r}) \cdot \vec{M}(\mathbf{r}) d V\]\[\vec{H}_{\mathrm{d}}(\mathbf{r})=\frac{1}{4 \pi}\left(\int_{V} \rho_{m}\left(\mathbf{r}^{\prime}\right) \frac{\mathbf{r}-\mathbf{r}^{\prime}}{\left|\mathbf{r}-\mathbf{r}^{\prime}\right|^{3}} \mathrm{d}^{3} r^{\prime}+\int_{S} \sigma_{m}\left(\mathbf{r}^{\prime}\right) \frac{\mathbf{r}-\mathbf{r}^{\prime}}{\left|\mathbf{r}-\mathbf{r}^{\prime}\right|^{3}} \mathrm{d}^{2} r^{\prime}\right)\]
LLG equation
The driver LLG
solves the standard LLG equation, which can be written as
and the corresponding LL form is given by
LLG equation with extensions
The driver LLG_STT
implements the LLG equation with zhang-li extension
and the driver LLG_CPP
implements the LLG equation with spin transfer torque for the current-perpendicular-to-plane (CPP) case,
The spin valve structures and spin orbit torques can use the LLG_CPP
driver.
The driver LLG_STT_CPP
has put them together,
SLLG equation
The SLLG equation, i.e., LLG equation including the stochastic field $\mathbf{b}$, is given by
The thermal fluctuation is assumed to be a Gaussian white noise, i.e., the thermal noise $\mathbf{b}$ obeys the properties
where $i$ and $j$ are Cartesian indices, $u$ and $v$ indicate the magnetization components and $\left< \cdot , \cdot \right>$ represents the average taken over different realizations of the fluctuating field. And
For the micromagnetic case, $D$ is given as
which is equivalent to a stochastic field
where $\eta$ is a random number follows the normal distribution.
Steepest descent method
We provide a steepest descent energy minimization method for a complicated system, which is of the form
where
And for the micromagnetics, we have
In practice, we use the following update rule to keep the magnetization vector normalized.
From the equation we have:
where
The step size $\tau_k$ can be computed by
where
Monte Carlo Simulation
For cubic mesh, the implemented energy reads
where $\vec{m}_i$ is unit vector of the classical spin at site i.
For triangular mesh (2D), the system energy reads
where
NEB (Nudged elastic band)
NEB is a chain method to find the MEP (minimum energy path) between two states. To start, we need to construct a chain including several images (each image is a copy of the magnetization) and then relax the system. Two ends images that corresponding to the initial and final states will be pinned as they are the energy states given by the users. The system contain all free images will be relaxed to reduce the total energy, which is very similar to the case that relaxing the magnetic system using LLG equation if one disables the precession term. One significant difference is that the effective field in LLG equation is the functional derivative of the system energy with respect to magnetization while in NEB the effective field of image n should also contain the influence of its neighbours (i.e., the images n-1 and n+1). This influence is described by the so-called tangents: only the perpendicaular part of the effective field is kept when relaxing the whole system.
Assume that the whole system has N images
where
each image has n spins. To relax the system, we could solve the equation
where $\mathbf{G}_i$ is effective field that can be computed as
The $\mathbf{H}_i$ is the normal micromagnetic effective field, $\mathbf{t}_i$ is the tangent and $\mathbf{F}_i$ is a force that can be used to adjust the distance between images.
The distance bewteen images $\mathbf{Y}_{i}$ and $\mathbf{Y}_{j}$ is defined as
where $L_k^{i,j}$ is the geodesic distance of point k
that can be computed using Vincenty's formula.
The tangents can be computed as follows
The detailed equations can be found @ [Journal of Chemical Physics 113, 22 (2000)] and [Computer Physics Communications 196 (2015) 335–347].
Eigenvalue Method
Micromagnetic system and the corresponding atomistic model are the classical system. The resonance frequencies and the spatial resonance modes can be obtained using the eigenvalue method. In JuMag, we implemented a simple eigenvalue method for the following Hamiltonian of the atomistic model
For a given ground state or metastable spin configuration
one can construct a local coordinate system such that
where $\vec{e}_\theta =(\cos \theta \cos \phi, \cos\theta \sin\phi,-\sin \theta)^T$ and $\vec{e}_\phi=(-\sin \phi, \cos\phi,0)^T$. In matrix form,
Under this transformation, the unperturbed spin configuration $\vec{m}_0$ corresponds to $u=0, v=0$ and $w=1$. In this local coordinate, the effective fields are given by
Substituting the effective fields into the LLG equation, we obtain for the case that $\alpha=0$
where $H_w$, $H_u$ and $H_v$ are effective fields along $\vec{m}_0$, $\vec{e}_\theta$ and $\vec{e}_\phi$, respectively. To linearize the LLG equation, we assume $|u| \ll 1$, $|v| \ll 1$ and thus $w \approx 1- (1/2)(u^2+v^2)$. Moreover, we look for the solutions such that $u=\tilde{u}e^{-i\omega t}$ and $v=\tilde{v}e^{-i\omega t}$. Therefore, we arrive at
where we have ignored the higher-order terms. In addition, the above equation can be rewritten in a matrix form~\cite{Lin2014a}
where we have introduced two vectors $\vec{u}=(\tilde{u}_1, \tilde{u}_2, ..., \tilde{u}_n)^T$ and $\vec{v}=(\tilde{v}_1, \tilde{v}_2, ..., \tilde{v}_n)^T$. Therefore, the normal modes of the system can be obtained through solving the eigenvalues of the matrix $\mathbf{A}$. The eigenvalues are pure imaginary numbers since $\omega$ is real. The related effective fields are given by
Exchange interaction
\[\begin{aligned} \tilde{H}^\mathrm{ex}_{w, i} = J \sum_j \left [ \cos \theta_i \cos \theta_j + \sin \theta_i \sin \theta_j \cos(\phi_i-\phi_j) \right],\\ \tilde{h}^\mathrm{ex}_{u, i} = J \sum_j \left [ \tilde{u}_j \cos(\phi_i-\phi_j) \cos \theta_i \cos \theta_j + \tilde{u}_j \sin \theta_i \sin \theta_j + \tilde{v}_j \cos\theta_i \sin (\phi_i - \phi_j) \right], \\ \tilde{h}^\mathrm{an}_{v, i} = J \sum_j \left [ -\tilde{u}_j \cos\theta_j \sin (\phi_i - \phi_j) + \tilde{v}_j \cos(\phi_i-\phi_j) \right]. \end{aligned}\]DMI
\[\begin{aligned} \tilde{H}^\mathrm{dmi}_{w, i} = \sum_{j \in X} D_{ij} \left( \sin \theta_j \sin \phi_j \cos \theta_i - \sin \theta_i \sin \phi_i \cos \theta_j \right) + \\ \sum_{j \in Y} D_{ij} \left( \sin \theta_i \cos \phi_i \cos \theta_j - \sin \theta_j \cos \phi_j \cos \theta_i \right) + \\ \sum_{j \in Z} D_{ij} \left [ \sin \theta_i \sin \theta_j \sin(\phi_i-\phi_j) \right], \end{aligned}\]where $D_{ij}=D\mathrm{sgn}(j-i)$ with $\mathrm{sgn}(x)$ the sign function. The sets $X$, $Y$ and $Z$ represent the neighbours of site $i$ in $x$-, $y$- and $z$-axis. Meanwhile, $\tilde{h}^\mathrm{dmi}_{u, i}$ and $\tilde{h}^\mathrm{dmi}_{v, i}$ are given by
\[\begin{aligned} \tilde{h}^\mathrm{dmi}_{u, i} = \sum_{j \in X} D_{ij} \left( \tilde{u}_j \sin \theta_j \sin \phi_i \cos \theta_i - \tilde{u}_j \sin \theta_i \sin \phi_j \cos \theta_j - \tilde{v}_j \sin \theta_i \cos\phi_j \right) +\\ \sum_{j\in Y} D_{ij} \left (\tilde{u}_j \sin \theta_i \cos \phi_j \cos \theta_j - \tilde{u}_j \sin \theta_j \cos \phi_i \cos \theta_i - \tilde{v}_j \sin \theta_i \sin\phi_j \right) + \\ \sum_{j\in Z} D_{ij} \cos \theta_i \left [ \tilde{u}_j \cos \theta_j \sin(\phi_i- \phi_j) -\tilde{v}_j \cos(\phi_i-\phi_j) \right ],\\ \tilde{h}^\mathrm{dmi}_{v, i} = \sum_{j \in X} D_{ij} \tilde{u}_j \sin \theta_j \cos\phi_i + \textstyle \sum_{j \in Y} D_{ij} \tilde{v}_j \sin \theta_j \sin\phi_i + \\ {\sum_{j \in Z}} D_{ij} \left[ \tilde{u}_j \cos \theta_j \cos(\phi_i -\phi_j) + \tilde{v}_j \sin (\phi_i-\phi_j) \right]. \end{aligned}\]Anisotropy For anisotropies with $\mathcal{H}_{an} = - \sum_{i} (K_x m_{x,i}^2 + K_z m_{z,i}^2)$, these fields are given by
\[\begin{aligned} \tilde{H}^\mathrm{an}_{w, i} = 2K_x\cos^2 \phi_i \sin^2 \theta_i + 2K_z \cos^2 \theta_i, \\ \tilde{h}^\mathrm{an}_{u, i} = 2K_x \cos \phi_i \cos \theta_i (\tilde{u}_i \cos\phi_i \cos \theta_i - \tilde{v}_i \sin\phi_i) +2 K_z \tilde{u}_i \sin^2\theta_i, \\ \tilde{h}^\mathrm{an}_{v, i} = 2K_x \sin \phi_i (-\tilde{u}_i \cos\phi_i \cos \theta_i + \tilde{v}_i \sin\phi_i ). \end{aligned}\]Zeeman Field For a static external field $\vec{H}=(H_x, H_y, H_z)$, one obtains $\tilde{h}_u = \tilde{h}_v = 0$ and $\tilde{H}^a_{w, i} = H_z \cos \theta_i + H_x \cos \phi_i \sin \theta_i + H_y \sin \phi_i \sin \theta_i$.