Introduction

Mechanical stresses can change the magnetic hysteresis of ferromagnetic materials. The connection between mechanical and electromagnetic phenomena is known as the magneto-mechanical effect [1, 2]. It is important to note that the actual intrinsic material property of ferromagnetic materials, the anisotropic magnetization M [1] is temperature-dependent and hardly affected by mechanical loads. Specimens in high external magnetic excitation fields Hext reach a saturation magnetization Ms. The induction B and the field strength H are structural quantities of a specimen and depend not only on the microstructure and the properties of its constituent materials, but also significantly on the shape of the specimen [3].

Consequently, the mechanical stress does not alter the magnetic moment itself but causes a change of the preferential directions of M in a specimen. This is observed by comparing the magnetic hysteresis in the so-called easy and hard directions. The difference of the magnetic polarization (hysteresis loops) between two true elastic tensile stress states is small [1, 4,5,6]. In contrast, the difference between the magnetic hysteresis of specimens subjected to tensile and to compressive stress states [4,5,6] (different deviatoric stress states) is more apparent [7,8,9,10,11,12] since the magnetic anisotropy is enhanced [13].

The conventional non-destructive magnetic inspection techniques [14, 15] utilize homogenization and polarization vs. saturation magnetization for crack detection. In fact, cracks cause a local maximum of the so-called magnetic stray fields (SFs) [16,17,18,19]. SFs are demagnetization fields outside the specimen under investigation [3]. In contrast, the permeability differences due to mechanical stress and other microstructural characteristics (e.g. grain size, phases) are particularly noticeable in so-called weak (internal) magnetic fields within the coercivity (± HC) limits [1, 2, 6]. Field strengths higher than HC will enforce a homogenization, i.e. polarization towards saturation Ms, suppressing the local magnetization difference as a source of SFs.

If two specimens of different magnetically sensitive materials are joint, a localized SF will emerge at their interface [16, 20]. However, such SFs are denoted as “weak” compared to magnetic crack detection, since the difference between the (bulk average) magnetization of two unsaturated ferromagnetic materials is usually small [16,17,18,19].

Such “weak” fields can nowadays be measured utilizing small, point-like, magnetic field sensors such as AMRs (anisotropic magnetoresistors) [21,22,23]. In fact, while the magnetization of a whole specimen may appear weak on average, the single magnetic domains are saturated [13, 24].

Due to heating and rapid cooling rates during welding, non-uniform contraction and expansion occur, resulting in a distinct residual stress (RS) profile [25,26,27]. RS is a well-known issue affecting the mechanical performance and the structural integrity of welded components (the literature on the subject is enormous, see [28,29,30,31] as examples). Such RS profiles with large stress gradients make welds the perfect case studies for the present research: we aimed to correlate the RS with magnetic SF measurement in engineering materials and components. In fact, in our previous studies [32, 33], we showed that the magnetic SFs are causally linked to the microstructure in the fusion zone (FZ), the heat affected zone (HAZ), and the surrounding (parent) material. These zones could be distinguished by utilizing high-spatial-resolution giant magneto resistance (GMR) sensors. The SF leak out of the surface (indicating a local difference in magnetization) is represented by a vector pointing inwards, analogously to the typical SF signal of a crack in magnetic flux leakage testing [15,16,17,18,19]. Thus, the measurements of the magnetic SF by GMR sensors is called GMR-SF in the remainder of the text.

Besides the SF being causally related to microstructural changes in welds [33], the most pronounced SF signals were found far from the weld and HAZ, in areas where no obvious (i.e. visible in an optical microscope) microstructural changes occurred. Yet in such regions, a steep change of RS from compressive to tensile was found by Neutron Diffraction, ND, experiments. The shape of the RS and SF profiles across the weld seam and the position of their the maxima correlated well but did not perfectly match. In [32, 33] we explained these differences invoking the different regions probed by each of the two methods: the ND method usually probes the stresses in the bulk whereas the SF could mainly be influenced by near-surface stresses. To address this issue, synchrotron X-Ray Diffraction (SXRD) is proposed in this study. SXRD allows determining RS in the subsurface regions of a specimen and, thus, probes nearly the same regions as GMR-SF technique. In fact, this study demonstrates the correlation between well-established (diffraction-based) techniques, SXRD and ND, for RS analysis and observations by magnetic GMR-SF measurements.

