1 Introduction

Three-dimensional (3D) printing is one of the fast prototyping methods that produce the product using a 3D model created by a computer [1,2,3,4,5]. 3D printers are used in various industries such as mechanical, automotive, aerospace, civil, and medical engineering. For example, a 3D printer can be used to produce prototypes, molds, screws, or gears used in robots, plastic parts for some machines, veneers for some prostheses, fiber composites, and more [6, 7]. In the additive manufacturing process, the layers are stacked one after the other, eventually turning a computer-generated 3D file into a physical product. Today, the use of additive manufacturing technology has increased due to its flexibility and design advantages [8,9,10,11,12]. For example, this technology allows the creation of complex shapes and structures with less weight, reduces development time and tool costs, and dramatically simplifies the production process [13,14,15,16,17]. 3D printers are capable of printing a variety of materials such as metals, ceramics, and polymers [18]. Types of 3D printers for polymer printers include fused deposition modeling (FDM), stereolithography (SLA), digital light processing (DLP), selective laser sintering (SLS), laminated objective manufacturing (LOM), and liquid deposition modeling (LDM) (ceramic 3D printer) [19, 20]. 3D printers of FDM are one of the most common 3D printing methods in which extruded filaments of thermoplastic polymers are used to produce the part [21,22,23,24,25]. The extruder is placed on a three-dimensional CNC table that moves in the x, y, and z directions and places the molten polymer inside the extruder on the part [26, 27]. After finishing one layer, the extruder moves upwards as thick as one layer [28,29,30,31,32]. It is important to note that many parameters affect the quality and final properties of a sample printed with FDM [33,34,35,36,37]. Recently, many studies have been performed on the mechanical properties of 3D polymer samples printed by the FDM method, and these studies show the importance of paying attention to 3D printing parameters. Polylactic acid (PLA) is a linear aliphatic thermoplastic polyester that can be completely extracted from renewable sources such as corn. Of course, its use has been limited to medicine such as sutures. But today this polymer is widely used in many industries [38]. PLA is very similar to plastic. This thermoplastic film is biodegradable and a combination derived from the renewable plant sources of corn and sugar beet [39]. Most recent research has focused on the effect of second- and third-group fabrication parameters on the behavior of samples printed with acrylonitrile butadiene styrene (ABS) filament, while polylactic acid (PLA) filament, despite its unique properties, has received less attention from researchers [40,41,42,43,44]. For example, a group of researchers studied the effect of print parameters such as layer thickness, direction, and printing angle on mechanical properties using ABS and PLA filaments. Croccolo et al. [45] studied the direction and angle of printing of ABS specimens. Their results have been processed for the determination of the ultimate strength and Young’s modulus. They decided to develop a new one, which considers all the beads sharing the applied load. Their model has been differentiated for the contours placed longitudinally concerning the load direction and those inclined to have a fixed raster angle.Their numerical results have been calibrated and validated by comparing them to the experimental outcomes. Tymrak et al. [46] investigated the effect of printing angle parameters and the thickness of the sample layers with PLA. Their study quantified the basic tensile strength and elastic modulus of printed components using realistic environmental conditions for standard users of a selection of open-source 3-D printers. Their results found average tensile strengths of 28.5 MPa for ABS and 56.6 MPa for PLA with average elastic moduli of 1807 MPa for ABS and 3368 MPa for PLA. Chacon et al. [47] studied the printing direction, layer thickness, and filament exit rate, and performing three-point tensile and flexural tests, they found that the PLA samples printed by the FDM printer in the horizontal direction have the best mechanical properties by decreasing the layer thickness and increasing the filament exit rate. They noted that PLA-graphene composite specimens showed, in general terms, the best performance in terms of tensile and flexural stress, particularly in the case of upright orientation (about 1.5 and 1.7 times higher than PLA and PLA 3D850 samples, respectively). Kozior et al. [48] investigated the mechanical properties of PLA samples produced by FDM printers in various printing directions by pressure testing. Cylindrical samples were manufactured using the Dimension 1200es machine realizing the fused deposition modeling technology (FDM). The samples were located on the machine platform at different angles to the printing direction. The material used for the construction of samples was ABS P430. Tests relaxation were made in accordance with ISO 3384: 2002 standard. Tests were performed using the testing machine Inspect Mini. PLA filament is one of the most widely used filaments in 3D FDM printers. This filament has unique properties compared to other filaments. These properties include the following: (1) PLA is a thermoplastic polymer that is generally produced from lactic acid from corn and sugar beet therefore, it is recyclable. (2) In addition to being recyclable, low environmental impact and it is highly compatible with the human body. (3) An important advantage of this filament is that it does not emit gas during printing. Therefore, it allows printing to be done at home, in classrooms, and in factories without special ventilation. (4) These filaments do not need a warm bed. Therefore, there will be no problems in the cooling process such as partial shrinkage and cracking. (5) The melting point of PLA filament is between 180 and 230 °C. Mahmood et al. [49] studied the tensile properties of ABS specimens by examining the parameters of layer width and thickness, sample filling density, number of walls, and printing direction. They investigated the effect of part scalability on the ultimate tensile strength of fused filament fabrication (FFF) printed parts and evaluated the conventional method of calculating material tensile strength of FFF printed parts using the gross cross-sectional area of A = (b × h). The results of their findings showed that the conventional method cannot be used as FFF printed parts consists of partially filled parts and not a solid component. Alafaghani et al. [50] investigated the effect of the mechanical properties and increasing the accuracy of PLA samples printed by FDM printer by researching the parameters of layer thickness, printing speed, nozzle temperature, sample internal network filling density, internal network filling pattern, and printing direction. Their work utilized a tensile test per ASTM D638 standards to obtain the mechanical properties of each fabricated sample. In addition, their work provided a finite element analysis (FEA) model for additive manufacturing parts. Tronvoll et al. [51] tried to increase the dimensional accuracy, and smoothness of the surface of printed specimens with helical, and sloping surfaces (such as screws) by changing the layer height parameter and using a linear pattern. Their results showed that a lower layer height significantly reduces the defects. However, there is a significant nominal targeting error independent of layer height. On most performance measures, the results showed that narrowing the thread profiles with 1/16th of the pitch has only an effect on specimens modeled with 10 layers per pitch. Popescu et al. [52] reviewed existing articles on the effect of FDM printer parameters on the mechanical properties of polymer samples. Khandan et al. [53] printed a mitral heart valve with polyurethane polymer by FDM method and checked its properties by MDs simulation. They also examined tensile strength, strain at fracture, permeability, and the ultimate tensile strength to monitor the mechanical property of this artificial heart valves.

