1 Introduction

The residual plastic deformation and residual stresses are caused by differential thermal expansion and contraction of the weld and base metal due to the vicinity of welded joints by the localized heating and subsequent cooling of the welded joint. Very often, residual stresses have a significant effect on the properties of materials and structural components, notably bearing capacity, fatigue life, brittle fracture, and stability [1,2,3]. Residual stresses are detrimental to the fatigue, fracture, and corrosion resistance of welds, which are critical in the design of parts and structural components and in the estimation of their structure integrity [4, 5]. Residual stress measurement plays an important role in understanding and improving the quality of welds. During the past years, many different methods for measuring the residual stress in different types of components have been developed [6]. Hole-drilling is one of the principle semi-destructive techniques used to measure residual stress in the manufactured structure. Its reliability and accuracy strongly depend on the type of the strain gauge and the implementation of measurement [7]. Additionally, methods such as ring-core, deep-hole, and hole-drilling combined with DIC are similar in theory with the hole-drilling method which depends on releasing the stress by removing material to infer the residual stress [8,9,10]. However, only in a limited number of points can be measured and the final stress state is known in these methods. The contour method is a destructive method which cuts the object into several parts. The stress state of structure cannot be fully reflected since the direction of the stress obtained is simple [11]. The workpiece measured with destructive methods such as contour, multi-contour, and sectioning is destroyed and could not be measured for other purposes. X-ray and neutron diffraction which are non-destructive base on the variations of lattice spacing to infer residual stress [12, 13], such measurements generally require an unstressed reference lattice spacing which is influenced by the composition. However, changes in composition would result in significant errors [14]. For certain applications, these diffraction techniques suffer from serious scatter problems due to the large granular structure, affecting the resolution. Neutron diffraction stress maps have practical limits because the required beam time grows exponentially with the dimensionality of mapping. The components also have to be sent to large central research facilities for the measurements to be taken.

DIC is advantageous in terms of its non-contact full-field measurement nature, and robustness in correlation algorithmic technique has been widely adopted in industries. DIC is a mature technology for strain measurement [15, 16]. Usually, digital images were collected and displacement and strain of subsets in the region of interest (ROI) are acquired by comparing the images in the un-deformed and deformed states, respectively. The DIC technique, which relies on cameras and computers, is a full-field non-contact technique. It has a simple set-up and requires less space compared to other measuring methods that make it work in a complex environment. During the past few years, the DIC method has been extensively developed and accuracy in strain measurement has been improved significantly with more and more applications [17, 18]. A comprehensive study on determining the mechanical properties of the weld line including HAZ by the DIC and inverse modeling methodology has been presented. The strain hardening exponent is first determined by 3D DIC [19]. To calculate the plastic strain ratio through-thickness strain, the DIC technique was used to measure the surface strain field of both micro- and macro-samples and to point out possible inhomogeneities in the plastic behavior of the TWB weld beads [20].

Agarwal et al. [21] reported the in situ strain evolution during a laser welding manufacturing with the DIC method. They concluded that the method can estimate local strain as close as 1.5 mm from the fusion boundary.3D-DIC based on the principle of binocular stereo-vision was developed to measure the 3D deformation which is inapplicable in 2D-DIC. The raise of the high-temperature resist speckle pattern preparation method makes DIC be used for measuring deformation during welding. Even though strain evolution and weld deformation could be measured [22], residual stress development and final residual stress state in the weld still could not be understood. As a result, it is critical to develop a technique to further computer stress from the strain which is measured by the DIC technique.

The DIC method provides a convenient and reliable way to measure strain evolution which could be translated to stress. Due to the limitations of other residual stress measurement techniques mentioned previously, a non-destructive method based on 2D-DIC strain and is proposed to measure full-field residual stress in welded structures in this paper. This technique mainly integrates the strain field obtained by the DIC method and temperature field to compute the corresponding stress during the whole welding process by the material constitutive relationship. The welding residual stress is acquired finally. This technique has the advantage of non-contact and non-destructive, the system is easy to establish, and two-dimensional residual stress can be acquired. This new stress measurement technique also makes it possible for the first time to monitor strain and stress evolution during the welding process. The residual stress evolution could be further used as feedback to control residual stress and prevent weld defects.

2 Experimental

Two groups of argon shielded tungsten arc welding experiments were performed on Type SS304 stainless plates to get butt welds. The plates were annealed to remove any potential internal stresses. The wire was fed in the front of the weld pool. The seam was composed of one layer in experiment I and two layers in experiment II. The welding parameters are listed in Table 1.

Table 1 Welding parameter

Four clamps were used to fix the plates and two spot welds were produced before the welding process to obtain good weld and reduce the out of plane distortion. The temperature-dependent thermophysical and mechanical properties of the base metal were collected from various sources [23] and showed in Fig. 1, and the plastic strain and corresponding flow stress in different temperatures was interpolated to obtain the curve surface showed in Fig. 2.

