Introduction

The measurement of residual stress using the relaxation approach in combination with optical techniques has been proposed by several authors in past years. Indeed, optical experimental techniques (in particular interferometric ones) are well suited for residual stress measuring owing to several favorable characteristics: their high sensitivity (which can also be fine-tuned in some experimental techniques), the non-contact nature of the measurement and full-field data acquisition make them serious competitors of the standard strain-gauge-based procedure. Thus, several authors have proposed different approaches to residual stress measuring, mainly using holographic interferometry [14], grating (moiré) interferometry [58] and speckle interferometry [915]; orthotropic materials have also been considered [16, 17]. However, most of these approaches use the optical measuring technique as a direct replacement of strain gauges [2] or employ only few data points [3, 7, 8], thus not taking advantage of the availability of a huge number of sampling points that make it possible to use statistical approaches, i.e. it makes possible the exploitation of data redundancy to improve measurement accuracy and reliability [10, 11, 13, 1821].

Even though the use of optical techniques is advantageous with respect to strain-gauges—they have similar, or higher sensitivity, they require little or no preprocessing of the area where the measurement is to be performed, they can be used in a wider range of temperatures—the use of these techniques is mainly confined to optical laboratories. Indeed, high sensitivity to vibrations makes the use of interferometric techniques very difficult in an industrial environment.

Digital Image Correlation is a non-interferometric technique able to measure bi- and three-dimensional displacement fields. It works by numerically correlating two images (two couples of images in the 3D case) acquired before and after motion under the assumption that pixel intensity remains constant during the acquisition. Since this approach results in an under-constrained set of equations (see next section), the solution is mostly obtained in the least square framework, thus each measurement corresponds to a local fit over a small (usually square) region, known as a block. The resulting algorithm is clearly nonlinear because the intensities at the inspected points (of the image to be compared) depend on the displacement components, thus a Newton-like algorithm (e.g. Levenberg-Marquardt) has to be used.

Although some authors have proposed the use of DIC for residual stress measurement [2229], Digital Image Correlation is not the best optical technique to be coupled with hole drilling for residual stress measurement: indeed, due to the least square approach, the standard deviation of the measured displacement components depends on the square root of the number of points involved in the comparison; in presence of gradients (i.e. near the hole boundary, where most of the signal related to the drilling is located) the block must be small to enable the measurement to follow the fast variation of the signal. Thus the standard deviation of displacements is quite large; moreover the number of independent measurements (to be used by the reverse calibration algorithm to estimate residual stress) is relatively small when compared to interferometric techniques and each of them is somewhat biased [30] because the shape functions usually employed by standard codes are unable to correctly describe the residual-stress-related displacement field.

Better results can be obtained on moving from the “local” approach (i.e. using completely disjoined blocks) to a “global” DIC approach [31]. In this formulation, the displacement field is described using a mesh, thus involving a formalism identical to that used in the Finite Element field. The algorithm tries to optimize the displacement of nodes (which by themselves control the displacements inside the elements via the shape functions); thus minimization affects the full active area of the image (i.e. the region covered by elements) at the same time. In other words, since nodes are shared by adjacent elements, this approach results in a global minimization. Although the uncertainty of displacement is smaller when using the global formulation [32], the aforementioned problem regarding the number of pixels per block (element) is still present (even though it is less serious) thus making it difficult to follow large gradients in any case. Figure 1 shows the measured 𝜖 x x field (selected because it better visualizes potential inhomogeneity) in an experimental hole drilling test. The analysis was performed using a global code; the results are generally correct, but a more detailed inspection shows that a) at a low residual stress level, a large part of the signal is located in a relatively small area, i.e. near the border of the hole (where the ements are smaller); b) it is possible to detect some errors near the border of the hole, thus confirming the previous discussion.

Fig. 1
figure 1

Residual stress analysis using a global-DIC code; experimental data, 𝜖 xx field (Material of specimen is AISI 304, thus Young’s modulus is about 200 GPa, whereas hole diameter and thickness are respectively 4 and 5 mm). Left: σ xx = 6 MPa, right: σ y = 60MPa. Note the noise near the hole, clearly visible in the 6 MPa case, but detectable also in the 60 MPa case. Note also that even for a stress value as low as 6 MPa, the stress-related strain pattern can still be recognized

