1 Introduction

Global demand for new and customized products has been increasing in recent years. In order to meet the request, the quickest way to create working prototypes of products designed using computer-aided design (CAD) is by using additive manufacturing (AM) [1] techniques. The term “layered manufacturing” describes the process by which things are joined together in a staggered series of layers. AM is a process where the model is built using CAD data by depositing material in precise geometric layers [2]. In contrast to conventional methods, additive manufacturing does not necessitate a secondary finishing stage like machining. Several additive manufacturing has been developed, each distinguished by a unique set of materials and technologies for constructing successive layers of the product. In the beginning, AM was employed in the manufacturing and industrial sectors to build visual representations of products. As a result of developments in AM, the functional product or individual components can be manufactured and utilized as final products [3]. AM has contributed significantly in the fields of aircraft, medicine, the food industry, and the automotive sector. Additionally, research scholars have been using this method to create analytical and research models for various research activities. Compared to conventional manufacturing methods, AM’s time and cost savings, minimal equipment, and simple manufacturing process have been their primary advantages [4, 5].

Additive manufacturing (AM) techniques can be broken down into three broad categories based on the materials used: liquid, solid, and powder [6,7,8]. Material extrusion (ME), vat photopolymerization (VP), sheet lamination (SL), powder bed fusion (PBF), binder jetting (BJ), material jetting (MJ), and directed energy deposition (DED) are all good examples of AM processes [9]. Fused deposition modeling (FDM) technology has become the most popular additive manufacturing approach due to its low production costs and user-friendliness. The FDM technique adapts the layer-by-layer melt-extrusion of a plastic filament to form three-dimensional structures [10]. The fabrication of the structure began with the generation of a digital design of the model by 3D design software, followed by the printer’s execution of that design until the entire model was printed [11]. FDM was developed by Stratasys co-founder Scott Crump in 1989 and is currently the most widely used additive manufacturing technique based on material extrusion. FDM’s promising future is evidenced by its numerous advancements and successful applications in recent years [12]. FDM was employed as an alternative production process to make PPE during the COVID-19 epidemic, specifically face masks and respirator face shields. Between 2020 and 2021, many FDM-optimized materials have been created [13]. FDM is an extrusion method that uses thermoplastic polymers such as acrylonitrile butadiene styrene (ABS), polylactic acid (PLA), and polycarbonate (PC). Polyetherimide (PEI) are typically employed in the production of final products, including device housing and other functional prototypes [14, 15]. Selecting suitable printing parameters during fabrication is crucial for the exceptional performance of FDM products. The precision of the variable and the material qualities vary as a result of the availability of several competing parameters. The effectiveness and mechanical qualities of the fabricated product may be traced back to the process parameters that were used. The primary parameters for FDM printing are the air gap, build orientation, layer thickness, infill pattern, infill density, operating temperature, raster width, angle, and printing speed [13]. Out of this, the critical design factors were interlayer bonding, layer thickness, infill pattern, and raster angle. However, FDM’s major hurdles in creating operational or functional parts are inconsistent surfaces, inferior mechanical qualities, and a lack of precision [16, 17].

Polyethylene terephthalate glycol (PETG) has a greater level of popularity due to its strength, relative flexibility, and excellent thermal stability advantages. PETG is typically simpler to work with and has the advantage of being safe for food applications [18, 19]. In addition, PETG is also recyclable material, adding advantage towards waste minimization and environmental effects. PETG can also be formed in a vacuum or heated to a high temperature without cracking, making it versatile. PETG’s inherent transparency makes it suitable for esthetic applications [20, 21]. Researchers Hanon et al. [18] investigated the effects of infill density, build orientation, and raster angle on the tensile properties of PETG and concluded that 0° raster angle achieves good strength. The impact of airgap on the mechanical properties of PETG was analyzed by Özen et al. [13], and their findings reveal that reducing the air gap between the layer increases the bonding of the layers and enhances the product’s strength. Srinivasan et al. [22] investigated the impact properties of the PETG part by varying the infill patterns. The raster angle was kept constant at 0° for all 8 infill patterns. The grid pattern was reported to have optimum impact properties. The parameter effect on the surface roughness (Ra) was analyzed by Barrios and Romero [23], and they concluded that reducing the layer thickness and printing speed will be helpful to achieve a good surface finish. Hsueh et al. [24] analyzed the effect of printing temperature (215 to 235 °C) and printing speed (30–50 mm/s) on PLA and PETG parts by using FDM. Their results show that increasing the printing temperature helps to increase the strength, and increasing the speed reduces the print quality and strength of the product. Guessasma et al. [21] examined the impact of nozzle temperatures between 210 and 250 °C on PETG’s tensile strength and discovered that the material warped on the platform until PETG filament was printed at a temperature of at least 230 °C. Maximum porosity of 2% and average roughness of around 100 μm are achieved at a nozzle temperature of 250 °C.

