Modular approach in the study of mineral phases