A generalized contact potential and its application in discontinuous deformation analysis. (July 2018)