1 Introduction

With the wide application of 3D technology in medical, automotive, aerospace, and other fields, post-processing technology for 3D printing components has attracted increasing attention, one aspect of which is the improvement of surface roughness [1,2,3]. Surface roughness and precision pose more difficult challenges for 3D printing than even the mechanical strength of 3D printed parts [4,5,6]. To improve the surface roughness after 3D printing, domestic and foreign scholars have conducted extensive research.

Ayrilmis et al. [7] studied the effect of 3D printing parameters on roughness. Their results show that the thinner the layer, the lower the roughness value. Song et al. [8] studied laser selection of molten Ti6Al4V alloy and Mumtaz et al. [9] studied the effect of laser selection of molten Inconel 625 powder on the roughness of the top and side of the sample. Their results show that higher frequency and lower scanning speed are beneficial to reducing the top roughness, and lower frequency and higher scanning speed are beneficial to improving the roughness of the side. Except for traditional machining, there is sparse research on post-processing of 3D printing surfaces. Bhaduri et al. [10] studied laser-polished 316L printed samples and studied the effects of different process parameters on polishing quality. Their results show that energy density and pulse overlap along the beam scanning direction were the most influential factors in improving surface quality. Zhang et al. [11] used electrochemical polishing to treat an Inconel 718 surface, improving the roughness of the outer surface of 3D printed parts by optimizing the processing time and temperature. Their experimental results show that adhesive particles begin to fall off after 1 min of processing, and a smooth surface appears after 4–5 min of processing. Atzeni et al. [12] studied the abrasive flow polishing process for additive manufacturing of aluminum alloy plates. Unlmann et al. [13] studied the abrasive flow polishing process of additive manufacturing turbine blades. The results show that there is obvious unevenness in abrasive flow machining along the flow direction. Zhang et al. [14] studied the surface polishing technology of SLM workpiece with magnetic abrasive flow polishing technology. Singh et al. [15] used magnetic abrasive flow technology to study the surface polishing process of aluminum tubes. Williams et al. [16] performed abrasive flow polishing on additive manufacturing parts. The results show that it has a good improvement effect on the rough surface caused by the "step effect".

However, post-processing of the microchannel inside 3D printed metal material has not been reported. Based on this study, we propose post-processing of the inner wall of a 3D printed microchannel by using an abrasive flow technique. According to 3D printer theory, the formation mechanism of the surface roughness of the 3D printed sample is obtained, and the corresponding mathematical model is given. The roughness of the inner surface of the 3D printed sample was predicted, and then post-processing of the 316L printed microchannel was performed by using an abrasive flow technique to reduce the roughness of the inner surface.

2 Materials and Methods

2.1 Materials

For our 3D printing process, we used 316L metal powder with a particle size of 400 mesh. The specific ingredients are listed in Table 1. The abrasive flow polishing particles used were SiC particles with a density of 2975 kg/m3, a modulus of elasticity of 322 GPa, a Poisson's ratio of 0.142, and a particle size of 600 mesh. The medium used was aviation hydraulic oil.

Table 1 Composition of 316L powder (wt%)

2.2 Test Equipment and Method

The 3D printing was done on a TruPrint3000 printer, delivering laser-selected melting with a layer thickness of 60 μm (which is about twice the diameter of the particles), at a laser power of 330 W and a scanning speed of 1000 mm/s. The scanning strategy was to scan from left to right layer by layer on a 5 × 5 mm checkerboard layer. The printing diagram is shown in Fig. 1.

Fig. 1
figure 1

Diagram of 3D printing. a Actual diagram of 3D printing b schematic of 3D printing

The abrasive flow processing employed an environmentally friendly high-speed jet deburring machine at a working pressure of 5 MPa. Processing times of 10, 20, and 30 min were used for high-speed abrasive flow polishing of 3D printed samples. The grinding flow polishing diagram is shown in Fig. 2.

Fig. 2
figure 2

Diagram of abrasive flow polishing. a Actual diagram of abrasive flow polishing b schematic of abrasive flow polishing

