In this technique, a beam of neutrons is generated using a neutron source, such as a nuclear reactor or a spallation source. The neutrons are directed at the sample, where they interact with the atomic nuclei. The scattered neutrons are then detected by a detector, and the scattering pattern is analyzed. The angles and intensities of the scattered neutrons provide detailed information about the arrangement of atoms within the material.