Skip to content

EBSD Simulation

EBSD Simulator simulates the electron backscatter diffraction (EBSD) patterns — Kikuchi patterns — obtained in a scanning electron microscope (SEM), using dynamical-theory calculations. It computes the angular/energy/depth distribution of backscattered electrons (BSE) by a Monte-Carlo simulation, builds a dynamical (Bloch-wave) master pattern of the crystal, and projects it onto the detector for the current crystal orientation. An experimental EBSD image can also be loaded and indexed: the orientation that best explains it is searched for automatically (Experimental image).

EBSD Simulator

The window has three columns.

  • Left : simulation conditions. The tabs select Geometry (sample/detector geometry and a 3D view), BSE distribution (backscattered-electron distributions), and Overlays (Kikuchi lines and other annotations).
  • Centre : the EBSD (Kikuchi) pattern for the current crystal orientation. Below it, the tabs select Simulated pattern and Experimental image.
  • Right : the orientation-independent master pattern, in the 2D and 3D tabs.

The status bar at the bottom shows the progress of the running calculation and a summary of its result. If the window is narrow, a long message is cut off at the right edge; hover over it to see the whole message.


File menu

File menu

Item Action
Load experimental image... (CTRL+O) Load a TIFF / PNG / BMP / JPEG image as the experimental EBSD image (the same as dropping the file on the window; see Experimental image)
Load master pattern... / Save master pattern... The same as Load / Save below the master pattern (see Master pattern)
Save master pattern movie... The same as Save movie in the 3D tab of the master pattern
Save EBSD pattern... (CTRL+S) / Copy EBSD pattern The same as Save / Copy above the EBSD pattern
Close Close the window

Keyboard & mouse shortcuts

The centre EBSD (Kikuchi) pattern and the right-hand master-pattern views respond to different mouse actions.

Shortcut Action
F1 Open this page of the online manual
Left-drag the pattern near the centre Tilt the crystal
Left-drag the pattern's outer area Spin the crystal
Mouse wheel up / down on the pattern Zoom in (×2) / out (×1/2) at the cursor
Right-click / right-drag a box on the pattern Zoom out (×1/1.2) / zoom in to the box
Double-click the pattern Pick the detector sub-cell under the cursor and show its statistics (while Zone axis picking is on: add a zone axis; see Zone-axis picking)
Drop an image file on the window, or CTRL+O Load it as the experimental EBSD image
CTRL+S Save the EBSD pattern (the same as Save above the pattern)
Left-drag a 3-D view (geometry / master sphere) Rotate it
Right-drag, or Mouse wheel, on a 3-D view Zoom
CTRL + Right double-click a 3-D view Toggle orthographic / perspective
Drag / wheel on the 2-D master pattern Pan / zoom the image

These combinations are also listed in the window's Shortcut hints menu.

The 3-D views use ReciPro's standard view navigation (panning disabled).

→ See 21. Keyboard & mouse shortcuts for every window at a glance.


Workflow

Pressing Build master pattern runs the following steps in order.

  1. Monte-Carlo BSE simulation : using the current crystal composition, density, accelerating voltage and sample tilt, 10 million incident electrons are tracked inside the sample (elastic scattering: Mott/NIST cross-sections; inelastic scattering: dielectric-response model). This yields the joint distribution of penetration depth × exit direction × exit energy of the backscattered electrons.
  2. Automatic range selection : from that distribution, the energy range (from the incident energy down to about the 95th percentile of energy loss) and the depth range used in the dynamical calculation are set automatically. The depth here is the master-pattern thickness, i.e. the path length measured along the exit direction (source depth ÷ cos χ, where χ is the angle between the exit direction and the specimen-surface normal). The depth range extends to the 99.9th percentile of that path length for the electrons that reach the detector (rounded up to two significant digits) and is divided into 40 unequal steps that are finer near the surface.
  3. Master-pattern build : for each energy and depth, the dynamical diffraction (Bloch-wave) problem is solved and integrated over the sphere of directions, weighted by the Monte-Carlo distribution, to give the backscatter diffraction intensity in every direction. The result is stored on an equal-area (Roşca–Lambert) grid.
  4. Projection onto the detector, with weighting : for the current crystal orientation, the intensity for the direction subtended by each detector pixel is looked up in the master pattern and drawn as the Kikuchi pattern, optionally weighted by the BSE angular/energy distribution.

