1 Introduction

Resistance spot welding (RSW) is the most common process for joining thin metal in automotive body structures [1, 2], with a typical family car containing up to 5000 welds [3]. The quality and safety performance of the vehicle is directly determined by RSW quality. Comparing with other NDT methods, ultrasonic testing technology is much concerned by scholars all over the world for low cost, more convenience, no pollution, and high sensitivity [4], which has been applied to detect the RSW quality. Chen et al. [5] used wavelet packet transform (WPT) analyzing the pulse-echo signals of spot welds to establish the relationship between ultrasonic features and nugget diameter or relevant maximum shear load. Martín et al. [6] used artificial neural networks and classification and regression tree (CART) method [7] to carry out intelligent detection and classify RSW in several quality levels. Moghanizadeh [8] evaluated physical properties such as microhardness of spot welding by attenuation coefficient of ultrasonic testing. Song et al. [9] established the mathematical model of the welds detection based on ultrasonic A-scan and obtained the calculation formula of nugget diameter and attenuation coefficient. Thornton et al. [10] used an ultrasonic C-scan technique that was evaluated for NDT of spot welds of aluminum and obtained credible nondestructive assessments of aluminum weld size and shape. Sun et al. [11] analyzed the mechanical properties of RSW by ultrasonic C-scan imaging.

The above RSW detection methods are based on conventional piezoelectric ultrasonic and their disadvantages are drawn as follows: the entire detection process needs to apply the coupling media, likes shown in Fig. 1, which brings extra procedures and devices, and the body material may be corroded by the residual coupling media. In addition, it requires the higher surface quality of the welded joints; some twisted and rough surfaces of welds affect the ultrasonic propagation, even resulting in nondetectable.

Fig. 1
figure 1

Traditional ultrasonic detection of RSW

To solve these problems, the EUTW detection of RSW is proposed, which has advantages of noncontact, no coupling media, and low requirements for the workpiece surface. According to the different combination forms of coil and magnet, EUTW can generate different waveforms (such as body wave, surface wave, lamb wave) for different detection objects. The acoustic source profile of spiral coil EUTW is similar to piezoelectric ultrasonic; there are abundant theoretical reports on this kind of EUTW [12,13,14], and spiral coil EUTW is widely used as an electromagnetic ultrasonic shear wave probe in engineering. The electromagnetic ultrasonic transverse wave generated by the probe propagates along the depth direction of the specimen, and the beam concentrates and directs strongly. Therefore, the simulation and experiment of EUTW are studied to detect the quality of RSW in this paper.

2 Basic theory of EUTW multiphysics simulation

There are three kinds of energy exchange mechanisms of EUTW: the Lorentz force mechanism, the magnetostriction force mechanism, and the magnetization force mechanism. The magnetostriction mechanism is the main way for the excitation of ultrasonic waves in a horizontal magnetic field, so the Lorentz force is dominant in a vertical magnetic field. The magnetostriction mechanism is no more than 10%, and the magnetizing force is too small to be neglected [15,16,17,18,19,20,21,22,23]. In this article, the direction of the static bias magnetic field is perpendicular to the surface of the metal sample, so the Lorentz force mechanism plays a major role. The generating principle of EUTW is shown in Fig. 2.

Fig. 2
figure 2

The generating process of the Lorentz force

The Lorentz force is the acoustic source of the elastic medium; the linear equation of the acoustic field in an isotropic solid medium is expressed as [24].

$$ \rho \frac{\partial^2\mu }{\partial {t}^2}=\left({\lambda}_m+2{\mu}_m\right)\nabla \left(\nabla \cdotp \mu \right)-{\mu}_m\nabla \times \nabla \times \mu +{f}_L $$
(1)

where ρ is for medium density, μ is for particle displacement, and λm, μm are the lame constant; fL is the Lorentz force density.

The receiving process of ultrasonic waves is the inverse process of the generation: when the ultrasonic waves propagate to the receiving probe of EMAT, the motion of charged particles in the steel sheet forms a dynamic current under the external static magnetic field [25]. In an EMAT detector, the current density is

$$ J=\sigma \left(\nu \times B\right) $$
(2)

where J is the current density in the conductor, ν is the velocity of the particles which interacts with the magnetic field Β, and σ is the conductivity of the material. The dynamic current can produce an alternating magnetic field around the conductor; meanwhile, the EMAT receiving coil in the dynamic magnetic field will generate an induced electromotive force.

3 Establishment of simulation model

