Ultramicroscopy 11 (1983) 289-298 North-Holland Publishing Company
289
REAL SPACE IMAGE SIMULATION IN HIGH RESOLUTION ELECTRON MICROSCOPY * R. KILAAS and R. GRONSKY National Center for Electron Microscopy, Materials and Molecular Research Division, University of California, Lawrence Berkeley Laboratory, Berkeley, California 94720, USA Received 3 January 1983; revised 15 March 1983
The validity of a new method for simulating high resolution electron microscope images has been critically examined. This method, which has been termed the Real Space (RSP) method since the entire calculation is performed without any Fourier transforms, offers a considerable reduction in computing time over the conventional multislice approach when identical sampling conditions are employed. However, for the same level of accuracy the Real Space method requires more sampling points and more computing time than the conventional multislice method. These characteristics are illustrated with calculated results using both methods to identify practical limitations.
1. Introduction
The current generation of electron microscopes makes possible the attainment of near-atomic resolution [1] in images of crystals; nevertheless there is still an urgent need for reliable computer simulation of these images in order that they might be correctly interpreted [2]. From a pragmatic point of view the full potential of computer simulation is realized only in an on-site, real-time system which affords immediate comparison between computed and experimental results. This, in turn, requires the development of more rapid and more accurate algorithms. Most image calculation programs are based upon a dynamical multislice formulation originally proposed by Cowley and Moodie [3] using physical optics. Quantum mechanical arguments were later provided by Van Dyck [4] and independently by Jap and Glaeser [5]. The original calculation time of the early programs is proportional to N 2, N being the number of dynamical reflections included in the calculation. However, using fast * This work was supported by the Director, Office of Energy Research, Office of Basic Energy Sciences, Materials Sciences Division of the US Department of Energy under Contract No. DE-AC03-76SF00098.
Fourier transforms, Ishizuka and Uyeda [6] demonstrated that the time becomes proportional to N log N. More recently, a method derived by Van Dyck [7] promises to further reduce the calculation time such that it is directly proportional to N alone. This method, which treats the interaction between the electron beam and the specimen, will be referred to as the Real Space (RSP) method since the entire calculation is done in real space without the use of Fourier transforms. This paper examines the domain of validity of the Real Space method and presents a comparison between the Real Space method and the conventional multislice method. Specific emphasis is placed on the number of dynamical reflections that must be included, maximum slice thickness and calculation time.
Theory 2.1. General theory The geometry of the problem is outlined in fig. 1. An electron with wave vector k 0 is incident upon a thin region described by a potential U(r), and for simplicity the electron is assumed to be traveling in the z-direction. In the actual computa-
0304-3991/83/0000-0000/$03.00 © 1983 North-Holland
290
R. Kilaas,R. Gronsky/ Realspaceimagein HREM Ignoring the second-order derivative transforms eq. (5) into a first-order differential equation in z,
I:o I
¢ Fig. 1. Schematic representation of the scattering problem. The specimen is depicted as a potential distribution U(r) which may be divided into aseries of slices having thickness c.
Formally the solution to (7) can be written
y, ,) {
= exp
tion the specimen is represented by a sandwich of successive slices, each slice having a thickness c. The electron wave function ff'(r) is a solution to Schr'odinger's equation [
h2
-8 2 v2-eU(,)
]
h262
(1)
i
[ e v 2 + f o ' V ( r ) dz]}gp(x,y,O).
Note that e Af is defined through the power series
oo An Defining i
For high energy electrons eU(r)<
e 2¢tik°'r = ~ ( ¥ ) e 2¢rik°z.
(2)
By inserting the above expression into eq. (1), one has
A = 4~rk0 V 2 , V_I p -,
i _ / " V(r) dz, 4~-ko Jo
it follows that q,(x, y, ,) = e da+ v,] ~ ( x , y, 0).
(9)
2.2. Analytical solutions to (9) [ v 2 + 4¢rik o ~-~ + --7-8~r2meu(r)ltk(r)=O.
(3) Unfortunately there are no closed analytical solutions to (9), requiring the use of various approximate solutions.
By involving the definition V(r)=
8~r2me h2
U(r),
(4)
In the formation of the general multislice method one writes
eq. (3) becomes [ V 2 + 4~rik0~z + V(r)] , ( r ) = 0.
2.2.1. General multislice
(5)
At this point it is customary to ignore the second derivative with respect to z in eq. (5) by making the assumption that ~(r) is a slowly varying function with respect to z, such that 1O2~/Oz21 <~ k01O~/az I. This amounts to ignoring backscattered electrons and a slight change in the electron wave vector as the electron traverses the potential. A more complete discussion has been given by Van Dyck [8].
~ ( x , y, c) = e '(z+ vp) #~(x, y, 0)
'
=e'ae'%ep(x,y,O).
(10)
Since A and Vp do not compute, (10) is correct to first order in c, A and Vp with a resulting error of the order of ½[A, Vp]E2 where [ ] denotes commutation. The advantage to using eq. (10) is that it becomes possible to write down analytical solutions to the expressions
f,(x, y, ,) = e'Vpf,(x, y, 0),
(11)
f2(x, y, ,) = e'a f= (x, y, 0),
(12)
R. Kilaas,R. Gronsky/ Realspaceimagein HREM of the form
functions fi.,(A ) and gi.,(Vp) that, when expanded in powers of A and Vp, corresponds to the expansion of (9) to any desired order of A and Vp. A unique solution correct to second order in A and Vp was found to be
f , ( x , y , ,) =exp{
4--i o fo" V( x, y, z')
dz')
f, (x, y,
0), (13)
~ ( , ) = exp(½,Vp(1 + 8)) exp(,A)
f 2 ( x , y , , ) = ki-zff ° dx'dy'f2(x"y"O)
exp(½,Vp (1 - B)} ~b(0),
i~rk0 [(x - x') 2 + ( y _ y , ) 2 ] ) . ×exp~[ ----~
8=- $ ( x , y ) - c / 2 Defining the functions h and g through the expressions
,/2
q~(,) = g * [h. q~(0)].
(15)
Since the specimen possesses a periodic potential of period t in the z-direction over its total thickness Nt, it is necessary to use N successive applications of (15). The quickest way to numerically solve the expression
¢p(N,)=g*[h. [ g * [ h - [ g * [...¢h(O)]...]]]] (16)
2.2.2. Real Space method A different approach to finding an approximate solution to (9) is to expand the exponential in powers of A and V~ (Van Dyck [7]), and construct
b.J Zb'#) .
.
.
(18)
fo'Z'V( x, y, z') dz' z---
,Vp
(19)
The parameter 8(x, y) is a measure of potential eccentricity and is zero for ~ = c/2. The major difference between the RSP method and the FFT method is that the RSP method uses an expansion of the propagator, exp(cA), keeping only terms up to second order in c. The argument is that (17) itself is correct only to second order in ,, and no accuracy should be lost by using an expansion of the propagator. The expression for the propagator thus becomes
exp(cA)-- 1 + cA + ½c2A2
is to use Fourier transforms as shown by Ishizuka and Uyeda [6] who utilized the algorithm shown in fig. 2. In the remaining part of this paper the general multislice method will be referred to as the F F T method.
.
'
f 2 ( , ) = g * f2(O),
eq. (10) can be written in alternative form:
#(o)
(17)
where
(14)
fl(')=h'f,(O),
291
t-¢l-'z.
Fig. 2. Schematic representation of the fast Fourier transform (FFT) algorithm used by Ishizuka and Uyeda [6].
iA,[a z
a2]
h2.2 ( a 2
82) 2
(20) Numerically one solves the equation
f ( x , y, ,) = exp(,A) f ( x , y, O) =(I +'A+½,ZA2)f(x,y,O)
(21)
by dividing up the x and y axes in intervals of 8 and T/respectively. Thus
f ( x , y, c) = f ( x , y, 0 ) + iix' +y(x - 8, y, O) - 2f(x, y, 0)] 1
+-~[f(x,y+n, O)
+8,y,O)
292
R. Kilaas, R. Gronsky / Real space image in H R E M
+f(x,y-.1, O)-2f(x,y, 0)] /
effect is that of a pure phase-operator
e~(g'O)-f fdxdyq,(o,O)e -2~i~'°,
X2C2
32¢r2 { ~ [ f ( x
+ 28'y' O)
(24)
,)=-ffdx dy [e '~ q,(p, 0)] e -2~i''u
+ f ( x - 28,y, O ) - 4 f ( x + 8, y, O)
= ~ ( g , 0) e -irrh`g2.
- 4 f ( x - 8, y, O) - 6 f ( x , y, 0)]
(25)
+ 7 [ f ( x , y + 2.1, O) + f ( x , y - 2,1, O)
The expansion of the propagator to second order in c and A is equivalent to writing
- 4 f ( x , y + * 1 , O ) - 4 f ( x , y - * 1 , O ) - 6 f ( x , y , 0)]
~ ( g , ,) --- (1 - i,r~,,g 2 + ½~r2X2,2g' ) ~ ( g , 0),
1
+ ,-j-2-2-2~82[f(x+8,y+*1, O) + f ( x + 8, y - . 1 , O) + f ( x - 8,y + .1, O) + f ( x - 8, y - .1, O) - 2 f ( x +8, y, O ) - 2 f ( x - 8 , y, O) - 2f(x,
y + .1, O) - 2 f ( x ,
such that the intensity of the corresponding reflection after the electron has traveled the distance c is
I(g, , ) = l ~ ( g , ,)12= [1 + l(TrX, g2) 4] I(g, 0). (27)
y - .1, O)
- 4f(x, y, 0)}.
(22)
The computation time for the RSP method becomes proportional to N, the number of sampling points, while it is proportional to N l o g N for the F F T method. Another advantage to a real space approach is that it can eliminate the need to use periodic extension when simulating images from faulted crystals. In the case of a potential having a mirror plane at Z = ~/2, one obtains
dp(N,) = e ~'vp (1 + ,A + ½,2A2) e'Vp x (1 + , a + ½, a
(26)
e'Vp ...
X (1 + ,A + ½,2A2) e½"Vpq~(0);
(23)
Thus the general multislice calculation becomes accurate to second order for this particular case by simply beginning and ending with half a phase grating.
2.3. The validity of the Real Space method Compared to the F F T method, the usefulness of the RSP method depends on the effect of throwing away terms of order (c 3, A3) in (20). The error depends on the slice thickness e as well as the magnitude of the derivatives. By studying the effect of the operator exp(cA) on the function 4~(x, y, 0), one notices that in reciprocal space the
To make sure that high-order reflections (large g-vector) are not significantly amplified through the action of the propagator, it is necessary to use a slice thickness c and an effective gmax such that ,,at
2
" ~ gmax << 1
or
2
~k~gmax << ,r = 0.45.
(28)
For a periodic potential, period a, of cubic symmetry, the only g-vectors allowed are of the type gx = h/a, gy = k/a; h, k integers. For a numerical calculation with N sampling points in the x- and y-direction, 6 = a / N and .1 = a/N. The equivalent expression to (27) is obtained by inserting eq. (22) into the expression
• (u, v, ,) = ~, ep(x,y, ,) e -2~riux-2~rivy, x,y
and letting u = h/a and v = k/a. This gives
X(h,k,,)=I(h,k,O).
1+
× [cos 47rh/N + cos 47rk/N - 8 cos 2~rh/N- 8 cos 2~:k/N + 2 cos 2*r(h + k ) / N + 2 cos 2rr(h - k ) / N + 1012/.
)
(29)
R. Kilaas, R. Gronsky / Real space image in HREM
F o r the special case of h = k,
I(h,h,c)=I(h,h,O). X [4 cos
1+
- 16 cos
4~ra2]
2¢rh/N + 1212/
.
(30)
By dividing the a-axis into N intervals, one is limited to
4~rh/N
o00
293
gmax = h m a x / a =
N/2a.
000
000
200
200
220
220
440
440
1.0 w I-
0.5 <
TFT
0.0
200
0.4
FFT
LU Q I--
0.2 :E <
0.0 220
IJJ Q
FFT
0.2
I0.1 <
0.0
440 ',' 0.4
Q ::) I-
,_1 .~ 0 . 2 <
.. . . . . . . . . .
RSP . ..... .
0.0 0
70
THICKNESS-,~
~ i , . " . " ? \ 140 0 70
: .... . . : : 14(
TH ICKN ESS-~
0
70
140
THICKNESS-A
VOLTAGE : 200 KV
Fig. 3. Amplitude versus thickness for the reflections 000, 200, 220 and 440 for copper [001]. Accelerating voltage is 200 kV and the slice thickness is 3.6 ,~. The result from the F F T calculation is shown by the solid line, and the broken line represents the RSP calculation. In the first column gmax = 1.4 A - 1 ( K = 0.18), in the second column gmax = 1.9 A - l ( K = 0.33) and in the third column gmax = 2.5 , ~ - 1 ( K = 0.57).
294
R. Kilaas, R. Gronsky / Real space image in HREM
This gives W&W
hnl,X, t)
(31) and correspondingly ~%L
-=Z< s/4fi
one must impose = 0.56.
(32)
Eqs. (28) and (32) set an upper limit on the slice thickness and the number of reflections that can be included in the calculation. The slice thickness E and the number of sampling points in each direction x and y must be chosen so as to satisfy
3. Results of computer calculations In order to compare the Real Space method with the conventional multislice method using fast Fourier transforms, programs were written that could be run in either FFT or RSP mode. To make it possible to use different values for the slice thickness, a three-dimensional potential was calculated through a three-dimensional Fourier transform. The specimen is copper (lattice constant 3.6 A), and the c-axis (z-direction) was divided into 16 intervals such that a slice thickness of either 3.6, 1.8, 0.9 or 0.45 A could be used. In order that the results of the two methods under various conditions could be compared, amplitudes and phases of selected reflections were plotted as a function of thickness. Fig. 3 shows what happens when K = kg:,, increases beyond the critical value of l/2. The reflections are 000, 220 and 440 and the solid line is the result of the FFT method while the broken line represents the RSP method. Only amplitude versus thickness is plotted and the slice thickness is kept constant at 3.6 A. The maximum reciprocal lattice vector g,,, takes on the values of 1.4, 1.9 and 2.5 A-’ to give a value for K of 0.18, 0.33 and 0.57 respectively. As K increases, the discrepancy between the
two methods decreases, and significantly, when K increases beyond its critical value the RSP method starts to diverge. For this particular value of K the divergence sets in at about 100 A and the intensity of the reflection 400 is seen to start growing almost exponentially. At about 100 A there is enough intensity in the 440 reflection for it to be affected by the action of the propagator. The low-order reflections are not affected directly by the propagator, although they are influenced by the interaction with higher-order reflections through the crystal potential. Fig. 4 shows the amplitudes and phases of various reflections for 3 different values of z and g max keeping K constant at 0.25. Notice that while in fig. 1 the accelerating voltage is 200 kV, it is now set at 1 MV. The FFT calculation is almost unaffected by changes in z and g,,, (the results for E = 3.6 A and g,,, = 2.8 A-’ are shown here), indicating that for g,,, > 2.8 A-’ no appreciable aliasing effects are introduced. However, the results of the RSP calculation vary significantly as g max increases (c decreases), but the results of the RSP method approach those of the FFT method as the number of reflections included in the calculation increases. Fig. 5 shows the result of the RSP calculation for three different values of the slice thickness, at constant g,,, equal to 2.8 A-‘. Although the results vary somewhat depending on the slice thickness, reducing the slice thickness does not have a major effect; i.e. it does not cause the result of the RSP method to approach that of the FFT calculation. Finally, table 1 shows some computation times for the FFT and RSP methods. The times that are given are the computational times per slice for a slice thickness of 3.6 A at three different numbers of sampling points. Using Q= 3.6 A obviously results in the fastest calculation since it is only necessary to calculate one V,(x, y). The programs were all run on a CDC 7600 computer.
4. Discussion The primary motive behind the formulation of the Real Space method as an alternative way to
R. Kilaas, R. Gronsky / Real space image in HREM
295
000
000 0.8
l,O .f
-o ,=¢
"1"" . . . . . ° °""
o. Z
0,3
=
Z00
200
3,0 .''1"''.
FFT
."
".
• 0.0
-3.0 0.0
0.2
...,...., 220
....... ='zO. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
~
F: L I ,c
0.1
/
,.
..
°'°°°"
FFT
. .J"
//...
- 3,0 0,0
q80
...-..
~ ~ . F F T
...J eL. mm
....
0.08 a.
,1:
- 1.5 •
100
TH
ICKNESS-
.
I
....
100
200
THICKNESS-
,~
20| ~
K =0.25 VOLTAGE : IO00KV
Fig. 4. Amplitude and phase (in units of qr) versus thickness for 3 sets of values of the slice thickness ( and gmax" The values are: (1) c = 3.6 .~, gr, a~ = 2.8 /i~-I; (2) ( = 1.8 .~, gm.~ = 3.9 , ~ - t ; (3) c = 0.9 A, gmax = 5.5 A - t , labeled separately for the RSP method. These values gave essentially the same results for the FFT method, plotted as the single FFT curve.
296
R. Kilaas, R. Gronsky / Real space image in HREM
COPPER OOl
ooo
j o
1.0
I.U
-J et
J
o.s
~
o.o
i t
-0.3
0.0
0.3
zoo
~
1
UJ
I,I ,-I 0..
.
0.15
~
o.o
<
0.0
/
i
V
i
...................
- -
zto
0.12
3,0
LLI
¢3 UJ 03
--I
O.
0.0
0.06
<
0..
- 3,0
0.0
0.12
'tO0
i
i
LU
¢3
I.,..I
[
"~
0.06
a.
<
.o
]
3.0
LU U')
<:
o.o
"tO.
-3.0 0.0 100
TH ICKNESS-
200
0
100
200
THICKNESS- ~
VOLTAGE :IO00KV Fig. 5. Amplitude and phase (in units of ~r) versus thickness for 2 different values of the slice thickness (; gmax is kept constant at 2.8 . ~ - 1, c takes the values 3.6 ,~ ( - - ) , 1.8 ,~(- - - ) and 0.9 ,~, ( + + + ). Calculation is by the RSP method.
R. Kilaas, R. Gronsky / Real space image in HREM Table i Computational times per slice, slice thickness 3.6 .~, for the F F T method and the RSP method at three different values of the number of sampling points N Nx, Ny
N = Nx. Ny
tRs p (S)
tFF T (S)
20 28 40
400 784 1600
0.017 0.034 0.066
0.063 0.12 0.23
perform computer simulation of electron microscope images is that the RSP method appears to offer the following advantages: (1) There is no error due to aliasing which might occur when using Fourier transforms. (2) There is a possibility of eliminating the need to use .periodic extension in faulted crystals. (3) The method might allow using a larger slice thickness, being correct to second order in c. (4) A reduction in computer time is possible for the RSP method, the time per slice being proportional to N, the number of sampling points, rather than N log N as for the F F T method. As to the first claim, it is true that there is no aliasing associated with tile RSP method. However, when all the physically relevant reflections are taken into account in an F F T calculation, aliasing should not be a problem. Rather one can argue that if aliasing ever does affect the result, not enough reflections have been included to give a meaningful result anyway. Although there has been no attention given here to determining when aliasing begins to affect the F F T calculation, the above results indicate that for an accelerating voltage of 1 MV, no such effect occurs as long as gmax > 2.8 m - l .
In most cases it will be possible to avoid using a periodic unit cell in an RSP calculation and thus avoid the need to use a periodic continuation when simulating images of defective crystals. The choice of using periodic continuation or not depends on how one decides to calculate the derivatives at the boundary of the x - y plane. With respect to the third possible advantage, it is instructive to examine the asymptotic behavior of the RSP method as the slice thickness is decreased and the number of sampling points is increased. The first condition imposed on the RSP
297
method is that K=h~g2ax ~z 1/2. Similarly, a limit on K is also imposed in the conventional multislice method. For example, Ishizuka and Uyeda [6] using a stationary phase method in deriving the multislice formula arrive at the condition K << 1. Lynch and O'Keefe [9] argue that to avoid upper layer line reinforcement, the parameter for the pseudo-layer interaction a ( g ) = ½Xcg2 should be less than 0.5. This again corresponds to K < 1; however, for safety, a value of K m a x = 0.2 was used. Thus the major difference between the RSP method and the F F T method in this respect is that while an RSP calculation for K m a x > 1/2 begins to diverge, the corresponding F F T calculation does not. In either case, care should be taken with respect to the size of the slice thickness and the number of reflections needed to satisfy the condition K < 1/2. However, in spite of similar conditions imposed on the two methods, it is seen from the results of the computer calculations that there are important differences between the RSP and F F T methods. Only as the slice thickness decreases and the number of reflections increases does the result of the RSP calculation approach that of the F F T calculation. Furthermore, while the F F T method is barely affected by changes in c and gmax ( a s long as c ~ 3.6 ,~ and gmax >/ 2.8 A - I for V0 = 1 MV), the RSP calculation is strongly affected. Reduction of the slice thickness produces only minor changes in the result of the RSP calculation, which means that the number of reflections included in the calculation has the strongest influence on the resuit. Although the need to incorporate reflections beyond 2.8 .~-1 is not indicated for the F F T approach, this may be necessary in the RSP approach to ensure that none of the relevant reflections become artificially amplified through the action of the expanded propagator. Thus instead of being able to use a larger slice thickness in the RSP method compared to the F F T method, it seems more likely that a smaller slice thickness is essential in order to accommodate the inclusion of a larger number of reflections. Finally, under identical conditions the RSP method offers a significant reduction in computer time. For the range of commonly used N (number of sampling points), the reduction in computer
298
R. Kilaas, R. Gronsky / Real space image in HREM
time per slice amounts to a factor of 3-5. This represents a significant saving in computer time and could prove to be great value when using smaller and slower computers. It must, however, be noted that the saving is in calculation time per slice for the same N and is only effective if the same slice thickness and the same number of reflections can be use in the two methods.
5. Conclusion The RSP method gives results similar to the conventional multislice calculation when care is taken to include enough reflections. To keep within the domain of validity of the RSP method, it might be necessary to reduce the slice thickness as the number of reflections increases, as needed to maintain )~cg2ax < 1/2. If this condition is not satisfied, the RSP method will begin to diverge due to a near-exponential growth of higher-order reflections. The divergence is due to the amplification effect of the expanded propagator and does not set in until a nominally low intensity has been scattered into those reflections having g-vectors with magnitude close to gmax" Although a similar boundary condition is imposed on the validity of the FFT method, going beyond the domain of validity does not cause any divergence. In order to obtain reliable results from the RSP method it might be necessary to include more reflections than are required with the FFT method which
consequently also requires smaller slice thicknesses and therefore increased computational time. Investigations into further improvements and extended applications of the Real Space method are currently underway.
Acknowledgements The authors gratefully acknowledge helpful suggestions by Drs. D. Van Dyck, M.A. O'Keefe and W.O. Saxton. This work was supported by the Director, Office of Energy Research, Office of Basic Energy Sciences, Materials Science Division of the US Department of Energy under Contract No. DE-AC0376SF00098.
References [1] R. Gronsky, in: Proc. 38th Annual EMSA Meeting, San Francisco, 1980, Ed. G.W. Bailey (Claitor's, Baton Rouge, LA, 1980) p. 2. [2] W.O. Saxton, in: Advances in Electronics and Electron Physics, Suppl. 10, Ed. L. Marton (Academic Press, New York, 1900) p. X1. [3] J.M. Cowley and A.F. Moodie, Acta Cryst. 10 (1957) 609. [4] D. Van Dyck, Acta Cryst. A34 (1978) 94. [5] B. Jap and R. Glaeser, Acta Cryst. A34 (1978) 112. [6] K. Ishizuka and N. Uyeda, Acta Cryst. A33 (1977) 740. [7] D. Van Dyck, J. Microscopy 119 (1980) 141. [8] D. Van Dyck, Phys. Status Solidi (b) 72 (1976) 321. [9] D.F. Lynch and M.A. O'Keefe, Acta Cryst. A28 (1972) 536.