A tunable nanomechanical near-field grating is disclosed which is capable
of varying the intensity of a diffraction mode of an optical output
signal. The tunable nanomechanical near-field grating includes two
sub-gratings each having line-elements with width and thickness less than
the operating wavelength of light with which the grating interacts.
Lateral apertures in the two sub-gratings are formed from the space
between one line-element of the first sub-grating and at least one
line-element of the second sub-grating. One of the sub-gratings is
capable of motion such that at least one of aperture width and aperture
depth changes, causing a perturbation to the near-field intensity
distribution of the tunable nanomechanical near-field grating and a
corresponding change to the far-field emission of thereof.