In terms of research prospects, most studies have only analyzed the association between FDM process parameters and test specimens’ mechanical behavior. It is crucial to know the suitable parameters to achieve optimum mechanical properties. Thus, in this research, the tensile and compressive properties of the PETG at various parameters such as infill density (25%, 50%, and 75%) and infill pattern (grid, honeycomb, rectilinear, concentric, and triangle) are investigated. The optimal FDM parameters to enhance the product strength are identified using the response surface methodology (RSM) technique. RSM optimizes complex findings using empirical statistical modeling. The findings from the present work are expected to provide insights into the parameters’ effect towards the mechanical behavior of the PETG. Our research suggests that PETG would be ideal for FDM manufacturing applications.

2 Methodology

The Raise 3D N2 plus, an FDM-type 3D printer, was used to produce the test specimens shown in Fig. 1. The polylite™ enterprise supplies the 1.75 ± 0.05 mm PETG transparent filament, which is a polymer that is based on polyester. The tensile and compression tests were created following the ASTM standards provided in Fig. 2, which are ASTM D638 type-I and ASTM D695 samples, respectively. The parameters of the process, specifically the infill density and the infill pattern, were altered, while all of the other parameters, including layer thickness, raster angle, etc., were fixed. Table 1 summarizes the parameters together with their corresponding units of measure. Table 2 provides the mechanical properties of the PETG specimens with 100% infill density (tensile and compressive). According to ASTM standards, the test samples were designed using the Solidworks CAD software and transferred to Ideamaker. Ideamaker is the slicing software that helps control the process parameters and creates the G-codes for the printing process of the specimens. For each variation, n = 5 samples were printed and a total of 75 samples each for the tensile and compression prepared. Figure 3 shows the FDM-printed tensile and compression test specimens according to ASTM standards. Instron 3367 is used to conduct the tensile testing with the capacity of 30 kN and Instron 2501 series is used for the compression test with the capacity of 600 kN. SEM analysis was carried out using Hitachi TM3030 Plus tabletop microscope to analyze the microstructure and bonding of the layers. Finally, the RSM technique is used for optimization and to find suitable parameters for optimum behavior. The applicable range of the regression equations is limited as per the build parameters in Table 1. Figure 4 demonstrates the various infill patterns used in this study.

Fig. 1
figure 1

Raise 3D N2 plus printer setup

Fig. 2
figure 2

a ASTM D638 type-I standard for tensile samples. b ASTM D695 standard for compression samples

Table 1 Build parameters for the tensile and compressive ASTM standards
Table 2 Mechanical properties of polyethylene terephthalate glycol (PETG)
Fig. 3
figure 3

FDM-printed tensile and compression samples per ASTM standards

Fig. 4
figure 4

Various infill patterns

3 Results and discussion

3.1 Tensile properties

The amount of load or stress that a material is able to withstand before it begins to stretch and break is referred to as its tensile strength. The resistance of a material to the tension created by mechanical loads being applied to the material is referred to as its tensile strength, which is self-explanatory, given its name. One essential characteristic of materials used for structural purposes is their capacity to withstand breaking when subjected to tensile stress. This property is also one of the most commonly measured. The measured average tensile properties of the PETG are shown in Table 3 for various compositions.

Table 3 Average tensile properties of FDM-printed PETG

3.1.1 Ultimate tensile strength

The ultimate tensile strength (UTS) is the amount of stress a material can sustain while being pulled or stretched to its breaking point before it gives way. Figure 5 displays the obtained average UTS properties by the PETG with various infill patterns and infill percentages. Findings showed that the best performance characteristics were attained at 75% infill density, while the lowest characteristics were achieved at 25% infill density. According to the findings, the highest UTS value of 28.53 MPa was attained by the concentric infill pattern with an infill density of 75%. The lowest value obtained was 14.58 MPa for a triangle infill pattern with 25% infill density. With respect to the other infill patterns (grid, honeycomb, rectilinear, and triangle), the concentric obtained the highest strength at 28.53 MPa.

