Diffraction occurs when waves (electrons, x-rays, neutrons) scattering from obstructions act as secondary sources of propagation. In the case of crystal structures, atoms in periodic lattices act as scattering sites from which constructive and destructive interference can occur. Line spectra of scattering intensity as a function incident angle can give powerful information into the planar spacing and symmetries of a crystalline material.
is the wave vector of the incident x-ray,
is the wavevector is the scattered x-ray and
is the reciprocal lattice vector of the parallel set of diffracting planes with miller indices hkl. The length of reciprocal lattice plane vector
is given by:
is the wavelength of the x-ray. Therefore, the maximum diffraction plane condition which is searched is
. Once all of the relevant diffraction planes with reciprocal lattice vectors within this limit are selected, the diffraction condition for each of these planes can be calculated:
is the is the spacing of the hkl plane. The structure factor for each of these diffraction conditions is calculated as:
is the index for the
atoms in the unit cell,
is the basis vector for the atoms in the unit cell. The atomic scattering factor
is given by:
are parameters fitted to individual elements. The intensity of each diffraction condition is given by the squared modulus of the structure factor.
Finally the Lorentz-polarization factor is applied to correct for the change in x-ray amplitude due to scattering angle and geometry of the experimental conditions:
The Transmission Electron Microscopy (TEM) pattern for multiple Laue zones is calculated similarly to the XRD diffraction patterns and is available through the diffraction properties tab in the materials explorer.
: De Graef, Marc, and Michael E. McHenry. Structure of materials: an introduction to crystallography, diffraction and symmetry. Cambridge University Press, 2012.