In the sliding mode, introducing linear grating or circular segmentation on the sliding surfaces is an extremely efficient means for energy harvesting.
The interference achieved by a diffraction grating both improves the spectral resolution over a prism and allows for the dispersed wavelengths to be quantified.