2.3 Analysis Method

The specific dimensions of the 3D printed sample are shown in Fig. 3. Figure 3 shows a schematic view of the specific dimensions of the 3D printed sample and the detailed position of the cutting section. The 3D printed sample processed by abrasive flow is cut by a wire-cutting machine from the A–A position. The cutting position A–A is 20 mm from the right end, which is the lowest end of the arc. At this time, the normal line of the circular section of the cutting section is just horizontal. The section after cutting is just a standard circle, and the cutting section is as shown on the right side of A–A. The cut workpiece is placed in an acetone solution and ultrasonically cleaned, and then sanded with sandpaper. The polished workpiece was photographed with a stereomicroscope on the cut section A–A after grinding, and the area of the circular hole was measured using the measuring tool of the stereomicroscope. The equivalent diameter was calculated to study the processing efficiency of the abrasive flow. The three-dimensional (3D) shape of the E region was extracted by a laser confocal microscope, and the roughness value of the bottom was calculated. Scanning electron microscopy was used to determine the microscopic morphology of the E region, and the change of the roughness of the tube wall after processing was observed. The unevenness of the inner and outer processing was then analyzed.

Fig. 3
figure 3

Schematic of cutting position and cutting section

At the same time, the contour of the polished cutting section was extracted by using MATLAB, and the extracted contour was divided into 12 equal parts on the circumference according to the central angle. As shown in Fig. 3, the circular hole was divided into two parts. Figure 4a shows the direction of the cut section, and Fig. 4b shows the 12-part division. The small fan-shaped area was calculated after aliquoting. By comparing the area of the fan-shaped area at the same position of the workpiece at different processing times, we could quantitatively analyze the position where the grinding process mainly occurs during the abrasive flow processing.

Fig. 4
figure 4

a Schematic of a circular hole in the cutting section shooting direction. b 12-division diagram

3 Analysis of Formation Mechanism of Inner Surface Roughness

3.1 Cause of Internal Surface Roughness

According to the actual design, formation of the roughness of the microchannel inner surface has two characteristics. One is produced by the step effect, such as Zones I and II, and the other is the adhesion caused by the partial melting of the unmelted powder at the wall surface after the input energy penetrates into the next layer, such as Zone III. As shown in Fig. 5, the rough surface of Zones I and II is mainly caused by the step effect, and the rough surface of Zone III is mainly caused by the dross. The main difference between Zones II and III is that, in the process of 3D printing, the 3D printed workpiece itself can be supported by the current printing layer. If the printed entity can be used as support for the current print layer, the inner surface roughness is mainly due to the step effect, such as Zone II. If the 3D printed workpiece itself cannot be supported as the current print layer, the inner surface roughness is mainly formed by “hanging slag.” such as Zone III.

Fig. 5
figure 5

Schematic of the overall surface roughness of the pipe in the microchannel

In the case in which the printed entity cannot be used as a support, Zone III is mainly slag formed by adhesion. 3D printing is layered and the material is gradually printed. When printing the second layer, the input energy not only melts the current layer but also penetrates into the first layer to connect the two layers. It is the connection between the two layers that forms slag in Zone III; this is caused by the porous structure formed by the powder particles and the semimolten particles attached to the surface [9]. In the case in which the printed entity can be supported, Zones I and II are caused by the step effect. Each layer is scanned by scanning each slice and deposited on the inside and on the boundary. The entire part is formed in this way, thus forming a step effect [17,18,19,20]. Figure 6 shows the internal surface roughness. Figure 6a shows a schematic of the slag in Zone III, Fig. 6b shows a schematic of the step effect in Zone II, and Fig. 6c shows a schematic of the step in Zone I.

Fig. 6
figure 6

Schematics of the formation of internal surface roughness of a slag hanging in Zone III, b the step effect in Zone II and c Zone I

3.2 Analysis of the Step Effect in Part I of the Straight Pipe