Integrated DIC (iDIC) was first proposed by Roux and Hild [33] and its first application to residual stress is the work of Gao and Shang [22]. It formally does not differ from a standard local DIC approach, but deserves a special acronym because of a single, but significant, modification: instead of using general-purpose shape functions to describe how the block of pixels moves and deforms, it uses problem-specific shape functions (i.e. the expected behavior of the problem to be studied is directly included in the formulation). This allows us to overcome the difficulties shown by all general-purpose codes in presence of large gradients: indeed, by integrating the expected behavior of the specimen inside the shape functions, the problem of biased measurements is completely sidestepped and there is no need for partitioning the domain into sub-regions, thus a huge number of pixels can be used for the analysis and the problem of the large standard deviation of displacements is completely solved. Moreover, the fitting algorithm directly involves the stress components related to residual stresses, thus allowing a direct measurement without any post-processing (i.e. the code is significantly simpler than coupling a standard DIC code with a-posteriori residual stress fitting).

This article is organized as follows: in the next section the general DIC formalism will be sketched and the modifications required to integrate the residual-stress-related displacement field in the formulation will be presented. Then the proposed formulation will be validated using numerical generated images (Section “Numerical Validation”) and experimental tests (Section “Experimental Validation”). Section iDIC Vs Interferometric Analysis compares the performance of iDIC with respect to speckle interferometry, whereas some potential issues and the modification required to avoid them are discussed in Section “Discussion”. Finally, Section “Conclusions” presents some conclusions.

i-DIC

The basic assumption of Digital Image Correlation is the constancy in time of the intensity of each point of the imaged object [34], i.e.

$$\begin{array}{@{}rcl@{}} I(x,y,t) = I(x+u_{x},y + u_{y}, t+\Delta t) \end{array} $$
(1)

where (x + u x , y + u y ) is the location at time t + Δ t of the point which at time t was in (x, y). To satisfy this hypothesis, some constraints on the illumination and characteristics of the imaged surface have to be satisfied [35]—in short, the illumination should be isotropic and constant in time and the surface should present a non-periodic pattern—which can easily be fulfilled with careful design of the experimental setup.

Assuming the displacements to be small, the second member of equation (1) can be expanded in Taylor series truncated to the first order to obtain, after some easy mathematical manipulations, the well-known optical flow equation:

$$\begin{array}{@{}rcl@{}} \frac{\partial I}{\partial x}V_{x} + \frac{\partial I}{\partial y}V_{y} + \frac{\partial I}{\partial t} = 0 \end{array} $$
(2)

where V x and V y are the x and y components of velocity.

Equation (2) involves two unknowns, thus it is not possible to estimate the displacement field unless an auxiliary constraint is added to the formulation. Several solutions have been suggested to solve the so-called aperture problem, e.g. the local regularization constraint of Horn and Schunck [36], or the combined Local and Global approach of Bruhn et al. [37], but the most known approach to this problem is probably the Lucas and Kanade (LK) formulation [38], which minimizes, in the least square sense, an error function on patches of pixels under the assumption of an affine displacement model for the motion. The LK approach allows development of general-purpose codes either by following the displacement of each point independently (i.e. analyzing a block of pixels centered at the inspection point) or by writing a global function as previously described.

The most frequently used error functions are the Correlation

$$\chi^{2}_{CC}(i_{0},j_{0},u,v) {}={} 1{}-{}\frac{\sum_{k} \sum_{l} I(k,l)\, J(k{}+{}u_{x},l{}+{}u_y)}{\sqrt{\sum_{k}\sum_{l} I^{2}(k,l)}\,\sqrt{\sum_{k}\sum_{l} J^{2}(k{}+{}u_{x},l{}+{}u_y)}} $$

and the Least Square Difference

$$\begin{array}{@{}rcl@{}} \chi^{2}_{LSD}(i_{0},j_{0},u_{x},u_y){} ={} \sum_{k}\sum_{l} [I(k,l) {}-{} J(k+u_{x},l{}+{}u_y)]^2 \end{array} $$

where i 0 and j 0 are the coordinates of the pixel where the measurement is performed, u x and u y the X and Y displacement components to be measured, k and l range over the rows (columns) of the block centered at ( i 0, j 0) (or over the pixel inside the mesh, in the global case) and finally I and J are the intensities of the reference and target images (i.e. the images of the specimen before and after motion).

To fit J to I, the error function has to be minimized; this involves estimating the derivatives of χ 2 with respect to the parameters that control the displacement (i.e. the parameters of the shape functions) and setting them to zero. The resulting solution system Ax = b can easily be estimated, with \(\mathbf {A} = \sum _{i} \mathbf {h}_{i} \mathbf {h}^{\mathrm T}_{i}\), the known terms vector b = ∑ i (l i J i )h i and the vector h i depending on the derivatives of the image intensity at the inspected pointsFootnote 1 i.

