Constitutive behavior and numerical methods for granular materials