A procedure for the computational investigation of stress relaxation phenomena