A review of the above sources shows that most recent research has focused on the effect of print angle and direction and filling density on mechanical properties, while the printing speed and layer thickness can have a great impact and also for predicting the mechanical and physical properties by MDs simulation that is another novelty of this article. On the other hand, in these studies in the literature review, only the modulus of elasticity and strength (among the mechanical properties) is considered, and the effect of changing the parameters on fracture strain, the weight of the produced part, printing time, and consequently costs are not discussed. Also, among the researches, only two researchers have studied the effect of printing speed on mechanical properties, which in both studies, high speeds have been considered. Since the three parameters of filling the internal network of the sample, printing speed and layer thickness has a significant effect on the fabrication time of the part, and so far these three parameters have not been studied together; in this study, the effect of these three fabrication parameters on the properties of PLA polymer specimens including stiffness, ultimate strength, and final strain of fracture is investigated, and finally the most suitable conditions in terms of weight and printing time are introduced and simulated.

2 Materials and method

2.1 Molecular structure of PLA

Polylactic acid (PLA) is one of the few polymers whose molecular structure can be controlled by the ratio of isomers L and D to obtain a crystalline or amorphous polymer with high weight as shown in Fig. 1 [54].

Fig. 1
figure 1

Spatial isomers of lactic acid

PLA is known as a food safety agent and can come into contact with food. This polymer decomposes without the need for a catalyst by hydrolyzing ester bonds. The rate of decomposition depends on the shape and size of the polymer object, the isomer ratio, and the hydrolysis temperature as shown in Fig. 2. In general, the physical and chemical properties of lactic acid are given in Table 1 [55,56,57].

