An internal variable theory of inelastic behaviour derived from the uniaxial rigid-perfectly plastic law