In the case in which the printed entity cannot be supported, it is difficult to provide a corresponding mathematical model because of an increase in surface roughness caused by dross. Therefore, we mainly deduce the increase in surface roughness caused by the step effect in Zones I and III. The straight pipe portion and the curved pipe portion are essentially the same, except that their contour curves and mathematical expressions are different. To facilitate the mathematical calculation, only the step effect is considered, the slag and the step melting on the step are neglected, and the roughness forming model is appropriately simplified. A model capable of mathematical calculation is proposed and appropriately transformed.

Zone I is a straight pipe section, and its contour curve is a straight line. The roughness of the surface transformation in Zone I is shown in Fig. 7. C is the contour center line, which is the reference line for evaluating the surface roughness, and the shape of the contour centerline is the same as the ideal shape. h is the thickness of the sweeping layer, and θ is the tilt angle of the printing. To derive the mathematical expression for the roughness value of the Zone I region, the relationship between the roughness value of the straight tube portion of the 3D printing and the print layer thickness and the tilt angle is described. This will facilitate qualitative analysis of future actual production and provide a basis for the subsequent quantitative calculation.

Fig. 7
figure 7

Schematic of roughness calculation in Zone I

We calculate the arithmetic contour centerline of Zone I using the equal area principle. Suppose there is a contour midline y = c. The contour of the step shape of the Zone I region is divided into upper and lower parts, and the specific expression for C can be calculated according to

$$A_{1} + A_{2} + \cdots + A_{n} = B_{1} + B_{2} + \cdots + B_{n}$$
(3.1)

The contour centerline C is calculated by bringing in the data:

$$C = \frac{2 - \sqrt 2 }{2}h\sin \theta$$
(3.2)

The arithmetic mean deviation from the point of the contour surface to the contour within the sampling length is calculated according to the following equation:

$$Ra = \frac{1}{l}\int_{0}^{l} {\left| {y(x) - c} \right|} {\text{d}}x$$
(3.3)

In Eq. (3.2), the arithmetic mean deviation of the contour is calculated using

$$Ra = \frac{2 - \sqrt 2 }{2}\frac{h\sin \theta }{{\sin \theta + \cos \theta }} = \frac{2 - \sqrt 2 }{2}h\frac{1}{{1 + \frac{1}{\tan \theta }}}$$
(3.4)

Equation (3.4) is derived and calculated according to the definition of surface roughness. It can be seen from Eq. (3.4) that the value of Ra increases as the scanning layer thickness and the tilt angle increase. Therefore, in 3D printing, the scanning layer thickness and the tilt angle can be appropriately reduced to reduce the surface roughness and increase the smoothness of the surface.

3.3 Step Effect Analysis of the Elbow Part of Zone II

The elbow portion of Zone II is formed by sweeping a part of the arc, so this contour midline y = f(x) is part of the arc. The inner surface step effect is shown in Fig. 8. Figure 8a shows the actual step effect of the inner surface, and Fig. 8b shows a schematic of the step effect.

Fig. 8
figure 8

Schematic of surface roughness formation in Zone II

The step effect is transformed without considering the melting of the step and the small amount of dross near the step, which is convenient for mathematical calculation. Figure 9 shows a schematic of the roughness calculation.

Fig. 9
figure 9

Schematics of a surface roughness conversion in Zone II and b contour curve extraction

The transformation diagram of Zone II is shown in Fig. 9a. Because the contour line is a curve, the amount of calculations is relatively large, so we used MATLAB for numerical calculation. Then, a plurality of sets of calculation data were used to fit a relationship between the roughness value Ra and the scanning layer thickness h and the radius of curvature R.

