(image) (image) [ Previous ] [ Home ] [ Next ]

Computation of Torques
in Magnetic Tunnel Junctions

Chapter 6 Spin and Charge Drift-Diffusion for the Computation of Spin Torques and Finite Element Implementation

The driving factor of the writing process in modern MRAM cells is the torque generated by the polarization process of electrons transiting through the ferromagnetic layers in an MTJ stack. The simulation of the switching process can be achieved by solving the LLG equation for magnetization dynamics, with the inclusion of a term describing the torque acting on the magnetization. As seen in the previous chapters, such term can be defined by employing a Slonczewski-like torque approach [16]. This, however, allows to approximately simulate the magnetization dynamics of a thin free layer only. A more complete description of the process can be obtained by computing the non-equilibrium spin accumulation S across the whole structure. The following sections demonstrate that a more general expression for the torque term TS entering (3.44) can be given as [25], [119], [120]

(6.1)TS=Dem×SλJ2Dem×(m×S)λφ2,

where De is the electron diffusion coefficient. The first term describes precession around the exchange field and is characterized by the exchange length λJ, and the second term describes the dephasing process of the spins of the transiting electrons, and is characterized by the dephasing length λφ.

The spin accumulation S describes the deviation of the polarization of the conducting electrons from the equilibrium configuration created by a charge current density JC, in units of the transported magnetic moment (A/m). Thus, by definition S is non-zero only when an electric current is flowing through the system [83]. A solution for S in all nonmagnetic and ferromagnetic layers of an MRAM cell can be obtained by means of the spin and charge drift-diffusion formalism.

6.1 Spin and Charge Drift-Diffusion

Spin and charge drift-diffusion equations in the presence of a spin-valve structure where the ferromagnetic layers have co-linear (parallel or anti-parallel) magnetization were first derived by T. Valet and A. Fert [121]. A formulation of the equations for the computation of S in the presence of arbitrary magnetization orientation was later reported by S. Zhang, P. Levy and A. Fert [98], and will be hereby summarized. In a magnetic multilayer with the current perpendicular to the plane of the layer, along the x-direction, the linear response of the current to the electric field can be written in spinor form as

(6.2)j^=C^E(x)D^n^x,

where E is the electric field, which can be expressed in terms of the electric potential V as E=V/x, and j^, C^, D^, and n^ are the 2×2 spinor matrices representing the current density, the conductivity, the diffusion coefficient, and the accumulation at a given position. For a metal, the diffusion constant and the conductivity are connected via the Einstein relation C^=e2N^FD^, with N^F the spin-dependent density of states at the Fermi level. These matrices can in general be expressed in terms of the Pauli matrix vector σ:

(6.3)C^=C0I^+Cσ^(6.4)D^=D0I^+Dσ^(6.5)n^=n0I^+Sσ^ 2n0 is the charge accumulation, C0 is related to the conductivity σ by σ=2C0, and D0 is related to the electron diffusion coefficient by De=2D0. The two vectors C and D are related to the different conductivity and diffusion constant for the majority and minority electrons, labeled σ, De and σ, De, respectively. This difference is characterized by the conductivity polarization parameter βσ=(σσ)/(σ+σ) and the diffusion polarization parameter βD=(DeDe)/(De+De). For a transition ferromagnet, C is then defined as C=βσC0m and D=βDD0m. The two polarization parameters are different when the density of states for majority and minority electrons is not the same. By inserting (6.3)-(6.5) into (6.2), one obtains the following expressions for the charge current density JC and spin polarization current density JS along the x-direction:

(6.6a)JCRe(Tr[j^])=σE+eμBβDDeSxm(6.6b)JSRe(Tr[σ^j^])=μBeβσmσEDeSx Terms involving the spatial derivative of the charge accumulation have been ignored, as in metals the distribution of charges can be considered uniform. The factor μB/e converts from the units of electric charge, A/m2, to the ones of the spin polarization current density, A/s. The latter can be converted to the typical units of spin current density by multiplication with the factor /(2μB). The spin polarization current density will be referred to as spin current for brevity from now on.

Equation (6.6) only describes the spin and charge currents on the axis perpendicular to a multilayer structure. The generalization to a three-dimensional formulation leads to the following expressions:

(6.7a)JC=σE+eμBβDDe(S)Tm(6.7b)J~S=μBeβσm(σE)DeS is the outer product, JC is the charge current density vector, J~S is the spin current tensor, where the components JS,ij indicate the flow of the i-th component of spin polarization in the j-th direction, and S is the vector gradient of S, with components (S)ij=Si/xj. The term (S)Tm is a vector with components ((S)Tm)i=j(Sj/xi)mj. In case the current density distribution is known, the spin current can be expressed in terms of the charge current by inserting (6.7a) into (6.7b):

(6.8)J~S=μBeβσm(JCeμBβDDe(S)Tm)DeS

The equation of motion for the spin accumulation in a ferromagnet is determined by the interaction of the local magnetization moment and the spin of the itinerant electrons. This interaction can be described by the Hamiltonian term

(6.9)Hint=JSm,

where J is the coupling strength between local moments and itinerant electrons. The following equation of motion for the spin accumulation can thus be derived:

(6.10)dSdtJm×S=Sτsf

τsf is the spin-flip relaxation time of the conduction electrons. The second term on the left hand side describes the processional motion of the accumulation due to the exchange interaction. It plays a role when the non-equilibrium spin accumulation and the local magnetization moment are not parallel. The rate of change of S can be expressed in terms of its partial derivative in time and the divergence of the spin current as dS/dt=S/t+J~S. By replacing this expression in (6.10), the equation for the spin accumulation becomes

(6.11)St=J~SDeSλsf2+Dem×SλJ2,

where the two length parameters λsf and λJ are defined as λsf=Deτsf and λJ=De/J. J~S is the divergence of J~S with components (J~S)i=jJS,ij/xj.

Equation (6.11) can be further simplified by taking into consideration the fact that the typical time-scales for the spin accumulation and the magnetization are very different. While the former is of the order of picoseconds, the latter is of the order of nanoseconds [98]. For the computation of the spin torque, to be added to the LLG equation (3.44), it is thus sufficient to consider a steady-state expression for the spin accumulation. This assumption was numerically verified in [122]. With S/t=0, the equation describing the spin accumulation becomes

(6.12)J~SDeSλsf2+Dem×SλJ2=0.

An expression for the torque can be extracted from (6.12) by considering a conservation argument [123]. In the original work of Slonczewski [14], it was argued that the spin current lost by the conducting electrons, described by the divergence term, must have been gained by the magnetization, due to conservation of the total angular momentum. This is always valid in the absence of additional relaxation mechanisms for the spin accumulation [99]. However, in the presence of spin-orbit coupling, part of the angular momentum is transferred to the lattice. This process is responsible for the spin-flip relaxation, described by the λsf term. Spin current lost due to this mechanism does not contribute to the torque acting on the magnetization. The torque can then be obtained as

(6.13)TS=J~SDeSλsf2=Dem×SλJ2.

6.1.1 Spin Dephasing Term

The previous section showed the derivation of a spin torque expression where both the absorption and decay of the transverse spin accumulation components are governed by the exchange length λJ. Another possible mechanism for the absorption of the transverse components is the dephasing process. Dephasing occurs when, after traveling for a certain distance, different spins have precessed different amounts, so that their transverse components tend to cancel out [120]. In the context of spin transfer torques, this can occur from the variation of electron velocities over the Fermi surface [124] or from spins precessing at the same rate but arriving at different times due to scattering [125]. The behavior of the spin accumulation with both precessional and dephasing terms was described in terms of the Continuous Random Matrix Theory (CRMT) in [125], and the equivalence of CMRT and the spin and charge drift-diffusion formalism was shown. This section gives a brief overview of the derivation thereby presented.

The Landauer-Büttiker formalism, or scattering formalism, is the base for CRMT, and is expressed through a scattering matrix S relating the initial state and the final state of a physical system undergoing a scattering process [126]. The form of the S matrix is derived by considering a system where two leads are connected to a central scattering region. The leads are quasi-one-dimensional waveguides. By assuming the solutions to the Schrödinger equation Ψn±=ψ(y)exp(±iknx) are known outside of the scattering region, the wave functions Ψ±(x,y)L/R on the left (L) and right (R) side can be expressed as a linear combination of them:

(6.14)Ψ±(x,y)L/R=nan,L/R±ψ(y)exp(±iknx)

Ψ+(x,y)L and Ψ(x,y)R are the incoming wave functions, while Ψ(x,y)L and Ψ+(x,y)R are the outgoing wave functions. By expressing the vectors containing the expansion coefficients an,L/R± as ΨL/R±, the incoming and outgoing vectors can be related by a matrix S composed of reflection (r,r) and transmission (t,t) submatrices:

(6.15)(ΨLΨR+)=(rttr)(ΨL+ΨR),(rttr)=S If two conductors A and B described by this scattering formalism are in series, the transmission and reflection of the whole system can be written as

(6.16a)tAB=tB11rArBtA,(6.16b)rAB=rB+tB11rArBrAtB. The conductance of a system can be expressed in terms of its transmission matrix t as

(6.17)G=e2hT,T=Tr[tt].

The value T corresponds to the sum over the probabilities of being transmitted from one side of the system to the other, and h is the Planck constant. The same expression holds true for the reflection probabilities, represented by the quantity R=Tr[rr]. By taking a semi-classical limit and assuming that successive reflections mix together different channels, it can be assumed that each electron traveling through the system picks up a certain phase. The transmission through the whole system takes then the form

(6.18)tAB=tB11|rArB|ztA,

where z=exp(iφ) describes the phase acquired by the traveling electrons. An expression for the conductance is obtained by taking the average over all values of φ:

(6.19)GAB=e2hTAB

The average value can be computed through the residual theorem by integrating over the phase in the complex space. This leads to the expression

(6.20)TAB=TB11RARBTA,

which has the same form of (6.16a), but it relates probabilities instead of amplitudes. The same is also true for the quantity RAB. This means that, within the semi-classical limit, transport can be described by a scattering-like formalism concerning only probabilities.

The same theoretical description, employed until now only in the presence of multiple channels, can also be applied in the presence of the additional spin degree of freedom. In this case, the transmission and reflection matrices have dimensions of 4Nch×4Nch, with Nch the number of channels. The random matrix theory (RMT) employed in [126] can be applied to account for both mixing of the contributions in different channels and loss of coherence of the waves traveling through the system, in a similar fashion to the average over the phase previously shown. The resulting theory presents a structure similar to the scattering formalism, with 4×4 spin-dependent transmission and reflection matrices, indicated by a hat. The block matrix S^ describing transport through a conductor takes the form

(6.21)S^=(r^t^t^r^).

Each of the four submatrices is defined from the 4Nch×4Nch matrices of the scattering theory, relating different spins and channels, by the following expression:

(6.22)t^ση,ση=1NchTrNch[tσηtση]

σ and η indicate the up () or down () spin orientation. Similar expressions hold for the other transmission and reflection matrices. The most important contributions to the obtained matrix are the probabilities Tση=t^ση,ση and the mixing coefficients Tmx=t^σσ,σσ. The other entries in the matrix have a negligible contribution to the overall transport description and can be disregarded [126]. The final form of the t^ matrix is then given by

(6.23)t^=(T↑↑00T↑↓0Tmx0000Tmx0T↓↑00T↓↓).

Similar expressions hold true for the other matrices entering (6.21). The coefficients Tση=t^ση,ση describe the probability of an electron with spin σ to be transmitted with spin η. The mixing coefficients are related to the precession and loss of coherence of electrons with a spin non-colinear with the magnetization:

(6.24)Tmxexp(d/l+id/lL)

d is the thickness of the ferromagnetic conductor, and lL is the Larmor precession length. The term containing l is related to the fact that the amount of precession depends on the direction of incidence of the electron into the ferromagnet. Two electrons with different incidence angles will undergo a dephasing process. This results is an exponentially decaying spin density orthogonal to the local magnetization which absorbs the transverse components of the spin current. l indicates the typical length over which these absorption process occurs.

Most of the quantities described until now can be recast in terms of semi-classical properties. The conductance can now be expressed as

(6.25)G=(T↑↑+T↑↓+T↓↑+T↓↓)/Rsh,

where Rsh=h/(e2Nch) is the Sharvin resistance. It corresponds to the resistance of a perfectly transparent waveguide, with Nch propagating transversal modes. As shown in [126], the addition laws for transmission and reflection in equation (6.20) are still valid. Moreover, it is shown that the number of degrees of freedom can be reduced from the incoming and outgoing wave function coefficients to vectors of length 4, storing only the charge and spin degrees of freedom. These vectors are noted P4,L/R±, and the incoming and outgoing vectors are related through the S^ matrix (6.21) as

(6.26)(P4,LP4,R+)=S^(P4,L+P4,R).