Fig. 2
figure 2

Spatial chemistry of lactic acid and lactide molecules

Table 1 Physical and chemical properties of lactic acid [58,59,60]

In this paper, as shown in Fig. 3, the simulation of PLA was performed by the MDs method. The element of PLA as shown in Fig. 4 is simulated by Materials Studio software to predict the mechanical and physical properties before fabrication.

Fig. 3
figure 3

A monomer of simulated PLA that created by Materials Studio software

Fig. 4
figure 4

Simulation atomistic model of PLA in Materials Studio software

2.2 Simulation Steps, Force field, and software

In this article, the MDs method is applied to predict and obtain the significant mechanical and physical properties of simulated PLA [61,62,63,64]. The following steps have been taken to complete the molecular dynamics method as shown in Fig. 5.

Fig. 5
figure 5

Steps to obtain the mechanical, and physical properties using Materials Studio software

The initial atomistic models are created in Materials Studio software and Condensed-phase Optimized Molecular Potentials for Atomistic Simulation Studies (COMPASS27) force field is determined for modeling inter-and intra-atomic interactions. The COMPASS parameters for covalent molecules are completely confirmed using various calculation techniques including extended molecular dynamics simulations of liquids, crystals, and polymers [65]. COMPASS is the first ab initio force field able to foretelling thermo-mechanical properties of polymers like polymer nanocomposites perfectly. NVE explains that the sum of kinetic (KE) and potential energies (PE) is conserved, T and P are unregulated, and N, V, and E denote a constant number, volume, and energy, respectively. At this step, the simulation box is placed at a temperature of 298 °K under NVE. The simulation time is considered 100 ps.

NVT represents that temperature (T) is regulated via a thermostat, which typically adds a degree of freedom to the conserved Hamiltonian; KE and PE are included in the Hamiltonian; P is unregulated. At this part, the simulation box is set at the temperature of 298 °K under NVT. The initial density of the system (0.9 gr/cm3) is assumed to allow molecules and atoms to be displaced to move towards optimal mode. The simulation time was considered 100 ps.

NPT is similar to NVT, but the pressure (P) is regulated. Density is one of the physical properties that is considered in atomic modeling. It determines the accuracy of the density of the atoms in equilibrium. If the atomic modeling path is followed correctly, the density of the atomic system is expected to be close to the actual density of the system in comparison to the macro. Furthermore, it is assumed that after the simulation time, the amount of any quantity attributed to the system of atoms, including the converged density of the solution fluctuations, will decrease over time. At this point, the system is pressurized at atmospheric pressure 1 at a temperature of 298 °K under a constant NPT to close the system density to the actual density. NPT can also eliminate system tensions. The simulation time at this stage was considered 100 ps.

2.3 Sample preparation

This study focuses on the mechanical behavior of PLA filaments. It should be noted the diameter of the filament that used in this research is 1.75 mm.

First, the standard sample of the tensile test as shown in Fig. 6 is modeled according to type I standard ASTM D638 in SOLIDWORKS software with license number of (32JJKHC83J9KG8H6) and then save as an extension of *.STL [66].

Fig. 6
figure 6

Dimensions of the standard specimen (in millimeters) for plastics

Then the modeled *.STL file is converted to G-Code using Cura software. It should be noted that in most cases, during the process of converting the model to STL and then G-code, the geometry of the part loses its dimensional accuracy slightly. Cura software is one of the most comprehensive and practical 3D printing software. This software uses a very advanced graphical environment that is equipped with a layering simulator. Using this simulator, all different manufacturing parameters can be applied to create *.STL model. Therefore, in the next step, different parameters of model making are selected in this software. Table 2 shows the technical specifications of the 3D printer used to print SP1-SP6 samples. Figure 7 shows the overview of the 3D printer that printed specimens (SP1-SP6) in the present work.