Fig. 5
figure 5

Average UTS value of PETG with various infill patterns and infill percentages

3.1.2 Elastic modulus

The stiffness of a material is described by its elastic modulus (E), which is one of the most important properties of solids. It is the relationship between the stress and the strain of a material. Stress is force per unit area, while strain is lengthening or shortening per unit length. Figure 6 shows the maximum E value of 0.81 GPa obtained at the concentric infill pattern with 75% infill density. The triangle infill pattern with 25% infill density gave the lowest value of E, which was 0.28 GPa. Similarly, the concentric pattern attains the maximum value for UTS, followed by the honeycomb, rectilinear, grid, and triangular patterns. The concentric pattern achieved the highest strength because the layers were in a straight line of subjected tensile load. This is believed to help the load spread out evenly (uniformly distributed across the concentric pattern), resulting in higher strength values.

Fig. 6
figure 6

Average elastic modulus value of PETG with various infill patterns and infill percentages

3.1.3 Yield strength (0.2% offset)

The yield strength of a material is a fixed value representing its ultimate elasticity. The yield strength is the stress at which a material changes from elastic to plastic. When a material is stressed below its yield point, it deforms elastically, bouncing back to its original shape when the tension is released. Figure 7 displays that a concentric infill pattern with 75% infill density produced a maximum yield strength of 20.00 MPa, and the triangle infill pattern with 25% infill density produced a minimum value of 7.64 MPa. Based on this, the highest suitable properties were obtained at 75% infill, whereas the lowest properties were obtained at 25% infill. This demonstrates that the density of the infill material is another crucial factor in improving the mechanical characteristics of the specimen.

Fig. 7
figure 7

Average yield value of PETG with various infill patterns and infill percentages

3.2 Compressive properties

The ability of a given specimen or structural element to withstand loads that cause a size reduction is referred to as the material’s or element’s compressive strength. In this test, the test sample is subjected to a force applied to its top and bottom, and this force continues until the test sample fractures or distorts. Table 4 shows the average compressive properties achieved by the PETG with various infill patterns and infill densities.

Table 4 Average compressive properties of FDM-printed PETG

3.2.1 Compressive strength

In contrast to the UTS, Fig. 8 reveals that the triangle infill pattern with 75% infill density obtained the highest compressive strength at 24.03 MPa, while the concentric pattern with 25% infill density obtained the lowest strength at 8.15 MPa. Thus, it can be summarized that the strength is highest at 75% infill and lowest at 25% infill density. Regarding pattern, the triangle pattern still achieved the highest strength than the other patterns. The cross-section of the triangle pattern observed could withstand more load than the different patterns, resulting in higher strength at 24.03 MPa.

Fig. 8
figure 8

Average compressive strength value of PETG with various infill patterns and infill percentages

3.2.2 Compressive modulus

The compression modulus is a measure of a material’s stiffness or its resistance to length changes caused by compression. When measuring material rigidity, a higher compression modulus is preferred. Figure 9 states that the maximum modulus value obtained was 3.71 GPa by the triangle infill pattern with 75% of infill density, and the lowest value of 0.89 GPa was obtained at the 25 % infill density of the concentric infill pattern. The highest modulus value for grid, honeycomb, rectilinear, and concentric patterns is 3.54, 3.51, 3.49, and 2.74 MPa, respectively.

Fig. 9
figure 9

Average compressive modulus value of PETG with various infill patterns and infill percentages

Figure 10 shows the microstructure image of the tensile and compression samples. Figure 10a shows the microvoids and smooth regions in the air gap. From the figure, it can be concluded that the operating parameters are suitable for this printing process as the microvoids are minimal and have very good smooth bondings within the layers. Figure 10b shows the tensile fractured concentric infill pattern with 50% infill density. The image confirms that for the tensile properties, the load acts uniformly on the pattern, which helps to obtain more strength for the sample to fracture. Figure 10c shows the compressive force-tested samples of concentric patterns with an infill density of 50%. When the compression force is applied to the specimen, the concentric pattern observed not be able to withstand high energy because of the pattern design. Also, from Fig. 10d, the interlayer bonding of the concentric pattern was found not to be in perfect condition, and the voids that occurred during the printing process were seen clearly when compared with the tensile specimens. Thus, it can be concluded that the concentric pattern results in good tensile properties but not for the compressive load.

Fig. 10
figure 10

