EMDyna Sandbox Scene Details
Overview Manual & Theory Validation Suite Python API Gallery Open Simulator

← Back to Scene Gallery

OfficialAdvancedElectron microscope (Magnetic lens imaging electron beam)

This reproduces how a transmission electron microscope works, with a single lens. 10 keV electrons (about 20% of the speed of light) from the electron gun on the left illuminate the specimen. The specimen is a 6 mm square film that blocks electrons, with a hole in the shape of the letter "F" (2 mm tall, lines 0.4 mm wide); only electrons that pass through the hole go on. The magnetic lens beyond it is a coil (20 turns, about 23 A) wrapped in an iron cover (relative permeability 1000), with a 5 mm gap open only on the axis side. The flux circulates through the iron and comes out of the gap near the axis, so a strong field (about 45 mT at the center, about 3 times that without iron) is concentrated over a short section. Electrons traveling off the axis twist around it in the field and are drawn back toward it (just as with a glass lens, the electron paths, which play the role of light rays, converge to a point). So on the phosphor screen 40 cm away, an image of the F magnified about 13 times appears. As with a glass lens, the image is inverted (rotated 180°), and because the electrons twist as they travel through the field, it is rotated by a further 50° or so (Larmor rotation; the angle is √(e/8mU)·μ0NI, set only by the coil's ampere-turns regardless of the lens shape). Select the battery and change the voltage to change the lens strength, and the image blurs or changes size and rotation (focusing). Integrating the field along the axis from end to end gives exactly μ0NI even with the iron (Ampère's law). The iron does not strengthen the field; it gathers it into a narrow region. Real electron microscopes magnify hundreds of thousands of times with many stages of lenses, in a vacuum column, to see details down to the electron wavelength (0.012 nm at 10 keV). Here the electrons are tracked as particles, so diffraction and interference (their wave nature) and scattering inside the specimen are not computed (the film just stops the electrons that hit it). The iron cover is a solid made by revolving its cross section around the axis, sliced into layers and solved with a flux network inside the iron (about 600 cells). Curved surfaces crossing layers become slightly stepped, so the image is slightly distorted.

Oct 8, 2026 • 3 views

Launch & Remix in Simulator

Read the explanation, with equations and figures ↓

Modify this scene in the simulator, then open the "Scene" tab and click "Publish Current Scene to Gallery" to share your remix!

·

In short

How do electron microscopes see details too tiny for normal light? They bend beams of flying electrons using magnetic lenses instead of glass.

Transmission electron microscope optics and image transformation
Electron optics layout showing electron gun, specimen aperture, magnetic lens, and phosphor screen with inverted and Larmor-rotated image.

What you are looking at

The electron optics of a transmission electron microscope (TEM) operating with a single magnetic objective lens:

  • Electron source: An electron gun launches 10 keV10\text{ keV} electrons (v≈0.2cv \approx 0.2c, de Broglie wavelength λ≈0.012 nm\lambda \approx 0.012\text{ nm}) along the optical axis (zz-axis).
  • Specimen: An opaque metallic foil mask containing a perforated aperture in the shape of the capital letter "F" (height 2 mm2\text{ mm}, stroke thickness 0.4 mm0.4\text{ mm}). Only electrons passing through the aperture continue downstream.
  • Magnetic objective lens: An electromagnetic coil (20 turns, I≈23 AI \approx 23\text{ A}) completely enclosed within a high-permeability iron yoke (μr=1000\mu_r = 1000), except for a narrow internal annular gap of 5 mm5\text{ mm} facing the central optical axis.
  • Phosphor viewing screen: Placed 40 cm40\text{ cm} downstream from the lens (z=+0.40 mz = +0.40\text{ m}).

The magnetic lens bends and focuses divergent electron trajectories, projecting an inverted, sharply focused image of the letter "F" magnified approximately 13×13\times onto the phosphor screen. Intriguingly, the image is not merely flipped upside down—it is also rotated around the optical axis by approximately 50∘50^\circ.

Optical microscope vs electron microscope