The energy and depth ranges are set automatically in steps 1–2 while Energy and depth ranges from MC (automatic) is checked (the default; the range boxes are then read-only). Uncheck it to build with ranges typed by hand: the Monte Carlo then leaves the boxes alone, and the hand-entered ranges are saved and restored at the next start. Ranges that cannot be used — a lower limit that is not below the upper limit, an energy above the accelerating voltage (checked before the Monte Carlo starts), or a range entirely outside the Monte-Carlo distribution — are not built; a message gives the reason and the values.


Geometry

SEM & sample conditions

SEM & sample conditions

  • Energy : accelerating voltage of the incident beam (keV). It is kept for the next start, together with hand-entered energy and depth ranges.
  • Wavelength : electron wavelength, linked to Energy. Unit selects Å or nm.
  • Sample tilt : sample tilt angle (typically −70°). The large tilt in EBSD increases the backscattered-electron yield. Changing it discards the Monte-Carlo results (the BSE distributions and their weights; run Simulate again); the master pattern does not depend on the tilt and is kept.

EBSD geometry

EBSD geometry

The detector (phosphor screen) is a rectangle defined by a pixel count and a pixel size.

  • Size and tilt : Tilt is the tilt of the detector screen (°), measured from the horizontal plane (perpendicular to the beam): 0° = horizontal screen, 90° = vertical screen (the default). Width and Height are the number of detector pixels.
  • Resolution : the physical size of one detector pixel (mm/px). The physical detector size is therefore Width × Resolution by Height × Resolution.
  • Coordinates of detector center : position X, Y, Z of the detector centre relative to the beam-impact point (mm), in the microscope (laboratory) frame. Y is the horizontal offset perpendicular to both the beam (Z) and the sample tilt axis (X), not a direction within the tilted sample surface. Y and Z, together with the tilt, determine the camera length; X is the left–right offset.

Loading an experimental image sets Width and Height to the image size, so that one detector pixel corresponds to one image pixel (Resolution is left unchanged).

The geometry can be inspected in the 3D view on the Geometry tab.

3D geometry

The grey plate is the sample, the green rectangular slab is the detector, and the purple +Z (=beam) is the incident beam. The crystal a / b / c axes (fixed to the sample) are also shown. The buttons Bird's-eye view, Surface normal, X axis (rotation axis) and Z axis (beam direction) snap the view to standard directions. See Appendix A1. Coordinate Systems for the coordinate-system definitions.


BSE distribution

BSE distribution

The BSE distribution tab shows the Monte-Carlo backscattered-electron distributions. Use Simulate to recompute them. Only one Monte Carlo runs at a time: while one is running (started by Simulate or by the first step of Build master pattern), Simulate does not start another, and the status bar asks you to wait or press Stop.

  • Stereonet : angular distribution (histogram of exit directions) of the backscattered electrons. The centre is the surface-normal direction, and the yellow outline marks the rectangular region subtended by the detector. Draw axes overlays the crystal axes, and the colour scale (Min / Max, Resolution, Color) is adjustable.
  • ΔE (keV) : energy-loss distribution of the backscattered electrons.
  • Depth (nm) : distribution of the source depth of the detected backscattered electrons, as defined by Source depth (MC) (default: the last inelastic scattering event) — the same depth definition that weights the master pattern.

These distributions are computed by the same Monte-Carlo engine as Electron trajectory and are used to weight the master pattern. Changing the crystal or the accelerating voltage discards these results together with the master pattern (a change made while the window is closed takes effect when it is reopened); the status bar says what was discarded. Double-click the ΔE or Depth graph to copy its values to the clipboard as text (x and y, tab-separated).


Overlays

Overlays