We created a graph, as shown in Fig. 9b, in MATLAB. The black line L1 is part of the arc curve, which is the contour of our design. The equation of the circle is X2 + Y2 = R2. The red line is vertical and the length of each line is h. The blue line is horizontal; one section is perpendicular to the red line, and the other end intersects the arc curve at a point. The intersection point is the starting point of the next straight line, forming a step, and the step is numerically calculated for the subsequent contour extraction. We assume that there is an arc curve L3 passing through each step, entering from the vertical direction of each step, passing through the horizontal direction, and dividing the area included in the step into upper and lower parts. We then calculated the area of the two parts separately. When the areas are equal, L3 (dashed line in the figure) is the contour curve. The point where the contour curve first passes through the step is the starting point, and the point that passes through the last step is the ending point, and the value of the roughness is calculated according to the following formula:

$$Ra = \frac{{\int\limits_{{L_{3} }} {H{\text{d}}s} }}{S}$$
(3.5)

Therefore, each scanning layer thickness h and radius of curvature, R, correspond to a corresponding roughness value Ra. We calculated the corresponding roughness value Ra by giving multiple sets of scanning layer thickness h and radius of curvature, R. Consequently, a correspondence relationship between the set of roughness values Ra and the thickness h of the scanning layer and radius of curvature, R, can be obtained. After that, by using MATLAB drawing software, the corresponding image will appear, as shown in Fig. 10. According to the MATLAB calculation, the surface roughness of the circular tube increases with the increase in the thickness of the sweeping layer and the decrease in the radius of curvature, and the influence of the scanning layer thickness plays a major role.

Fig. 10
figure 10

Relationship between roughness and scanning layer thickness and radius of curvature

4 Analysis of the Effect of Abrasive Flow Processing

Abrasive flow polishing is a technique for finishing the surface of a workpiece by colliding and rubbing the abrasive with a collective surface in a semisolid medium [21,22,23,24]. It improves surface roughness by removing a portion of the material by collision and friction between the abrasive particles and the surface of the substrate. The material removal mechanism mainly includes three deformation modes: elastic deformation, plastic deformation, and micro-cutting of materials [25]. Because of the good plasticity of the 316L powder molded parts, therefore, based on the micromachining theory of rigid metal erosion of Finnie [26], the wear law of particles on plastic materials under low-angle erosion is described accurately. The expression for the volume erosion rate is

$$\upsilon = K\frac{{m_{{\text{P}}} v_{{\text{P}}} }}{{P_{{\text{t}}} }}f\left( a \right)$$
(4.1)

with

