1 Introduction

Electro-discharge machining has been used for decades in machining hard- and super-alloys due to their high hardness and limited machinability using conventional methods. Several works were conducted to study the process effectiveness on machining steels [1,2,3,4], titanium alloys [5,6,7,8,9], nickel alloys [10,11,12,13] and special aluminium alloys [14,15,16]. Over the last few decades, several simulations were developed in an attempt to understand the EDM process due to the complex physics that occur in a very short time [9, 17,18,19]. In this article, we will highlight the limitations of the existing models and propose a first-of-its-kind simulation to observe the behaviour of the machined material at practical and reasonable time and size scales.

1.1 Critical literature review

Yue and Yang [20] and Yang, Guo, Chen and Kunieda [21] developed a two-temperature molecular dynamics simulation approach to examine the mechanism of material removal in copper. Despite successfully simulating material removal and predicting temperature distribution, the model was only limited to a 2-D sub-microscale with a discharge time not exceeding 2000 ps. This model was significantly expensive to run due to the intricate atomic-level physics calculations involved, making it unfeasible or prohibitively costly to execute on a larger scale (micrometre scale) or to simulate multiple-spark machining.

Weingärtner, Kuster and Wegener [22] developed models for simulating wire electrical discharge machining (WEDM) of three distinct materials: AISI1010, CuZn39Pb3, and aluminium. The researchers considered the effects of latent heat of fusion and vaporisation during the WEDM process and investigated the impact of the heat source profile and the temperature-dependent material properties on the profile of the melting isotherm. Despite this claim, the authors did not provide the temperature-dependent properties they used in their work. The model demonstrates a strong concurrence with the experimental measurements of material removal rate (MRR). Although their trials yielded satisfactory results when accounting for latent heats, failing to provide the temperature-dependent properties for two materials within the published work hinders the replication of the study and limits its utility as a validation example.

The study conducted by Somashekhar, Panda, Mathew and Ramachandran [23] focused on the application of micro-electrical discharge machining (μ-EDM) in predicting the temperature distribution at the end of 200 µs for AISI 316. The researchers utilised an RC circuit and developed a MATLAB code for their analysis. The findings were solely verified by comparing them to another FEA model, without a discussion or prediction of the dimensions of the crater or Material Removal Rate (MRR). A similar study [24] constructed a similar model to evaluate the residual stresses resulting from µ-EDM of Ti–6AL–4V alloys and the aspect ratio was determined using an atomic force microscope and nano-indentation for a single spark protrusion. The results demonstrate exhibited significant disparities in the simulated crater’s dimensions between simulations and the experiments, hence prompting inquiries regarding the reliability and precision of the projected material removal rate. In another study conducted by Qian, Yang, Wang, Lauwers and Reynaerts [25] on MRR during μ-EDM, the researchers observed oscillation of the sparking current and voltage when a high open-voltage was applied, and this phenomenon was predicted by electrical simulations and experimentally verified. In contrast to prevailing beliefs, the experiments showed that the negative current flow in a single sparking cycle also contributes to effective material removal on the workpiece. Cao et al. [26] studied the oscillation wave analysis and incorporated the randomisation of spark machining locations in µ-EDM high aspect ratio drilling using three-phase flow. Their work focused on the impact of bubble generation and debris on the flushing efficiency.

Focusing on the surface topography, Izquierdo, Sánchez, Plaza, Pombo and Ortega [27] run a 3-D FEA simulation to estimate the surface roughness on an EDM machine surface of AISI D2 tool steel using repeated sparks. Their model studied the influence of the probability of occurrence of a single or multiple sparks and the gap size between the electrode and the workpiece on Ra value during machining. Due to the stochastic nature of the process, the analysis in this study only focused on the overall effect of the multiple pulses on surface roughness, neglecting the verification of individual protrusion diameters which is noted in the large variation in the material removed per discharge. Their work was followed by Jithin, Bhandarkar and Joshi [28] who developed a simpler 2-D MATLAB numerical model to predict the surface roughness in multi-spark EDM without the need for FEA. The model prediction accuracy was around 11.5% in estimating the Ra value during EDM of Ti–6Al–4 V alloy but only showed a 2-D section. Moreover, both models were more accurate for short pulse-ON time (< 200 μs), than long pulse-ON time (> 200 μs) for which the error exceeded 100% in a few cases.

