
150 The transmission electron microscope
always bent towards the optical axis (for a round lens),
†
regardless of the electron
energy and the details of the magnetic field configuration.
3.4.5 Numerical trajectory computation
The radial equation (3.17) can be solved analytically for a few particular choices
of the axial magnetic flux distribution B(z), but in general requires a numerical
approach. We refer to [HK89a, HK89b] for a detailed discussion of the analytical
solutions for Glaser’s bell-shaped field, given by
B(z) =
B
0
1 +
(
z/a
)
2
.
B
0
2a
a is a parameter with the dimension of length, which indicates the extent of the field:
small values of a correspond to sharply peaked fields. Although this field does not
represent a realistic magnetic field distribution (the field strength does not drop off
sufficiently fast at large distances), it is often employed in theoretical calculations
because it allows closed-form solutions for almost all relevant parameters, including
the lens aberrations.
In this section we opt for a simple numerical approach to determine the paraxial
electron trajectory for an arbitrary axial field distribution B(z). From the
website
the reader may download the program lens.f90, which implements a simple paraxial
meridional trajectory computation. The program is written for Glaser’s bell-shaped
field, but can be modified easily for other axial field distributions. The reader is
encouraged to modify the field parameters to study how a magnetic field can be
used to create lenses with varying focal length. It is particularly interesting to
use
lens.f90 to simulate how a two-condensor lens system works. The following
paragraphs describe the program and the PostScript output.
The program
lens.f90 integrates both the azimuthal and radial equations. The
azimuthal equation is straightforward to solve by replacing the integral (3.16) by a
summation. There are many different algorithms which can be used in this case:
trapezoidal integration, Simpson’s rule, Romberg integration and Gaussian quadra-
ture are amongst the more commonly used methods [Szi88]. Since we will be
using fourth-order Runge–Kutta method to solve the radial equation, we will use
Simpson’s rule for the azimuthal equation.
‡
If the integration interval (z
0
, z
N
)is
†
A positive second term in the radial equation can only be canceled by a negative first term, which means that
the curvature of the trajectory must be negative, i.e. the electron trajectory bends towards the optical axis.
‡
It can be shown that Simpson’s rule is equivalent to a fourth-order Runge–Kutta method.