1 Introduction

Over the past years, additive manufacturing (AM) processes have evolved from just being employed in rapid prototyping techniques to assist in manufacturing methods [3]. The latter aims to produce finished parts that are economically feasible, robust, with high strength, and with long-term stability. Moreover, these processes do not require special or costly tooling for manufacturing the parts, which allows the AM machine to handle a variety of polymers [7].

Material extrusion [1] is an additive manufacturing process preferred for building components due to its low cost, ease of creating complex shapes, and reduced waste. This process is also known as fused filament fabrication (FFF) or fused deposition modeling (FDM), which is a trademark name. The FDM method starts by selectively dispensing material through a nozzle. The polymer is then melted and forced out of the outlet by applying pressure. The polymer, when extruded, is in a semisolid state, and it solidifies and bonds with the already extruded material [16]. The nozzle is capable of moving in the XY plane, while the build platform moves along the z axis. In this way, FDM technology allows for complex shapes and internal structures [7].

For many polymers, building material and support material are used during the FDM process. Both of them are heated and extruded using different nozzles. The support material holds the structure while printing the layers of the piece. Since this material does not adhere to the build polymer, it can be removed by submerging the part in a bath [13].

Despite being a technology that provides several benefits, material extrusion is a manufacturing process that requires some attention regarding its energy consumption. Because such electricity is obtained from fossil fuel sources, it generates an environmental impact. As a consequence, it is vital to optimizing the energy consumption of the FDM process, along with the typical operation measures (productivity, quality, and structural performance of the part).

2 Literature review

In the past several years, researchers have examined the outcomes of 3D printing parameters on key metrics of FDM to improve the condition of the part, decrease the building cycle, and guarantee reliable structural performance by maximizing yield strength and ultimate tensile strength, among other mechanical properties.

Hassanifard and Hashemi [10] studied the effect of part’s build orientation and raster angle on the strain-life fatigue of specimens made of Ultem 9085, polycarbonate (PC), and polylactic acid (PLA). Parts were created based on ASTM D638-14 and ASTM D790-17 standards. The authors concluded that infill density affected the mechanical properties of the printed part.

The aim of the work reported by Verbeeten et al. [24] was to investigate the strain-rate dependence of the yield stress for tensile samples made of PLA, based on ISO 527-2 standard. Printing speed, infill orientation angle, and bed temperature were modified. One of the conclusions of the study was that a change of infill orientation angle from 0 to 90° provided anisotropic effects to the pieces.

Zhao et al. [26] explored the effect of printing angle and layer thickness on the mechanical properties of specimens made of PLA. The standard used to fabricate the units was ISO 527-2-2012. Tensile strength increased with higher values of printing angle and reduced ones of layer thickness.

Tanoto et al. [23] evaluated dimensional accuracy, processing time, and tensile strength of 3D printed components. The components were made of ABS, using FDM technology. The printing plane and the orientation angle were selected as the response variables to be analyzed. The specimens employed in the experimental trials belong to type IV, according to the ASTM D638-02 standard. Printing time diminished when the part was oriented in the XZ plane at 90°. This orientation also provided a specimen’s length value closer to the one of the ASTM standard.

The work of Alafaghani et al. [2] presented an experiment to determine the values of infill rate, infill pattern, the orientation of the part, and layer thickness that enhanced dimensional accuracy and mechanical properties of specimens made of PLA. The part design followed type IV specifications according to the ASTM D638-15 standard. Lower values of fill density and shell thickness and higher values of layer thickness and feed rate reduced the measured values.

Huynh et al. [11] considered the effect of infill rate, infill pattern, and layer thickness on the dimensional precision of parts made of PLA using FDM. The piece was a CAD model created by the authors, and an orthogonal array L27 was applied, along with a fuzzy approach to optimize printing parameters.

The work of Padhi et al. [14] shows a comparison between the dimensional deviation of printed specimens from the dimensions of a CAD model. An L27 orthogonal array allowed to modify the infill angle, raster width, air gap, orientation of the part, and layer thickness. The material of the specimens is ABS P400. A medium value for layer thickness and raster width, the greatest one for the air gap and the least for orientation and raster angle, granted the highest dimensional precision.

