Constitutive equations for perfectly plastic material: an application in soils mechanics