The transducer model is simplified in previous studies where assume that the static magnetic field is well-distributed [26,27,28] and ignores the influence of alternating magnetic field [29,30,31], or merely modeling the intermediate energy transfer processes, such as eddy current field and magnetic field [32]. In this paper, COMSOL Multiphysics fields coupling calculation software is used for the numerical simulation of EUTW detection of RSW. The static magnetic field, the alternating magnetic field, the solid mechanics field, and the acoustic field are coupled in the EMAT model. Figure 3 depicts the schematic diagram of the RSW detection model.

Fig. 3
figure 3

The schematic diagram of the RSW detection model

Due to the excitation and propagation of EUTW involves multiphysical field, the associated coupling variables need to be set in COMSOL software. The body load is defined as multiplying the magnetic flux density by the induced eddy density. The product of the magnetic flux density, the electrical conductivity of steel, and particle’s velocity is taken as the source current density of the pulse vortex field to obtain the signal characteristics when calculating the ultrasonic signal received by the coil.

3.1 Building geometric model

According to the structural features of RSW, a two-dimensional model is created, as shown in Fig. 4. In this model, the thickness of the upper and the lower plates is 1.6 mm. A static bias magnetic field, provided by a cylindrical magnet with a diameter of 8 mm, is directed into the steel sheet. The material of permanent magnet is NdFeB, and the coercive force is 915 kA/m. The distance between the bottom of the coil and the upper surface of the steel sheet is 0.2 mm, and the spiral coil is made from 0.4-mm wide copper wire. The number of coil turns is 4 and the distance between two turns is 0.6 mm. Table 1 lists the parameters of the steel sheet.

Fig. 4
figure 4

The geometric model of electromagnetic ultrasonic testing RSW

Table 1 Parameters of the steel sheet

3.2 Simulation analysis of static bias magnetic field

The simulation parameters and boundary conditions are set up to solve the static bias magnetic field; static magnetic induction intensity cloud map of the permanent magnet is shown in Fig. 5. The magnetic induction intensity generated by the permanent magnet edge is the largest; in contrast, the magnetic induction intensity in the middle region is weaker.

Fig. 5
figure 5

Static magnetic induction intensity cloud map of a permanent magnet

Figure 6 shows the static magnetic induction intensity of the X direction and Y direction generated by the permanent magnet respectively. The magnetic induction intensity in the X direction is symmetrically distributed in the center; the value at the center position is zero; the value increases along the two sides and reaches the maximum at the edge, then gradually decreases. The magnetic induction in the Y direction is approximately equal in the central area, and the position of the coil can be considered as a uniform magnetic field.

Fig. 6
figure 6

X, Y component of static magnetic induction intensity

3.3 Mesh generation

When a high-frequency alternating current is driven through the coil, the induced eddy currents are generated within the skin depth of the steel sheet, the electromagnetic ultrasonic energy exchange process is mainly concentrated in this area. To enhance the precision of numerical calculation, the meshes of the energy exchange area need to be refined; the skin depth of steel is expressed as

$$ \delta =\raisebox{1ex}{$1$}\!\left/ \!\raisebox{-1ex}{$\sqrt{\pi f\sigma {\mu}_0{\mu}_r}$}\right. $$
(3)

where f is excitation current frequency, f = 5 MHz, σ is the conductivity of steel, σ = 4.032 × e6 S/m, μ0 is vacuum permeability, μ0 = 4π × 10−7 H/m, μr is relative permeability of steel, μr = 1.

According to the Eq. (3), the skin depth of steel is calculated to be 112.5 um, take 5 times of skin depth as the mesh refinement layer of the steel sheet. In dealing with the simulation of the ultrasonic wave, the largest mesh size is usually restricted between 1/10 and 1/5 of the wavelength; this principle cannot only get enough high precision but also avoid the problems of slow solving speed caused by too close meshing or the computer running out of memory [33]. In this model, the meshing size of the refinement layer is less than 1/12 wavelength; other parts of the steel sheet adopt quadrilateral meshes, and their sizes are less than 1/8 of a wavelength; the air domain is divided into triangular meshes by free division. After construction, the total element of the model is 34.263; the result of mesh generations is shown in Fig. 7.

Fig. 7
figure 7

The result of mesh generations

3.4 Selection of excitation signal

In this simulation model, the transient drive pulse is selected as simulating the ultrasonic wave; the excitation signal is modulated through the corresponding Hanning window function, and it is expressed as:

$$ (t)=\left\{\begin{array}{c} Isin\left(\omega t\right)\times \left(1-\mathit{\cos}\left(\frac{\omega t}{n}\right)\right)\kern2em 0\le t\le \left(2 n\pi \right)/\omega \\ {}0\kern5.75em t>\left(2 n\pi \right)/\omega \end{array}\right. $$
(4)

where n is the number of pulse signal cycle, ω = 2πf, f is the frequency of the excitation current and I is the magnitude of the excitation current, in this study: f = 5 MHz, n = 5, I = 50 A. Figure 8 displays the ultrasonic waveform of the excitation signal.

Fig. 8
figure 8

The waveform of the excitation signal

In this model, the nugget diameter of the good weld is 5 mm, and the indentation depth is 0.1 mm, and the diameter of indentation is set to the same as the nugget. The nugget diameter of an undersized weld is 3 mm; EUTW simulation signals of the two models are shown in Fig. 9.

Fig. 9
figure 9

EUTW simulation signals of spot welds. a Good weld. b Undersize weld

A model of the undersize weld is simulated and obtain the distribution of the particle displacement in the X direction is obtained as shown in Fig. 10. It is found that a part of the initial waves reflects on the bottom of the upper plate; the others propagate through the weld into the lower plate and reflect on the bottom. It is obvious in Fig. 10c; the small echoes appear between successive back wall echoes.

Fig. 10
figure 10

Undersize the weld distribution diagram of the particle displacement in the X-direction. a 0.4 μs. b 0.8 μs. c 1.2 μs. d 1.8 μs

4 Experimental verification

To validate the correctness of the simulation signals, the EUTW testing experiments are carried out. The 1.6-mm thick dual-phase steel DP590 is used in the experiment, and material properties are the same as that of the simulation model. As is shown in Fig. 11, the electromagnetic ultrasonic testing equipment is a high-power ultrasonic detector PREMAT-HS200. The electromagnetic ultrasonic probe has a diameter of 10 mm, and its internal coil is 5 mm in diameter. It can be seen in Table 2 that there are electromagnetic ultrasonic testing parameters.

Fig. 11
figure 11

The electromagnetic ultrasonic testing equipment

Table 2 Electromagnetic ultrasonic testing parameters

By adjusting the welding parameters and welding conditions, the different types of welded specimens are prepared and, through the metallographic experiment, Fig. 12 show the macrographs of different types of welds.

Fig. 12
figure 12

Macrographs of good weld and undersize weld

As is shown in Fig. 13, the detection waveform of both experiment and simulation of a good weld and undersize weld. Compared with the simulation signals, we can find that the time-domain waveforms and the features of both experiments and simulations are very consistent. The only difference is the width of the wavepacket, mainly because the excitation current signals are generated by the transient drive pulse in simulation; meanwhile, the oscillation of the current will enlarge the width of the wavepacket in actual excitation process. In a word, the correctness of the FEM modeling of EMAT detection of RSW is validated.

Fig. 13
figure 13

The detection signals of both experiment and simulation. a Good weld. b Undersize weld

5 Evaluation of nugget size using EUTW

The weld nugget size is the controlling factor of ultimate tensile shear strength and the resulting spot weld failure modes, it is usually used as the criterion to judge the qualification of RSW in the industry [34]. The larger the nugget size, the higher the strength of the RSW structure, so it is significant to estimate the nugget size by EUTW. As shown in Fig. 14, the size of the nugget area is mainly determined by nugget diameter d and nugget thickness S, and the nugget thickness S equals plate thickness L minus indentation depth h (S = L − 2h). Therefore, the detection of nugget diameter d and indentation depth h is the key to evaluate the quality of RSW. In this paper, the evaluation method of nugget diameter d and indentation depth h are studied respectively by using the EUTW simulation and experimental signals, which provides theoretical value for the size evaluation of the nugget area.

Fig. 14
figure 14

The size of the weld nugget area

5.1 Evaluation of nugget diameter using EUTW

The size of the nugget diameter in RSW mainly affects the reflected echo amplitude of the ultrasonic wave on the bottom of the upper plate. As shown in Fig. 15, the reflected echo amplitude of the air layer on the bottom of the upper plate is |P1|, the echo amplitude reflected by ultrasound through the nugget at the bottom of the lower plate is |P2|. So |P1| decreases with the increase of nugget diameter and while |P2| is the opposite. To characterize the nugget diameter, the formula for calculating the amplitude coefficient K is defined as follows:

$$ K=\frac{\left|{P}_2\right|}{\left|{P}_1\right|} $$
(5)
Fig. 15
figure 15

EUTW simulation signal of RSW with 4-mm nugget diameter

By establishing EUTW simulation models of spot welds with various nugget sizes, the transverse wave signals are obtained. To study the relationship between the amplitude coefficient K and the preset nugget diameter di, the peak amplitude of the signal is extracted, and the amplitude coefficient K is calculated, as shown in Table 3. When the nugget diameter is very small (< 2 mm), the effect of diffraction on the calculation results of nugget diameter is relatively large, so the nugget can be regarded as a diffraction hole. Most of the energy of sound waves passing through the nugget is diffracted, and only a small part of the energy is received by the probe. As a result, the nugget diameter range of the simulation model is set to 2~5 mm.

Table 3 Amplitude coefficient of simulation signals with different nugget diameters

Figure 16 illustrates that the nugget diameter di is positively correlated with the amplitude coefficient K. The smaller the nugget diameter is, the smaller the amplitude coefficient K is. When the nugget diameter decreases from 5 to 4 mm, the amplitude coefficient K changes dramatically from 11.64 to 1.83, while when the nugget diameter di is less than 4 mm, the amplitude coefficient K changes steady. Therefore, the eligibility of the nugget diameter can be judged by the magnitude coefficient. When the magnitude coefficient is less than 2, the unqualified nugget diameter can be judged.

Fig. 16
figure 16

Curve of amplitude coefficient K with the nugget diameter di

The EUTW experimental signals of unqualified RSW and qualified RSW are shown in Fig. 17. The amplitude coefficients K of two signals are calculated; the results are displayed in Table 4. The nugget diameter of unqualified RSW is too small, so the amplitude coefficients K is less than 2; on the contrary, the amplitude coefficient of qualified RSW is bigger. This law is the same as the simulation result, so the above simulation law can be verified.

Fig. 17
figure 17

The experimental signals of EUTW. a Unqualified RSW. b Qualified RSW

Table 4 Amplitude coefficient of experimental signals with different RSW

5.2 Calculation of indentation depth using EUTW

In the process of RSW, the indentation depth will increase with the increase of the welding current. When the current increases to a certain value, the depth of indentation will exceed the normal value due to the accumulation of heat, resulting in unqualified RSW. The deep indentation causes a larger distance between the electromagnetic ultrasonic probe and the RSW surface, thus reducing the energy exchange efficiency of EMAT. As shown in Fig. 18b, the transverse waves will produce diffraction and scattering waves at the edge of indentation, which leads to the amplitude of the echo signal attenuates. Figure 19 shows the signal amplitude PA of 0.3-mm indentation is smaller than the signal amplitude PB of 0.1-mm indentation.

Fig. 18
figure 18

Deep indentation weld distribution diagram of the particle displacement in the X direction. a 0.4 μs. b 0.6 μs. c 1.0 μs. d 1.4 μs

Fig. 19
figure 19

Simulation signals of RSW with different indentation depth

The models of different indentation depth are studied, and the nugget diameter is 5 mm. As shown in Fig. 19, with the depth of indentation increasing, the time of all the back-wall echoes are advanced. According to the relationship between the time of echo sequence and indentation depth, the formula for calculating indentation depth can be derived, so indentation depth h is defined as:

$$ h=\frac{L-\left[\left({t}_2-{t}_1\right)+\left({t}_3-{t}_2\right)\right]V/4}{2} $$
(6)

where L is the thickness of two plates, L = 3.2 mm, V is the velocity of the transverse wave in material, V = 2950 m/s, t1, t2, t3 are three peak times, respectively.

Table 5 shows the calculation results of indentation depth by EUTW simulation signals. Obviously, the calculation values are close to the preset values, and the error is less than 0.05 mm. Therefore, the correctness of the Eq. (6) can be verified.

Table 5 Simulation results of the different indentation depth

Two samples of RSW with different indentation depth are detected by EUTW; the experimental signals are shown in Fig. 20. The metallographic experiment is used to measure the actual indentation depth of two samples. According to the Eq. (6), the indentation depths are calculated by EUTW experimental signals. It can be seen in Table 6 that the calculation values are close with the actual indentation depth values, and the error is also less than 0.05 mm. It illustrates that EUTW signals of spot welds can effectively calculate indentation depth, which has important value for the evaluation of RSW quality.

Fig. 20
figure 20

Experimental signals of RSW with different indentation depth

Table 6 Experimental results of the different indentation depth

6 Conclusions

In this paper, we propose a new-coupled electromagnetic-acoustic FEM modeling of the RSW detection in software COMSOL, and the correctness of the simulation method is verified by experiments. In order to evaluate the nugget diameter and indentation depth of RSW, simulation models of different nugget sizes are established, and the changing laws of simulation signals are analyzed. Simulation and analysis show the characteristics of the static bias magnetic field and the generation mechanism and propagation laws of EUTW. Through the EUTW experiments, the different spot welds experimental signals are obtained, and the simulation waveforms are similar to experimental waveforms, which verified the correctness of the modeling method. The characteristics of EUTW simulation signals with various nugget sizes are analyzed to develop the evaluation method of nugget diameter and the calculation method of indentation depth, the calculation error less than 0.05 mm. The effectiveness and calculation accuracy of nugget size evaluation method is verified by simulation and experiment signals respectively. EUTW as a noncontact NDT method has a promising application future in detection of RSW quality.