The Overlays tab configures the annotations drawn on the EBSD pattern.

  • Background color : background colour.
  • Detector outline : the detector outline. Show frame (the yellow rectangle at the detector edge) / Show mesh (division grid).
  • Show Kikuchi lines : draw Kikuchi lines. Line width / Color, and Apply structure factors to Kikuchi line intensity (each line fades toward the background in proportion to its structure factor).
  • Kikuchi line criteria : which Kikuchi lines to draw: Structure factor (Top N by structure factor) or 1/d cutoff (those with 1/d below a threshold, nm⁻¹). Switching between the two redraws the lines at once.
  • Show Kikuchi line indices : show indices of the Kikuchi lines (bands).
  • Show zone axis indices : show zone-axis indices.
  • Text settings : Text size / Color of the index labels.

Master pattern

Master pattern

The master pattern is the backscatter diffraction intensity over all directions, computed in advance by the dynamical theory with Build master pattern (Stop interrupts the running calculation).

If any atom site has no atomic displacement parameter (B = 0), a dialog appears when Build master pattern is pressed. Sites with B = 0 cause no absorption, and if every site has B = 0 the master pattern with Non-local source is blank. OK sets an isotropic B = 0.5 Ų for those sites and builds (the value can be changed later in the main window); Cancel stops without building. Sites with anisotropic parameters (Bij) are left as they are.

Save writes the current master pattern to a file (*.rpmp, ReciPro master pattern). When the Monte-Carlo electrons are available they are saved too. Load reads such a file instead of building the pattern again; the file must have been made for the same crystal (cell, atoms and B) and the same accelerating voltage. If they differ, the reason is shown; files saved by this version also contain the crystal, and you can choose to add that crystal to the crystal list (and set the accelerating voltage) and load the file. If the file holds the Monte-Carlo electrons and the sample tilt and the energy threshold are the same as now, the Monte Carlo is not run again, so the result is exactly the same each time the file is loaded. If the file was computed with an older version of the physics, it is still loaded and the status bar shows a warning; build the pattern again to use the current physics. A file for grid 512 is about 0.6–0.8 GB and loads in about a second (files saved before v.4.954 are about 1.3 GB and are still read).

  • 2D tab : equal-area (Lambert) projection of a hemisphere. Hemisphere selects the projected hemisphere (+Z / −Z).
  • 3D tab : a sphere with the intensity mapped onto it. It can be rotated with the mouse, and an inset at the top-left shows the synchronised crystal axes (a/b/c). Axis labels / Axis arrows toggle the labels/arrows, and View along looks down the zone axis [u v w] entered next to it.
  • Energy / Depth sliders : select the energy/depth slice to preview.
  • Either view can be sent to the clipboard with Copy.
  • Save movie (3D tab) : saves a movie (MP4) of the spherical master pattern rotating. The rotation direction, speed, duration, fps and quality are set in the same "Movie setting" dialog as in the Structure Viewer. Only this 3D view rotates; the crystal orientation (the Euler angles in the main window) is not changed.

Master pattern, 3D tab

Dynamical simulation parameters