Mohamed et al. [12] investigated the dimensional accuracy of specimens made of a PC-ABS blend, employing FDM. The process parameters that were modified are raster angle, raster width, air gap, part orientation, layer thickness, and the number of contours. The geometry of the specimens is according to the standards ASTM D5418-07 and ASTM D7028-07e1. The layer thickness was the factor that affected all the responses.

Raut et al. [17] analyzed the tensile and flexural behavior, as well as the processing time of specimens made of ABS P400, following the standards ASTM D638 and ASTM D790. The process parameter that was varied was the orientation of the piece on the build platform. This parameter has a significant effect on all the studied variables.

Peng et al. [15] investigated the relationship among dimensional accuracy, processing time, and layer thickness during 3D printing of specimens made of ABS. The authors developed the geometry employed in the experiment, and they used the response surface method (RSM) along with a fuzzy interference system to improve process metrics. Warp deformation diminished with an increase of layer thickness, and a reduction of filling velocity.

Material extrusion has gained the attention of various researchers that aim to improve the characteristics and functionality of parts produced by this method, using different optimization techniques. Nevertheless, there are little efforts toward the optimization of process parameters for components made of ASA.

ASA is the acronym for acrylonitrile styrene acrylate. It is a thermoplastic used in the automotive industry due to its good toughness, rigidity, durability, and resistance to weather conditions, mainly water and UV radiation. This polymer has higher endurance compared with ABS, which is the most widespread material applied for FDM [9]. Consequently, it is essential to study the performance of this thermoplastic when printed using FDM.

Manufacturing a product is only one step of its life cycle, and each stage of the period has associated environmental, health, and safety consequences. However, the information concerning energy consumption is not available for all the manufacturing processes. As a consequence, researchers have started to generate this information. A competitive organization should know the energy consumed by all manufacturing operations to avoid or minimize all costs concerned with being or not being environmentally friendly [21].

Although a vast number of researchers have made efforts in the field of FDM, it is necessary to obtain the best process parameters related to this manufacturing operation. Energy consumption and time effectiveness are features associated with sustainable manufacturing. The former has an influential connection with carbon emissions, and the latter is connected to sustainability; the longer the time, the greater the energy spent by the 3D printer, as well as the human means applied during its service. The quantity of material demanded to build the part influences the sustainability of the process due to the carbon emissions released during its fabrication. Moreover, all these factors are related to the product's total cost [4].

The present document outlines an experimental study to optimize five primary responses of the FDM process: processing time, energy spent by the 3D printer, dimensional precision of the pieces, the quantity of polymer used for printing the parts, and mechanical attributes of the specimens. Five process parameters were modified to study their influence on the variables. These parameters were layer thickness, filling pattern, the orientation angle of the piece, printing plane, and position of the specimen on the build platform.

The Taguchi methodology was employed to analyze the effects of the process parameters on the response variables. An L27 orthogonal array comprised the experimental trials, and an analysis of variance (ANOVA), signal to noise (S/N) ratio, and means graphs helped to determine the optimum values for each of the parameters. A desirability analysis was selected to define a set of parameters that optimized all the variables at the same time. The results showed that it was possible to obtain a trade-off among all the fundamental metrics while enhancing process sustainability and part quality.

3 Experimental procedure for the ME process

3.1 Part to be manufactured, materials, and 3D printer specifications

The geometry and dimensions of the printed part are the ones specified for type V specimen, according to the ASTM D638-14 standard. The NX 11.0 software from Siemens was employed to model the part. The building material was ASA Ivory, and the soluble support material was QSR. Both of them were of natural color, manufactured by Stratasys.

An F270 printer from Stratasys built the parts. This printer has a calibration routine used before printing any of the specimens. The GrabCAD software aided to process the files of the pieces and send them to the F270 printer. This software can work with NX 11.0 native files (.prt extension) to set process parameters and estimate the quantity of material needed to print the part, as well as the processing time.

3.2 Processing time, energy consumption, dimensional accuracy, and mechanical property measurement system