Fig. 1
figure 1

Temperature-dependent thermophysical and mechanical properties

Fig. 2
figure 2

Interpolation curve surface of stress

A camera was used to record the images of the steel plate surface at 5 frames per second during thermal cycles (down to room temperature after welding). As shown in Fig. 3, the experimental system was equipped with a special designed laser auxiliary illumination and an optical filter, which was utilized to prevent light interference from the arc.

Fig. 3
figure 3

Experiment set-up

Before welding, a rectangular area on the surface of the steel plate beside the seam was prepared with novel speckle patterns which will survive at elevated temperature during welding by selective oxidization. In order to obtain the temperature evolution during the welding process accurately, a black paint with an emittance of 0.9 was sprayed on the non-speckled plate. An infrared camera was used to record its temperature data. The DIC camera and IR camera fixed on tripods were positioned in the direction perpendicular to the steel plates to measure the in-plane strain and temperature evolution. The image of the temperature filed and corresponding speckle pattern at 15 s after arc on is showed in Fig. 4.

Fig. 4
figure 4

Temperature distribution at 15 s after arc on (temperature unit is degree Celsius)

The base metal plate’s dimension is 200 mm × 70 mm × 6 mm (length × width × thickness), which is showed in Fig. 5, and the weld seam was about 100 mm long. The speckle pattern region and black paint area were both 100 mm × 40 mm. Residual stress of 3 points (P1 ~ P3) were measured with hole-drilling method in both experiments I and II. The results were compared with the corresponding points’ residual stress measured with the method proposed in this paper. The position of P1 ~ P3 is showed in Fig. 5; the distance between P1 and the axis of the weld was 10 mm, P1 and P2 was 10 mm, and P1 and P3 was 15 mm. The hole-drilling measurement following the ASTM-E837–08 standard was made using an annular cutter with a diameter of 2 mm, allowing for stress to be measured up to a depth of about 2 mm. Strain rosettes with an angle of 45° were utilized, and the reference direction was parallel to the axis of the weld (i.e., x) showed in Fig. 5. The least distance among holes was 10 mm which was 5 times the annular cutter’s diameter, ensuring that the point residual stress released made no effects on the subsequent ones. A comparison of measurement results with these two different methods is showed in the “Results and discussion” section.

Fig. 5
figure 5

Position of drilling holes

The strain field of a ROI included P1 ~ P3 was calculated after post-processing all images. A program referring to the constitutive relation of materials involving high temperature were written, integrating the strain and temperature field to obtain the stress evolution during the welding process and residual stress field.

3 Result and discussion

The ROI strain map along axis x (parallel to the axis of weld) and y (perpendicular to x) at 15 s after the arc is showed in Fig. 6a, b, respectively. The displacement and the strain values of each subset in the ROI can be calculated by solving the first-order shape function with the highest correlation between the current and the reference subsets as follows:

$$ {x}^{\prime }=\mathrm{x}+{u}_0+\frac{\partial u}{\partial x} dx+\frac{\partial u}{\partial y} dy $$
(1)
$$ {y}^{\prime }=\mathrm{y}+{v}_0+\frac{\partial v}{\partial x} dx+\frac{\partial v}{\partial y} dy $$
(2)

where (x, y) is the coordinate of the reference subset’s center, (x,y) is the center of the subset after deformation, and u0 and v0 are the subset’s displacements in direction x and y, respectively. The 2D-DIC strain measurement ignored the out-of-plane displacement, but the strain due to the out-of-plane motion has been reduced by increasing the object distance over 1 m [24], reducing the error down to the magnitude of 10−6. Correlation between the current and reference subsets can be calculated by solving one of the commonly used correlation criteria as follows [25]:

$$ {C}_{cc}=\frac{\sum_{\left(i,j\right)\in S}\left(f\left({x}_{ref_i},{y}_{ref_j}\right)-{f}_m\right)\left(g\left({x}_{cur_i},{y}_{cur_j}\right)-{g}_m\right)}{\sqrt{\sum_{\left(i,j\right)\in S}{\left[\left(f\left({x}_{ref_i},{y}_{ref_j}\right)-{f}_m\right)\right]}^2{\sum}_{\left(i,j\right)\in S}{\left[\left(g\left({x}_{cur_i},{y}_{cur_j}\right)-{g}_m\right)\right]}^2}} $$
(3)
$$ {C}_{LS}={\sum}_{\left(i,j\right)\in S}{\left[\frac{f\left({x}_{ref_i},{y}_{ref_j}\right)-{f}_m}{\sqrt{\sum_{\left(i,j\right)\in S}{\left[\left(f\left({x}_{ref_i},{y}_{ref_j}\right)-{f}_m\right)\right]}^2}}-\frac{g\left({x}_{cur_i},{y}_{cur_j}\right)-{g}_m}{\sqrt{\sum_{\left(i,j\right)\in S}{\left[\left(g\left({x}_{cur_i},{y}_{cur_j}\right)-{g}_m\right)\right]}^2}}\right]}^2 $$
(4)