Table 2 The technical specifications of the 3D printer
Fig. 7
figure 7

3D printer that printed specimens (SP1-SP6) in the present work

In order to investigate the effect of the internal network density parameters of the sample, the printing speed and the thickness of the sample layer were made according to the specifications given in Table 3 and during the time presented in this table. To achieve a scientific result in Table 3, the samples were printed with different percentages of infilling density (10 to 90%). The best results after tensile test were obtained with infilling density of 20, 40, 60, and 80%. Therefore, in order to achieve logical and correct results, standard specimens with four infill densities of 20%, 40%, 60%, and 80% were printed and tested under quasi-static tensile test. Also, the thickness of specimens is considered between 0.1 and 0.2 mm from the literature that in the present work, the authors are used the value of thickness 0.1 and 0.2 mm.

Table 3 Different processing parameters with their processing time

According to the standard, at least five samples must be made and tested for each case to prove the reproducibility of the results. Due to changes in manufacturing conditions and adverse events that may occur during the manufacturing process, the scattering of data in printed samples may be high in some cases. Therefore, in this study, the results of the three samples that had the highest repeatability were reported. It should be noted that the rest of the construction parameters such as the thickness of the initial layer, the width of each layer, and walled thickness are fixed in all samples, and their values are listed in Table 4.

Table 4 Constant parameter in Cura software

Also, due to changes in the melting point of PLA filament, the nozzle temperature for printing all parts was set at 210 °C. The printing angle of ± 45° also gives better mechanical properties to the printed samples [67, 68]. Because the printing time of a layer with an angle of 45° is less than other angles, this causes the bottom layer not to cool completely, and as a result, more adhesion is created between the layers. Finally, give the prepared G-code to the FDM printer to print the sample using PLA filament. An example of a printed PLA specimen is shown in Fig. 8.

Fig. 8
figure 8

Overview of 3D printed specimen

Figure 9 shows the printed specimens with different internal filler densities. When samples are printed at a higher internal grid filler density, this causes the layers to be closer to each other. The difference in the filler density of the internal density can be easily seen in Fig. 9. To investigate the mechanical properties of PLA specimens printed with an FDM 3D printer, each specimen was tested at room temperature under a quasi-static tensile test at a rate of 1 mm/min. Figure 10 shows an overview of the tensile equipment.

Fig. 9
figure 9

3D printed specimens with different infilling density

Fig. 10
figure 10

Schematic of tensile machine and specimens under quasi static tensile test

3 Results and discussion

3.1 Results of molecular dynamics simulation for PLA

The mechanical and physical properties of PLA are shown in Fig. 11, and Table 5 by following the steps mentioned in Section 2.2 derived the mechanical and physical properties. To draw the density diagram, first, the ensemble of NVT to maximize the energy of the system is done. Next, the ensemble of NPT is done to plot the density, as shown in Fig. 11, the density converges to 1.23 g/cm3. Table 5 show the comparison of mechanical, and physical properties of PLA with MDs modeling and experimental analysis.

Fig. 11
figure 11

Density convergence during simulation for PLA at the temperature of 298 °K

Table 5 Comparison of mechanical and physical properties of PLA using by MDs modeling with experimental analysis

3.2 Diagram of radial distribution function

One of the important quantities to evaluate the equilibrium validation of the system in molecular dynamics is the radial distribution function (RDF). The RDF expresses the mass distribution of the system over atomic distances that are expressed by relation (1).

$$ g(r)=\frac{\rho (r)}{\rho }=\frac{\left(N\left(r\pm \frac{\varDelta r}{2}\right)\right)}{\Omega \left(r\pm \frac{\varDelta r}{2}\right)}\frac{1}{\rho } $$
(1)

In this respect \( \frac{\rho (r)}{\rho } \) is the density of the number of atoms in the shell to the radius (r) in volume of \( \Omega \left(r\pm \frac{\varDelta r}{2}\right) \), and ρ is the density of the number of atoms in the total volume of the system. For solids, the RDF at distances as shown in Fig. 12 must converge to the value of 1. It is a measure of the equilibrium of a solid atom’s system.