$$f\left( a \right) = \left\{ {\begin{array}{*{20}l} {\frac{1}{2}\left( {\sin 2\alpha - 3\sin^{2} \alpha } \right) \, \left( {0 < \alpha < \alpha_{0} } \right)} \hfill \\ {\frac{1}{6}\cos^{2} \alpha \, \left( {\alpha_{0} < \alpha < 90^\circ } \right)} \hfill \\ \end{array} } \right.$$
(4.2)

where \(\upsilon\) is the volumetric erosion rate, K is the correction factor, \(m_{{\text{P}}}\) is the quality of the erosion particles, \(v_{{\text{P}}}\) is the velocity of particle impact, \(P_{{\text{t}}}\) is the flow stress of the material, n is the speed index, and \(\alpha\) is the impact angle.

4.1 Analysis of the Processing Time Effect

By using abrasive flow equipment, 3D printed samples were processed for 10, 20, and 30 min, respectively, under a working pressure of 5 MPa. A cross-sectional view of the horizontal position of the curved section of the 3D printed sample was collected using a stereomicroscope in the E region, as shown in Fig. 11. Figure 11a shows the 3D print sample. Figures 11b and 12c, d show cross-sectional views when machining for 10, 20, and 30 min, respectively. Through the acquisition and measurement tools of the stereomicroscope, the base image of the cross-sectional circle of the 3D printed sample was collected, and the area of the cross-sectional circle was calculated in the E region.

Fig. 11
figure 11

Circular area at different processing times. a 3D print sample. Areas at processing times of b 10 min, c 20 min, and d 30 min

Fig. 12
figure 12

Histogram of cross-sectional area and equivalent diameter

The measurement results are plotted with the origin and the results are shown in Fig. 12. Figure 12 shows a histogram of the cross-sectional area of the cross section and the equivalent diameter for different processing times. It can be seen from the figure that, as processing time increases, the grinding amount increases gradually, the equivalent diameter and the cross-sectional area increase simultaneously, and the rate of increase gradually decreases. This indicates that, as processing time increases, the amount of grinding increases but at a lower rate of increase.

Measurement results of the roughness of the bottom of a 3D printed sample using a laser confocal microscope in the E region are shown in Fig. 13. Figure 13 shows the 3D top view of the bottom at different processing times. Figure 13(a) shows the 3D printed sample. Figure 13b–d show the 3D topography at the bottom after 10, 20, and 30 min of processing, respectively. It can be seen from the 3D topography that, as the processing time increases, the roughness of the region D gradually decreases. When processing for 20 min, the transitions of the three regions, A, B, and C, are the most gradual, being uniform. Among them, when processing for 30 min, the B area is obviously the smallest, and there may be a scouring phenomenon with pits appearing locally.

Fig. 13.
figure 13

3D topography of the bottom of the workpiece at different processing times. a 3D printed sample. Topography for processing times of b 10 min, c 20 min, and d 30 min

The roughness is measured at the red line position in the figure at the bottom of the 3D topography image taken by the laser confocal microscope. The roughness histogram is shown in Fig. 14, which shows the numerical value of the bottom roughness and the curve fitting using the Expdecl model. It can be seen from the figure and the fitted curve that, as the processing time increases, the value of the roughness gradually decreases, and the rate of decrease exhibits a downward trend, finally gradually approaching the critical surface roughness value. [27, 28] In other words, as the processing time increases, the value of the roughness decreases, and finally it fluctuates within a small range.

Fig. 14
figure 14

Bottom roughness value

The macroscopic morphology of the E region was photographed by scanning electron microscopy. The results at different processing times are shown in Fig. 15. Figure 15a shows the 3D printed sample. Figure 15b–d show scanning electron micrographs after processing times of 10, 20, and 30 min, respectively. It can be seen from the figure that the inner and outer sides of the processed areas exhibit different processing rules. Under the action of the centrifugal force of the curve, the processing is more intense on the outside, while the inner side is less processed, and the inner surface is still rough. As the processing time increases, the outer side gradually becomes smooth, but when the processing time reaches 30 min, the pits produced are processed, and the processing is excessive.

Fig. 15
figure 15

Scanning electron micrographs of the E region at different processing times. a 3D print sample. Micrographs at processing times of b 10 min, c 20 min, and d 30 min

4.2 Analysis of the Grinding Position

To analyze the nonuniformity of cutting, we use MATLAB for image processing. The polished end face image taken by the stereomicroscope was imported into MATLAB for calculation. Noise is inevitably generated during image generation and transmission [29,30,31]. Consequently, we need to use filtering. We used Gauss filtering, in which the pixel values of each point in the image are calculated by a weighted average of nearby pixels. The Gauss calculation formula is

$$G\left( {x,y} \right) = \frac{1}{{2\pi \sigma^{2} }}e^{{\frac{{ - \left( {x^{2} + y^{2} } \right)}}{2\sigma }}}$$
(4.3)

The Otsu algorithm is used for binarization. The basic idea is to assume a gray T value. The T value divides the gray level of the image into two groups. When the variance between the two groups is the largest, the gray level T is the optimal threshold of the image.

If the number of pixels in the image is N, the gray value range is [0, L − 1], and the pixel corresponding to gray level i is ni, then the probability is

$$P_{i} = {\raise0.7ex\hbox{${n_{i} }$} \!\mathord{\left/ {\vphantom {{n_{i} } N}}\right.\kern-\nulldelimiterspace} \!\lower0.7ex\hbox{$N$}},\quad i = \, 0,1,2, \ldots ,L{-}1$$
(4.4)
$$\sum\limits_{0}^{L - 1} {P_{i} } = 1$$
(4.5)

We assume that the pixel values T in the image are divided into two categories, denoted as B0 and B1. The gray value range of B0 is [0, T], and the gray value range of B1 is [T + 1, L − 1]. The average value of the gray value of the image is then

$$u_{T} = \sum\limits_{0}^{L - 1} i P_{i}$$
(4.6)

Then the mean values of B0 and B1 are

$$u_{0} = \sum\limits_{0}^{T} {{\raise0.7ex\hbox{${iP_{i} }$} \!\mathord{\left/ {\vphantom {{iP_{i} } {w_{0} }}}\right.\kern-\nulldelimiterspace} \!\lower0.7ex\hbox{${w_{0} }$}}} \quad u_{1} = \sum\limits_{T + 1}^{L - 1} {{\raise0.7ex\hbox{${iP_{i} }$} \!\mathord{\left/ {\vphantom {{iP_{i} } {w_{1} }}}\right.\kern-\nulldelimiterspace} \!\lower0.7ex\hbox{${w_{1} }$}}}$$
(4.7)

where \(w_{0} = \sum\limits_{0}^{T} {P_{i} }\) and \(w_{1} = \sum\limits_{T + 1}^{L - 1} {P_{i} } = 1 - w_{0}\).

From the above formula,

$$u_{T} = u_{0} w_{0} + u_{1} w_{1}$$
(4.8)

The variance between classes is defined as

$$\delta^{2} = w_{0} \left( {u_{0} - u_{T} } \right)^{2} + \left( {u_{1} - u_{T} } \right)^{2}$$
(4.9)

Let T take a value in the range [0, L − 1]. When the calculated value of T is the maximum, then the value of T is the optimal threshold calculated by the large law. Using the optimal threshold at this time, the image is binarized, and the processed circular hole area is extracted. Figure 16 shows the different processing time binarization maps. Figure 16a–d show binary diagrams after 0, 10, 20, and 30 min of processing, respectively.

Fig. 16
figure 16

Binarization diagrams after processing times of a 0 min, b 10 min, c 20 min, and d 30 min

The binarized image is divided into 12 segments counterclockwise, with each small area of each aliquot having the same central angle, and these are sorted counterclockwise from the positive east. Figure 17 shows the 12-division areas at different processing time lengths. Figure 17a–d show sectional views of the position of the circular hole after processing for 0, 10, 20, and 30 min, respectively.

Fig. 17.
figure 17

12-division areas at processing times a 0 min, b 10 min, c 20 min and d 30 min

We calculated the number of pixels in each area, performed a conversion calculation, and calculated the area of each small area. We can then draw the area of each small area as a line chart, as shown in Fig. 18. From Fig. 18, it can be seen that, as the processing time increases, the area of the cut area generally exhibits an increasing trend. In each processing, the processing amount of area 4–9 is obviously greater than that in other areas, so it can be clearly seen that the grinding process takes place preferentially in area 4–9, and the processing exhibits obvious selectivity.

Fig. 18
figure 18

Different areas of different processing times and area chart

5 Conclusions

  1. (1)

    Through analysis of the 3D printing mechanism, about the complex workpiece, the roughness of the inner surface is summarized which is mainly divided into two types and three areas. If the printed entity can be used as support for the current print layer, the inner surface roughness is mainly due to the step effect and another is “hanging slag.” It can also explain the formation of all surface roughness in 3D printing. At the same time, through the theoretical calculation about Zone I and numerical calculation about Zone II, it will be provide the basis for the later theoretical analysis.

  2. (2)

    Through the theoretical calculation of the roughness value resulting from the inclination of the straight pipe, the surface roughness increases with the increase in the scanning layer and increase in the inclination angle. The roughness values of the bent portion calculated by MATLAB increase as the thickness of the scanning layer and the radius of curvature decrease.

  3. (3)

    When the inner pipe is treated by abrasive flow, the grinding process exhibits obvious directionality, with the grinding amount outside the pipe wall being significantly higher than that on the inner side of the pipe wall. At the same time, it is found that the processing effect is best when processing for 20 min, with longer times leading to obvious pits, which destroy the original pipe shape.