Finally, the parametric simulation program was designed with ANSYS APDL language, various simulation of welding and hammerpeening can be analysed through defining different parameters.
In the numerical simulation of relieving residual stress by hammerpeening, contact element technique was firstly adopted for establishing the finite model and calculating the hammerpeening.