Fig. 12
figure 12

Diagram of the radial distribution of atoms that convergence to the number 1

To validate the simulation results, the elastic stiffness matrix and elastic constants of the PLA were determined using a constant strain method. The elastic stiffness matrix components were defined for PLA, under a strain of 60.003 and at a pressure of 1 atm that this matrix is shown as follows:

$$ {C}_{ij}(GPa)=\left[\begin{array}{cccccc}14.2630& 3.1328& 3.0219& -6.3810& 1.1522& 1.4881\\ {}3.1328& 14.3803& 3.1782& -1.5284& 4.5940& 1.4811\\ {}3.0219& 3.1782& 13.8417& -1.3815& 1.1766& 4.8764\\ {}-6.3810& -1.5284& -1.3815& -1.2310& -0.6570& -0.7100\\ {}1.1522& 4.5940& 1.1766& -0.6570& -3.2538& 0.2416\\ {}1.4881& 1.4811& 4.8764& -0.7100& 0.2416& -3.3628\end{array}\right] $$

As can be observed, because of the isotropy of the material, the diagonal elements are nearly similar, and the matrix is approximately symmetric.

3.3 Mechanical testing evaluation

To investigate the effect of infilling density, print speed, and layer thickness on the mechanical properties of PLA samples made by FDM printer, first-four groups of samples SP1, SP2, SP3, and SP4 were compared, then SP2 and SP5 samples and SP3 and SP6 samples were compared with each other. Usually, due to the long printing time and high consumption of filament, the parts are not printed completely solid. Infilling density is a parameter that is displayed as a percentage and indicates how much of a solid model should be filled with material when printing. Therefore, this quantity directly depends on the weight and construction time of the sample. Figure 13 shows the stress-strain diagram of SP1, SP2, SP3, and SP4 with different density percentages. One of the weaknesses of FDM technique is the low dimensional accuracy of the printed specimens. In order to eliminate the effect of variations in specimen dimensions on the experimental results, five specimens were printed, and three specimens with minimum variation in length, width, and thickness were selected for tensile analysis. Results of these three specimens showed relatively good repeatability. It is shown from this figure that the trend of all cases including SP1 to SP4 is almost the same.

Fig. 13
figure 13

The stress-strain curves of PLA specimens with different infilling density

Figure 14 shows that the mechanical properties of printed specimens such as stiffness, ultimate strength, and fracture strain are strongly dependent on the infilling density, and they are directly proportional to the modulus of elasticity and strength. Figure 14 also shows the broken specimens SP1 to SP4 after the tensile test. As can be seen, most of the specimens are broken in the failure range.

Fig. 14
figure 14

Samples of SP1 to SP4 after tensile test

Also, by comparing the printing time of SP1 to SP4 parts in Table 3, it is proved that the filling density is directly related to the printing time. Table 6 shows the detail and average mechanical properties of SP1–SP6 specimens.

Table 6 Detail and average mechanical properties of SP1–SP6 specimens