Dynamical simulation parameters

  • Number of diffracted waves : number of diffracted beams (waves) included in the Bloch-wave calculation. More waves are more accurate but slower.
  • Grid : resolution of the master-pattern grid (pixels per side, 64–8192; default 256). 4096 and 8192 need an enormous amount of memory for the intermediate data (with the default 16 energies × 40 depths, about 344 GB at 4096 and 1374 GB at 8192; already about 86 GB at 2048), so the numbers of energy and depth steps must be reduced drastically before they become usable. If memory runs out, the build ends with "MasterPattern failed" (ReciPro itself keeps running).
  • Energy and depth ranges from MC (automatic) (default on) : while checked, the Monte Carlo sets the two ranges below and their boxes are read-only; when unchecked, the master pattern is built with the ranges typed in the boxes (see Workflow), and those ranges are kept for the next start. The setting is kept for the next start.
  • Energy from … to … with step of … : energy range and step integrated over (keV); set automatically from the Monte-Carlo result while the box above is checked.
  • Depth from … to … with step of … : depth range and step integrated over (nm), measured as the path length along the exit direction; likewise set automatically. The automatic depths are unequally spaced, so the boxes show the shallowest point, the upper end and the first interval as a guide; editing a box by hand switches to equally spaced depths with those values.
  • Use non-local absorption model : use the non-local absorption form.
  • Non-local source (default on) : replace the local (atom-site) backscatter source with the non-local absorptive-potential form (U'_back integrated over the backward hemisphere). Both use the same physical cross-section, so this is a model switch rather than an additive background.
  • Source depth (MC) : which Monte Carlo event defines the depth of the coherent backscatter source used for the (energy × depth) weighting: the last inelastic event (default), the last transport event of any kind, or the last decoherence event. In the last case an event resets the source only when it is localized enough to leave which-atom information in the sample: elastic events with the thermal-diffuse probability 1 − exp(−2B s²) from the Debye–Waller factor (coherent Bragg scattering, already in the Bloch waves, does not), inelastic events always for core/high-loss excitations and, for valence excitations, only with the fraction whose momentum transfer exceeds the plasmon cutoff q_c = ω_p/v_F (plasmons and delocalized electron–hole pairs preserve the Bloch state). Shallower sources carry weaker Kikuchi modulation, so the last option sets the diffuse background from transport alone, without a free parameter. Changing it re-bins the stored electrons without re-running the Monte Carlo.
  • Contrast falls with energy loss (default on; kept for the next start, E_c is not; E_c = 0.8 keV in asymmetric-Gaussian mode and 0.9 keV in histogram + per-electron A mode) : scales the Kikuchi contrast of each energy slice by A(E) = exp(−(E0 − E)/E_c), where E0 is the beam energy and E the exit energy, and moves the lost part into a flat, direction-averaged pedestal, so the brightness without band contrast is unchanged. The Monte Carlo weights count every backscattered electron, but electrons that have lost much energy carry little sharp Kikuchi contrast; without this correction every slice carries full contrast and the bands come out about 12 % wider than for monochromatic electrons at E0 (Si, 20 kV). E_c is an effective parameter, not a material constant; smaller values give stronger attenuation. The asymmetric-Gaussian default of 0.8 keV is based on a calibration, under the original calculation settings, to the band widths of a measured Si pattern at 20 kV (the Si004 dataset; effective-wavelength ratio α ≈ 1.017). Calibrated values depend on the material and on the reflections used; for Botallackite, about 0.43–0.71 keV was obtained with different reflection selections. For quantitative band-width comparisons, recalibrate E_c whenever the energy/depth grid, the synthesis method or the evaluation measure changes. Changing it only re-weights the existing slices, without recomputing the master pattern or the Monte Carlo.
  • Surface amorphous layer : thickness (nm) of a non-crystalline surface layer (native oxide, contamination, polishing or ion-milling damage). Electrons whose coherent backscatter source lies inside the layer carry no Kikuchi modulation and are added as a direction-averaged, uniform contribution with the same intensity per electron; sources below the layer are measured from the crystal surface. Transport is computed with the crystal's composition and density, which is adequate for a few nm. 0 disables it; changing it re-bins the stored electrons without re-running the Monte Carlo.
  • Weight by phosphor response (default on, E_dead = 2 keV) : weight each Monte Carlo electron by the light yield of a phosphor screen, φ(E) = max(0, E − E_dead), instead of counting every electron once. Higher-energy electrons leave the tilted sample more in the forward direction, so the weighting lowers the top-to-bottom intensity gradient of the pattern (for Si at 20 kV from about 2.5 to 1.7 across the detector) and slightly reduces the zone-axis brightness. It applies to the detector-plane binning and to the per-bin energy distribution; changing it re-bins the stored electrons without re-running the Monte Carlo. Turn it off for a direct electron detector that counts electrons. E_dead is the dead-layer (threshold) energy of the phosphor; typical values are 0–3 keV for a P43 screen with an aluminium coating.
  • Energy filter E > (keV; default 0 = off) : an ideal high-pass energy filter in front of the detector. Electrons whose exit energy is at or below this value do not contribute to the pattern. Changing it re-bins the stored electrons without re-running the Monte Carlo or rebuilding the master pattern.
  • Energy distribution from MC histogram (default off) : builds each direction bin's exit-energy distribution from the raw Monte Carlo histogram (φ-weighted, split linearly between the two neighbouring energy slices of the master pattern) instead of an asymmetric Gaussian fitted to the mean and the one-sided spreads. The Gaussian underestimates the peak near the beam energy by a factor of 2–3, which makes the bands look wider. When this is on, the A(E) of Contrast falls with energy loss is also applied to each electron at its own exit energy before it is split between the energy slices, instead of being evaluated at the slice energies. In histogram + per-electron A(E) mode, an unedited E_c switches to the provisional 0.9 keV value from the median widths of 18 fixed Si004 bands at 20 kV; other measures (for example whole-image correlation) give different values. After you edit E_c, switching distributions keeps your value. Changing it re-bins the stored electrons without re-running the Monte Carlo.

EBSD pattern

EBSD pattern

The centre panel shows the EBSD (Kikuchi-band) pattern for the current crystal orientation. The bar above the pattern controls what is drawn and how it is copied.

  • Dynamical EBSD : projects the built master pattern onto the detector; unchecked leaves a plain background.
  • Overlays : draws the Kikuchi lines, indices and detector outline configured in the Overlays tab.
  • Experimental image : overlays the loaded experimental image (see below).
  • Flip L-R : mirrors the pattern and all its overlays left-right. Unchecked (the default) is the view from the detector towards the sample, i.e. the pattern as an EBSD camera records it; check it only if your experimental image has the opposite handedness.
  • Resolution (mm/px) and Size (W×H) (px) : resolution and size of the displayed view.
  • Save : saves the pattern to a file, using the range and resolution selected next to it. The format (PNG / TIFF / EMF) is chosen in the save dialog.
  • Pattern values (*.csv) writes the raw intensities on the detector pixel grid instead of an image. Its # header lines record the conditions (crystal, detector raster and pixel size, voltage, detector and sample tilts in degrees, detector X/Y/Z, …) and the minimum and maximum.
  • A TIFF is written as 16-bit grayscale (not quantised to 256 levels) when the range is Detector, Dynamical EBSD is shown and no experimental image is overlaid (none is loaded, or Experimental image is unchecked). In that case the Overlays are left out whatever their checkbox says, and the pixel values are the pattern mapped linearly from its own minimum–maximum onto 0–65535 (the minimum and maximum used are reported in the status bar; use the csv export when absolute values are needed).
  • Copy : copies the pattern to the clipboard, using the range and format selected next to it.
  • Current copies the area currently shown (as panned and zoomed); Detector copies only the detector area, in which case the yellow frame is left out so the image ends exactly at the detector edge.
  • emf copies an Enhanced Metafile, keeping the Kikuchi lines and index labels as vectors; bmp rasterizes everything.
  • Match detector resolution copies at one image pixel per detector pixel (the longer side is clamped to 4096 px). Unchecked, the on-screen resolution is used.

Simulated pattern

Before the first master pattern is built, only the display rows below (BSE distributions and slice, brightness and contrast, colour) are disabled; the Monte-Carlo settings (Source depth (MC), Contrast falls with energy loss, Surface amorphous layer, Weight by phosphor response, Energy filter E >, Energy distribution from MC histogram) can be changed from the start.

  • With BSE angular/energy distributions (default on) : when checked, the pattern is composited by weighting with the BSE distribution (energy, depth, direction) rather than a single slice.
  • Energy / Depth : when the above is off, select the energy/depth slice to display.
  • Brightness (Min / Max), Contrast, Polarity, Color : the black and white points of the simulated pattern as a percentage of the display range (linear sliders), the width of that range, its polarity and the colour scale. Contrast 0 makes the display range equal to the intensity range of the pattern itself; -1 widens it tenfold (contrast ten times weaker) and +1 narrows it to a tenth, with the centre held fixed.
  • Flatten background (FWHM, px; default off, 100 px) : subtracts a Gaussian-blurred copy of the simulated pattern from itself, removing the slowly varying brightness distribution so that bands and zone axes can be compared with a background-corrected experimental pattern. The FWHM is given in detector pixels and does not depend on the zoom. It affects the displayed image and the PNG/TIFF export; the CSV export keeps the raw values.

Experimental image

Experimental image

Drop an EBSD image file (TIFF, PNG, BMP or JPEG; 16-bit TIFF is read at full depth) anywhere on the window to load it as the experimental pattern. It is drawn over the detector area — above the simulated pattern and below the Kikuchi-line overlays — so the simulation can be compared with the measurement directly. Loading an image also sets the detector Width and Height to the image size.

  • Brightness (Min / Max), Contrast : the black and white points of the overlaid image as a percentage of its display range, and the width of that range (linear sliders, same convention as for the simulated pattern). These act on the experimental image only.
  • Flatten background (FWHM, px; default off, 100 px) : subtracts a Gaussian-blurred copy of the experimental image from itself, removing its slowly varying brightness distribution. The intensity sliders then act on the flattened values.
  • Match to image : sets Min, Max and Contrast of the simulated pattern so that its 2 % and 98 % intensity levels are shown at the same grey as those of the experimental image. The match uses percentiles, so it does not depend on the orientation solution and is insensitive to a pedestal or to a few bright zone-axis pixels. Polarity, Color and both Flatten background settings are left alone, so flatten both sides or neither before pressing it.
  • Opacity : opacity of the overlaid image, from 0 (invisible) to 100 % (opaque). Lower it to see the simulated pattern underneath.

The orientation that explains the image is then searched for with one of two engines.

  • Radon search : matches kinematical Kikuchi-band templates against the Radon (line-detection) map of the experimental image. It works without a master pattern; when one exists, the candidates are re-ranked by a robust ZNCC (zero-mean normalized cross-correlation) against the simulated pattern.
  • Dictionary search : generates dictionary patterns from the dynamical master pattern over all orientations and compares them all by robust ZNCC. It requires the master pattern and takes a few seconds, but is more reliable than Radon search.

Find orientation candidates runs the selected engine and lists up to 10 candidates, best first; when a master pattern is available the top candidate is refined to ±0.25°. The columns are:

Column Meaning
# Rank (0 = best)
Score Radon band-evidence z value
Bands Matched bands / predicted bands in the field of view
ZNCC Correlation with the simulated pattern
Strong bands (hkl) Indices of the matched bands (Radon search only)

Clicking a row applies that orientation to the whole program, so the simulated pattern is redrawn on top of the experimental one and the crystal orientation of every other window follows.

Zone-axis picking

Instead of matching the whole image, the orientation can also be found from band intersections (zone axes) picked by hand on the experimental image.

  • Zone axis : turns picking on. While it is on, a left double-click on the pattern adds a point, CTRL + right-click removes the point within 5 screen pixels, and a left-click selects the point within 5 screen pixels (drawn in yellow; the others are cyan, numbered). While it is off, double-click selects a detector cell as usual.
  • [u v w] : the zone-axis index of the selected point. Leave 0 0 0 to let the search assign it; typing an index constrains the search (useful for low-symmetry crystals and high-index axes).
  • + geometry : also optimizes the detector centre (X, Y, Z, mm) together with the orientation by minimizing the pixel residual between the predicted and picked zone-axis positions. It needs at least 4 assigned points; selecting a candidate then applies the refined geometry as well.
  • Find : searches the orientations that explain the picked zone axes (at least 2 points; three are usually enough, two are ambiguous). The angular tolerance is 2°, retried at 5° if nothing is found. Up to 10 candidates are written to the same candidate table, and clicking a row applies them as above.
  • Clear : removes all picked points, the typed indices and the candidates of the last zone-axis search (no undo). Loading a new experimental image does the same.

Calibrate geometry refines the detector geometry — pattern centre (PC) and detector distance (DD) — alternately with the orientation, by maximizing the ZNCC between the simulated and experimental patterns. It requires the master pattern, keeps the detector tilt fixed, and writes the result back to the Coordinates of detector center X/Y/Z boxes, keeping the detector on the side (+Y or −Y) where it was placed. Since the beam scan of an SEM moves the pattern centre by only a fraction of a millimetre, one calibration at the beginning of an experiment is usually enough for a whole series of images.


See also