Mechanics of granular materials: constitutive behavior and pattern transformation by