As shown in [125], one can demonstrate the equivalence of the random matrix description to the spin and charge drift-diffusion formalism. First, transport in a discretized one-dimensional conductor, divided into N parts, is considered. The P4 vectors of each part can be related through the node equations

(6.27a)P4,L+[i+1]=P4,R+[i],(6.27b)P4,L[i+1]=P4,R[i], where i is an index going from 1 to N. Through a variable change, the P4 vectors can be employed to obtain the four dimensional potential μ4 and current j4 in the system [127]:

(6.28a)μ4=12(P4,L++P4,L)(6.28b)j4=12(P4,L+P4,L) After the change of variables, and by assuming that transmission and reflection properties do not depend on the direction, equations (6.26) and (6.27) can be combined to obtain the following relations:

(6.29a)2(μ4[i+1]μ4[i])=(r^t^+1)(μ4[i+1]μ4[i]j4[i+1]j4[i])(6.29b)2(j4[i+1]j4[i])=(r^+t^1)(μ4[i+1]+μ4[i]j4[i+1]+j4[i])

In order to go from the discrete description presented until now to a continuous one which recovers the drift-diffusion formalism, one must go to the limit where the length of each material slice goes to the infinitesimal quantity dx. This gives the possibility of describing the thin slices’ S^ matrix components with the following parametrization [128]:

(6.30a)t^=1Λtdx(6.30b)r^=Λrdx Λt and Λr are 4×4 matrices. These expressions can be inserted back into equation (6.29), to obtain the following formulation:

(6.31a)2(μ4(x+dx)μ4(x))=dx(Λr+Λt)(μ4(x+dx)μ4(x)j4(x+dx)j4(x))(6.31b)2(j4(x+dx)j4(x))=dx(ΛrΛt)(μ4(x+dx)+μ4(x)j4(x+dx)+j4(x)) The equations can then be developed to the first order in dx to obtain the continuous differential equations

(6.32a)μ4x(x)=2ΛΩj4(x),(6.32b)j4x(x)=2ΛΞμ4(x), where 2ΛΩ=Λt+Λr and 2ΛΞ=ΛtΛr. These matrices, defined so that they fit the Valet-Fert theory, take the form

(6.33a)ΛΩ=(Γ0000Γmx,eff0000Γmx,eff0000Γ),(6.33b)ΛΞ=(Γsf00Γsf0Γτ0000Γτ0Γsf00Γsf). The coefficients of these two matrices are linked to the characteristic length scales of the material. Γ()=1/l() is the mean free path for majority (minority) electrons. It can be rewritten in terms of the mean free path l=(1/l+1/l)1 and spin asymmetry of the material β, introduced by Valet-Fert in [121] as Γ()=(1β)/(2l). These length scales are connected to the spin-dependent resistivities of the Valet-Fert theory [121] as l()=Rsh/ρ() and l=Rsh/(4ρ). Γmx,eff=Γmx/2+(Γ+Γ)/2 is the component describing the behavior of the electrons with spin direction transverse to the local magnetization. Γmx=1/li/lL is of ballistic origin, and describes the spin-dependent part of the transport, with the Larmor precession length and spin penetration length introduced in (6.24). The second part is related to the spin-independent part of the transport. Γsf=l/(4lsf2) is connected to spin-flip processes, and lsf is referred to as spin diffusion length. Finally, Γτ=Γmx/2+2Γsf describes the behavior of the non-conserved part of the transverse spins, including the fact that they are also affected by spin-flip processes.

It is then possible to recover charge and spin potentials (μc and μ, respectively) and charge and spin currents (jc and j, respectively) from the variables μ4 and j4. The process, described in detail in [125], involves a change of basis based on the set of 4×4 matrices Iij=σiσj, where i,j=0,1,2,3, σ0 is the identity matrix and σ1,2,3 are the Pauli matrices. The resulting equations can be expressed in the same units employed for the Zhang-Levi-Fert formalism (6.6) through a change of variables. All the potentials and currents described until now are expressed in units of energy. One can express the charge potentials in units of V as V=eμc and convert the spin potential to spin accumulation, expressed in units of A/m, as S=(μBσ/(e2De)) μ [83]. The charge current expressed in the usual units of A/m2 is JC=(e/(4Rsh)) jc, and the spin polarization current density, expressed in units of A/s, is JS=(4μB/(e2Rsh)) j [83], [123]. Furthermore, the relations between the Zhang-Levy-Fert and Valet-Fert theories derived in [83] can be extended to include the length scales coming from the CMRT derivation:

(6.34a)σ=1ρ(1β2)(6.34b)λsf2=lsf21β2(6.34c)λJ2=llL1β2(6.34d)λφ2=llLλJ2(6.34e)λ2=l21β2 λφ is the spin dephasing length introduced in (6.1), λ=Deτ is the momentum relaxation length, and τ is the time for momentum relaxation [98], [129]. The spin asymmetry parameter β of the Valert-Fert model is equivalent to the conductivity polarization βσ in the Zhang-Levy-Fert approach. Finally, the spin and charge drift-diffusion equations for transport along the x-direction obtained through the formalism of [125] are, after the change of variables:

(6.35a)JC=σE+eμBβDDeSxm(6.35b)JSλ2λJ2m×JSλ2λφ2m×(m×JS)=μBeβσmσEDeSx(6.35c)JCx=0(6.35d)JSxDeSλsf2+Dem×SλJ2+Dem×(m×S)λφ2=0 A generalization of these equations to three-dimensions leads to the following expressions [119], [123], [125]:

(6.36a)JC=σE+eμBβDDe(S)Tm(6.36b)J~Sλ2λJ2[m]×J~Sλ2λφ2[m]××J~S=μBeβσm(σE)DeS(6.36c)JC=0(6.36d)J~SDeSλsf2+Dem×SλJ2+Dem×(m×S)λφ2=0 [m]× and [m]×× indicate the matrices associated with the cross-product and double cross-product with m:

(6.37)[m]×=(0m1m2m30m1m2m10),[m]××=(m22m32m1m2m1m3m1m2m12m32m2m3m1m3m2m3m12m22)

The result for the divergence of the spin current in (6.36c) stems from the absence of electric current sources inside the metallic layers, due to the fast redistribution of any charge imbalance [24], [25]. Equation (6.36d) differs from (6.12) by the presence of the spin dephasing term, dependent on λφ, which leads to the torque expression (6.1) presented at the beginning of the chapter. Another important difference of this formulation is the presence of the additional terms on the left side of equation (6.36b), which mix up the orthogonal spin current components depending on the local magnetization orientation. These terms originate from the underlying ballistic origin of the transverse spin precession or dephasing [123], and depend mainly on the ratio between the momentum relaxation length λ and the transverse absorption lengths λJ and λφ. For transition metal ferromagnets, λ and λJ have the same order of magnitude [98]. The present dissertation, following [25], focuses on a finite element implementation which does not include these additional terms, showing how an appropriate treatment of the tunneling layer and tuning of the system parameters are able to reproduce the most important properties of the torque expected in MTJs, while still retaining the capability of obtaining all torque contributions in several ferromagnetic layers from a unified expression. Some considerations about the possible influence of the additional spin current terms on the computed spin torque will be presented in Section 8.5 of Chapter 8.

By employing the spin current expression (6.8), the final set of equations defining the spin accumulation and torque is:

(6.38a)J~SDeSλsf2TS=0(6.38b)J~S=μBeβσm(JCeμBβDDe(S)Tm)DeS(6.38c)TS=Dem×SλJ2Dem×(m×S)λφ2

6.2 Finite Element Implementation

The LLG equation, coupled with the spin and charge drift-diffusion formalism for the computation of the torques, allows to describe the magnetization dynamics of structures containing an arbitrary number of different layers. Analytical solutions to these set of partial differential equations (PDEs) are only possible in simplified scenarios, and numerical methods are necessary to resolve the dynamics in a more general sense. In Chapter 4, a FD implementation of the LLG equation was shown. The FD solver is, however, only able to compute the magnetization dynamics of a thin free layer, with an approximate elliptical shape and thickness of one cell. The FE method is naturally able to handle meshes with complex geometries and several material domains [130], [131], and was therefore employed for the implementation of a solver capable of handling charge, spin accumulation and magnetization dynamics. The implementation was carried out by employing the open-source C++ FE library MFEM [132], [133]. The software responsible for the solution of the spin and charge drift-diffusion equations was developed by the author of the present dissertation. The following sections provide a brief overview of the basic principles of the FE method, followed by the weak formulation of both the LLG and spin and charge drift-diffusion equations, necessary in order to obtain a FE solution.

6.2.1 The Finite Element Method