According to Table 6, these results verified that the mean tensile strength increased as the internal filling density of the PLA specimen fabricated by 3D printing technology increased. In addition, it verified that as the internal filling density of the specimen changed from 20% to 80%, the mean tensile strength increased from 13.960 to 23.665 MPa suddenly. The mean tensile elongations at the breakpoint by the internal filling density of the PLA specimen were 1.868%, 3.449%, 4.701, and 2.551% at 20%, 40%, 60%, and 80% density, respectively [69, 70]. The results verified that the tensile elongation at the breakpoint was increased at 60% but decreased at 80% — density. The tensile elongation at the breakpoint was increased due to the internal topological geometry effect as the internal shape was intact at 80%. However, when the density was 80 to 100%, the tensile elongation at the breakpoint was reduced due to the effect of the brittle characteristics of the PLA because not only was the amount of PLA resin increased but also there was the geometric effect of the inside of the specimen [71]. The elastic modulus was also increased gradually from 1.198 to 3.467 GPa when the specimen’s internal filling density and thickness increased [72]. It can be concluded that adhesion between layers improves when the filling density increases. But with an increase in filling density in the end, the material tends to become more brittle [73]. As the printing speed increases, the tensile strength and elastic modulus show an upward trend, and when the printing speed is 40 mm/min, the tensile strength and elastic modulus are 1.434 ± 0.08 MPa and 20.085 ± 0.48 MPa, respectively, for SP2. Increasing layer thickness from 0.1 mm to 0.2 had a more positive effect on the mechanical properties, while the time of printing the sample would be decreased with increasing layer thickness. Therefore, a higher infill density of a part increases the stiffness of the part. As a stiffer material will have a higher elastic modulus, then modulus of elasticity will increase if the infill density increases. The elastic modulus of a 3D printed part is also influenced by layer thickness. A higher value of layer thickness causes a larger the cavity size. A larger cavity size creates a low porosity part. Low porosity part has a high modulus of elasticity. As the speed of the 3D printer increases, the layers have less opportunity to cool down and become brittle, which, as shown in Table 7, the Young’s modulus, elongation, and strength decrease as the printer speed increases. The results show from Table 8 that reducing the thickness of the layers leads to a slight increase in weight and stiffness of the part while greatly reducing the fracture strain. Therefore, the thickness of the layer has the greatest effect on the fracture strain of the piece and is inversely proportional to it. On the other hand, increasing the thickness of the layers leads to decrease Young’s modulus and enhance the elongation-to-break. It was observed that increasing the thickness of the layers during 3D printing had negative effects on adhesion properties because the gap between layers increases. Therefore the strength of samples should be decreased. According to Table 8, the strength of both samples (SP3–SP6) is close to each other, which is due to laboratory error.

Table 7 Average mechanical properties of SP2 and SP5 specimens
Table 8 Mechanical properties of SP3 and SP6 specimens

Figure 14 also shows the broken specimens SP1 to SP4 after the tensile test. As can be seen, most of the specimens are broken in the failure range. By comparing the values in Table 6 and the stress-strain diagrams in Fig. 13, it can be seen that as the internal network infilling density increases, its stiffness and strength increase dramatically. But from 60% density upwards, the strain of failure is reduced. This means that as the filling density increases too much, the specimen becomes brittle and deforms less under a quasi-static load. If the failure strain of the SP4 part is ignored, this part can be considered as the best sample. As previously mentioned, the printing process in FDMs is based on melting the filament in the extruder and cooling the material at ambient temperature, and this is done layer by layer. These rapid heating and cooling, despite creating residual stress and internal defects in the part, cause it to become extremely brittle and increase its modulus of elasticity and strength and brittleness. Excluding SP4 specimens due to low fracture strain, by considering the modulus of elasticity, the ultimate strength and fracture strain of SP3 with 60% density have higher mechanical properties among parts with filling density of 20, 40, and 60%. Also, between these three parts, the SP2 sample (40% part) has higher strength and weight than the other two parts with a small difference. Therefore, it can be concluded that in cases where the strength of the part is less important than its form and appearance, a density of 40% is more appropriate in terms of cost, material, and time savings.

3.4 Investigating the effect of print speed

The print speed is the same as the nozzle speed during printing. High printing speeds cause discontinuity of production in printing. The reason for this is the lack of time to melt and extrude the filament, which is very much related to the type of printer used and the mechanical specifications of the device, and precisely for this reason, any high speed cannot be printed with any printer. As mentioned in previous studies, low speeds were not considered at all. Therefore, in this study, two low print speeds were selected, and the samples were printed with the same fabrication parameters. Figure 15 shows the stress-strain diagram of the tensile test for two selected samples from the SP2 and SP5 groups. The authors chose SP2 and SP5 for comparison because their infilling density percentage and the thickness of PLA are the same with different print speed as we mentioned in Table 3. The our goal in this figure is just to change the print speed.

Fig. 15
figure 15

Stress-strain curves of PLA specimens with different printing speeds

