diffraction_scattering_angle#
- diffsims.utils.sim_utils.diffraction_scattering_angle(acceleration_voltage, lattice_size, miller_index)[source]#
Get electron scattering angle from a crystal lattice.
Returns the total scattering angle, as measured from the middle of the direct beam (0, 0, 0) to the given Miller index.
Miller index: h, k, l = miller_index Interplanar distance: d = a / (h**2 + k**2 + l**2)**0.5 Bragg’s law: theta = arcsin(electron_wavelength / (2 * d)) Total scattering angle (phi): phi = 2 * theta