The FE method is a numerical approach for the computation of approximate solutions to partial differential equations. In order to solve a problem, the simulation domain is first divided into an equivalent system of smaller and simpler bodies, referred to as finite elements, interconnected at nodes (points common to two or more elements) and boundary lines or surfaces. This is achieved by the construction of a mesh of the object, containing a finite number of points. The FE formulation of a given problem approximates the solution of differential equations with the solution of a system of algebraic equations. Instead of solving the problem for the entire body in one operation, the equations are first formulated for each element, and are then combined to obtain a solution valid for the whole domain.

Weak Formulation

The first step in the derivation of a FE representation of a given set of PDEs is to write the equations in the so-called weak formulation. To give an example of the derivation of the weak form of a given problem, the following Poisson equation is considered:

(6.39)2u=qin Ω

Ω indicates the integration domain, and u is the unknown quantity being solved for. The boundary conditions are

(6.40a)u=uDon ΩD,(6.40b)un=gon ΩN, where n is the external boundary normal, ΩD is the portion of the external boundary Ω where Dirichlet boundary conditions (6.40a) are applied, and ΩN is the portion of the external boundary where Neumann conditions (6.40b) are applied. A Dirichlet condition prescribes the value of the solution, while a Neumann condition prescribes the value of the normal derivative of the solution. A boundary condition needs to be specified for each external boundary of the domain. To obtain the weak formulation, both sides of (6.39) are multiplied by smooth functions, referred to as test functions, and integrated over the simulation domain:

(6.41)Ω2uvdx=Ωqvdx

v indicates a test function. By applying Gauss theorem, stating that Ωpdx = Ωpndx, to the function p=uv, and by considering the product rule of derivation, one obtains the following equivalence:

(6.42)Ω2uv=ΩuvdxΩunvdx

By putting this expression back into (6.41), and by considering the boundary conditions (6.40), one obtains the following equation:

(6.43)ΩuvdxΩDunvdx=Ωqvdx+ΩNgvdx

All the terms containing the unknown quantity u where put on the left-hand side, while the known terms are on the right-hand side. The Dirichlet conditions are then assigned in a strong sense, imposing u=uD on ΩD, and the test function v is chosen as to satisfy v=0 on ΩD. This way, the weak formulation of the Poisson equation takes the form

(6.44)Ωuvdx=Ωqvdx+ΩNgvdx.

The test function and the solution are both assumed to belong to Hilbert spaces, and in the so-called Galerkin method, employed for the results presented in this work, they belong to the same Hilbert space. In particular, a proper choice for such space, referred to as V, is the following:

(6.45)V:={vL2(Ω)|v[L2(Ω)]d&v|ΩL2(Ω)}

d is the number of spacial dimensions under consideration, and L2(Ω) is the set of L2-integrable functions in Ω. The weak form (6.44) is required to hold for all test functions v in V. This formulation is referred to as "weak" because it only requires equality in an integral sense, while in the original form (6.39) all the terms must be well defined in all points.

From the Weak Formulation to a System of Algebraic Equations

The next step is the derivation of a numerical approximation of the weak form (6.44). For this purpose, the original domain Ω is divided into smaller regular subdomains T. The set of all subdomains contained in Ω is labeled T and referred to as triangulation. Typical choices for the shape of the subdomains T are triangles ot squares in two dimensions and tetrahedrons or hexahedrons in three dimensions, but more complex shapes can also be employed. The set of points defining the discretization, referred to as nodes, is indicated as N={xi}, where xi is the coordinate vector of node i. By means of the triangulation, a subspace of V where to look for the approximate numerical solution uhu can be defined as

(6.46)Vh:={vC(Ω)|v|T is affine TT}.

Vh is referred to as finite element space. Each function vh belonging to Vh is uniquely defined by its values at the nodes. The set of nodes can be divided into two subsets, one containing the nodes at the Dirichlet boundary, ND, and the other containing the remaining (free) nodes, Nf. In order to get a discretized version of (6.44), the functions vh can be represented in terms of the nodal basis {φi} of Vh, characterized as

(6.47)φi(xj)=δij.

The test functions and the finite element solution uh can be represented with respect to this basis:

(6.48)uh(x)=i=1Nuiφi(x)

