Computations of plastic flow in granular assemblies under rotation of principal stresses