X-ray diffraction is a versatile and non-destructive analysis method for the determination of material properties such as phase composition, structure, and texture of powders, solids, and liquids. Depending on the composition, X-ray radiation will be diffracted in a specific way in samples due to the regular distribution of atoms in a crystal. The diffraction pattern provides information about among others phase, crystal structure, and crystal size.