The cation distribution in a spinel structure AB2O4 can be calculated by XRD refinement with some software, such as FullProf, GSAS. Some key crystal parameters (Cell parameters, atomic position... ) can also obtained. tha calculation mechanism is closely related to XRD for crystal.