Inclusion of elastic deformation in rigid-plastic finite element analysis