The time needed to print the part was quantified using a stopwatch once the extrusion nozzle was moved to execute its first movement until it finished the piece. The energy drawn from the grid was collected using a power quality analyzer, named Fluke 43B. This equipment allowed to measure the average machine’s power consumption while printing. Then, total energy consumed (in kWh) was determined by multiplying the value given by the Fluke 43B times the building time (in hours).

A Mitutoyo outside micrometer with an accuracy of 0.01 mm was employed to estimate the length (L), width (Wouter and Winner), and thickness (T) of the specimens (Fig. 1). Four measurements were obtained for each one of the dimensions (seven in the case of the thickness, as shown in Fig. 1), and they were averaged.

Fig. 1
figure 1

Measurement locations of the printed part

Dimensional accuracy was calculated using Eq. 1.

$$ \Delta D=\left|{D}_{\mathrm{EXP}}-{D}_{\mathrm{DWG}}\right| $$
(1)

where ∆D is the deviation between the dimension established by the 3D model or drawing (DDWG) according to ASTM D638-14 standard and the one obtained by measuring the printed specimen (DEXP). Dimensional accuracy is improved when the value of ∆D is close to zero.

Tensile tests were executed according to ASTM D638-14 standard, at a speed of testing of 1 mm/min. The tensile machine employed was an MTS 810 material testing system. Figure 2 exhibits the device and the specimen before and after one of the trials. Data obtained from the tests were analyzed using the Excel software to find out the values of yield strength (0.2% offset) and ultimate tensile strength for each specimen.

Fig. 2
figure 2

From left to right: MTS 810 material testing system, specimen before the test, specimen after the test

Lastly, the model and support material amounts needed to print each part were quantified using the estimation option included in the GrabCAD software.

3.3 Input process parameters of the ME

3.3.1 Layer thickness

This parameter is associated with the height of each one of the extruded layers. Three different values were considered: 0.18, 0.25, and 0.33 mm. The GrabCAD does not allow to select distinct values from the previous ones because they are dependent on the F270 printer nozzle characteristics.

3.3.2 Infill pattern

Filling pattern is the variable that facilitates the user to pick a design to build the internal structure of the piece. Various possibilities can be selected depending on the software used to print the part. Among all options, infill patterns shown in Fig. 3 were preferred because they give adequate structural integrity.

Fig. 3
figure 3

Filling patterns selected

3.3.3 Orientation angle

The orientation angle is the angle at which the part is oriented on the printing plane. Three distinct values were adopted for this research: 0, 45, and 90° (Fig. 4).

Fig. 4
figure 4

Orientation angles of the specimen on the printing plane

3.3.4 Printing plane

Printing planes XY, XZ, and YZ were used in the experimental trials. They are shown in Fig. 5.

Fig. 5
figure 5

Printing planes used for printing the specimens. The orientation angle of the specimen was set at 0° for the three planes shown

3.3.5 Table position

This parameter is associated with part’s position on the build platform. The total area of the build platform was divided into nine regions (Fig. 6). Positions 1, 5, and 9 correspond to the experimental runs.

Fig. 6
figure 6

Positions of the specimen on the build platform

3.4 Design of the experiment

The Taguchi method was developed by Genichi Taguchi to improve the quality control of products or processes. This method provides orthogonal arrays to execute experimental trials, a signal to noise (S/N) ratio graph to reduce process variability, and a means graph to adjust the process to the desired value.

An L27 array was adopted to analyze the impact of process parameters on the variables. For each one of the 27 trials included in the design, three repetitions were performed in a randomized order. In total, the F270 printer fabricated 81 specimens.

Restrictions imposed by the GrabCAD software and the ones of the 3D printer were considered along to the material to be used (ASA) to select the levels of the L27 array. Table 1 presents the process parameters and their levels.

Table 1 Factors and their levels

According to the Taguchi method, process variability decreases when the S/N ratio is at its maximum value. There are three categories for S/N ratio: nominal is the best, larger the better, and smaller the better. Depending on the purpose of the research, the experimenter should decide which one is the most appropriate. Processing time, energy consumption, dimensional deviation, and quantity of material were analyzed using the S/N ratio smaller the better. For yield strength and ultimate tensile strength, the S/N ratio larger is better was preferred because these variables should be maximized for enhancing the structural performance of the part.

