Analysis of Residual Stress