Material and Methods

Material Processing and Characterization

The investigated test sample was a cold-drawn steel plate made of S235JRC + C, a commercial ferromagnetic lowcarbon structural steel (material no. 1.0120). The sample was a plate with sizes 250 mm × 100 mm × 4.8 mm (length × width × thickness); both top and bottom surfaces of the plate were ground after welding. After demagnetization, the plate was welded on its top in the middle (see Fig. 1) using tungsten inert gas (TIG) welding without filler. The absence of filler would prevent any change of the material composition across the weld. Therefore, only the RS and the microstructure (grain size and morphology) of the different zones of the weld would contribute to the magnetic stray fields because of their influences on the magnetic properties. The speed of the welding electrode was 200 mm/min and the applied current was 200 A.

Fig. 1
figure 1

a) A photograph of the plate, showing the position of SXRD (and ND) measurement lines (green) and b) the scheme of the gauge volumes used in SXRD measurement (projected to LT plane). Note: the shape of the gauge volume is simplified, for details see [35]. The dimensions are given in mm

For optical microscopy, a sister plate (a welded plate produced with the same parameters as the sample under investigation) was sliced transversal to the weld. The surface was then ground, polished, and etched using Nital.

Magnetic Field Measurements

To map the magnetic SFs at the surface of a component, appropriate magnetic field sensors are needed. Their sensitive elements must be small for high-resolution measurements. In addition, the sensitive elements must be placed close to the surface to increase the signal-to-noise ratio (SNR). The deployed GMR sensor “12A” (designed by BAM, produced by Sensitec GmbH, Wetzlar, Germany) was a gradiometer measuring a difference of the normal field component ΔHN of the magnetic flux leaking out of the surface. One element of the gradiometer was placed at the edge of a chip. The second element was 250 µm above the first element. The nominal size of each sensing element was 25 ✕ 35 µm2 [23]. The sensitivity of the sensors is 3 mV/V (kA/m). GMR sensors were operated using a supply voltage of 5 V provided by a low-noise DC power source.

The distance between sensor and surface under test, the so-called lift-off, should be as small as possible; therefore, we positioned the sensor around 100 µm above the specimen. Reduced lift-off results in an enhanced SNR since stray fields are localized at the surface. To further enhance the SNR, we scanned the specimens with six different sensors of the GMR array, pre-amplified signal of the collected data, and averaged the GMR-SF profiles over all 6 collected data sets. The measurement points had a pitch of 16 µm in the direction transversal to the weld and 35 µm in the direction along the weld. The test specimen was moved beneath the fixed sensor with a velocity of 40 mm/s.

Uncertainties in GMR-SF scans can be split to positioning and sensor response errors. The most important positioning error is the variation in the lift-off, since the GMR-SF varies significantly with the distance from the surface. However, for a single scan this distance remains constant; this means that this type of error can be neglected for the comparison of features within a single image/scan. To make sure no significant tilt of the plate was present, the lift-off was (visually) confirmed prior to the scanning to be identical in all four corners of the scanning area. Planar or XY positioning error can be also neglected, since the position repeatability of the linear actuators used (< 1 µm) significantly exceeds the maximum lateral resolution of the GMR sensor (~ 50 µm). Errors originating from the sensor and data acquisition equipment may also arise, but the above-mentioned average of six different GMR pairs strongly reduced such errors. Also, scans were performed at least twice on each sample to make sure no spontaneous external magnetic field was present during the measurements. Further experimental details and further information can be found in [32, 33].

Residual Stress Determination

