You can define a Drucker-Prager model to model frictional materials, which are typically granular-like soils and rock and exhibit pressure-dependent yield. See Extended Drucker-Prager models for more information.
Defining a Drucker-Prager model Defining Drucker-Prager hardening Defining Drucker-Prager creep Specifying triaxial test data for a Drucker-Prager material model