N is the total number of nodes, and ui=uh(xi) are the values assumed by the approximate solution at the nodes. Fig. 6.1 illustrates a possible approximation of the solution u through linear basis functions in a one-dimensional scenario. u could be taken to represent the electrical potential in a rod with non-uniform charge distribution. The rod is split into eight equal parts (which represent its triangulation), and the basis functions associated with each node have a value of one at their respective node, and 0 at all other nodes. It can be seen how uh, as defined by (6.48), can be used to approximate the continuous solution u. One of the advantages of employing the finite element method is that it offers great freedom in the selection of discretization, both in the choice of elements and basis functions [130]. Moreover, it is possible to locally refine the mesh to obtain a better approximations in the regions where the solution varies quickly.

(image)

Figure 6.1: Representation of the original solution u and the finite element approximation uh in a one-dimensional setting. The basis functions for all the nodes are reported on the bottom of the graph. The basis function and solution value associated with the node x2 are labeled φ2 and u2, respectively.

Determining the coefficients ui gives a unique solution to the problem at hand. The values on ND are determined by the Dirichlet boundary conditions:

(6.49)ui=uD(xi)xiΩD

All the remaining values can be determined by inserting uh and vh instead of u and v in (6.44), and then expressing both of them in terms of their nodal values through (6.48). Fulfilling (6.44) for the whole space Vh is equivalent to only considering the basis associated with the free nodes {φi|xiNf}, leading to the following expression:

(6.50)i{Ωφiφjdx}ui=Ωqφjdx+ΩNgφjdx

This equivalence needs to be valid for the whole set of basis functions associated with the free nodes. A matrix ARN×RN for the right-hand side of (6.50) and a vector fRN for the left-hand side can be defined as

(6.51a)Aji=Ωφiφjdx,(6.51b)fj=Ωqφjdx+ΩNgφjdx. Both A and f can be represented in terms of their components acting on the Dirichlet and free nodes:

(6.52)A=(ADDADfAfDAff),f=(fDff)

As only neighboring nodes have overlapping basis functions, A is a sparse matrix, with non-zero terms only around the diagonal. By considering the constraint (6.49), and the solution vector u=(ui)RN, u=(uD,uf)T, (6.50) can be written as the following system of linear equations:

(6.53)(I0AfDAff)(uDuf)=(uDff)

I stands for the identity matrix. As the uD values are known, the final symmetric system of Nf equations for the determination of the unknown uf values is

(6.54)Affuf=ffAfDuD.

6.2.2 Weak Formulation of the Micromagnetic Equations

The implementation of a FE algorithm for the solution of the LLG equation has been of great interest for the solution of micromagnetic problems with meshes of varying complexity. First schemes for a numerical approximation of the weak LLG solution were proposed in [134], [135], by considering only the exchange field contribution to the effective field. In reference [136] the so-called tangent plane integrator scheme, solving for the discrete time derivative, was introduced, and was later generalized to include the full effective field [137], [138]. The unconditional convergence of the tangent plane integrator scheme and of the FE implementation of the spin and charge drift-diffusion equations was proven in [139], and later applied to metallic spin-valves in [23]. Here, the weak formulation of the tangent plane integrator and of the spin and charge transport equations, employed to obtain the results presented in these thesis, is reported. The flow-chart of the simulation process is presented in Fig. 6.2.

(image)

Figure 6.2: Flowchart of the FE solver implementing the weak formulation of both the LLG equation and the spin and charge drift-diffusion equations.
LLG Equation

The tangent plane scheme solves the LLG equation for the magnetization derivative m/t=v. The weak formulation of the LLG equation comes from the expression

(6.55)αmt+m×mt=γ0Heffγ0(mHeff)m,

which can be obtained by cross-multiplying (3.9) with m, and using the product rule a×(b×c)=(ca)b(ab)c together with the constraint |m|=1. For the FE implementation, the magnetization is taken to be a piecewise affine, globally continuous function [83]. Each component belongs to the Sobolev space H1. It is the space of functions in L2 that additionally admit a weak gradient which also belongs to L2 [138]. The weak gradient is a generalization of the gradient, defined with the help of the test functions and valid in an integral sense, and its existence is needed to be able to evaluate terms containing spatial derivatives in the weak formulation. The notation for the vector space of the magnetization is H1. Instead of looking for the solution v in the same space of the magnetization, the solution space VT is restricted to vectors tangent to the magnetization, so that VT={wH1|mw=0}. The test functions are also restricted to the same space, so that the weak formulation of (6.55) results in

(6.56)ω(αv+m×v)wdx=γ0ωHeff(m)wdx, where ω is the subdomain containing only the magnetic parts of the structure under analysis. The last term on the right-hand side of (6.55) is not present, as the test functions are restricted to the tangent space VT. The time derivative v at a certain time tk is obtained by setting [83]