Yeo, Kurina and Tan [29] conducted a comparative analysis of five distinct electro-thermal models to simulate the EDM of AISI 4140 Steel. These models included Snoeys’s model [30], Van Dijck’s model [31], Beck’s model [32, 33], Jilani’s model [34,35,36], and DiBitonto’s model [37]. The primary aim of the research was to investigate the impact of heat source and process factors on the temperature gradient, geometry of the crater, and MRR at the cathode. The study’s findings indicate that DiBitonto’s model is regarded as the most suitable for providing an accurate estimation of the machining particularly when dealing with high discharge energy.

Bhaumik and Maity [38] predicted MRR and temperature distribution during the machining of Ti-5Al-2.5Sn alloy. However, FE elements were deleted from the domain when their temperature was over the melting point, assuming that the dielectric liquid would flush away the molten metal. Despite finding this assumption is true by Cao et al. [26] who studied high aspect ratio drilling, Bhaumik and Maity [38] did not provide a citation or evidence of that assumption at the time of conducting their work. Furthermore, a fixed spark radius was presumed based on the process parameter, and the plasma flashing efficiency was considered constant, disregarding its dependence on the current and the pulse-ON time. The same strategy was used by Assarzadeh and Ghoreishi [39] to predict the crater’s dimensions and MRR in AISI 304 using Abacus. Kalajahi, Ahmadi and Bavil Oliaei [40] utilised surface response analysis to forecast the impact of different parameters on the MRR during machining of AISI H13 tool steel. However, no information was provided regarding the dimensions of the crater removed by a single spark.

It is pertinent to note that the accuracy of the simulations of EDM relies on the correct selection of the plasma flushing efficiency, energy fraction value, and the radius of the plasma as they significantly affect the results. Several studies [18, 41,42,43] investigated the extension of the previous factors’ effect on the process modelling and provided a detailed insight into this matter. Gholipoor et al. [41] provided an analytical solution to predict the variable plasma channel radius with time, while Padhi et al. [44] studied the effect of the plasma flushing efficiency on a single discharge machining of steel and Kliuev et al. [45] related the energy absorption fraction to the experimental results for a better accurate numerical prediction of the crater’s dimensions.

It can be seen from the literature that finite elements models can only be useful to predict the overall crater’s dimensions. However, their limitations are evident because they appear to have limited effectiveness in yielding data regarding the removed material (including its velocity, temperature and ejection direction), observing the machined material’s redeposition on the cathode/anode, the electrodes wear, or observing the flushing efficiency using multiphase simulations. Moreover, most of the finite element models were based on a fixed plasma/spark radius while it is, in reality, variable with time as the plasma channel grows. Furthermore, many of the FE models rely on removing elements with temperatures higher than the melting point without consideration of the material’s vaporisation effect.

In this article, the first-of-its-kind smoothed particle hydrodynamics (SPH) model is developed to overcome the limitations of FE modelling and to fully observe and analyse the machined material’s behaviour to better understand its effect on the flushing efficiency, tool wear and recast during EDM. The SPH model was validated against a large number of published experimental and FEA works.

2 Model description

2.1 Materials properties

Our SPH model was validated using two different alloys, namely Ti–6Al–4V and AISI 304, and machines with two types of EDM pulse generators including resistor–capacitor (RC circuit) and transistorised generators. Figures 1, 2 and 3 show the variation of the thermo-physical properties of the alloys with temperature.

Fig. 1
figure 1

Temperature-dependent thermal properties Ti–6Al–4V alloy [24]

Fig. 2
figure 2

a Thermal conductivity and b density variation with temperature of AISI 304 alloy [39]

Fig. 3
figure 3

Temperature-dependent specific Heat of AISI 304 alloy for a different range of temperature [39]

2.2 Physical phenomena

2.2.1 Heat transfer governing equations

The mechanism of material removal in EDM of metallic alloys is mainly based on thermal vaporisation due to the increase of the workpiece temperature to the boiling point in a significantly short time. Figure 4 shows a schematic of a typical EDM process.

Fig. 4
figure 4

Simplified schematic EDM machining using a single spark

Depending on the dielectric fluid and the workpiece materials, part of the thermal energy is wasted in the dielectric fluid and a portion of the energy is absorbed by the workpiece. The portion of the energy absorbed by the workpiece is called plasma flushing efficiency (PFE) and various values were considered in this paper depending on the experiments or the reference simulations parameters.