The S/N ratio “smaller the better” was computed according to Eq. 2, and the one corresponding to the “larger the better” characteristic was obtained using Eq. 3.

$$ \mathrm{S}/\mathrm{N}=-10\log \left[\left(1/n\right)\left(\sum {y}^2\right)\right] $$
(2)
$$ \mathrm{S}/\mathrm{N}=-10\log \left[\left(\sum \left(1/{y}^2\right)/n\right)\right] $$
(3)

4 Results and data analysis

Table 2 presents the results acquired for processing time, energy drawn from the grid by the 3D printer, dimensional accuracy for the dimensions illustrated in Fig. 1Wouter, ΔWinner, ΔL, and ΔT), the quantity of model and support material, yield strength, and ultimate tensile strength (UTS). Figures 7, 8, and 9 correspond to the means analysis, and Figs. 10, 11, and 12 are the ones for the S/N ratio graphs for each one of the variables.

Table 2 Experimental results obtained in 3D printing of ASA
Fig. 7
figure 7

Mean effects plot. a Processing time. b Energy consumed. c ΔWouter. d ΔWinner

Fig. 8
figure 8

Mean effects plot. a ΔL. b ΔT. c Quantity of model material. d Quantity of support material

Fig. 9
figure 9

Mean effects plot. a Yield strength. b Ultimate tensile strength

Fig. 10
figure 10

S/N ratio plot. a Processing time. b Energy consumed. c ΔWouter. d ΔWinner

Fig. 11
figure 11

S/N ratio plot. a ΔL. b ΔT. c Quantity of model material. d Quantity of support material

Fig. 12
figure 12

S/N ratio plot. a Yield strength. b Ultimate tensile strength

As stated by the main effects plot for processing time (Fig. 7a), the lowest value of this variable is reached when the layer thickness is at its maximum level with a hexagram filling pattern, the specimen oriented at 0° in the XY plane, using position 9 of the build platform. Peng et al. [15] inferred that the highest value of layer thickness provided the lowest printing time. Tanoto et al. [23] and Raut et al. [17] found that the time demanded to build the part is decreased when printed at 0° in the XY plane.

When layer thickness increases, the number of layers needed to build the part is reduced, thus minimizing processing time. The hexagram pattern, when compared with the solid and the sparse double dense ones, contains a smaller amount of material due to its structure. A reduction in printing time is achieved with a smaller quantity of extruded material. Moreover, the upper right corner of the build platform is the position at which the machine cleans the nozzle after building each layer. The outlet is moved to that point once it completes the layer. Position 9 of the platform is the nearest to the purge point, and this helps in decreasing the processing time. Moreover, if the position of the piece is at 90° in the XZ and YZ planes, printing time increases due to the higher number of layers required to build the part in that direction. Chaudhari et al. [6] presented the same conclusion.

The energy expended exhibited a similar trend as the one of printing time (Fig. 7b). The levels that decreased processing time are the ones that minimized energy consumption. The printer demands a certain amount of energy to run a process, and if that process lasts for a long time, the quantity of energy needed increases. Al-Ghamdi [4] also found out that an increment in the layer thickness lessens the overall energy consumption.

The dimensional deviation corresponding to Wouter diminished when layer thickness increased its value applying the sparse double as the filling pattern, with the part oriented at 45° in the XY plane and printing it in position 9 of the platform (Fig. 7c). Tanoto et al. [23] and Alafaghani et al. [2] inferred that parts printed in the XY plane showed the least dimensional variation. Moreover, Padhi et al. [14] and Peng et al. [15] manifested that dimensional difference decreases when the value of layer thickness rises.

The value of the ∆Winner displayed in Fig. 7d was lowered when layer thickness was risen using a solid filling pattern, with an orientation angle of 90° in the XZ plane, and applying position 9 of the build platform. Alafaghani et al. [2] concluded out that the XZ plane gave the lowest dimensional variation about ∆Winner, and Singh et al. [19] concluded that solid filling pattern was the one that reached the greatest dimensional exactness.