For the RS characterization in the subsurface region of the welded plate, the SXRD experiment was performed at the beamline EDDI (synchrotron BESSY II, HZB, Germany) [34]. This beamline was operated in energy dispersive mode and provided a white beam with an energy range of about 10 keV – 150 keV. A liquid-nitrogen cooled Ge solid-state detector from Canberra (model GL0110) was used. The measurements using the sin2ψ method were conducted in reflection-mode with the specimens mounted on a Eulerian cradle. This approach assumes biaxial stress state at the surface (i.e., the RS component normal to the surface is close to zero [35]).

The full weld sample with the size of 250 mm × 100 mm × 4.8 mm (as shown in Fig. 1) was mounted on the beamline. Two lines at the top surface of the plate were scanned (middle line and end line, see Fig. 1(a)), also the middle line at the bottom surface of the plate was measured. The measurements points had a distance of 1 mm between each other. At each point two directions were measured: transversal (T) and longitudinal (L). Figure 1(b) shows the projection of the gauge volume (GV) onto the LT plane for each of the plate orientations. The prismatic GV was defined by the intersection of the incoming beam (the vertical and horizontal opening were 0.5 mm) and the diffracted beam (the secondary slits vertical opening was 30 μm). The effective GV had a largest diagonal of 3.7 mm. Therefore, for the longitudinal stress component the GVs of neighboring measurement points were overlapping, while for transversal they were separated (see schematic in Fig. 1(b)). The Fe-211 ferrite peak was chosen for the SXRD analysis. This reflection was the same used in ND experiments for analysis of bulk RS; the penetration depth of X-rays was around 15 µm (while for neutrons, points were taken up to the mid-thickness of the welded plate).

Assuming vanishing shear stresses, the fundamental equations of X-ray stress analysis for the T strain (azimuth φ = 0°, strain ε0,ψ is the) and L strain component (φ = 90° strain ε90,ψ) read as [36]

$$\varepsilon_{0,\psi} =^{{^1}/{_2}}s_2 \cdot \sigma_T \cdot sin^2\psi + s_1 \cdot (\sigma_T + \sigma_L)$$
(1)
$$\varepsilon_{90,\psi} = ^{{^1}/{_2}}s_2 \cdot \sigma_L \cdot sin^2\psi + s_1 \cdot (\sigma_L + \sigma_T)$$
(2)

where σT and σL are the transversal and longitudinal RS, and s1 and ½s2 are the so-called diffraction elastic constants (DEC) [37]. DEC were calculated by Eshelby-Kröner model [38] for Fe-211: s1 = -1.27 × 10–6 MPa−1 and ½s2 = 5.8 × 10–6 MPa−6. The error bars for RS were calculated using first the uncertainty in the determination of the diffraction peak position (peaks are fitted with a Pseudo-Voigt function), and then propagated to the uncertainty in the least-square fitting of the vs sin2 ψ plots from equations (1) and (2). (see example in [39]).

The equivalent von Mises stresses were calculated according to:

$$\sigma_{vM} = \sqrt{\sigma_T^2 - \sigma_T\ \sigma_L + \sigma_L^2}$$
(3)

Finally, the Pearson correlation coefficient (r) was calculated to estimate the correlation between RS (σ) and GMRSF signal (∆H) as

$$r=\frac{\sum\left(\sigma_t-\overline\sigma\right)\left(\triangle H_t-\overline{\triangle H}\right)}{\sqrt{\sum{\left(\sigma_t-\overline\sigma\right)}^{2}\cdot{\sum{\left(\triangle H_t-\overline{\triangle H}\right)}}^{2}}}$$
(4)

where t is the position along the measurement lines (i.e. in the T direction).

In this work, the SXRD results are compared with ND results, published previously. The experimental details for the ND experiment can be found in [32, 33].

Results

The weld (or else fusion zone, FZ) and heat affected zone (HAZ) can be identified in brighter contrast within the middle of the optical micrograph of the sample cross-section (Fig. 2); the parent material at both edges has a darker contrast. The cross-section is taken perpendicular to the weld seam, at the middle line (see Fig. 1). The schematic of the GV probed by SXRD and ND as well as the schematic of GMR sensor placed above the sample surface are shown in Fig. 2. ND probes the bulk of the plate (to a depth of around 2.8 mm from the surface), and thus averages the stresses in the whole thickness of the FZ and part of HAZ (the FZ is about 1.8 mm thick). In contrast, SXRD probes a subsurface region of around 15 µm depth and differentiates regions belonging to the HAZ or to the FZ. The penetration depth of GMR-SF measurements is difficult to quantify. However, since it is a subsurface technique, we assume the penetration to be comparable with that of SXRD measurements.