where S represents a subset, (xref, yref) and (xcur, ycur) are coordinates in a reference subset and corresponding deformed current subset, respectively. f and g are the reference and current image functions, respectively, and return a grayscale value corresponding to the specified (x, y) point. fm and gm are the mean grayscale values of the reference and current subset, respectively. It can be seen that the matching results (i.e., correlation) of the reference and current subset are related to the gray value of the images, and the result varies due to the changes of the gray value of the current image. An area with a width of about 5 mm near the fusion line was oxidized during the welding process. Changes of the gray value in this area would affect the matching result. Therefore, the ROI showed in Fig. 6 was not included in this area. In order to further improve the matching accuracy, noise reduction and luminance balance were applied to the images of the speckle pattern region before the strain was calculated. Figure 6a shows the longitudinal (along x-axis) strain map of the ROI during the welding process. When the torch is passing, the strain along the axis x is negative with the longitudinal shrinkage underneath a GTAW torch. The transverse (along axis y) strain field developed after welding (Fig. 6b) could be due to the following two factors: first, the base metal moved outwards from the weld center owing to thermal expansion of the weld. Second, compressive plastic deformation was developed in base metal around the weld pool when the arc reached. During cooling, it shrinks toward the axis of the weld and dragged base metal to the negative direction of y. In combination with the two factors above, a positive displacement was accrued in the zone near the weld because the expansion was greater than the shrink. Meanwhile, a negative displacement was accrued in the zone far from the weld because the expansion was smaller than the shrink.

Fig. 6
figure 6

Full-field strain map during welding at t = 15 s. a Strain field along axis x at 15 s; b Strain field along axis y at 15 s

Figure 7a–b shows the longitudinal strain evolution of P1 ~ P3 corresponding to the points in the hole-drilling method in experiments I and II, respectively. Figure 7c–d shows the transverse strain evolution of P1 ~ P3 in experiments I and II, respectively. The peak of strain evolution in each direction as well as temperature (showed in Fig. 7e–f) in P2 appeared earlier than P1 and P3 since the arc first past through P2.

Fig. 7
figure 7

The strain evolution of P1 ~ P3 in experiments Iand II. a Longitudinal strain evolution of P1 ~ P3 in experiment I. b Longitudinal strain evolution of P1 ~ P3 in experiment II. c Transverse strain evolution of P1 ~ P3 in experiment I. d Transverse strain evolution of P1 ~ P3 in experiment II. e Temperature evolution of P1 ~ P3 in experiment I. f Temperature evolution of P1 ~ P3 in experiment II

The linearized stepwise increment method is mainly used for analyzing the nonlinear relationship of material [26]. The whole load is divided into a certain amount of parts and acts on the structure gradually. A stress increment ∆δ and a strain increment ∆ε come into being once a load is added on a structure with stress and strain; it can be considered that the relationship between ∆δ and ∆ε is linear when the increment is small enough, and the calculation of stress is infinitely close to the actual status. The instruction of solving nonlinear problems with a linearized stepwise increment method in one degree of freedom is showed in Fig. 8. The thermal-dependent relationship between ∆δ and ∆ε in incremental theory are as follows:

$$ \Delta \delta ={D}_e\left(\Delta \varepsilon -\Delta {\varepsilon}_0\right) $$
(5)
$$ \Delta \delta ={D}_{ep}\left(\Delta \varepsilon -\Delta {\varepsilon}_0\right)+\Delta {\sigma}_0 $$
(6)
Fig. 8
figure 8

Linearized stepwise increment method

where De is the elastic matrix, Dep is the plastic matrix, and ∆σ0 represents the stress increment due to temperature change, all these three are related to material’s thermal and mechanical properties; ∆ε is the total strain; and ∆ε0 is the strain increment owing to temperature increment. After inferring the strain steps from the strain evolution and corresponding temperature steps from temperature data, ∆δ can be calculated with the formulas (5) and (6) in elastic and plastic sections with thermophysical and mechanical properties of the base metal, respectively. Since plane stress is a good assumption for a welded plate with a 6-mm thickness, the current study assumed out-of-plane stress is 0.