As stated in the main effects plot for dimensional accuracy regarding L (Fig. 8a), the second level of thickness layer and solid filling pattern, along with an orientation angle of 0° in the XY plane, and position 5 of the build platform, reduced the dimensional deviation of the specimen’s length. Huynh et al. [11] and Padhi et al. [14] found out the same results for layer thickness and Alafaghani et al. [2] for the building plane.

The thickness dimensional variation (∆T, Fig. 8b) was lowered at the largest value of layer thickness, with the sparse double dense pattern and a part orientation at 90° in the YZ plane, using position 5 of the platform. Peng et al. [15] deduced that the highest layer height minimized thickness’ dimensional deviation. According to Alafaghani et al. [2], the Y plane, when used, allowed to enhance dimensional accuracy.

Regarding the quantity of model material (Fig. 8c), the smallest value of the layer thickness lowered it, along with a sparse double dense pattern, an orientation angle of 0° in the XY plane, employing position 5 of the build platform. Al-Ghamdi [4] explored the impact of layer thickness, among other parameters, on specific consumed mass used to create a cube made of ABS. The results exhibited that a smaller layer thickness decreased the specific mass of the model.

For the case of the quantity of support material, the configuration that obtained the lowest value is the one corresponding to the smallest layer thickness with a hexagonal infill pattern, using an orientation angle of 90° in the XY plane and position 5 of the build platform (Fig. 8d). When the piece is oriented at 45° in the XZ plane (worst set of process parameters), the support material surrounds the part, thus increasing its quantity.

Concerning the yield strength of the part, the layer thickness at its minimum level with a hexagram filling pattern, the specimen oriented at 0° in the XY plane, using position 5 of the build platform, improved it (Fig. 9a). Even though the feedstock used for FDM owns a set of mechanical properties, these are not the same as the ones exhibited by the printed specimen. One of the reasons is FDM uses layers that are joined together by locally melting the material of a previous extruded layer, which differs from other manufacturing operations, like the injection molding process [22].

Stratasys reported that the yield strength of the material, when printed in the XZ plane (according to ASTM D638 standard, using type 1 specimen), is equal to 27 MPa [20]. Test 7 corresponds to this printing plane, and the result was 22.38 MPa, 17% lower than the one stated by Stratasys. Alaimo et al. [3] concluded that mechanical properties of parts rely on fiber orientation; specimens oriented at 0° exhibited a ductile behavior, and the ones oriented at 90° showed a brittle performance. Fayazbakhsh et al. [8] stated the same conclusion. Chacón et al. [5] found out that a reduction in layer thickness increased specimen stiffness.

Finally, the values of the process parameters that increased ultimate tensile strength are the same as the ones that enhanced yield strength (Fig. 9b). Samykano et al. [18] and Kerekes et al. [25] concluded that the higher the infill percentage, the higher the value of UTS, and this is coincident to the results found in the experimental trials. Stratasys stated that yield strength of the material, when printed in the XZ plane (according to ASTM D638 standard, using type 1 specimen), is equal to 30 MPa [20]. The result of test 7 was 26.12 MPa, 13% lower than the one provided by Stratasys.

S/N ratio plots for all the variables are shown in Figs. 10, 11, and 12. The levels of process parameters that optimized the variables are equal to the values that lowered process variation; this applies to the processing time, energy consumed, dimensional accuracy of the specimen’s length, the quantity of both model and support material, yield strength, and ultimate tensile strength. Dimensional accuracy of the specimen’s outer and inner width and the one related to the specimen’s thickness were the variables that did not show the same trend.

An analysis of variance (ANOVA) and an F test were performed to explain the significance of each factor. These analyses considered a confidence level of 95%. The printing plane was the most significant factor for minimizing processing time and energy. Dimensional precision for width (outer and inner) is affected the most by filling pattern. Dimensional variation of the specimen’s length and thickness is influenced by layer thickness and printing plane, respectively. Quantity of model and support material is affected by the orientation angle, and the mechanical properties of the specimen (yield strength and ultimate tensile strength) are determined by the printing plane.

The analysis of variance (ANOVA) performed for each one of the response variables is shown in Tables 3, 4, 5, 6, 7, 8, 9, 10, 11, and 12, as well as the percentage of contribution of the studied factors.