FeatureOptical (Light) MicroscopeTransmission Electron Microscope (TEM)
IlluminationVisible light (λ≈400−700 nm\lambda \approx 400 - 700\text{ nm})Accelerated electrons (λ≈0.012 nm\lambda \approx 0.012\text{ nm} at 10 keV10\text{ keV})
Bending mechanismRefraction by glass lenses (Δn\Delta n)Lorentz force in magnetic fields (v×B\mathbf{v} \times \mathbf{B})
Focusing methodMechanically moving the objective lensElectronically varying coil current (I↑  ⟹  f↓I \uparrow \implies f \downarrow)
Image orientationInverted upside-down (180∘180^\circ)Inverted upside-down + Larmor rotation (≈50∘\approx 50^\circ)
Theoretical resolutionDiffraction limit ≈200 nm\approx 200\text{ nm}Sub-angstrom (≈0.1 nm\approx 0.1\text{ nm} or atomic resolution)

How a magnetic field focuses electrons (Busch's theorem)

Unlike an optical glass lens that bends light through spatial changes in refractive index nn, an electron magnetic lens deflects charged particles using the Lorentz force:

F=−e(v×B)\mathbf{F} = -e (\mathbf{v} \times \mathbf{B})

At first glance, a magnetic field might seem unsuitable for focusing: the magnetic force is always perpendicular to both velocity and magnetic field, so a purely axial field BzB_z exerts zero radial force on an electron traveling parallel to the optical axis (vzz^×Bzz^=0v_z \hat{\mathbf{z}} \times B_z \hat{\mathbf{z}} = \mathbf{0}).

In 1926, German physicist Hans Busch demonstrated that an axially symmetric, non-uniform magnetic field creates a true converging lens through a two-step cross-product mechanism:

Magnetic focusing physics and iron pole piece concentration
Busch's theorem: two-stage Lorentz force focusing mechanism and magnetic field concentration in the pole piece gap.

Step 1: Generation of azimuthal swirl (vθv_\theta)

In cylindrical coordinates (r,θ,z)(r, \theta, z), Maxwell's equation ∇⋅B=0\nabla \cdot \mathbf{B} = 0 requires that any axial change in Bz(z)B_z(z) is accompanied by a radial magnetic field component BrB_r:

1r∂(rBr)∂r+∂Bz∂z=0  ⟹  Br(r,z)≈−r2∂Bz(0,z)∂z\frac{1}{r} \frac{\partial (r B_r)}{\partial r} + \frac{\partial B_z}{\partial z} = 0 \implies B_r(r, z) \approx -\frac{r}{2} \frac{\partial B_z(0, z)}{\partial z}

As an electron enters the fringing field with forward axial velocity vzv_z, it cuts through this radial field BrB_r. The Lorentz force acts in the azimuthal (θ\theta) direction:

Fθ=−e(vzBr−vrBz)≈evzr2∂Bz∂zF_\theta = -e (v_z B_r - v_r B_z) \approx e v_z \frac{r}{2} \frac{\partial B_z}{\partial z}

This torque imparts an azimuthal velocity vθ=rθ˙v_\theta = r \dot{\theta} to the electron, causing it to spiral around the optical axis like a corkscrew.

Step 2: Inward radial convergence (FrF_r)

Once the electron possesses this azimuthal swirl velocity vθv_\theta, its circular motion cuts across the strong axial magnetic field BzB_z:

Fr=−e(vθBz)=−e(rθ˙)BzF_r = -e (v_\theta B_z) = -e (r \dot{\theta}) B_z

Because θ˙∝∫∂Bz∂zdz∝Bz\dot{\theta} \propto \int \frac{\partial B_z}{\partial z} dz \propto B_z, the velocity vθv_\theta and the field BzB_z maintain a consistent sign relationship:

  • On entering the lens, ∂Bz∂z>0\frac{\partial B_z}{\partial z} > 0 spins the electron in one direction where BzB_z pushes it inward (Fr<0F_r < 0).
  • On exiting the lens, ∂Bz∂z<0\frac{\partial B_z}{\partial z} < 0 unwinds the spin, but BzB_z retains the same orientation, so the radial force remains strictly inward toward the optical axis (Fr<0F_r < 0).

Thus, regardless of charge sign or entry direction, an axially symmetric magnetic field always acts as a converging (convex) lens!

Integrating the radial momentum transfer along the optical axis yields Busch's focal length formula for a short magnetic lens:

1f=e28meEk∫−∞∞Bz2(z)dz\frac{1}{f} = \frac{e^2}{8 m_e E_k} \int_{-\infty}^{\infty} B_z^2(z) dz

where Ek=12mevz2=10 keVE_k = \frac{1}{2}m_e v_z^2 = 10\text{ keV} is electron kinetic energy.

Why does the image rotate? (Larmor rotation)

Because electrons spiral azimuthally as they transit the magnetic field, the entire projected image undergoes a net rotation known as Larmor rotation:

θrot=e8meEk∫−∞∞Bz(z)dz\theta_{\text{rot}} = \sqrt{\frac{e}{8 m_e E_k}} \int_{-\infty}^{\infty} B_z(z) dz

Applying Ampère's circuital law along the lens axis (∮H⋅dl=NI\oint \mathbf{H} \cdot d\mathbf{l} = N I), the line integral of BzB_z equals the total ampere-turns:

∫−∞∞Bz(z)dz=μ0NI\int_{-\infty}^{\infty} B_z(z) dz = \mu_0 N I
θrot=e8meEk⋅μ0NI≈50∘\theta_{\text{rot}} = \sqrt{\frac{e}{8 m_e E_k}} \cdot \mu_0 N I \approx 50^\circ

The rotation angle depends strictly on the coil excitation NIN I and electron kinetic energy EkE_k, independent of the specific shape of the pole pieces. In real electron microscopes, whenever an operator turns the focus knob to adjust lens current, the viewed image rotates slightly on the screen.

The role of the iron pole piece yoke

Ampère's law dictates that the integral ∫Bzdz=μ0NI\int B_z dz = \mu_0 N I is identical whether iron is present or not. Why, then, is the lens encased in heavy iron pole pieces?

The key lies in Busch's focal length formula, which depends on ∫Bz2dz\int B_z^2 dz (the square of the field):

  1. Air-core coil: The magnetic flux spreads diffuse over tens of centimeters with a low peak intensity (≈15 mT\approx 15\text{ mT}). Because the field is spread out, ∫Bz2dz\int B_z^2 dz is small, leading to an extremely long focal length and severe spherical aberrations.
  2. Iron yoke with pole pieces: The high-permeability iron (μr=1000\mu_r = 1000) channels almost all magnetic flux into the iron circuit, forcing it to cross only at the narrow 5 mm5\text{ mm} annular gap. This compresses the entire magnetomotive force into a tight, intense peak (Bmax⁡≈45 mTB_{\max} \approx 45\text{ mT}, 3×3\times higher than air), drastically increasing ∫Bz2dz\int B_z^2 dz and forming a sharp, high-magnification objective lens.
ParameterFormula / EstimationSimulator Value
Electron energyEk=10 keVE_k = 10\text{ keV}v≈5.93×107 m/sv \approx 5.93 \times 10^7\text{ m/s} (0.198c0.198c, λ≈0.012 nm\lambda \approx 0.012\text{ nm})
Coil excitationN=20 turnsN = 20\text{ turns}, I≈23 AI \approx 23\text{ A}NI≈460 A⋅turnsN I \approx 460\text{ A}\cdot\text{turns} (V=1.52 VV = 1.52\text{ V}, R=0.066 ΩR = 0.066\ \Omega)
Peak axial fieldConcentrated in 5 mm5\text{ mm} gapBmax⁡≈45 mTB_{\max} \approx 45\text{ mT} (vs ≈15 mT\approx 15\text{ mT} air core)
Focal length ffBusch's formula 1f∝∫Bz2dz\frac{1}{f} \propto \int B_z^2 dzf≈2.8 cmf \approx 2.8\text{ cm}
Magnification MMThin lens M=dimage/dobject=40 cm/3 cmM = d_{\text{image}} / d_{\text{object}} = 40\text{ cm} / 3\text{ cm}≈13.3×\approx 13.3\times
Larmor rotation θrot\theta_{\text{rot}}θrot=e8meEk⋅μ0NI\theta_{\text{rot}} = \sqrt{\frac{e}{8 m_e E_k}} \cdot \mu_0 N I≈50∘\approx 50^\circ clockwise

Try it

Comments