The stress computation flowchart is showed in Fig. 9. The temperature during welding changed dramatically when the arc past, causing large strain value with a magnitude of 10−3~10−4 in a short period of time (acquisition interval is 0.2 s). According to the linearized stepwise increment method, a great strain increment step might result in great stress measurement error. The stress increment error would propagate because Dep is concerned with the current stress status. In order to diminish the error, efforts were made when designing the stress calculation algorithm whose flowchart is shown in Fig. 9. The temperature and strain increment exceeding a certain threshold were divided equally into small parts. The case of reverse loading was separated out to calculate in a different way. This approach reduced the error to some extent, but the equalization process did not match a smaller strain increment with a corresponding temperature increment accurately. An error could be further minimized by increasing the image acquisition FPS and frequency of temperature sampling to obtain a smaller and more accurate increment correspondence.

Fig. 9
figure 9

Flowchart of stress computation algorithm

The longitudinal stress evolution of P1 ~ P3 in experiments I and II is showed in Fig. 10a, b, respectively, where positive values indicate tensile stress and negative values indicate compressive stress. After filling the first layer in both of the experiments, the longitudinal residual stress at P1 and P2 were almost the same and it is greater than P3 which was farther from the weld. The transverse stress evolution in experiments I and II are showed in Fig. 10c, d. After the first welding process in both of the experiments, the transverse residual stress at P3 was greater than P1, which implied that the residual stress of the point farther from the weld was greater than the nearer one. It differs from the traditional residual stress distribution. The transverse residual stress distribution of butt welding consists of two parts: first, tensile stress spread in the middle of the plates and compressive stress in both ends due to the shrink of the weld, the tensile residual stress distribution of the cross-section in the middle is showed in Fig. 11(\( {\sigma}_{y^{\prime }} \)). Second, contrary to the above, compressive stress spread in the middle and tensile stress in both ends because that the first weld processed hinders the subsequent from shrinking in the transverse, the compressive residual stress distribution of the cross-section in the middle is showed in Fig. 11(\( {\sigma}_{y^{\prime \prime `}} \)). The fact that the compressive stress at P3 was much smaller than that at P1 might result in the consequence that the transverse residual stress at P3 was greater than P1. Figure 10e, f shows the shear stress evolution of P1 ~ P3 in both of the experiments.

Fig. 10
figure 10

The stress evolution of P1 ~ P3 in experiments I andII. a Longitudinal stress evolution of P1 ~ P3 in experiment I. b Longitudinal stress evolution of P1 ~ P3 in experiment II. c Transverse stress evolution of P1 ~ P3 in experiment I. d Transverse stress evolution of P1 ~ P3 in experiment II. e Shear stress evolution of P1 ~ P3 in experiment I. f Shear stress evolution of P1 ~ P3 in experiment II

Fig. 11
figure 11

Residual stress component distribution on cross-section in transverse

The longitudinal, transverse, and shear residual stress map of ROI in experiments I and II are showed in Fig. 12a–f. The longitudinal residual stress of the region with the same distance from the weld is in the same level, and the stress varied from tensile to compressive from the weld center toward HAZ. The tensile transverse residual stress region where the weld was manufactured first was larger than the subsequent ones. Residual stress in all of the three directions intensified after the second weld procedure, and the tensile residual stress region was broadened.

Fig. 12
figure 12

The residual stress map in experiments I and II. a Longitudinal residual stress map (experimentI). b Longitudinal residual stress map (experiment II). c Transverse residual stress map (experiment I). d Transverse residual stress map (experiment II). e Shear residual stress map (experiment I). f Shear residual stress map (experiment II)

Figure 13a, b shows the comparison of the residual stress of P1 ~ P3 measured with the two different methods in experiments I and II. In experiment I, the largest difference between the two methods appeared in the longitudinal stress of P1 and the shear stress of P2 with a value of 24 MPa, and the remaining were similar. In experiment II, the largest difference appeared in the transverse stress of P3 with a value of 37 MPa. The difference in experiment II was greater than that in experiment I. The difference is due to the fact that images were taken at ~2 s after the welding arc was on and large strain appeared within 2 s resulted in stress increment error as discussed above. Furthermore, in experiment II, residual stress error in the final is intensified due to the residual stress after the first welding pass.

Fig. 13
figure 13

Residual stress measured with different methods in experiments I and II. a Residual stress (experiment I). b Residual stress (experiment II)

4 Conclusions

High-temperature stress evolution measurement and residual stress measurement based on 2D-DIC were used to study the mechanical behavior of 304 stainless steel plates during TIG welding process. Based on the investigation, the following conclusions can be made:

  1. (1)

    A new full-field residual stress and high-temperature stress evolution measurement method were developed by integrating a stress increment calculation program, a full-field strain calculation, a special optical illumination and filtering system, and a novel surface high-temperature resistant speckle preparation.

  2. (2)

    The validation result shows that the new non-destructive residual stress technique agrees with the stress measured by the hole-drilling method.

  3. (3)

    Stress evolution could be obtained and be further used for adjusting welding procedures to achieve lower tensile residual stress in the weld.

  4. (4)

    Measurement error analysis was performed, and several possible approaches were proposed to diminish the residual stress measurement error in the new technique.