Fig. 2
figure 2

Optical micrograph of the cross-section of the sister sample with the schematic of used GV in SXRD and ND measurement (for transversal stress component), as well as with the indication of the geometry of the GMR-SF experiments

Figure 3(a), (b) shows the results of the GMR-SF measurements on the top surface of the plate. In both the 2D map and in the line scan the different regions across the weld (HAZ and FZ) can be distinguished. The microstructure of the different regions is summarized in Fig. 3(c). The parent material shows a ferritic-pearlitic microstructure with an average grain size of around 18 µm. It also shows larger grains compared to the HAZ, due to recrystallization (Fig. 3(c)). Also, in the case of the HAZ, a bimodal distribution of coarse and fine recrystallized grains can be observed. The FZ presents a bainitic Widmanstätten microstructure with acicular ferrite (Fig. 3(c), region 4).

Fig. 3
figure 3

The Low Carbon Steel S235JRC + C welded plate: a) 2D GMR-SF (ΔHN) map; b) GMR-SF profile along the dashed line in (a); (c) micrographs of a cross-sections of a sister sample: ① & ② parent material; ③ heat affected zone (HAZ), ④ fusion zone (FZ); for further details see [33]

Figure 4 summarizes the RS profiles at the subsurface (SXRD) and in the bulk (ND), compared with the magnetic GMR-SF measurements at the top surface of the plate (where the weld seam is located). The pink line represents the weld region (FZ) and the green line represents the HAZ. The maximum stress values are larger at the subsurface than in the bulk. This behavior can also be related to the microstructural gradient along the thickness (as shown in Figs. 23). It has been reported that stresses along a TIG-weld thickness, start with maximum tensile stresses at the surface and are balanced by compressive stress in the middle [40]. Although the maximum stress difference between ND and SXRD for σL reaches around 100 MPa, the location of the maxima is almost the same for both probes (and located at each side of the weld pool, around 7 mm from the center). The stress peaks are sharper for the subsurface than for the bulk RS profiles (Fig. 4(a), (c)). This is related to the GV size of each technique: neutrons average the signal over a much larger region than X-rays; thus, the ND RS profile is smoother. Interestingly, for the middle line the width at the half-height of the σL peaks as determined by SXRD is similar to the width of the GMR-SF peaks (around 3.5 mm). For the end line, the amplitude of the maximum GMR-SF signal decreases (compare the H scales in Fig. 4(a) and (c)), and the distribution becomes narrower. This is also observable for the stress maxima (especially σL) measured by SXRD. One can notice that RS profiles are shifted with respect to the weld for the end line: the maxima of stress are not symmetric with respect to the center of the weld (the difference is around 1 mm, Fig. 4(a), (c)). This asymmetry is even opposite for ND and SXRD data sets. This maybe caused by a slight misalignment of the plate during set-up of the diffraction measurements. Obviously, the irregular geometry of the weld, i.e. a slight change in geometry and dimension of the weld seam at the end of welding process (see Fig. 1) may also play a role.

Fig. 4
figure 4

Comparison of GMR-SF |ΔHN| with surface (SXRD) and bulk (ND) RS at the top surface for the middle line a) σL, b) σT; and for the end line c) σL, d) σT