In the previously discussed formulation, the intensity of the test image was expanded in Taylor series. However, it is also possible to expand in series the intensity of the reference image I (or both [39]). The resulting algorithms converge to the same result, but are quite different from the implementation standpoint: indeed, since the reference image does not change in time, the latter solution allows somewhat faster execution of the iterative loop, because intensity derivatives can be evaluated before entering the main body of the procedure. However, the improvement is not so significant because a) the most computationally intensive step of the algorithm is the intensity interpolation, which has to be performed in any case; b) the total number of iterations is somewhat larger due to the constant derivatives.

Note that the solution system appears to be linear, but this is not the case. Indeed, both J and its derivatives with respect to the x and y axes appearing in h i depend on the unknown displacements (which control where these quantities must be evaluated); thus, to achieve a solution, a nonlinear iterative approach is required.

As previously noted, general-purpose codes use linear (sometimes parabolic) shape functions [34]:

$$\begin{array}{@{}rcl@{}} u_{x} &=& p_{0} + (1+p_1)\xi + p_{2} \eta + \left[ p_{3} \xi^{2} + p_{4} \xi\eta + p_{5} \eta^{2}\right] \end{array} $$
(3)
$$\begin{array}{@{}rcl@{}} u_{y} &=& q_{0} + q_{1} \xi + (1+q_2) \eta + \left[q_{3} \eta^{2} + q_{4} \xi\eta + q_{5} \xi^{2}\right] \end{array} $$
(4)

where ξ and η are the coordinates of a local system with the origin at (i 0, j 0) and the p i and q i are the unknown parameters; thus, the mapping can be assumed to correctly follow the real behavior only locally and several fits (elements) have to be performed to describe complex fields. This is not the case in iDIC: since it targets a well-defined problem, specific shape functions can be used to describe the displacement field globally. Thus, there is no need to perform several local measurements and a truly-global solution is obtained.

To convert the above-sketched general framework to an iDIC approach, we have to replace the generic displacement functions with residual-stress specific shape functions; in fact, the displacement field induced around a hole by residual stress relaxation is well known:

$$ u_{r} = A \left(\sigma_{x}+\sigma_{y}\right)+ B \left[\left(\sigma_{x} - \sigma_{y} \right) \cos(2\theta) + 2 \tau_{xy} \sin(2\theta)\right] $$
(4a)
$$ u_{\theta} = C \left[\left(\sigma_{x}- \sigma_{y}\right)\sin(2\theta) -\tau_{xy} \cos(2\theta)\right] $$
(4b)
$$ u_{z} = F \left(\sigma_{x}+\sigma_{y}\right) + G \left[ \left( \sigma_{x} - \sigma_{y} \right)\cos(2\theta) + 2 \tau_{xy} \sin(2\theta)\right] $$
(4c)

where the A, B, C, F and G coefficients can be estimated using Finite Element computations [10], or from the theoretical solution given by Nelson et al. [3]:

$$\begin{array}{@{}rcl@{}} A &=& \frac{r_{0}}{2E}(1+\nu)\rho \;\quad B = \frac{r_{0}}{2E}\left[ 4\rho - (1+\nu)\rho^{3}\right]\\ C &=& -\frac{r_{0}}{2E} \left[ 2(1-\nu)\rho + (1+\nu)\rho^{3}\right] \;\quad F = 0 \\ G &=& \frac{\nu t}{E}\rho^{2} \end{array} $$
(5)

where ρ is the ratio of the hole radius r 0 and the distance of the current point from the center of the hole ( 0 ≤ ρ ≤ 1), E is the Young modulus, ν the Poisson ratio, t the thickness of the plate, r, 𝜃 and z the coordinate of the point in a cylindrical reference system and σ x , σ y and τ x y the (orthogonal) stress components.

The in-plane displacement components (equations (4a) and (4b)) can easily be projected in the x and y directions using a standard rotation matrix to finally obtain the sought for shape functions:

$$ u_{x}(x,y,\sigma_{x},\sigma_{y},\tau_{xy}) = u_{0} + P_{u} \sigma_{x} + Q_{u} \sigma_{y} + R_{u} \tau_{xy} $$
(6a)
$$ u_{y}(x,y,\sigma_{x},\sigma_{y},\tau_{xy}) = v_{0} + P_{v} \sigma_{x} + Q_{v} \sigma_{y} + R_{v} \tau_{xy} $$
(6b)

where P u , Q u and R u ( P v , Q v and R v ) are calibration coefficients depending on point location, material properties and hole geometry:

