Animated model of a plane diffraction grating, with sliders to control the angle of incidence, the ruling density, and the diffraction order viewed. Based on the grating equation: Angle of diffraction = asin(order*wavelength /(groove spacing) - sin(angle of incidence)).
Assumptions: The grating surface is represented by the striped bar on the left of the figure. It is illuminated with a thin parallel, collimated "white" light beam consisting of eight discrete wavelengths. Only one diffraction order is shown at a time (selected by the number wheel). Only eight wavelengths are shown in the diffracted beam. The colors of the diffracted beams roughly match the wavelengths of those beams. The relative intensity of different wavelengths and orders is not represented. For clarity, narrow beams are shown, even though in practical applications a wide beam, entirely covering the grating surface, is ordinarily used. Angles are measured from the horizontal axis.
Four "Animated figure" models that help students understand diffraction gratings in stationary and Czerny-Turner mountings. There are four variations of this model:
Wingz player application and basic set of simulation modules, for
windows PCs or Macintosh
There is also a set of diffraction grating models written in Matlab. See below for Excel and OpenOffice Calc versions.