The differential equation of heat transfer can be stated analytically and with consideration for the external heat sources as follows [46]:

$$\rho\;{c}_{p}\frac{d{T}_{i}}{dt}=\nabla (k \nabla T) +Q -{Q}_{v}$$
(1)

where k (W/m.K) thermal conductivity, T (°K) temperature, Q (W/m2) the heat source, and Qv heat loss due to convection.

The heat loss Qv can be formulated using [46]:

$${Q}_{v}= {h}_{c} \left({T}_{s}-{T}_{0}\right)+ \varepsilon \sigma \left({T}_{s}^{4}-{T}_{0}^{4}\right)$$
(2)

where hc (W/m2K) convection factor, ɛ the emissivity, σ = 5.67 × 10−8 (W/m2K4) the Stefan-Boltzmann constant, Ts and T0 are the surface and the initial temperatures, respectively. Depending on the validation case tested, the values of the coefficients and factors would be different and heat loss due to emission was not always considered.

The model has been validated using both (capacitance-based) and (transistor-based) EDM mechanisms. Figure 5 shows the different electrical circuits used in common EDM machines.

Fig. 5
figure 5

Discharging pulse generator in EDM. a Resistor–capacitor and b transistorised circuits

The discharge energy deposited on the surface of the workpiece is calculated in the relaxation circuit by [24]:

$${E}_{d}= \frac{C . {V}^{2}}{2}$$
(3)

where Ed (J) is heat quantity, V (V) the voltage and C (F) capacitance.

While Ed is given for a transistorised generator by [47]:

$${E}_{d}= V\;. I .\;{t}_{ON}$$
(4)

where I (A) is the discharge current.

By considering the various process-related factors including the pulse-ON-time and flushing efficiency, the Gaussian heat distribution can be expressed as:

$$Q=\frac{{E}_{d}. {F}_{c}.\eta }{{\pi .{r}_{s}^{2}.t}_{ON}} \text{exp}\left[-\alpha {\left(\frac{r}{{r}_{s}}\right)}^{2}\right]$$
(5)

where Q heat quantity (W/m2); rs (m) plasma channel radius; tON (s) spark-ON-time; r is the distance from the centre of the plasma channel; η plasma flushing efficiency; Fc cathode energy fraction, which is the fraction of heat absorbed by the workpiece; and α a constant different in each research work.

2.2.2 Plasma channel radius

The plasma channel radius (m) used in [39] is given as:

$${r}_{s}=2040 \times {10}^{-6}.\;{I}^{0.43} . {t}_{ON}^{0.44}$$
(6)

While a different expression that only relies on the pulse-ON time was used in [24]:

$${r}_{s}=k\;.\;{t}_{ON}^{{~}^{3}\!\left/ \!{~}_{4}\right.}$$
(7)

where k is constant.

It should be noted that Eq. (7) was used by Murali and Yeo [24] to determine the crater’s radius, by making it equal to the plasma channel radius. This is not, of course, what occurs in real life and the practicality of this assumption is discussed in the “Results” section.

Moreover, the plasma channel radius was taken constant in most of the previous works, while in our SPH model, the value was changed dynamically as the simulation developed. Hence the ultimate value of the plasma channel radius was dependent on pulse-ON time and the current, but its value was growing with time until it reached the largest value at the end of the discharge pulse. This mechanism more precisely simulates the physical phenomena and hence offers a more accurate simulation of the crater’s dimensions.

It is crucial to acknowledge that at the start of the simulation, when time is zero, the channel radius will also be zero. This leads to a singularity of the heat source at the surface, which ultimately causes the simulation to report an error. Hence, it is necessary to set a small, yet non-zero value to rs at the beginning of the simulation, which subsequently increases with time until it reaches its maximum value during the discharge phase. This value is taken as the radius calculated at (0.1–0.5 µs) until this time is reached and the radius equation is then applied. This range is quoted depending on the discharge energy level that may produce unphysically high energy density at 0.1 µs time compared to 0.5 µs, which is still a very small time compared to the scale of the pulse-On time that can reach hundreds of micro-seconds. This may not be the case for some of the validation cases in this article, where the published works quoted a constant radius during the entire simulation.

2.2.3 Plasma flushing efficiency (PFE) and energy fraction (F c)

