Single partice x-ray diffraction simulator.