Numerical investigation of the shear behavior of granite materials containing discontinuous joints by utilizing the flat-joint model