Professional Documents
Culture Documents
G. M. Wysin
wysin@phys.ksu.edu, http://www.phys.ksu.edu/personal/wysin
Department of Physics, Kansas State University, Manhattan, KS 66506-2601
Written April, 2012, Florianópolis, Brazil
Summary
Generaly in the study of magnetism, and specifically for micromagnetics simulations, one
needs to know the magnetic field H ~ M inside a macroscopic magnet, that is caused by
the magnetization M ~ (the dipole moment per unit volume) of that magnet itself. Some
aspects of how that demagnetization field can be found are discussed. There are two basic
cases: (1) The demagnetization field H~ M inside a finite element, that is caused by M
~ of
that particular element; (2) The demagnetization field caused by one finite element, but
measured at the position of another element. The discussion here is based on continuum
description of the magnet and the field, although it can be connected to an alternative
analysis that considers the superposition of many fields from a multitude of individual
magnetic dipoles.
Here M ~ is the dipole moment per unit volume (magnetization) and H ~ is called the magnetic field, or
really, for the situation considered here, the demagnetization field. The magnetic field is important
in that it determines part of the magnetic energy in the system, according to a volume integral,
1
Z
UM = − dV M~ · H.
~ (1.2)
2
~ can be rearranged as
The equation for the divergence-free B
~ ·H
∇ ~ = −∇
~ ·M
~. (1.3)
~ = −∇Φ
H ~ (1.5)
This leads to the Poisson equation to be solved to get the demagnetization field inside the magnet:
∇2 Φ = −ρ. (1.6)
For three dimensions, this is solved using the potential of a unit point charge as the Green’s function:
1
G(r) = . (1.7)
4π|r|
1
Then the solution of the Poisson equation for the potential is:
Z Z
ρ(r0 )
Z
−∇~0·M~ (r0 )
Φ(r) = dr0 G(r − r0 )ρ(r0 ) = dr0 = dr0 (1.8)
4π|r − r0 | 4π|r − r0 |
This gives the solution either directly from ρ, or from the divergence of M~ . But in some situations,
~
these are not as convenient as obtaining Φ directly from M . So one can do an integration by parts
here, using some vector calculus manipulations, letting the gradient act instead on the Green’s
function:
1
Z
Φ(r) = dr0 ∇ ~0 ~ (r0 )
·M (1.9)
4π|r − r0 |
There would have also been a surface term, but by taking that surface outside of the magnet, its
contribution is zero. So another way to write this is seen to be
r − r0
Z
Φ(r) = dr0 ~ (r0 ).
·M (1.10)
4π|r − r0 |3
~,
This defines another Green’s function, a radial vector to be used acting directly on M
Z
~ r ~ − r0 ) · M
~ (r0 ).
K(r) = → Φ(r) = dr0 K(r (1.11)
4π|r|3
d 1
Kr (r) = − G(r) = . (1.12)
dr 4πr2
This latter form using K ~ is preferred if we want to calculate the field without going through the
intermediate step of getting the charge density, which be a confusing physical concept anyway (at
least, if you think there should be some physical experiment to detect ρ, on which its reality could
be based).
In this last form, the Green’s operator K ~ acts directly on the magnetization. We could finally
~
take the gradient w.r.t. r to get H, however, without some special averaging procedures, that can
lead to an undefined integral. So it is better to wait to do that. It is interesting to realize that
equation (1.10) is simply a representation of the effective magnetostatic potential around a dipole
(then summed over dipoles). This is because the well-known formula for the potential of a point
dipole p~ (could be magnetic or electric) at the origin, is
r·p
Φ(r) = . (1.13)
4πr3
In (1.10), each dipole is dV M~ (r0 ), and thus one needs the displacement from its position, r − r0 .
Now, if the gradient of the potential of a point dipole is performed, it leads to the other well-known
expression for the field caused by that point dipole.
~ = −∇Φ
~ = 1
H [3r̂(r̂·p) − p] (1.14)
4πr3
It is good to point out that in a magnet that is “uniformly magnetized,” the internal charge
density ρ is zero within the magnet. So how can there be any H? ~ The answer is that at the surface
of the magnet, there is a discontinuous change in the magnetization; it suddenly goes from some
nonzero value to zero. This change corresponds to a delta-function charge density. Stated otherwise,
Gauss’ Law used on H ~ (i.e., the divergence theorem applied to a pillbox at the surface) will tell us
that there is a local surface charge density, given by
~ · n̂,
σ=M (1.15)
2
where n̂ is the outward normal vector from the surface. Mostly, I will use this surface charge density
as generating the field, because this is the most consistent way to think of doing the continuum
field mechanics, that does not have singularities. (One could imagine trying to sum over fields of
individual dipoles. It does not work out well in all cases.)
Usually the demagnetization field, the charge density, and the surface charge density, are given the
subscript M to show they are those associated with or caused by M ~ . Here I suppress this subscript;
I only discuss these demagnetization quantities. There is no external field being considered.
To save space, I wrote r̃2 = (x − x0 )2 + (y − y 0 )2 here, and in what follows this may be used again.
The integral is over the cross-section of the cylinder.
If we want to just find the field in the center of the cylinder, it is not so difficult, putting here
x =p y = 0. Then H ~ z can be found as a function of z. In this case there is dependence only on
r0 = x02 + y 02 and only a radial integration is needed (dx0 dy 0 → dθ0 r0 dr0 ),
( )
Mz 1 1
Z Z
0 0 0
Φ(z) = dθ r dr −p . (2.2)
4π
p
r02 + (z − δ)2 r02 + (z + δ)2
The integration is quite simple, if there is circular symmetry. For a circular cross-section, it gives
Mz hp 02 p iR
Φ(z) = r + (z − δ)2 − r02 + (z + δ)2
2 0
Mz h p 2 p i
= R + (z − δ)2 − R2 + (z + δ)2 − |z − δ| + |z + δ| (2.3)
2
The resulting field has to be an even function of z. Thus it can be calculated for z > 0; the result
for z < 0 will be symmetrical. Indeed, for any z between ±δ, this is
Mz hp 2 p i
Φ(z) = R + (z − δ)2 − R2 + (z + δ)2 + 2z (2.4)
2
Then the field on the axis of the cylinder is found quickly,
" #
dΦ 1 z−δ 1 z+δ
Hz = − = −Mz 1 + p − p . (2.5)
dz 2 R2 + (z − δ)2 2 R2 + (z + δ)2
3
Note the somewhat surprizing result. At z = 0, the last terms equal each other and combine, to give
( R2
δ −Mz 2δ 2 for δ R
Hz (0) = −Mz 1 − √ ≈ δ
(2.6)
2
R +δ 2 −Mz 1 − R for δ R
The field points opposite to M ~ , which is why it is demagnetization. Further, its strength depends on
the aspect ratio of the cylinder. Note the limiting behaviors. When the cylinder is long and thin, the
longitudinal field at its center gets very small. On the other hand, if the cylinder is short and wide,
the longitudinal field at its center is maximized, nearly equal to the strength of its magnetization.
This latter case corresponds to the strongest demagnetization that can take place.
Note the reason for the name, demagnetization. In some situations, M ~ could be generated by
the action of an externally applied field, according to M ~ = χH ~ ext , where χ > 0 is a paramagnetic
susceptibility. Then the total magnetic field in the sample will be the conbination of applied field
and this demagnetization field. They oppose each other, hence, the demagnetization field tends to
reduce the internal effect of the applied field. It seems to prevent the applied field from entering the
sample.
2.1.1 Average of Hz
It is common to want to know the average of the magnetic field in the sample. This can be done
easily for the field on the axis of the circular cylinder. The average over z is simple:
" #
1 δ Mz δ z−δ z+δ
Z Z
Hz = dz Hz (z) = −Mz − dz p −p
L −δ 2L −δ R2 + (z − δ)2 R2 + (z + δ)2
Mz p 2
h p i δ
= −Mz − R + (z − δ)2 − R2 + (z + δ)2
2L −δ
(
R
Mz p −Mz L for L R
= − L + R − R 2 + L2 ≈ L
(2.7)
L −Mz 1 − 2R for L R
Again, the average has a physical behavior similar to that for the value at z = 0. This is summarized
by saying that the longitudinal demagnetization factor Nz is
1 p
Nz = L + R − L2 + R 2 , H z = −Nz Mz . (2.8)
L
One can note that there is a theorem which says that the sum of the demagnetization factors for
x, y, z, call them Nx , Ny , and Nz , should add up to 1. Although we haven’t yet solved the case of
Mx or My , if we apply this theorem, and using the symmetry that Nx = Ny for the cylinder, then
there also results
1 1 p 2
Nx = Ny = (1 − Nz ) = L + R2 − R . (2.9)
2 2L
These results are plotted in Figure 2.8. Notably, for very skinny cylinders with R L, the longitu-
dinal demagnetization factor is Nz → 0 while the transverse factors are Nx → 21 . At the other limit,
for a flat cylinder, R L, we have Nz → 1 and Nx → 0. The flat cylinder has no demagnetization
effect within the xy-plane. Generally, the greatest demagnetization effects will always take place
through the shortest dimension of a object.
4
1
0.8 Nz
Circular cylinders
0.4 Nx+Ny+Nz=1
0.2 Nx = Ny
0
0 2 4 6 8 10
R/L
Figure 1: The behavior of the demagnetization factors as a function of aspect ratio for right circular
cylinders, based on Equations (2.8) and (2.9), for the averaged field along the cylinder axis. The
point where Nx = Ny = Nz = 31 is close to the radius such that 2R = L.
where θ is the angular position of a point on the surface, measured from the x-axis. This produces
positive charges on one side (x > 0) and negative charges on the other side (x < 0), hence, it is easy
~ will point generally towards −x̂. This now gives the integral expression for
to see that the field H
the potential, using cylindrical coordinates, with r0 = R,
2π δ
Mx cos θ0
Z Z
0
Φ(r) = R dθ dz 0 p (2.11)
4π 0 −δ r2 + R2 − 2rR cos(θ − θ0 ) + (z − z 0 )2
Let’s already do the derivative to get Hx , using points along the x-axis, θ = 0.
2π δ
dΦ Mx (x − R cos θ0 ) cos θ0
Z Z
Hx (z) = − = R dθ0 dz 0 (2.12)
dx 4π 0 −δ [r2 + R2 − 2rR cos θ0 + (z − z 0 )2 ]3/2
Now evaluating on the axis of the cylinder, x = y = r = 0, leaves only one term in the numerator
and simplifies the denominator:
2π δ
Mx −R cos2 θ0
Z Z
Hx (z) = R dθ0 dz 0 (2.13)
4π 0 −δ [R2 + (z − z 0 )2 ]3/2
To do this integral, it helps to let z 0 − z = R tan φ, then dz 0 = R sec2 φ, and we will have some
algebra like
R2 dz 0 dφ sec2 φ z0 − z
Z Z Z
2 2 3/2
= 3
= dφ cos φ = sin φ = p . (2.15)
[R + (z − z ) ]
0 sec φ R2 + (z 0 − z)2
5
This results in " #
−Mx δ−z δ+z
Hx (z) = p +p (2.16)
4 R2 + (δ − z)2 R2 + (δ + z)2
Check that is gives a correct order of magnitude by looking at the cylinder center, z = 0. The result
is (
−Mx
−Mx δ 2 for δ R
Hx (0) = √ ≈ −M x δ
(2.17)
2 2
R +δ 2
2 R for δR
One can note
√ that compared to Hz (0) = −Nz Mz calculated for longitudinal magnetization, with
Nz = 1 − δ/ R2 + δ 2 , this demagnetization factor is
1 δ
Nx = Ny = √ . (2.18)
2 R + δ2
2
Then at least for the central point of the cylinder, there results
Nx + Ny + Nz = 1. (2.19)
One can also check the average of Hx (z) over the position z. That result is
( " #)
1 δ −Mx δ−z δ+z
Z
Hx = dz +p
L −δ 4
p
R2 + (δ − z)2 R2 + (δ + z)2
−Mx h p 2 p iδ
= − R + (δ − z)2 + R2 + (δ + z)2
4L −δ
−Mx hp 2 i
= R + L2 − R (2.20)
2L
Here we can read off the transverse demagnetization factor (although not averaged over x),
1 hp 2 i
Nx = Ny = L + R2 − R (2.21)
2L
That is completely the same as we expected to get, based on the earlier result for Nz from H z , and
the symmetry relation, Nx + Ny + Nz = 1. It should be stressed again, that in the limit of a long
skinny cylinder (like a pencil, L R), this demag factor becoms Nx ≈ 21 .
The end edge is a = 2∆. This time go to the average over z directly, for the field:
1 δ 1 δ
dΦ −1
Z Z
Hz = dz Hz (z) = dz − = [Φ(δ) − Φ(−δ)] (3.2)
L −δ L −δ dz L
6
( )
∆ ∆
−Mz 1 1
Z Z
Hz = dx0 dy 0 −p (3.3)
2πL
p
−∆ −∆ x02 + y 02 x02 + y 02 + L2
Consider the integration over y 0 . We know the basic indefinite integral,
dy 0 y0
Z
p = sinh−1 . (3.4)
b2 + y 02 |b|
The absolute value is needed on b, because the result is independent of its sign. The integrals here
are over a symmetric interval, and the integrands are even. So change the integration to twice that
from 0 to ∆. It means we needs something like
∆
dy 0 ∆
Z
p = 2 sinh−1 . (3.5)
−∆ 2
b +y 02 |b|
Now we have
∆
−Mz ∆ ∆
Z
Hz = 2dx0 sinh−1 0 − sinh−1 √ (3.6)
πL 0 |x | x02 + L2
Really, absolute value is unnecessary now, because x0 > 0 only. To do this type of integral, note the
other way to write the inverse sinh function,
h p i
sinh−1 x = ln x + 1 + x2 (3.7)
Here, try the transformation, x0 = ∆ csch φ, then dx0 = −∆ csch 2 φ cosh φdφ, and 1 + ∆2 /x02 =
cosh2 φ. The changes the integral into
7
There is still the other integral, ugh.
" r #
∆ ∆ ∆2
Z Z
0 −1 0
I2 = dx sinh √ = dx ln √ + 1 + 02 (3.14)
x02 + L2 x02 + L2 x + L2
One can try a similar kind of tranformation. It might help to choose the transformation as
∆ ∆2
sinh φ = √ , cosh2 φ = 1 + sinh2 φ = 1 + , (3.15)
x + L2
02 x02 + L2
The forces the argument of the logarithmm to be sinh φ + cosh φ = eφ . Then get the derivative,
based on a rearrangment,
∆2 −2∆2 cosh φ
x02 + L2 = , 2x0 dx0 = dφ. (3.16)
sinh2 φ sinh3 φ
But also need s s
∆2 ∆2
x0 = − L2 = L − 1. (3.17)
sinh2 φ L2 sinh2 φ
So this gives
−∆2 φ cosh φ dφ
Z Z
I2 = dx0 φ = q (3.18)
L sinh3 φ L2 sinh
∆2
2φ − 1
8
That is still exact. But I don’t see how to integrate it. So go to the large L limit. This is
π/4
∆2 4∆2 4∆2 a2
Z
π/4
I2 ≈ 8 dθ0 sec2 θ0 = [tan θ0 ]0 = = . (3.26)
0 2L L L L
Note what is obtained for the first integral by this procedure (a simpler alternative to the mess I
did above):
∆ ∆ Z π/4 Z r0 (θ0 ) Z π/4
1 0 1
Z Z
0 0 0 0
I1 = dx dy √ =8 dθ r dr 0 = 8 dθ0 r0 (θ0 )
−∆ −∆ r02 0 0 r 0
Z π/4 Z π/4 Z 1/√2
0 0 0 cos θ0 du
= 8 dθ ∆ sec θ = 8∆ dθ 2 0 = 8∆ (3.27)
0 0 1 − sin θ 0 1 − u2
In the last step I used u = sin θ0 . But that is the derivative of inverse hyperbolic tangent. So this
gives
1/√2 1 √
I1 = 8∆ tanh−1 u 0 = 8∆ tanh−1 √ = 8∆ cosh−1 2 = 8∆ sinh−1 (1) ≈ 7.0∆ ≈ 3.5a. (3.28)
2
Putting the parts together, this gives in this limit,
a2
−Mz −Mz −1 −Mz a a
Hz = (I1 − I2 ) ≈ 4a sinh (1) − = 4 sinh−1 (1) − (3.29)
2πL 2πL L 2πL L
Here in this limit the I2 integral is just the correction term. This goes to zero when L → ∞, the
correct result for a long thin cylinder, even with a square cross-section. In place of R/L for circular
symmetry, the leading factor here is 4∆ πL sinh
−1
(1) ≈ 1.122 ∆L . So with ∆ playing the role of the
“radius,” it makes little difference if the cross-section is circular or square.
Short wide limit, L a. The I1 integral is unchanged, it does not depend on L. The I2 integral
is expanded now as
Z π/4
L2
0 0 1
I2 ≈ 8 dθ ∆ sec θ 1 + −L (3.30)
0 2 ∆2 sec2 θ0
The first term is a copy of I1 ; it will cancel out. That leaves terms linear and quadratic in L.
π/4
L2 L2
π π
Z
0
I2 = I1 + 8 dθ cos θ0 − L = I1 + 8 sin − L . (3.31)
0 2∆ 2∆ 4 4
L2
−Mz −Mz π π 2L π
Hz = (I1 − I2 ) ≈ × (−8) sin − L = −Mz 1 − sin . (3.32)
2πL 2πL 2∆ 4 4 π∆ 4
2L
The last term is π∆ sin π4 ≈ 0.45 ∆
L
. In the circular case, this factor comes in as L
2R , hence, they are
about equivalent, considering ∆ like the radius.
9
There is another term coming from the negative charge on the left face at x = −∆, to be included
now. Now find the field averaged over the x axis, including both plus and minus charges, is:
( )
−2Mx ∆ 0 δ 0 1 1
Z Z
Hx = dy dz p −p (3.34)
4πa −∆ −δ (y − y 0 )2 + (z − z 0 )2 a2 + (y − y 0 )2 + (z − z 0 )2
This is just the double of the contribution from one face’s charge. This is the same form of integrals
already discussed, but I didn’t get the exact result. I am most interested in the case where ∆ δ,
the long thin cylinder.
Let me instead do a slightly different approach. First, find the field. without any averaging.
From the positive charges, there is
∆ δ
dΦ Mx x−∆
Z Z
Hx+ (r) = − = dy 0 dz 0 3/2
(3.35)
dx 4π −∆ −δ [(x − ∆)2 + (y − y 0 )2 + (z − z 0 )2 ]
The integration over z 0 was done in equation (2.15). Using that result here, with the effective
R2 ≡ (x − ∆)2 + (y − y 0 )2 , there results
" #z0 =δ
∆
Mx · (x − ∆) z0 − z
Z
Hx+ (r) = dy 0
4π
p
−∆ R2 R2 + (z 0 − z)2 z 0 =−δ
" #
∆ 0
Mx · (x − ∆) dy δ−z δ+z
Z
= +p (3.36)
R2
p
4π −∆ R2 + (δ − z)2 R2 + (δ + z)2
For now, just find the field at the middle of the cylinder, z = 0. Further, consider the long thin
limit, L a, which means also δ R. Then this contribution is
∆
2Mx (x − ∆) dy 0
Z
Hx+ (x, y) = (3.37)
4π −∆ (x − ∆)2 + (y 0 − y)2
The integral is an inverse tangent. Use the fact that x < ∆ for any point inside the system:
∆
2Mx x − ∆ y0 − y −Mx ∆−y ∆+y
Hx+ (x, y) = tan−1 = tan−1 + tan−1 (3.38)
4π |x − ∆| |x − ∆| −∆ 2π ∆−x ∆−x
That was the contribution from the positive charge at x = +∆. The contribution from the negative
charge at x = −∆ is similar, but with ∆ → −∆ inside R, and the opposite sign:
0
∆
−2Mx x + ∆ −1 y − y −Mx −1 ∆ − y −1 ∆ + y
Hx− (x, y) = tan = tan + tan (3.39)
4π |x + ∆| |x + ∆| −∆ 2π ∆+x ∆+x
At the center of the system, the inverse tangents are all π4 . Then the field at the center of the system
is
1
Hx (0) = − Mx . (3.41)
2
So the demagnetization factor for this point is Nx = 21 , as we would expect. Near a corner, say,
x = y = ∆ − , or any of the other corners, by symmetry, there is, surprisingly, the same value:
−Mx 2∆ 2∆ 1
Hx (∆, ∆, 0) = tan−1 + tan−1 + tan−1 + tan−1 = − Mx . (3.42)
2π 2∆ 2∆ 2
10
0.7
a x a x L cell transverse demagnetization field
0.6
y=0
-Hx / Mx
0.5
y=0.5∆
0.4
y=∆
0.3
-1 -0.5 0 0.5 1
x/∆
Figure 2: The behavior of the transverse demagnetization field for a rectangular cell of dimensions
a × a × L, with a L, as a function of position in the cross-section. Note that a = 2∆, and z = 0,
i.e., the middle of a long thin cell.
(Note, this limit might be different if approached in a different direction. See Figure 2.) Trying
instead a point along the x-axis, say, x = ∆ − , y = 0, one has
−Mx ∆ ∆ ∆ ∆ 1
Hx (∆, 0, 0) = tan−1 + tan−1 + tan−1 + tan−1 =− + 0.148 Mx .
2π 2∆ 2∆ 2
(3.43)
On the other hand, look at the point x = 0, y = ∆ − :
−Mx −1 −1 2∆ −1 −1 2∆
Hx (0, ∆, 0) = tan + tan + tan + tan = −0.3524 Mx. (3.44)
2π ∆ ∆ ∆ ∆
This suggests that there is only little variation within the cross-section, in this limit. Then one can
expect the demagnetization factor when averaging over different points, is to fair approximation,
1
Nx ≈ . (3.45)
2
See Figure 2 for how the field varies within the cell, verses x, at different y (all with z = 0 in the
long thin approximation).
11
To use this, one needs to choose R. That can be chosen by assuming a a circle with the same area
as the square, that is,
a
A = a2 = πR2 , =⇒ R = √ (3.47)
π
This is a type of approximation I have used for the smoothing of the longitudinal Green’s function
(see a following section). So it should be good also for the transverse demagnetization. It means we
take r !
1 a 2 a
Nx = L2 + −√ . (3.48)
2L π π
I’d like to mention one other thing. I like to avoid subtraction in calculations, although it doesn’t
cause any real problme here. Nevertheless, another way to write the transverse demagnetization
factor is by getting rid of the subtraction:
1 p 2 √L2 + R2 + R 1 L
Nx = 2
L +R −R × √ = √ . (3.49)
2L 2
L +R +R2 2 L + R2 + R
2
√
Then inserting the effective radius R = a/ π gives the formula I actually use in calculations:
1√
2 πL
Nx = √ . (3.50)
πL2 + a2 + a
Similarly, the longitudinal factor can be written in alternative ways:
1 p 2R
Nz = L + R − L2 + R 2 = √ (3.51)
L L + R + L2 + R 2
Then with the effective radius, the actual form in the calculations can be
2a
Nz = √ √ (3.52)
π L + a + πL2 + a2
12
There is no sum over z 0 ; this just uses the charges at the surfaces z 0 = ±δ. But now we keep the
(x0 , y 0 ) dependence of Mz present, as it will depend on the choice of position, i.e., the source cell.
We already know how to get Hz and then average it over z:
1 δ −dΦ −1
Z
H z (x, y) = dz = (Φ(δ) − Φ(−δ)) . (4.2)
L −δ dz L
Curiously (or √not), G0zz found this way is the same as −Nz for a circular cylinder of length L and
radius R = a/ π. This will get applied to an area element dx0 dy 0 of size a2 , hence that factor will
cancel out. The rest is the longitudinal demagnetization factor already encountered. So it is nothing
too new, but to get this, we needed to do this averaging procedure.
A similar averaging can be applied for cells at farther radii from the source, however, it is not
essential. It does help to eliminate some roughness due to using square cross-section cells for a
circularly symmetric function.
Then with this correction at the origin, the finite-element calculation of the demagnetization
field proceeds from a sum over source cells, (discrete convolution)
X
H z (x, y) = Gzz (x − xi , y − yi ) · Mz (xi , yi ) (4.6)
i
In actual practice, this is best to evaluate using a fast Fourier transform, to get the most speed.
13
of the source cell, at height z 0 . Thus, we apply the expression (1.10) for the potential, to only the
xy components,
r − r0 0 0
~ (r0 ) = dx0 dy 0 dz 0 (x − x )Mx + (y − y )My
Z Z
Φ(r) = dr0 3
· M 2 2 3/2
(4.7)
4π|r − r |0 4π[r̃ + (z − z ) ]
0
The integration over (x0 , y 0 ) is left to become the sum over source cells. The source point (x0 , y 0 ) for
this cell is set to the center of the cell; we still need to sum over z 0 . Mx or My are constant within
a chosen cell. We do need to average over the observation height z.
So doing the integration over z 0 gives [see expression (2.15)]:
" #δ
[(x − x0 )Mx + (y − y 0 )My ](z 0 − z)
Z
0 0
Φ(x, y) = dx dy p
4πr̃2 r̃2 + (z − z 0 )2 −δ
( )
0 0
0 [(x − x )Mx + (y − y )My ] δ−z δ+z
Z
0
= dx dy +p (4.8)
4πr̃2
p
r̃2 + (δ − z)2 r̃2 + (δ + z)2
This has a very familiar look to it, as we had a similar expression for the transverse field within a
cell. Now we can find the transverse field components and also do the averaging over z; the order
in which this is done makes no difference.
Do first the average over z. The integration is trivial, and after dividing by L gives
Z
[(x − x0 )Mx + (y − y 0 )My ] n p 2 p oz=δ
Φ(x, y) = dx0 dy 0 − r̃ + (z − δ)2+ r̃ 2 + (δ + z)2
4πL r̃2 z=−δ
Z 0 0
[(x − x )Mx + (y − y )My ] n √ p o
= − dx0 dy 0 r̃2 − r̃2 + L2 (4.9)
2πL r̃2
Note that this makes a type of Green’s function to give the potential, based on the source M ~ (x0 , y 0 ).
It acts on a vector source, hence it is a vector Green’s function, whose direction is radially outward
from the source point. We see that this Green’s function can be written:
r !
1 L 2 r̃
~
K(r̃) = 1+ 2 −1 . (4.10)
2πL r̃ |r̃|
~ is a radial unit vecctor. Then it is also interesting to realize that the radial
The last factor in K
component only of this Green’s function is
r !
1 L2
Kr (r̃) = 1+ 2 −1 . (4.12)
2πL r̃
This must be the negative radial gradient of the Green’s function G that produces Φ from the volume
charge density ρ, see Equations (1.11) and (1.12). So it may be interesting to find the effective G
~ We get it from an indefinite integration,
associated with this K.
"r #
−1 L2
Z Z
G(r) = − dr Kr (r) = dr 1+ 2 −1 (4.13)
2πL r
14
Then the integral with the square root is
r
L2 cosh2 φ
Z Z Z
− dr 1 + 2 = L dφ = L dφ(1 + csch 2 φ) = L (φ − coth φ)
r sinh2 φ
L p
= L sinh−1 − r2 + L2 . (4.15)
r
So the whole thing gives
1 L p 2
G(r̃) = L sinh−1 − r̃ + L2 + r̃ . (4.16)
2πL r̃
This is a well-known expression for the effective 2D in-plane Green function needed, to be applied
on ρ(r0 ), for finding the magnetic potential Φ(r) for thin-film problems, as
Z
Φ(r) = dr0 G(r − r0 )ρ(r0 ). (4.17)
Now the gradient of Φ in Equation (4.9) can be done to get the averaged field. To do this, recall
that r̃2 = (x − x0 )2 + (y − y 0 )2 . Find only Hx = − dΦ
dx , then Hy will be obtained by switching some
indices.
( √
dx0 dy 0 Mx [r̃ − r̃2 + L2 ] 2(x − x0 )
Z p
Hx = − [(x − x0
)M x + (y − y 0
)M y ] [r̃ − r̃2 + L2 ]
2πL r̃2 r̃4
[(x − x0 )Mx + (y − y 0 )My ] (x − x0 ) (x − x0 )
+ − √ (4.18)
r̃2 r̃ r̃2 + L2
This has contributions from both Mx and My . There is nothing coming from Mz , obviously. The
parts involving Mx contain the factors
√
r̃ − r̃2 + L2 2
0 2 0 2 r̃
Mx : Gxx = r̃ − 2(x − x ) − (x − x ) √ (4.19)
2πL r̃4 r̃2 + L2
This can be re-arranged as (and in various other ways...)
√
r̃2 + L2 − r̃
0 2 r̃ 0 2
Mx : Gxx = (x − x ) 1 + √ − (y − y ) (4.20)
2πL r̃4 r̃2 + L2
Similarly, there is a term proportional to My :
√
r̃2 + L2 − r̃
0 0 r̃
My : Gxy = 2(x − x )(y − y ) 1 + √ (4.21)
2πL r̃4 r̃2 + L2
Thus these define some components of yet another Green function (a matrix) that produces Hα :
Z X
H α (r) = dx0 dy 0 Gαβ (r − r0 ) · Mβ (r0 ) (4.22)
β=x,y
Indeed, this expression even applies to the full 3D field, when used with the 3D magnetization (and
let α, β = x, y, x). The other missing components clearly are obtained by swapping xy indices:
√
r̃2 + L2 − r̃
0 2 r̃ 0 2
Gyy = (y − y ) 1 + √ − (x − x ) (4.23)
2πL r̃4 r̃2 + L2
√
r̃2 + L2 − r̃
0 0 r̃
Gyx = Gxy = 2(x − x )(y − y ) 1 + √ (4.24)
2πL r̃4 r̃2 + L2
15
Interestingly, we can note that these components of G reduce to those appropriate to give the usual
far-field of a unit dipole. Some expansion for r̃ L leads to
2x̃2 − ỹ 2
L 3x̃ỹ
Gαβ (r̃) = (4.25)
4πr̃5 3x̃ỹ 2ỹ 2 − x̃2
The tilde means evaluated with the difference of source and observer points, i.e., r̃ = r − r0 .
This last result is good for the field outside of a source cell. It must be remembered, however, to
include the self-demagnetization, if the field within that same source cell is desired. Roughly, this is
an extra field of
H~ local = −Nx (Mx x̂ + My ŷ). (4.26)
Nominally Nx is a number near 1/2, but it could be smaller than this, taking, for example, the
value expected for the transverse demagnetization of circular cylinders as discussed at the end of
the previous section, Equations (3.50) and (3.52).
16