Table 3 ANOVA for means—processing time
Table 4 ANOVA for means—energy consumed
Table 5 ANOVA for means—ΔWouter
Table 6 ANOVA for means—ΔWinner
Table 7 ANOVA for means—ΔL
Table 8 ANOVA for means—ΔT
Table 9 ANOVA for means—model material
Table 10 ANOVA for means—support material
Table 11 ANOVA for means—yield strength
Table 12 ANOVA for means—ultimate tensile strength

4.1 Desirability and comparative analyses

As stated by the previous results, the values of process parameters that strengthen one of the variables were not the same for the other responses. As a consequence, to optimize all the variables at the same time, a desirability analysis was conducted. The software used to execute the analysis was Minitab v18, and the values of weight and importance for each one of the variables were established. For this study, both values were set to one, which means all the variables are equally relevant for the optimization process. The desirability analysis returns values in the range from zero to one, being one the most suitable. Table 13 displays the results of this analysis.

Table 13 Solutions from the desirability analysis

From Table 13, solution 1 is the one that obtained a desirability value nearby to one. Therefore, this set of process parameters was the one that optimized all the variables at the same time. An experimental test was conducted for validating these results executing three repetitions, and the values gathered are shown in Table 14, as well as the difference (expressed as a percentage) between the predicted value and the average result of the three experimental trials. According to the information presented in Table 14, the difference between the experimental results and the predicted ones was lower than 10%.

Table 14 Results achieved using the solution 1 of the desirability analysis

It is relevant to notice that this combination of values increased specific responses and worsened the others. Table 15 shows a comparison between the desirability analysis experimental results, and the experimental results obtained when one variable was optimized at a time using the Taguchi methodology. Scenario 1 corresponds to the desirability analysis, and the minimum processing time, energy consumed, ΔWouter, ΔWinner, ΔL, ΔT, the quantity of model material, and quantity of support material correspond to scenarios 2, 3, 4, 5, 6, 7, 8, and 9, respectively. The maximum yield strength is related to scenario 10, and scenario 11 to the maximum ultimate tensile strength.

Table 15 Comparison between the results achieved using the desirability analysis and the Taguchi methodology

The desirability analysis provided a greater dimensional accuracy for the width (inner) and the thickness of the specimen when compared with the results obtained by the Taguchi method. These variables were reduced by 76 and 30%, respectively. For the other variables, this analysis presented a variables’ increment that went from 11 (ΔL) to 85% (ΔWouter). Although the desirability analysis did not provide the best value for all the variables, it achieved a good trade-off among them.

5 Conclusions

An experimental study was conducted to optimize several variables associated with the part quality, productivity, and sustainability of FDM, using ASA as model material. These variables are part’s dimensional exactitude regarding its width, length, and thickness, the time needed to create the piece, and the material used for building it (model and support material). Finally, the energy consumed during 3D printing was acknowledged as a means of process sustainability.

Five parameters were modified to study the influence of process parameters on variables’ behavior, using an orthogonal array: layer thickness, filling pattern, orientation angle, printing plane, and position of the part on the build platform. Taguchi methodology and an ANOVA assisted in examining the parameters and their impact on the variables, and the results denoted the printing plane was the factor with the largest effect on processing time, energy spent, dimensional precision of part thickness, yield strength, and ultimate tensile strength.

For the specimen’s width dimensional accuracy (outer and inner), the filling pattern influenced this variable. Finally, part’s orientation angle was the parameter with the principal influence over the quantity of both model and support materials. Furthermore, to determine a set of parameters that allowed a simultaneous optimization of all the variables, a desirability analysis was executed.

According to the results, 0.33 mm of layer thickness, using the sparse double dense filling pattern with an orientation angle of 90° in the XY plane, and position number 5 of the build platform, obtained the most suitable value of desirability. Considering the results gathered with this set of parameters, and the ones provided by the Taguchi methodology, the desirability analysis allowed finding a good trade-off among the responses of 3D printing. As a consequence, it improved the sustainability of the process without a significant reduction in productivity and part quality.