Buy article online - an online subscription or single-article purchase is required to access this article.
computer programs
DATAD, a Python-based X-ray diffraction simulation code, has been developed for simulating one- and two-dimensional diffraction patterns of a polycrystalline specimen with an arbitrary texture under an arbitrary deformation state and an arbitrary detection geometry. Pixelated planar and cylindrical detectors can be used. The basic principles and key components of the code are presented along with the usage of DATAD. As validation and application cases, X-ray diffraction patterns of single-crystal and polycrystalline specimens with or without texture, or applied strain, on a planar or cylindrical detector are simulated.