The microstructure of FDM-printed PETG standards under varying conditions of processing as shown by SEM

3.3 Statistical analysis of the tensile properties using RSM

3.3.1 Statistical analysis of ultimate tensile strength

Using RSM, a quadratic regression model of ultimate tensile strength (UTS) as a function of the process parameters of infill density and infill pattern is constructed. Table 5 shows the contribution, standard errors, and the P value obtained. All response characteristics were analyzed by ANOVA. Factors are considered to be statistically significant if their P values (alpha values) are less than 0.05 and to be statistically insignificant if they are greater than 0.05. According to the variance analysis, when considering each individual’s effects, the chosen FDM parameters are found to be significant. From Table 5, the P value of the model, infill pattern, and infill density is less than 0.05, concluding that all the factors are significant. More importantly, the infill percentage is the most influential factor compared to the infill pattern. It shows that the interaction of the infill percentage is 75.02%, and the infill pattern is 21.59%. The R2 value is stated as 99.86%, which demonstrates the statistical measure of fit that reveals how much variance in the dependent variable can be attributed to the independent variable(s) in a regression model. The R2 adjusted and R2 predicted values are 99.53% and 97.14%, respectively, acceptable and fitting the data.

Table 5 Analysis of variance of UTS

Figure 11 shows the Pareto chart of the standardized effect on the infill pattern and infill percentage. It shows that the infill percentage contributes more effects than the infill pattern. Table 6 shows the regression equations of UTS specific to the various factors and can be effective for the prediction of the UTS value. Figure 12 demonstrates the residual plots of UTS. The predicted lines are near the normal line, showing that this model prediction fits with minimal error. Figure 13 shows the main effect plot and the interaction plot of UTS with respect to the various factors. These plots show the impact of the factors in each variable.

Fig. 11
figure 11

Pareto chart of UTS

Table 6 Regression equation of UTS with various infill patterns and infill percentages
Fig. 12
figure 12

Residual plots for UTS

Fig. 13
figure 13

Effects of infill patterns and infill percentage on UTS

3.3.2 Statistical analysis of elastic modulus

Based on the data in Table 7, it can conclude that the model, infill pattern, and infill density are all significant. In addition, when comparing the infill pattern to the infill percentage, the latter factor is less essential. The results demonstrate a correlation between the infill percentage being 89.24% and the infill pattern being 8.04%. In a regression analysis, the proportion of explained variation in the dependent variable that can be assigned to the independent variables is shown by the R2 value, which is reported as 99.89%. The adjusted R2 value is 99.62%, and the predicted R2 is 97.71%, which are satisfactory and in line with the data for the modulus.

Table 7 Analysis of variance of E

The standard influence on the infill percentage and pattern is depicted in a Pareto chart in Fig. 14. These results demonstrate that the infill percentage has a more significant impact than the infill pattern itself. Table 8 displays the regression equations for the elastic modulus that are factor-specific and can be used to estimate E values accurately. As seen in Fig. 15, which depicts residual plots for the modulus, the predicted lines are extremely close to the normal line, indicating that this model prediction could predict the data with minimal error. The impact of each factor on each variable is depicted in Fig. 16’s main effect plot and interaction plot of elastic modulus with respect to the various components.

Fig. 14
figure 14

Pareto chart for E

Table 8 Regression equation of E with various infill patterns and infill percentages
Fig. 15
figure 15

Residual plots of E

Fig. 16
figure 16

Effects of infill patterns and infill percentage on E

3.3.3 Statistical analysis of yield strength (0.2% offset)

From Table 9, the P value of the model, infill pattern, and infill density is less than 0.05. It shows that all the factors are significant. More importantly, the infill percentage is the most influential factor compared to the infill pattern. The infill percentage’s interaction is 87.96%, and the infill pattern is 11.38%. The R2 value obtained is 99.52% demonstrating the statistical measure of fit that reveals how much variance in the dependent variable can be attributed to the independent variable(s) in a regression model. The R2 adjusted and R2 predicted values are 98.32% and 92.89%, respectively, acceptable and fitting the data.

Table 9 Analysis of variance of yield strength

Figure 17 shows the Pareto chart of the standardized effect on the infill pattern and infill percentage. It shows that the infill percentage contributes more effects than the infill pattern. Table 10 shows the regression equations of yield strength specific to the various factors, which can be effective for predicting the yield strength value. Figure 18 demonstrates the residual plots of yield strength. The predicted lines are near the normal line, showing that this model prediction could estimate the properties with minimal error. Figure 19 shows the main effect plot and the interaction plot of yield strength with respect to the various factors, and these plots show the impact of the factors in each variable.