During EDM, part of the discharge energy is wasted to the dielectric and the tool, while only a small portion is absorbed by the workpiece and used in machining. This small portion is usually described by the cathode energy fraction (Fc) that defines the amount of the useful energy taken as a ratio from the total heat flux generated by the plasma. It must be said that this ratio is dependent on several factors such as tool, workpiece and dielectric’s thermal properties, flushing phenomena, machining gap, polarity and discharge parameters [48,49,50]. Therefore, it is extremely challenging to define a universal value for Fc and different published literatures use different values ranging from 8 to 50% [28, 39, 47, 51].

Additionally, the percentage of the energy absorbed by the workpiece is not fully utilised in the machining process since a percentage of it is wasted due to conduction, latent heating, convection and radiation at the surface. Hence another ratio is introduced to account for this waste, namely the plasma flushing efficiency (PFE). This term is the ratio between the actual machined amount of the materials compared to the theoretical amount removed by a single spark if all the energy is used in machining. PFE is also dependent on the process parameters and the material properties of both the tool and workpiece. Many research works assume 100% PFE [8, 24, 38, 39], while others use either a constant value or a dependent value on the discharge current and the pulse-ON-time [28, 47].

In our model, we used a variable PFE depending on the validation case; however, a variable flushing efficiency is recommended since experiments showed that for lower pulse energies, the PFE decreases and a larger discrepancy is observed between the simulations and experiments, compared to the higher energy sparks [52].

2.2.4 Vapour pressure

Depending on the surface temperature, the Clausius–Clapeyron equation can be used to compute the vapour pressure created by the discharge ionisation of metal [53]:

$${P}_{\text{vap}}= {P}_{\text{atm}}\text{exp}\left(\frac{{L}_{v}}{R} \left(\frac{{T}_{s}-{T}_{b}}{{T}_{s}.{T}_{b}}\right)\right)$$
(8)

where Patm, R, Lv, Ts and Tb are the atmospheric pressure, gas constant, latent heat of vaporisation, surface temperature and the boiling temperature respectively.

2.2.5 Vapour velocity

The vapour velocity can be approximated by using the average velocity in the normal direction at temperature Ts under the assumption that the vapour particles are ejected off the surface with a one-dimensional Maxwellian velocity [54]:

$${v}_{\text{vap},s}= \sqrt{\frac{2\;{k}_{B}\;{T}_{s}}{\pi\;m}}$$
(9)

where kB is Boltzmann constant (1.38 × 10−23 m2 kg/s2 K), and m is the atomic mass.

3 SPH methodology

3.1 SPH interpolation

In SPH, The computational domain is partitioned into randomly dispersed particles, each of which has a different mass mi, volume ωi, pressure Pi, and velocity vi [55]. A local interpolation for a group of surrounding particles, at a certain time step, can be used to determine the value of a function A(r) at location r. The interpolated value of the function can be obtained in its continuous form [56]:

$$\langle A({\varvec{r}})\rangle = \underset{\Omega }{\overset{ }{\int }}W \left({\varvec{r}}-{\varvec{r}}\boldsymbol{^{\prime}}, h\right)A\left({\varvec{r}}\boldsymbol{^{\prime}}\right) d\Omega$$
(10)

where r is a position vector, <  > denotes approximation, W is a weighting function called the smoothing kernel, h is the smoothing length (a characteristic length scale of the kernel). The smoothing kernel for the interaction between two SPH particles, i and j, can be expressed conventionally as follows [57]:

$${W}_{ij}=W\left({{\varvec{r}}}_{{\varvec{i}}{\varvec{j}}},h\right)=\frac{1}{{h}^{n}}f\left(\frac{\left|{{\varvec{r}}}_{{\varvec{i}}}-{{\varvec{r}}}_{{\varvec{j}}}\right|}{h}\right)$$
(11)

where n is the number of spatial dimensions, f is a function of h and rij =|rirj | the distance between two particles i and j.

The discrete SPH form of the function A(r) is as follows:

$$\langle {A}_{i}({\varvec{r}})\rangle = {\sum }_{j}{m}_{j}\frac{{A}_{j}}{{\rho }_{j}}{W}_{ij}$$
(12)

where ρj and mj are the particles density and mass respectively.

The gradient of the considered function can be calculated by taking the kernel gradient into account in the approximation:

$$\langle {\nabla A}_{i}({\varvec{r}})\rangle = {\sum }_{j}{m}_{j}\frac{{A}_{j}-{A}_{i}}{{\rho }_{j}}{{\nabla }_{i}W}_{ij}$$
(13)

