I am assuming you are using MAPDL or WB-Mechanical. If so, please refer to the MAPDL Material Reference Manual on Geomechanics options. The Menetrey-Willam material option offers softening in tension and compression (Section 4.11 of R2023-R2 MAPDL docs).