$$\begin{array}{@{}rcl@{}} P_{u} &=& \left[ A + (B + C) \cos(2\theta) - C\right] \cos(\theta) \\ Q_{u} &=& \left[ A - B\cos(2\theta)\right]\cos(\theta) + C \sin(2\theta) \sin(\theta) \\ R_{u} &=& +2 \left[ (B+C)\cos(2\theta) + B \right] \sin(\theta) \\ P_{v} &=& \left[ A + (B + C) \cos(2\theta) + C\right] \sin(\theta) \\ Q_{v} &=& \left[ A- (B+C)\cos(2\theta) - C \right] \sin(\theta) \\ R_{v} &=& -2 \left[ (B+C)\cos(2\theta)-B\right]\cos(\theta) \end{array} $$
(7)

Note that equations (6a) and (6b) include two parameters (respectively u 0 and v 0) to account for rigid body motion of the specimen during testing.

Once the shape functions (6) are known, the development of the algorithm exactly follows the standard LK formulation; the normal equation solution matrix and the known-terms vector can be estimated as explained above, providing we write

$$ \mathbf{h}_{i} = \left\{\begin{array}{c}\vspace*{2pt} \frac{\partial J_{i}}{\partial\xi} \\ \frac{\partial J_{i}}{\partial\eta} \\\vspace*{2pt} P_{u} \frac{\partial J_{i}}{\partial\xi} + P_{v} \frac{\partial J_{i}}{\partial\eta} \\\vspace*{2pt} Q_{u} \frac{\partial J_{i}}{\partial\xi} + Q_{v} \frac{\partial J_{i}}{\partial\eta} \\ R_{u} \frac{\partial J_{i}}{\partial\xi} + R_{v} \frac{\partial J_{i}}{\partial\eta} \end{array} \right\} $$
(12)

where, similarly to equation (3), ξ and η are local variables in the reference system located in the reference image ( d ξ = d x, d η = d y) and we have omitted the dependency of the calibration coefficients \(P_{u}, \dots , R_{v}\) on point i.

Validation

Validating a residual stress measurement algorithm is not easy. It would require performing the measurement on a specimen with known residual stresses (i.e. knowing the complete history of its technological treatments). Thus I opted for a two-step approach, first using numerically generated images, then performing a semi-experimental validation, i.e. an experimental campaign employing externally applied loads after residual stress relaxation.

Numerical Validation

It is well known [40, 41] that generating images for DIC testing is not easy due to the sensitivity of the algorithm to errors induced by polynomial interpolation. To solve this problem I followed an analytical approach: the speckle field was described as the summation of several bell-shaped functions, randomly “sprayed” on the surface:

$$ B(r) = \left\{ \begin{array}{cc} s \left[ 1 - \left( r/a\right)^2\right]^3 & \text{r} \le \text{a} \\ 0 & \text{elsewhere} \end{array} \right. $$
(9)

where a is the radius of the speckle, s is a scale factor ( 0 < s ≤ 1) and r is the radius from the center of the blob. Consequently, the intensity distribution is a continuous, known, analytical function resulting from the summation of all the B functions. Generating an image requires sampling the field on a grid of points and mapping (through the residual stress displacement field) the estimated intensities to the destination image [42]. This procedure is highly computation-intensive because each pixel has to be super-sampled; moreover, each intensity estimation requires determining the list of the bell-shaped functions involved in the computation. However, by construction this procedure does not introduce any distortion in the speckle field. Figure 2 shows an example of the generated images before and after stress relaxation. To make the tress-induced displacement field apparent,Footnote 2 unrealistic parameters were used (in particular the Young modulus is about two orders of magnitude smaller than the typical values for metals). By examining specific speckle patterns it is quite easy to detect how the specimen deforms under loading.

Fig. 2
figure 2

Example of a simulated speckle field. Left: undeformed speckle field; right: after stress relaxation. To make the stress-induced displacement field apparent, unrealistic material parameters were used for the generation. (σ x = 100 MPa, σ y = 50 MPa, τ xy = 20 MPa, E = 1000 MPa, ν = 0.3. Pixel size: 8 μm)

Figure 3 shows the results of the validation analysis (performed using steel-compatible parameters: E = 208 GPa, ν = 0. 3): a monoaxial ( σ 1 = 200 MPa) stress field was rotated using ten-degree steps starting from 0 up to 90°. After analyzing each of the synthesized images with the proposed algorithm, results were graphed as a function of the loading angle. The figure clearly shows the accuracy of the proposed algorithm: indeed, the estimated stress components (the square, circular and triangular markers, used respectively for σ x , σ y and τ x y ) exactly follow the theoretical behavior (the continuous line), the errors being smaller than 1 MPa. It should be noted that the algorithm is robust against noise: to simulate realistic data, the lower three bits of the image data were perturbed by adding uniform white noise, but the large number of pixels involved in the computation ( ∼ 3 MPixel) makes the algorithm apparently insensitive to this perturbation.

Fig. 3
figure 3

iDIC reliability test (synthetic images). Applied stress is always the same (200 MPa), but using a different orientation (from 0 to π/2 by π/18 (10°) steps)

Figure 4 confirms the robustness of the iDIC approach: a set of monodimensional residual stress images were synthesized starting from 10 up to 800 MPa (Young’s modulus: 70 GPa, Poisson’s ratio: 0.3, hole radius: 3 mm, quantization: 12 bit); on observing Fig. 4, it is apparent that iDIC was able to reliably estimate the residual stress with very small deviations from the theoretical value. As a comparison, Fig. 5 graphs the absolute errors in residual stress estimation for iDIC and for the standard approach (i.e. residual stresses are estimated by reverse calibration using as input either the u or v displacement field estimated by a standard DIC code). Even though errors are very small for both approaches, iDIC is significantly more accurate; moreover, the error range is clearly correlated with stress level in the standard approach, while it remains stable in the iDIC case. Note that the noiseless version of the images was used during error estimation, thus Fig. 5 may be viewed as a lower limit of the errors one should expect during a residual stress test.

Fig. 4
figure 4

iDIC range test: estimated residual stress Vs theoretical values (Synthetic images). Material parameters: E = 70 GPa, ν = 0.3. Note that the iDIC code is able to measure from tiny to very large residual stresses with high accuracy (no modification of the software or acquisition settings was performed during the analyses)

Fig. 5
figure 5

Absolute errors in residual stress estimation using iDIC and the standard approach (i.e. general purpose DIC analysis coupled with a-posteriori reverse calibration). The noiseless version of the set of images used for Fig. 4 was employed

Experimental Validation

As previously noted, experimental validation requires knowing the expected residual stress values. To this end it is necessary to completely remove (e.g. by annealing) all stresses eventually induced during the manufacturing of the specimen and artificially inject known ones. Both points are somewhat critical because the former may alter the metallurgical characteristics of the material (e.g. its grain, the orientation of the fibers), whereas the latter requires accurately loading the specimen above the yield point, taking into account work hardening and potential instabilities. Thus, the induced stress values are usually not so accurate as we would like them to be. An alternate approach, able to better control the induced stress level, can be obtained by locally relaxing the specimen by material removal. The full procedure can be summarized in the following steps:

  1. 1.

    drill the hole in the specimen; in this way the residual stresses eventually present are released;

  2. 2.

    acquire the reference image;

  3. 3.

    apply a known stress state (either by using a load cell or with strain gauges glued to the specimen far from the hole);

  4. 4.

    acquire the new image (note that differently from the previously discussed procedure we are working in the elastic range);

  5. 5.

    perform the analysis.

This procedure is clearly erroneous because it corresponds to a tensile test of a plane with a hole. However, there exists a close relation between the residual stress field around a hole and the corresponding distribution on an infinite plate with a hole under tension: in fact, it is possible to obtain one from the other by summing (subtracting) the displacement field of an infinite plane in tension:

$$\begin{array}{@{}rcl@{}} u_{x}^{p} &=& \frac{{\sigma_{x}}-\nu {\sigma_{y}}}{E} x + \frac{ {\tau_{xy}}}{2G} y \\ u_{y}^{p} &=& \frac{ {\tau_{xy}}}{2G} x + \frac{ {\sigma_{y}}-\nu {\sigma_{x}}}{E} y \end{array} $$
(10)

Thus, the problem appears to be solved and the test can be performed. The proposed procedure has been used in various works (e.g. Baldi [43], Valentini et al. [16]); in particular, it gently fits for all interferometric approaches because the removal of the always present spurious drift, usually performed by least square fitting a plane to the phase field, automatically removes the displacement field (equation (10)). This is not really the case in the proposed iDIC approach: since the displacement field is never explicitly computed (we are directly fitting the stress components) there is no way to subtract a-posteriori the spurious displacement field (equation (10)). The only solution for obtaining a working algorithm is by including the appropriate correction factors in the shape function formulation; following this approach the various calibration coefficients become

$$\begin{array}{@{}rcl@{}} P_u' &=& P_{u} + \frac{x}{E} Q_u' = Q_{u} - \frac{\nu x}{E} R_u' = R_{u} +\frac{y}{2G} \\ P_v' &=& P_{v} - \frac{\nu y}{E} Q_v' = Q_{v} + \frac{y}{E} R_v' = R_{v} + \frac{x}{2 G} \end{array} $$
(11)

where the prime flags the corrected coefficients.

Figure 6 shows the specimen used to perform experimental validation of our code: a 4 mm hole was drilled in an AISI 304 plate (section: 60 × 5 mm). Then the surface was painted to obtain a random speckle pattern. The specimen was installed in our testing machine (MTS Landmark 370) and loaded from 0 to 30 kN using 3 kN steps. It should be noted that each loading step can be viewed as a completely independent test since each image (acquired after loading) was processed against the unloaded case without any information from the previous analyses. Figure 7 shows the results of the numerical processing, the square markers being iDIC estimates, while the continuous line corresponds to the theoretical value. It is apparent that the iDIC-based code was able to correctly estimate the stress values even for very low loading levels.Footnote 3 The result is even more remarkable when considering that no previous mechanical characterization was performed on the specimen, thus both the Young modulus and Poisson coefficients are approximate values ( E = 200 GPa, ν = 0. 3).

Fig. 6
figure 6

Image of the specimen used for validating the iDIC code using tensile induced “residual stresses”. Left: experimental setup; right: specimen

Fig. 7
figure 7

Estimated residual stress Vs theoretical values (experimental data). Note that above 60 MPa (stress at infinity) plasticity starts to affect results (Yield stress of AISI 304 is 215 MPa at 0.2 % offset)

iDIC Vs Interferometric Analysis

To asses the accuracy of the proposed methodology, some experimental tests using both interferometric methods (in-plane and out-of-plane ESPI) and integrated Digital Image Correlation were performed. Because of the vibrations induced by the hydraulic system, it is not possible to use the servo-hydraulic testing machine employed in the previous section. Thus I opted for the four-point-bending system shown in Fig. 8: the loading frame is coupled to the micrometric loading screw by means of a spherical joint, thus (small) misalignments of the specimen will be automatically compensated; moreover, the fixed frame is mounted on a optical class rotating stage to allow alignment of the specimen with the plane of the optical beams; finally, the applied load is monitored by an in-house-built load cell (not visible in the image) mounted between the fixed frame and the loading screw.

Fig. 8
figure 8

Four-point-bending loading system

Figure 9 (left) shows the acquired phase modulo 2π field using an in-plane-sensitive ESPI setup. The optical configuration is a standard Leendertz configuration (dual-illumination-, single-observation-direction method [44]) using a (symmetrical) illumination angle of about 18 degrees. A strain gauge was glued to the back side of the specimen to directly measure the stress level in the central area. The four-point bending configuration ensures a constant stress state in the region between the inner constraint, thus the above-described correction (equation (10)) applies. Figure 9 (right) shows the phase field after removal of the linear displacement component (note that the phase-unwrapped data were re-wrapped to simplify comparison). Although a low sensitivity configuration was used, I had to low-pass-filter the raw data to allow the unwrapping algorithm to work correctly due to the incipient decorrelation at the boundaries; thus the upper limit of the measuring range of the experimental technique is quite near the current stress value (100 MPa).Footnote 4

Fig. 9
figure 9

Residual stress measurement using in-plane sensitive ESPI. Left: acquired phase modulo 2π field; right: the same data after removal of the interpolating plane

Figure 10 (left) shows the wrapped phase field related to an out-of-plane ESPI experiment. The data analysis, apart from the higher quality of the fringes due to the smooth reference used in this optical configuration, shows an experimental problem not easily detectable in the previous experiment: indeed, even though the specimen is relatively thick,Footnote 5 it behaves like a plate, as is highlighted by the anticlastic shape it assumes under bending (see Fig. 11). The stress concentration factor around a hole of a plate in bending depends on the ratio of the hole radius to the plate thickness with an asymptotic value of about 1.8 (assuming ν = 1 / 3) [45]. This means that

  • the displacement field around the hole is significantly different from the assumed plane-strain model; this is particularly significant in the orthogonal direction with respect to the bending plane (the regions around the top and bottom of the hole in our case). Since σ y (in current loading configuration) is mainly affected by displacements in these areas, its value will be incorrectly identified by both the interferometric and the digital correlation methods;

  • the linear correction described in the previous section takes into account in-plane motion; the out-of-plane component compensation requires using a parabolic term both in the vertical and horizontal directions.

Fig. 10
figure 10

Residual stress measurement using out-of-plane sensitive ESPI. Left: acquired phase modulo π2 field; right: the same data after removal of the anticlastic displacement field (Illumination angle: ∼ 63.5°)

Fig. 11
figure 11

Residual stress measurement using out-of-plane sensitive ESPI: unwrapped phase field. Taking into account that the sensitivity vector is mostly in the out-of-plane direction, it is apparent that the specimen undergoes an anticlastic deformation under bending, i.e. it behaves like a plate. Note the small unwrapping errors at the right boundary of the image

Figure 10 (right) shows the re-wrapped phase field after correction: a fast review of literature [3, 20, 21] shows that it is qualitatively correct even though it is affected by the aforementioned problem.

Figure 12 compares the σ x measurements when estimated using iDIC, in-plane ESPI and out-of-plane ESPI: all three experimental approaches are very accurate, the largest error being about 2 MPa. iDIC errors are generally better than those of out-of-plane ESPI and comparable with those of in-plane ESPI. It should be noted that if comparison is performed on the σ y , errors are very large due to the problem discussed above: in-plane ESPI is the most affected optical configuration because it estimates the influence of σ y indirectly (through the effect of transversal contraction on X displacements); out-of-plane ESPI benefits from its mixed (in-plane and out-of-plane) sensitivity; finally, iDIC is significantly less erroneous, probably because it fits both X and Y displacements.

Fig. 12
figure 12

ESPI Vs iDIC: accuracy comparison. Results of the iDIC method are comparable to those of the interferometric methods. Note that absolute errors are very low for all three experimental methodologies, the largest error being about 2 MPa for the out-of-plane ESPI at 70 MPa (Note that the scale used to plot errors is ten times larger than the one used for stress values)

Discussion

The numerical and experimental validations of the previous section show that the proposed iDIC approach allows measurement of residual stress values with high reliability and accuracy. However, some details must be pointed out:

  • From a practical viewpoint, the proposed experimental procedure cannot be performed as described. In fact, the calibration coefficients (equation (7)) depend on the relative position of the point where the coefficients \(P_{u}\dots R_{v}\) are estimated with respect to the center of the hole. Although in the previously described validation the specimen was drilled before acquisition of the reference image, in a true residual stress measurement the hole is drilled after acquisition of the reference image, thus it is not possible to correctly locate the center of the hole in the reference image. However, the problem can easily be solved by swapping the role of the reference and test images: in this case the hole exists, thus center and radius are known and the calibration coefficients can be estimated. The previously described procedure can be performed with no modification, except for a post -processing step for reversing the sign of the resulting residual stresses.

  • As previously noted, DIC codes use a Newton-like iterative procedure to estimate displacements. This class of algorithms requires a starting point, which should be near enough to the one sought; thus a simpler, less accurate, pre-processing step is usually executed using a matching-block algorithm (without taking into account deformations) or by the digital equivalent of speckle photography (FFT algorithm).Footnote 6 However, several empirical tests performed on synthetic images with random stress fields showed that this is not the case with the proposed iDIC algorithm, providing that rigid body motion has been correctly estimated. Indeed, even for a residual stress value as large as 800 MPa, the iDIC code converges to the correct value starting from σ x = 0, σ y = 0, τ x y = 0 (see Fig. 4). Thus, no preliminary estimate is required for the stress values. On the contrary, a modest error in the rigid body displacements makes it difficult to obtain convergence to the correct values. The solution to this problem is a pre-processing step to measure rigid body motion: actually the simple estimation of the displacements of the four corners of the active area, performed using a matching-block algorithm (without taking into account deformations), suffices to provide an estimate accurate enough to achieve convergence. Note that both the complexity and computational loads added by this pre-processing step are completely negligible.

  • The proposed algorithm is potentially usable in an industrial environment (it needs only portable instrumentation that allows repositioning of the camera and/or drilling system). If this is the case, it is quite probable that the previously summarized requirements regarding specimen illumination will not be fulfilled. A partial solution can be obtained by including a global scale factor and a global offset of the intensities in the error functional [46]. Using this approach, the sum of the square differences error function becomes

    $$\begin{array}{@{}rcl@{}} \chi^{2}_{LSD} {} ={} \sum_{k}\sum_{l} \left\{\left[\alpha I(k,l){} +{} \beta\right] - J(k+u_{x},l+u_y)\right\}^2 \end{array} $$

    where α scales the intensities of the reference image and β adds a global offset. Using this approach, both images are modified: the intensities of reference image I are (globally) scaled and shifted respectively by α and β, whereas the test image J is moved and deformed by the displacement field. From a formal viewpoint, the solution system gains two rows and two columns (it becomes a 7 × 7 square matrix); indeed, assuming the rows (and columns) related to α and β to be respectively the first and second, h i becomes:

    $$ \mathbf{h}_{i} =\left\{\begin{array}{c} - I_{i} \\ -1 \\\vspace*{2pt} {\frac{\partial J_{i}}{\partial\xi}} \\\vspace*{2pt} {\frac{\partial J_{i}}{\partial\eta}} \\\vspace*{2pt} P_{u} {\frac{\partial J_{i}}{\partial\xi}} + P_{v} {\frac{\partial J_{i}}{\partial\eta}} \\\vspace*{2pt} Q_{u} {\frac{\partial J_{i}}{\partial\xi}} + Q_{v} {\frac{\partial J_{i}}{\partial\eta}} \\\vspace*{2pt} R_{u} {\frac{\partial J_{i}}{\partial\xi}} + R_{v} {\frac{\partial J_{i}}{\partial\eta}} \end{array} \right\} $$
    (12)

    whereas \(\mathbf {b} = -\sum _{i} J_{i} \mathbf {h}_{i}\).

  • The formulation can be further refined by taking into account the rigid body rotation ω around the center of the hole (i.e. by writing u = u 0 + ω × r). With this approach, the shape functions (equation 6) become:

    $$\begin{array}{@{}rcl@{}} u_{x} = u_{0} - \omega\eta + P_{u} \sigma_{x} + Q_{u} \sigma_{y}+ R_{u} \tau_{{xy}} \end{array} $$
    (13a)
    $$\begin{array}{@{}rcl@{}} u_{y} = v_{0} + \omega\xi + P_{v} \sigma_{x} + Q_{v} \sigma_{y}+ R_{v} \tau_{{xy}} \end{array} $$
    (13b)

    and the new term (related to the ω degree of freedom)

    $$\begin{array}{@{}rcl@{}} {\frac{\partial J_{i}}{\partial\xi}} \eta + {\frac{\partial J_{i}}{\partial\eta}}\xi \end{array} $$
    (14)

    has to be inserted in the h i vector given above (equation (12); note that the ξ and η coordinates appearing in equation (14) must be related to a local reference system with the origin located at the center of the hole). However, the estimated ω was very small in all tests that we performed and no significant variation of the results was observed, thus the inclusion of the rigid-body-rotation degree of freedom in the formulation is not strictly required.

  • It is well known that polynomial interpolation significantly affects the accuracy of DIC codes [40, 4749]. This is also the case with the proposed formulation, with a significant difference: all the related articles in literature flag the B-Spline cubic approximant as the best cubic polynomial. Actually, an empirical comparison performed employing some of the most commonly usedFootnote 7 shows that between the cubic polynomial the best accuracy is obtained by the Lagrangian interpolant; moreover, using a quintic polynomial provides no significant improvement.

  • Throughout this article reference has consistently been made to the theoretical coefficients related to the hole through case (equation (5)); however, this is in no way required by the proposed approach: it is well known that in the blind-hole case the displacement field can still be written using equations (4a)–(4c), provided we use a set of \(A \dots G\) coefficients related to the specific hole geometry: using Finite-Element-estimated calibration coefficients [50, 51], iDIC is able to measure residual stress in the blind hole configuration (and give the correct estimate for σ y in the previously discussed cases).

  • Although it has not been discussed, it is quite easy to formulate the iDIC algorithm (equations (6a)–(7)) in terms of P = (σ x + σ y ), Q = (σ x σ y ) and τ x y . However, empirical tests show no significant difference between the two approaches: results of the two formulations agree within the limit of the numerical tolerance used in the iterative loop.

Conclusions

In this work an integrated DIC approach for residual stress measurement is analyzed. The hole-drilling-related displacement field is well known, thus it is possible to replace the standard shape functions of the block with specific functions, obviously augmented by a rigid translation component and (optionally) illumination parameters and rigid body rotation to account for rigid body motion during drilling and potential drift of the illumination. Sampling of multiple locations to follow the data is no longer required and the full image constitutes a single patch whose deformation is controlled by five (eight) parameters: the three residual stress components, the two in-plane rigid translations and optionally the intensity compensation coefficients and rigid body rotation. Since the uncertainty of the method directly depends on the number of pixels involved in evaluation of the error function, this approach results as being quite effective and allows replacement of interferometric techniques with Digital Image Correlation. The advantages are significant: DIC does not require coherent illumination and is much more robust against vibrations, thus making possible the use of optical methods in industrial environments. Computation time is very short: a complete analysis of a 2048 × 2048 image requires only a few seconds, a large fraction of which is required to pre-compute the calibration coefficients.

A final note: it is worth noting that DIC sensitivity is always measured in pixels and is always the same (about 1/100 of a pixel) irrespective of the real pixel size. This is completely different from the case of interferometric techniques, where sensitivity is mainly controlled by the wavelength of the light source. From a practical viewpoint this means that it is possible to tune sensitivity by selecting the magnification of the telecentric lens and vice versa (i.e. it is possible to adjust the hole diameter to the optic); moreover, it is possible to perform measurements also at microscale, providing there is a suitable imaging system and a random speckle pattern.