A smoothing kernel can be Gaussian, quadratic, cubic (B-spline), or higher order (fourth and fifth order) kernels. Since the cubic spline is widely used in SPH and can be used to approximate the Gaussian function, it was determined to be the basis for our model. The following equation can be used to represent the cubic spline [56]:

$$W\left(r_{ij},h\right)=\alpha_D\left\{\begin{array}{ll}1-\frac32q^2+\frac34q^3&0\leq q\leq1\\\frac14{(2-q)}^3&1\leq q\leq2\\0&2\geq q\end{array}\right.$$
(14)

where \(q={r}_{ij}/h\), αD is a normalization parameter to ensure the unity integral of the kernel, with a value of \(7/4\pi {h}^{2}\) for 2-D domain. Figure 6 shows particle i and its neighbour particle j within a smoothing kernel of a radius 2 h.

Fig. 6
figure 6

Particles i and j within the smoothing kernel support

The temperature gradient is calculated using the heat source at the workpiece surface and particles with temperature exceeding the material’s boiling point are ejected from the surface, forming a crater. The effect of the plasma flushing efficiency, latent heat quantities, and the temperature-dependent properties were considered in our SPH model. Moreover, the influence of the particles movement and the associated convection is captured by default due to the Lagragian nature of SPH.

3.2 Model assumptions

The SPH model is used to simulate an individual spark taking into consideration temperature dependence thermo-physical properties of the workpiece material, a Gaussian heat flux, variable plasma channel radius, plasma flashing efficiency, and the latent heat of fusion and vaporisation. Our unique model can show the thermal history in the workpiece during a single spark heating and give full information about the dynamics of the machined debris in terms of pressure and velocity. This single-spark model can be easily extended to simulate multiple stochastic sparks that occur during EDM.

The following assumptions are made for the sake of simplicity:

  1. 1.

    The thermophysical properties of the workpiece materials are temperature-dependent.

  2. 2.

    The plasma channel radius is dependent on the pulse-on time and the current in the transistor-based EDM. To avoid singularity at the beginning of the simulation due to the “zero” value of the radius, a very small radius of the plasma channel is used. Further information is provided in Section 2.2.2.

  3. 3.

    A Gaussian heat flux distribution is used and is applied to the surface of the workpiece

  4. 4.

    The dielectric fluid affects the plasma flashing efficiency (PFE), the fraction of heat (Fc) absorbed by the workpiece, and the convective coefficient hc. The value of these parameters is computed to suit the assumption in the validation cases and experiments.

  5. 5.

    The electrode wear is not simulated.

  6. 6.

    The heating of the ejected particles stops when they leave the surface.

The parameters used in the SPH model are given in Table 1.

Table 1 Modelling parameters used in the smoothed particle hydrodynamics simulations

4 Results and discussion

4.1 Resistor–capacitor (RC) circuit

Our model was validated against the data in [24] using Ti–6Al–4V alloy as the workpiece’s materials and using the process parameters given in Table 2. A convergence study was carried out and the largest particle spacing was found to be 0.2 µm, which is way smaller than any mesh resolution found in the literature used in the validation of our model.

Table 2 Simulation parameters used in RC-based EDM used in our SPH model and [24]

Figure 7 depicts the different stages of the machining of Ti–6Al–4V alloy over a period of 100 ns and the formation of the final protrusion. It is shown that the material is being removed layer by layer and plasma heats up the next layer until the spark-ON-time is over, offering a more realistic behaviour compared to the FE approach which virtually removes the “molten” elements after the pulse-ON time has passed.

Fig. 7
figure 7

Temperature distribution and crater profile in Ti–6Al–4V workpiece using a single 100-ns pulse

It is pertinent to mention that the molten material is pushed to the sides of the crater due to the Marangoni effect and some particles do not have adequate time to leave the molten area and hence convection takes place and moves them to the edges of the crater, a behaviour confirmed by other researchers [58]. The edges cool down directly after the pulse finishes and forms a ring around the crater. The temperature at 1 ns reaches high values above 6000 °K, which is higher than the boiling point of the alloy.

Figures 8 and 9 provide a comparison of the crater profile and the material removal rate between te SPH model and the experiments by Murali and Yeo [24]. It can be clearly seen from Fig. 8 that the crater dimensions produced using SPH modelling, and experiments are in good correlation with less than 0.4 µm difference in the width. Although the crater predicted using SPH is wider at the bottom compared to the cone-like crater shown using the atomic force microscope (AFM), the error in the material removal rate was less than 20%, as shown in Fig. 9. This can be explained by the variable intensity of the actual plasma channel, which starts at a very high energy intensity at its centre and then expands and reduces in intensity with time until it vanishes at the end of the pulse-ON-time. This concentrates the energy at the centre at the beginning of the pulse and leaves a cone-line shape crater compared to the constant cylindrical plasma channel assumed in the simulations, which leads to wider surface heating and creates a trapezoid-like crater. The selection of the constant plasma channel radius was intended to create a comparable simulation environment to that adopted in the FEA.

Fig. 8
figure 8

A comparison of the crater profile at the end of the 100-ns pulse-ON time between SPH (centreline) and experimental results (dashed line) by Murali and Yeo [24]

Fig. 9
figure 9

Comparison of a the material removal rate and b crater dimensions between SPH model and experiment by Murali and Yeo [24]

In addition, the SPH model assumes a uniform and homogenous surface without defects such as non-uniformities, coatings or imperfections that may lead to non-uniform or unsymmetrical machining, even when a Gaussian heating source is assumed.

It can also be noted that our SPH model produces a more comparable result to the AFM measurements than the FEA developed by the same researchers [24]. The FEA produced a crater with 3164 µm and 1835 µm in radius and depth respectively although those numbers are two times larger than the AFM measurements. Therefore, Murali and Yeo [24] only compared the aspect ratio for the crater and justified the considerable difference in dimensions by only removing the “molten” material without showing the results for removing the vaporised material, which was done in our more realistic model. A full comparison of the crater dimensions is provided in Fig. 9.

Figure 10 compares the temperature distribution along the depth and surface of the Ti-6AL-4V samples between SPH results and FEA simulations run by Murali and Yeo [24] and Somashekhar, Panda, Mathew and Ramachandran [23]. SPH results correlate very well with both FEA simulation results along the workpiece surface and depth and prove that the SPH model offers a credible prediction for both the temperature field and the final crater’s dimensions. This comparison was carried out at 100 ns time after heating the material with a single pulse without removing the material, following the same procedure presented in the references mentioned earlier.

Fig. 10
figure 10

Temperature gradient along the surface and depth from the spark centre against [24] and [23]

It is clear that the temperature significantly drops by an order of magnitude within only 1 µm depth, indicating that the conduction does not have adequate time to dissipate heat, compared to the discharge plasma heating that is concentrated on the surface.

The good agreement among all models is evident along the surface although a considerable difference can be traced across the depth in Murali and Yeo’s FEA model, which produces significantly higher values. The temperature at the surface in their model, however, somehow matches the values from other models and the difference may be related to the poor mesh resolution along the depth in their model, since no convergence study was presented in their work.

Using the same material, the SPH model was also validated against Chen et al. [8] simulation, which studied the crater’s dimensions using various capacitance values.

It can be seen from Fig. 11 that despite creating smaller craters, the SPH model produced comparable results to the numerical and measured crater’s dimensions. The difference can be related to the different eroding environments created between the experiments and the simulations that assume a constant energy fraction and discharge energy source, something different to the real-life scenario in which the energy peaks at the beginning of the discharging process (due to full capacitance charge) and reduces at later stages [8]. Moreover, SPH particles that leave the surface require some time to be distant from the surface to allow the detection of the new surface particles that would be heated by the spark and the simulation carries on. This time may have caused some delay in heating of the underlying layers and hence produced slightly smaller craters. Additionally, Chen et al.’s. model overpredicted the dimensions due to the consideration of the plasma recoil pressure that would push the molten materials against the workpiece and produce larger craters, which is not considered in our current SPH model.

Fig. 11
figure 11

Effect of process parameters on crater a radius and b depth compared to experimental and FEA results (V = 220 V, tON = 5 µs) [8]

Another case (Fig. 12) was run against Singh et al. [59] who studied the effect of the plasma channel pressure on modelling EDM of Ti–6AL–4V alloy using RC circuits. The results showed that the assumed plasma pressure has a significant impact on the crater’s profile under the same process parameters. For a comparison to the experiments, 2 MPa plasma pressure was selected to predict the shallowest crater [59]. Both FE and SPH models predicted the same crater width (around 25 µm) but the difference in the depth was greater (around 35%). This may be related to the resolidification phenomena that are not considered in the current SPH model, which assumes that once the material leaves the surface, it gets flushed by the dielectric fluid. This opens the possibilities for further improvement of the current model.

Fig. 12
figure 12

Effect of process parameters on crater’s dimensions compared to experiments and simulation (please note the different scales for the axes) [59]

Although the Singh et al. model predicts closer depth to the experiments, it creates a much smaller profile when combined with the underestimated crater’s width. However, the SPH model offers a better agreement in the overall material removal rate because it predicts a more accurate crater’s volume with MRR of 0.148 g/min (SPH) against 0.163 g/min (experiment), compared to 0.069 g/min predicted by the FEA.

4.2 Transistorised pulse-generator circuit

The most prevalent kind of EDM in the market utilises transistors to accurately regulate the discharge current and pulse temporal features. This effectively addresses the issues of recharging delay, limited control over spark ON/OFF periods, and energy consumption that are typically observed in RC systems. Our SPH model was also tested using this type of discharging circuit, and the findings were then compared to published experiments, two finite element simulations, and an analytical solution for machining AISI 304 Steel. The process parameters used in the SPH model are provided in Table 3.

Table 3 Simulation parameters used in transistor-based EDM used in our SPH model [39]

Figures 13, 14, and 15 depict the progression of micro-machining on a workpiece under various process settings, as outlined in Table 3, and illustrate the velocity vector field. As anticipated, increasing the discharge pulse energy results in higher velocities and temperatures of the ejected particles, which in turn leads to accelerated machining and a greater crater volume. Particles at the beginning exit the top surface in a direction perpendicular to it, although with varying magnitudes of velocity. Consequently, during the initial stages of machining, the first group of particles move upwards and align in an arc shape due to the highest velocity observed at the centre, while the following particles located on the sides of the crater exit at an angle determined by their surface normal vector. Particles following the disappearance of the plasma channel exhibit reduced velocity as a result of their temperature having already lowered due to conduction and convection and are ejected in random directions, depending on where the belong on the surface.

Fig. 13
figure 13

Machined material velocity field and the crater formed using 40 A and 22 µs spark

Fig. 14
figure 14

Machined material velocity field and the crater formed using 50 A and 125 µs spark

Fig. 15
figure 15

Machined material velocity field and the crater formed using 60 A and 200 µs spark

Furthermore, it is evident that the crater profile is non-uniform in all instances, since certain particles are propelled towards the edges of the crater as a result of the Marangoni effect, also known as thermal convection. The particles are unable to leave the surface because their temperature decreases through conduction, causing them to stick to the upper edges of the crater. This phenomenon resembles the movement and transfer of materials to the sides, which is commonly observed in micromachining, ablation, welding, and similar processes.

Upon reaching the boundaries of the domain, the moving particles cease their momentum and come to a halt, hence discontinuing any further interaction with other particles.

To analyse the results from Figs. 13, 14, and 15, a comparison is provided in Fig. 16 regarding the crater profiles created by SPH simulations, FEA and the experimental data in the literature. In the same figure, the temperature gradient is depicted, and the heat-affected zone can be easily identified, while the ejected material can only be visualised using the SPH model. It is important to note that the particle spacing remains consistent throughout all instances, but the spacing may seem larger in Fig. 16a due to magnifying the machine area.

Fig. 16
figure 16

Crater profile comparison between our SPH model and experiments by Assarzadeh and Ghoreishi [39] and FEA by Jithin et al. [47]

Table 4 gives the exact values for the crater depth and width for the three cases while Fig. 17 gives a graphical representation of the data and Fig. 18 compares the material removal rates.

Table 4 Crater radius and depth comparison at three different cases, all dimensions are in microns
Fig. 17
figure 17

Effect of process parameters on crater a depth and b radius compared to experiments and FEA models [39, 47]

Fig. 18
figure 18

Material removal rate comparison between SPH predictions and experiments

Table 4 and Fig. 17 validate that the dimensions of the crater, as predicted by SPH, align well with the experimental data for the three scenarios. The largest discrepancy seen is 13.8% and 22% in the radius and depth, respectively. However, the magnitude of this inaccuracy is significantly lesser compared to the errors documented in the FEA findings published in the literature.

The material removal rate shown in Fig. 18 confirms that the SPH model predicts the results with less than 11% error compared to experiments in case 2, while the error drops to less than 6% in the other cases (see Table 5 for process parameters). The error range is rather small given the intricate nature of the EDM process and the several factors that affect the process, such as flushing efficiency dependency on the discharge energy, the temperature-dependent thermal properties, and the condition of the workpiece surface etc.

Table 5 Material removal rate (mm3/min) for EDM of Stainless Steel SS304 using a constant discharge voltage of 25 V, compared to data from [39]

To ensure an exhaustive validation, the simulations were run for another 9 different combination of process parameters including pulse-ON-time, pulse-OFF-time, voltage and current. The results are also compared an analytical solution model developed by the same researchers. Figure 19 shows the calculated and measured MRR for the nine processing cases and it is evident that SPH calculations were the closest to the experimental results either at small (0.32 mJ) or high discharge energy (62.5 mJ) while FEA and analytical models significantly and consistently over-predicted the MRR. The error value in MRR using SPH ranges between 2 and 12% and increases gradually with the discharge energy. However, out of the 9 cases, only two scenarios (cases 2 and 8) generated larger errors up to 31%; however, it is difficult to determine whether those values are out of the limits because Assarzadeh and Ghoreishi [39] did not provide error bars for their experimental data. Despite that, th eSPH model still maintained a very good correlation with experiments compared to the other data.

Fig. 19
figure 19

MRR (mm3/min) for EDM of AISI 304 Steel using a constant discharge voltage of 25 V

The increase in the error may be expected to be larger at higher energy levels due to the increase in the crater’s dimensions and the area of the workpiece exposed to the plasma, which may include more defects than the small areas. Furthermore, the flushing efficiency of the process also drops at higher discharge energy, and hence the actual EDM rate would be slightly smaller than that in the simulation, which neglects the defects or irregularities on the workpiece surface. This will be improved in future simulations where surface condition and topography can be considered.

To extend the validation, the SPH model was also tested for machining one of the most common difficult-to-machine Inconel 718 alloy. Kliuev et al. developed a model to predict the crater’s profile using plasma channel radius calculations based on constant values fitted from the experiment results, as shown in Table 6. The plasma channel radius equation is taken as follows [45];

$${r}_{s}={V}_{p}\;.\;{t}_{ON}^{0.2} + {r}_{0}$$
(15)

where Vp is a constant, and r0 is the initial radius.

Table 6 EDM process parameters for machining Inconel 718 as per Kliuev et al. [45]

Although this approach makes it almost impossible to use this model without experimentation, the provided cases were used to test the SPH model’s accuracy.

It is clear from Fig. 20 that the SPH model provided a very good correlation with the experimental results and the dimensions mostly lay within the values of the error ranges. Both models’ predictions were also close despite the slight drop in the SPH predictions of the crater radii. The difference can be due to the fact that Kliuev et al. neglected the material’s vapourisation and relied on eroding only the molten material. This of course undermines the real scenario in which the vaporised material takes some of the heat away from the machined area and is affected by the flushing efficiency of the process, which was assumed 100% in this model.

Fig. 20
figure 20

Effect of process parameters on crater a radius and b depth compared to experiments and FEA models [45]

5 Conclusions

Our Smoothed Particle Hydrodynamics model was able to capture, for the first time, the machined materials during EDM of two workpiece materials, using a range of process parameters and two types of generation circuits. The main conclusions that can be drawn from this work are as follows:

  • The SPH model successfully simulated the machined material of Ti–6AL–4V and AISI 304 Steel, considering their temperature-dependent thermophysical properties, latent heat, a Gaussian heat source, a time-dependent plasma channel radius and two different heat sources.

  • The SPH model was able to precisely capture the crater’s profile and consistently predicted the MRR using a range of process parameters with an error of less than 2–22%, depending on the process parameters and workpiece material.

  • The SPH predictions were closer to the experiments at lower discharge energy levels (0.32 mJ) at a 2% error, while the error increased to 22% at higher energy levels (62.5 mJ), yet SPH achieved more precise results compared to FEA and analytical solutions.

  • The machined material’s trajectories, velocity, temperature, and location were captured every 1 µs due to the lagrangian nature of the SPH method.

SPH model in this article enables researchers to properly understand the EDM process by visualising the machined material removal and to predict their trajectory, velocity field to understand their effect on the electrode wear and the dielectric flushing efficiency and hence optimise the process and inform practice.