Table 7 compares the numerical values of the mechanical properties of SP2 and SP5. As can be seen from the SP5 group diagram in Fig. 15, the reduction in print speed at low speeds has also led to an increase in mechanical properties such as stiffness, elongation-to-break, and ultimate strength. According to the printing time of each group of parts in Table 3, it can be seen that due to doubling the manufacturing time, the increase in properties has not been significant, but in cases where increasing the mechanical properties is important for the user, the specimen can be printed as quickly as possible to achieve the best properties. Figure 16 also shows the broken specimens of SP2 and SP5 after the tensile test. As the speed of the 3D printer increases, the layers have less opportunity to cool down and become brittle; thus, the Young’s modulus, elongation, and strength decrease as the printer speed increases.

Fig. 16
figure 16

Samples of SP2 and SP5 after tensile test

3.5 Investigating the effect of layer thickness

Since 3D printing technologies make the specimens layer by layer, the thickness of each of these layers in the print determines the quality of the specimens. In this study, two groups of SP3 and SP6 pieces with a difference in the layer thickness of 0.1 mm were tested to investigate the effect of layer thickness on the mechanical properties of printed parts. Figure 17 shows the obtained stress-strain diagram from the tensile test of one of the components of SP3 and SP5 groups. Numerical values of the mechanical properties are also summarized in Table 8.

Fig. 17
figure 17

Stress-strain curves of PLA specimens with different layer thicknesses

The results show that reducing the thickness of the layers leads to a slight increase in weight and stiffness of the part while greatly reducing the fracture strain. Thus, increasing the thickness of the layers leads to decrease Young’s modulus and enhance the elongation-to-break. Therefore, the thickness of the layer has the greatest effect on the fracture strain of the piece and is inversely proportional to it. It was observed that increasing the thickness of the layers during 3D printing had negative effects on adhesion properties because the gap between layers increases. Therefore the strength of samples should be decreased. According to Table 8, the strength of both samples (SP3–SP6) is close to each other, which is due to laboratory error. On the other hand, many researchers have shown that the thickness of the layers also has a significant effect on the dimensional accuracy and surface quality of the printed part, and as shown in Table 9, the dimensional accuracy of the SP6 sample group is closer to the standard dimensions of ASTM. Figure 18 also shows images of broken specimens SP3 and SP6 after tensile testing.

Table 9 Dimensional accuracy of SP3 and SP6 specimens
Fig. 18
figure 18

Samples of SP3 and SP6 after tensile test

Comparing the fabrication time of SP3 and SP6 parts according to Table 3, it can be seen that although the layer thickness decreases, the dimensional accuracy and surface quality increase, the printing time becomes longer because the thickness of each layer becomes thinner, and the printer has to print more layers to make the whole part, which takes more time to complete the manufacturing process.

4 Conclusion

In this study, the effect of different parameters on the tensile properties of printed PLA samples by fused depositional modeling with the MDs method and experimental analysis were investigated. For this purpose, in addition to the effect of three parameters of layer thickness, print speed, and internal network infilling density on the tensile properties of PLA polymer parts made by FDM printer, the most cost-effective parameters (in terms of cost and time) had also been extracted. The most important results are as follows:

  • The obtained experimental results from tensile experiments showed that with increasing the infilling density, the mechanical properties of the parts increase significantly.

  • However, at very high in filling densities, the components behave more brittle and have lower strain fractures, so in cases where the strength of the part is less important than its shape and appearance, a density of 40% is more appropriate in terms of cost, material, and time savings.

  • It was also observed that the printing speed has less effect on the mechanical properties of PLA parts than other parameters, and it has decreased the mechanical properties.

  • It was also observed that reducing the thickness of the layer, while slightly increasing the stiffness of the parts, makes the part extremely brittle, and on the other hand, it causes the increases in the dimensional accuracy and surface quality of the specimens.

  • Therefore, if the beauty and appearance accuracy of the part is a priority, the thickness of the lower layers is more suitable for this; otherwise, the thickness of the higher layer causes faster and cheaper construction and also gives better mechanical properties to the specimen.