generate grav_mat only for Yan group