Fig. 17
figure 17

Pareto chart for yield strength

Table 10 Regression equation of yield strength with various infill patterns and infill percentages
Fig. 18
figure 18

Residual plots for yield strength

Fig. 19
figure 19

Effects of infill patterns and infill percentage on yield strength

3.4 Statistical analysis of the compressive properties using RSM

3.4.1 Statistical analysis of the compressive strength

Based on the data in Table 11, it can be concluded that the model, infill pattern, and infill density are all significant. In addition, when comparing the infill pattern to the infill percentage, the latter factor is less essential. The results demonstrate a correlation between the infill percentage is 89.54% and the infill pattern is 10.07%. In a regression analysis, the proportion of explained variation in the dependent variable that can be assigned to the independent variables is shown by the R2 value, which is reported as 99.89%. The adjusted R2 value is 99.61%, and the predicted R2 is 97.67%, which are satisfactory and in line with the data for the modulus.

Table 11 Analysis of variance of CS

The standard influence on the infill percentage and pattern is depicted in a Pareto chart in Fig. 20. These results demonstrate that the infill percentage has a more significant impact than the infill pattern. Table 12 displays the factor-specific regression equations for the CS that can be used to estimate CS values accurately. As seen in Fig. 21, which depicts residual plots for the modulus, the predicted lines are extremely close to the normal line, indicating that this model prediction could estimate the properties with minimal error. The impact of each factor on each variable is depicted in Fig. 22’s main effect plot and interaction plot of CS with respect to the various components.

Fig. 20
figure 20

Pareto chart for CS

Table 12 Regression equation of CS with various infill patterns and infill percentages
Fig. 21
figure 21

Residual plots for CS

Fig. 22
figure 22

Regression equation of CS with various infill patterns and infill percentages

3.4.2 Statistical analysis of the compressive modulus

From Table 13, the P value of the model, infill pattern, and infill density is less than 0.05. It shows that all the factors are significant. More importantly, the infill percentage is the most influential factor compared with the infill pattern. It shows that the interaction of the infill percentage is 81.62%, and the infill pattern is 16.64%. The R2 value is stated as 98.75%. It demonstrates the statistical measure of fit that reveals how much variance in the dependent variable can be attributed to the independent variable(s) in a regression model. The R2 adjusted and R2 predicted values are 95.63% and 91.65%, respectively, which are acceptable and fit the data.

Table 13 Analysis of variance of CM

Figure 23 shows the Pareto chart of the standardized effect on the infill pattern and infill percentage. It shows that the infill percentage contributes more effects than the infill pattern. Table 14 shows the regression equations of CM specific to the various factors and can be effective for predicting the CM value. Figure 24 demonstrates the residual plots of CM. The predicted lines are near the normal line, showing that this model prediction could estimate the properties with minimal error. Figure 25 shows the main effect plot and the interaction plot of CM with respect to the various factors. These plots show the impact of the factors in each variable.

Fig. 23
figure 23

Pareto chart for CM

Table 14 Regression equation of CM with various infill patterns and infill percentages
Fig. 24
figure 24

Residual plots for CM

Fig. 25
figure 25

Regression equation of CM with various infill patterns and infill percentages

4 Conclusion

The primary goal of this work is to employ the FDM technique to analyze the tensile and compression properties of PETG printed specimens at different infill patterns and infill percentages. The highest UTS, E, and yield values were found to be 28.53 MPa, 0.81 GPa, and 20.00 MPa, respectively, for the 75% infill concentric pattern. The maximum CS and CM values are 24.03 MPa and 3.71 GPa for the triangle pattern with a 75% infill percentage. The regression equation for the enhanced mechanical characteristics of the PETG was developed using the RSM method, and optimization was performed to discover the ideal values for the relevant process parameters.

  • Concentric infill pattern is best for tensile loads and not suitable for compression loads because of the layout of the inner structure of the pattern.

  • Increasing the infill pattern will enhance the mechanical properties.

  • The response surface methodology is a useful tool for effectively planning experiments methodically. It can be concluded with 95% certainty that the mathematical relations constructed between dependent and independent parameters are significant for properties prediction.

  • Regression equations can be used to perform numerical analysis, allowing for more informed choice-making in the present and the future.