Rock mechanics modeling based on soft granulation theory