(6.57)mk+1=mk+θδtv,

where δt is the time-step, and θ is a parameter between 0 and 1, with the value 0 leading to a fully explicit scheme and 1 to a fully implicit one. Each effective field contribution can be treated with a different value of θ. In the implementation employed for this work, θ is different from 0 only for the exchange field contribution (3.17), where the value 1 is employed for stability reasons [140]. The weak formulation employed for the computation of the magnetization dynamics by the FE solver, with the inclusion of the torque terms coming from (6.1), is then

ω(αv+mk×v)wdx+2AγMSδtωv:wdx=2AγMSωmk:wdx+γ0ω(Hext+Hani(mk)+Hdemag(mk))wdx+(6.58a)+DeMSω(SkλJ2+mk×Skλφ2)wdx,(6.58b)mk+1=mk+δtv|mk+δtv|. The right-hand side of (6.58b) is evaluated nodewise, ω indicates the magnetic subdomains, and a:b=ij(ai/xj)(bi/xj) is the Frobenius inner product of two matrices. The exchange field contribution (3.17), together with (6.57), gives rise to the second term on the left-hand side and to the first term on the right-hand side. The boundary integrals arising from the weak formulation of this contribution are put to zero by the Neumann boundary condition (3.41), applied on the external boundary of the magnetic region ω. The equations are subject to the initial condition m(0)=m0. The system of equations resulting from the FE implementation of this weak formulation includes the tangent plane constraint mw=0, and the solution at each time-step is computed through a solver based on the generalized minimal residual (GMRES) method, provided by the library MFEM. The GMRES method is an iterative algorithm for the numerical solution of an indefinite nonsymmetric system of linear equations, as is the case of FE implementation of (6.58a) due to the presence of the cross-product terms. Material parameters that can differ from subdomain to subdomain are treated as piecewise constant functions, unless differently stated. The contribution of the demagnetizing field Hdemag is evaluated only on the disconnected magnetic domain by using a hybrid approach combining the boundary element method and the FE method [141], [142].

Spin and Charge Drift-Diffusion Equations

The weak formulation for the computation of the spin accumulation is derived from (6.38). The equations are solved for the magnetization mk at each time-step, and the resulting spin accumulation Sk is employed in (6.58a).

For the computation of the charge potential and current, a Laplace equation is solved for the whole domain Ω, with the weak formulation

(6.59a)ΩσVvdx=0,(6.59b)ΩJCvdx=ΩσVvdx, where v represents a test function belonging to H1, while v is a test function in H1. V belongs to H1, and equation (6.59b) is employed to obtain a projection of JC in the H1 function space [83]. Dirichlet conditions are applied to prescribe the voltage at the contacts. The Neumann condition σVn=0 is assumed on external boundaries not containing an electrode. Special treatment of the conductivity σ results in an implementation capable of reproducing the charge current dependence on the TMR and relative direction of the magnetization vectors in the FL and RL of an MTJ, as will be shown in Chapter 7. The solution of the system of equations resulting from the FE implementation of (6.59) is computed through a solver based on the conjugate gradient (CG) method, provided by the library MFEM. The CG method is an algorithm for the numerical solution of systems of linear equations whose matrix is positive-definite, as is the case of the FE implementation of (6.59).

The weak formulation of the spin drift-diffusion equations presented in [23] is generalized to apply to (6.38), which includes the additional spin dephasing term, resulting in the following expression:

DeΩ(SβσβDm((S)Tm)):vdx++DeΩ(Sλsf2+S×mλJ2+m×(S×m)λφ2)vdx=(6.60)μBeβσω(mJC):vdxμBeβσΩω((mJC)n)vdx v represents again a test function belonging to H1, S also belongs to H1, and Ωω indicates the shared external boundary of the whole domain Ω and magnetic subdomain ω. The boundary integrals arising from the weak formulation are put to zero by the Neumann condition (S)n=0, assumed on external boundaries. For contacting regions longer than the spin-flip length, this condition is equivalent to an exponential decay of S towards the electrodes [23], [25]. The charge current JC is the one computed from (6.59). The solution of the system of equations resulting from the FE implementation of (6.60) is computed through a solver based on the GMRES method, provided by the library MFEM, as due to the cross product terms the FE implementation of (6.60) results in a nonsymmetric system of linear equations.