The σT component (Fig. 4(b), (d)) presents more variations in the HAZ and FZ for the subsurface profile than for the bulk one. The bulk stresses (ND) stay almost constant along the scanned lines. As mentioned above, SXRD mapping has a higher spatial resolution along the transversal direction compared to ND (see Figs. 12). Therefore, the maxima of RS in the middle of the weld can be better distinguished by means of SXRD for the transversal component than in the ND data (Fig. 4(b)). Additionally, for the end line the two maxima (up to 150 MPa) coincide with the positions of the |ΔHN| maxima. In the FZ some oscillations of |ΔHN| are visible. They are most probably caused by the microstructural changes from the FZ to the HAZ and the parent material (see Fig. 3). The comparison between the bulk stress profiles and the subsurface ones confirms that the changes in the microstructure strongly affect the stress gradients. Therefore, regions with less clear microstructural changes display smaller stress oscillations. This further confirms that GMR-SF and SXRD signals do probe the same features of the microstructure and are affected in the same manner by such features and by the stress state. This also implies that, while difficult to estimate, the penetration depth of the GMR-SF signal well corresponds to that of synchrotron X-rays.

The magnetic GMR-SF measurements along the middle line at the bottom of the plate (Fig. 5) show less pronounced maxima compared to those at the top surface. In fact, they probe only the HAZ at the bottom of the plate. The large peak of the magnetic GMR-SF signal profile still corresponds to the region of steep gradient of the longitudinal RS component (see Fig. 5(a) on the left). As it is visible at the cross section of the sample (see Fig. 2), the bottom of the plate presents no FZ and therefore microstructure, magnetic GMR-SF signal and RS must differ from those at the top surface.

Fig. 5
figure 5

The comparison of GMR-SF |ΔHN| with surface (SXRD) and bulk (ND) RS at the bottom surface of the plate, for the middle line: a) σL, b) σT

Discussion

In this chapter, only the data regarding the top surface of the plate are discussed. The equivalent von Mises stresses (σvM) were calculated according to equation (3) for each measured point. They are displayed in Fig. 6. The maxima of the GMR-SF and RS profiles are consistently found in the so-called “strain affected zone” (SAZ) [41, 42], which extends beyond the HAZ, up around to 10 mm on either side of the weld seam. The SAZ is larger than the HAZ optically visible in Fig. 2, as already found elsewhere [30]. In our previous study [33], we showed that no variation of microstructure (grain morphology and size) takes place in the region with maximum |ΔHN|. As mentioned above, the asymmetry of the SXRD stress profile with respect to weld position at the end line is pronounced, so that for further analysis of the correlation between SXRD and GMR-SF data, the profile was shifted by + 1 mm.

Fig. 6
figure 6

The comparison of |ΔHN| and von Mises stresses σVM for: a) the middle line, b) the end line (measurements at the top surface of the plate)

In order to extend the analysis of the correlation between magnetic and diffraction signals beyond the visual comparison available in Figs. 46, correlation plots between the magnetic GMR-SF signal and the values of the subsurface σL component were built. They are presented in Fig. 7(a), (b), where we separate the analysis of the values in the HAZ and outside it (labelled w/o HAZ). In the HAZ (including the FZ, i.e. at the positions -6 mm ≥ t ≤ 6 mm along the transverse direction), there seems to be no correlation between the subsurface RS profile (Fig. 7(c), (d)), and the GMR-SF. This implies that the GMR-SF signal variation is heavily influenced by the microstructure in this region [33] (indeed, structural noise appears in the GMR-SF profile - see the blue shaded region in Fig. 7(c), (d)). In contrast, in the SAZ [29, 41,42,43] –outside the HAZ—an area with high RS values is visible and the correlation with the GMR-SF signal is stronger (Fig. 7(a), (b)). Some points with very high RS (above 600 MPa) display different values of GMR-SF (circled regions in Fig. 7(a), (b)). Such points belong to the transition between the HAZ and the parent material, where the RS profiles have maxima, but the GMR-SF profile is still changing. This may imply that for very high stress values the effect of the microstructure is still large on the GMR-SF signal, and the correlation between GMR-SF and SXRD breaks down. The RS presents better correlation inside the HAZ/FZ at the end line compared with the middle line. As an example, it is to be noted that the GMR-SF profile in Fig. 7(d) appears to possess the same distinct dip at around 3 mm from the weld center as the RS determined by SXRD. Such dip is not visible in the analogous ND RS profile. Interestingly, for the end line some of the blue points (belonging to the HAZ) do fall on the linear correlation between SXRD and GMR-SF signals.

Fig. 7
figure 7

Top row: Longitudinal surface RS from SXRD measurements as a function of GMR-SF |ΔHN| for: a) the middle line and b) the end line. Bottom row: |ΔHN| and surface RS as a function of position along the weld for: c) the middle line, d) the end line. Note: the blue and green regions at c), d) correspond to the blue and green points in a), b). Circled regions correspond to the points belonging to the transition between the HAZ and the parent material, where high stress values are observed

These observations are also confirmed by the correlation coefficients presented in Fig. 8 (calculated according to equation (4)). The correlation between the two stress components and the von Mises stress is increased when separately considering the regions outside the HAZ for both ND and SXRD. For the end line, the correlation coefficient between SXRD and GMR-SF is much higher compared with that between ND and GMR-SF (Fig. 8(b)). In the case of the middle line, the correlation coefficients of the longitudinal and the von Misses stress are similar. However, for the transversal component a drastic increase of the coefficient is observed for SXRD (in the regions excluding the HAZ). This effect is related to the fact that both GMR-SF and SXRD probe subsurface regions, and SXRD possesses higher spatial resolution than ND for the transversal component. The higher spatial resolution of SXRD allows capturing some details of the RS profiles that are averaged out in ND data. The different resolution and the fact that ND probes inner regions of the plate, both cause the correlation between ND and GMR-SF to be worse than that between SXRD and GMR-SF (typical values of the coefficient around 0.4–0.6 for ND vs 0.8 for SXRD).

Fig. 8
figure 8

Correlation coefficient between GMR-SF signal and surface RS determined by SXRD and bulk RS determined by ND for: a) the middle line, b) the end line

We need to consider that the plate was subjected to a significant magnetic field due to the welding process (magnetic field linked to the welding current), as well as to the magnetic field of the Earth. In the case of passive magnetic stray field measurements, the data should be taken as an integral of the "magnetic history" – i.e. the residual magnetic field – in the presence of a magnetic anisotropy caused by microstructure and (residual) stress variations.

On a fundamental level, one cannot expect a bijective correlation between GMR-SF and RS profiles. The comparison of a second rank stress tensor to a near-surface magnetic vector field will entail a loss of information. In addition, the passive magnetic field measurements also depend on the shape of the test object itself. It appears therefore more important to evaluate the effect of spatial stress tensor transitions on magnetic GMR-SF as is to be expected from magneto-mechanical hysteresis measurements. The good correlation between the locations of the RS maxima and the magnetic stray field concentrations could be practically used to evaluate the integrity of welded components. Further research is needed to establish the cause-effect relationship between the RS gradients and the magnetic stray fields in systems with complex multi-axial stress distributions and with varying microstructural and magnetic properties, such as dissimilar welds or additively manufactured components.

Conclusions

The evaluation of the influence of complex residual stress states on magnetic stray field (SF) distributions requires detailed benchmark and correlation of the material microstructure and stress state characterization. In order to do so, the spatial resolution of residual stress analysis by diffraction methods, microstructural investigations, and GMR-SF measurements need to match within a reasonable tolerance.

Our investigations prove that magnetic stray fields of a S235JRC + C weld are closely related to near-surface microstructural changes and residual stress. Thanks to the high spatial resolution residual stress analysis by synchrotron X-ray diffraction (SXRD) and neutron diffraction (ND) we could demonstrate that localized SF sources without any obvious microstructural variations are associated with steep stress gradients. The higher spatial resolution in SXRD stress characterization provides a good correlation between both GMR-SF and residual stress values and profiles (especially the location of the maxima). Such correlation is better that that between ND and GMR-SF measurements, because SXRD probes similar (shallow) depth as GMR-SF, while ND probes the bulk of a specimen. The excellent correlation between GMR-SF and SXRD is especially visible considering regions outside the heat affected zone (HAZ), where the influence of microstructural feature inside weld/HAZ is less pronounced and steep residual stress profiles are present.