1. Introduction
According to ISO/ASTM 52900:2015, material extrusion (MEX) refers to an “additive manufacturing process in which the material is selectively dispensed through a nozzle or orifice” [
1]. Fused filament fabrication (FFF) is a widely used MEX-based process. The popularity of the FFF process is arguably due to its cost-effectiveness and easy accessibility. The FFF process enables the printing of a wide range of polymers: from polylactic acid (PLA) and acrylonitrile butadiene styrene (ABS) as the most popular material to high-performance materials such as polyaryl ether ketone (PAEK) family. The simplicity and rapidity of the process make the MEX process convenient for not only rapid prototypes but also manufacturing semi-final and final parts [
2]. However, poor mechanical strength and lack of dimensional accuracy are among the drawbacks of the MEX process [
3]. In the MEX process, the parts are manufactured by successive deposition of the beads according to a predefined trajectory. The porosity in the structure appears due to the shape of the adjacent beads during material deposition. Consequently, the parts printed by the MEX process often have a relatively high porosity ratio due to the nature of the material deposition strategy [
4,
5]. The parts with a higher porosity ratio have lower mechanical properties [
6]. Inconsistency in the bead size (width and height) leads to an increase in porosity. Although the porosity cannot be entirely removed from the printed parts, understanding the influence of the printing parameters on the geometry of the deposited bead is essential to controlling the geometry of the deposited bead and adjusting them according to the desired geometry [
6]. Hence, controlling the printing parameters is also essential in order to avoid excess material deposition to ensure uniformity of the width of the deposited bead. Adhesion/bonding between the deposited beads is one of the most crucial properties influencing the mechanical properties of printed parts [
7]. Improving the quality of the printed parts entails suitable process parameter selection. Suitable process parameters are identified via experimental and/or numerical simulation approaches. The experimental approach provides empirical knowledge based on the observations and measurements for given hardware settings. Numerical simulation is a cost-effective and environmentally friendly alternative that enables the theoretical studying of process parameters’ influence. Numerical simulations are advantageous especially when measurements are time-consuming, costly, and require additional sensors [
8].
It has been proven in the literature that a numerical simulation is an adequate approach to effectively study the MEX process properties [
9]. Rashid and Koç reviewed the numerical simulation techniques used in the FFF process [
9]. They have categorized the research developments based on the type of performed numerical analysis. Studying the properties of the MEX process via numerical simulation entails solving multiphase fluid problems. Several methods are proposed for multiphase numerical modeling of the fluids. Level-set (LS) [
10], volume-of-fluid (VOF) [
11], and phase-field (PF) [
12] are among the most important modeling approaches for two-phase flow (TPF) models. Applying the LS method allows for more accurate computation of curvature, and therefore, it results in better smoothness of discontinuities near interfaces. In contrast, the VOF method is not able to compute accurate and smooth curvature near the interfaces since the VOF is performed as a step function [
13]. However, as reported in the literature, the LS method is more prone to numerical errors compared with the VOF method [
13]. The numerical error is likely to occur when the interfaces experience severe stretching (see [
13]). Several authors proposed coupling the two above-mentioned modeling approaches to tackle the limitation of each individual method [
14,
15,
16,
17]. Sussman et al. proposed a coupled LS and VOF approach (CLSVOF) for TPF modeling to increase the accuracy of the results when the effect of surface tension energy and topology is important [
14]. Their work demonstrated that the CLSVOF approach exhibits more accurate results compared with when LS and VOF are separately applied. Xia et al. proposed a computational model for modeling the shape of the deposited bead in the MEX process by considering the viscoelastic properties of the polymer [
18]. In this study, material flow from the nozzle and deposition on a substrate or previously deposited beads are modeled. The proposed method for tracking the polymer interface with the air is based on the front-tracking/finite-volume method. Xia et al. have successfully modeled the properties of the MEX process, including fluid flow, heat transfer, and viscoelastic behavior of the deposited bead. Additionally, they have modeled the die swelling of the extrudate in the MEX process [
18]. Due to the modeling complexity, there are no abundant studies on the bead’s shape on the moving platform. Modeling the bead geometry requires mathematically identifying the polymer/air interface and hence considering the properties influencing the shape of the deposited bead.
Computational fluid dynamics (CFD) and the VOF approach enable us to model the deposition of the bead on the platform and its heat transfer [
19]. Serdeczny et al. have modeled the deposition of the bead on the platform using commercial numerical simulation ANSYS Fluent R18.2 software (Anys, Canonsburg, PA, USA) [
20]. The results of their numerical simulation are validated against experimental measurements. Furthermore, they have shown that the CFD approach could be used to model several beads deposited together [
21]. The same authors have studied the effect of motion planning along the shape edges using VOF numerical simulation [
22]. The same modeling approach has been used by other authors to numerically model the extrusion die process [
23]. In this modeling approach, momentum, continuity, and energy equations are solved to model the fluid flow. Pricci et al. studied the process variables, such as mass flow rate, melting profile, and pressure profile, in the pellet-based additive manufacturing process [
24]. The objective of this study was to determine the screw velocity to control the desired mass flow rate. Pricci et al. have proposed a mathematical model to describe the process from solid pellets to melt. The mathematical approach has been validated with numerical simulation and an experimental study [
24]. Their numerical simulation is based on the CFD approach. Pham et al. also studied the rheological properties of PLA in the MEX process using the CFD numerical simulation [
25]. The melting profile, pressure drop, and viscosity in the nozzle have been determined using the CFD-VOF approach and Ansys software [
20]. Gharehpapagh et al. experimentally studied the concept of dynamically changing the width of the bead in the MEX process [
26]. They investigated the bead geometry with a rectangular orifice. They have concluded that bead geometry could be controlled by controlling the orientation of the rectangular orifice [
26].
To the best of our knowledge, there is no study in the literature on the 3D modeling of material deposition using LS equations. The objective of this article is to use the TPF-LS approach to model the influence of printing parameters such as layer height, nozzle diameter, inlet velocity, and travel speed on the shape of the deposited bead. In practice, users do not define the material inlet velocity in parameter settings of slicing software. Therefore, an equation is proposed to determine the inlet velocity in the nozzle according to the printing parameters, filament diameter, and nozzle diameter. The geometry of the deposited bead derived from numerical simulations is compared with experimental printed beads. Since 3D modeling using the LS equations is computationally demanding, a comparison between 2D numerical simulation and 3D is carried out with the same inputs and boundary conditions to evaluate whether 2D modeling would result in the same output.
To visualize the set of parameters and variables involved in this study and their relationships, a colored directed graph is developed using the dimensional analysis conceptual modeling (DACM) framework [
27], shown in
Figure 1. Causal graphs are oriented graphs in which the nodes represent the variables/parameters, and the orientation of edges shows the causality relationship between the variables. Note that this oriented graph is not unique; different similar graphs can be developed depending on the study focus, required details, adopted assumptions, process, and intended objectives. To build a causally oriented graph, the DACM framework classifies the variables into four main color-coded categories. The independent variables (shown in green) are input process parameters or independent design variables that can be freely set by the designer or modeler. The independent variables are not influenced by any other variables in the system of interest. In the scope of this research, the independent variables are the variables describing nominal geometrical values of the extrudate, thermal conditions, and other process parameters. The variables describing nominal geometrical values of the extrudate are layer height (H
i), intended initial width of the bead (W
i), and intended length of the bead (L
i). The nominal geometrical parameters and slicer printing parameters are used to calculate the filament inlet velocity (IV). Thermal condition is defined by different temperature points set on the machine, namely, printing temperature (T
p), substrate temperature (T
s), and the temperature of the printing chamber (T
c). Nozzle travel speed (TS) and filament diameter (D) are also independent variables that define filament inlet velocity (IV). The exogenous variables (shown in grey) refer to the variables outside the borders of the system or scope of the study. The exogenous variables are the variables that are kept fixed or imposed on the system. The material properties as well as the nozzle-related variables are considered exogenous variables in the oriented graph. Material properties are considered fixed values in this study as a modeling assumption. Dependent variables (shown in blue) are influenced by other variables, such as exogenous and independent variables. The dependent variables can be controlled indirectly. Among the dependent variables, the inlet velocity (IV) is determined by TS, L
i, and the extruder increment (E). The extruder increment (E) is the length of the filament entering the extruder for a given length. The extruder increment (E) is determined by slicing software based on D and the required volume of the extrudate (V). Viscosity (η) is influenced by the temperature of the deposited bead (T
b) and shear rate in the nozzle (
) and is used to determine the width of the deposited bead (W) together with other parameters shown in the oriented graph. In the current research, viscosity calculated by Carreau–Yasuda model is used instead of constant viscosity. The performance variables (shown in red) are the ultimate objective of the design and modeling task. The performance variables are selected by the designer or modeler as a performance indicator of the system of interest. In the current study, deposited bead (W) is the performance parameter. This oriented causal graph is used as a knowledge representation tool to describe the influencing parameters in the problem of interest.
The remainder of this paper is structured as follows:
Section 2 describes the material characterization and overall methodology applied in this research. More specifically,
Section 2 focuses on the material characterization of PLA and describes the experimental study and numerical simulation of material deposition.
Section 3 articulates the results of the numerical simulations and experimental validation. This section first discusses the accuracy of the developed model in determining the geometry of the deposited bead width. Comparing the geometry of the deposited bead derived from simulation with the experimental study validates the numerical simulation. The numerical simulation then focuses on the influence of viscosity on the shape of the extrudate (deposited bead). Last, the section compares the results of 2D and 3D numerical simulations.
Section 4 concludes the main findings of this research.
3. Results and Discussion
This section focuses on analyzing the results of the numerical simulation and discussing the model validation. The contributions of this research to understanding the MEX process are summarized as follows: (1) determining the geometry of the deposited bead (extrudates) in the MEX process using LS approach numerical modeling; (2) determining the influence of the viscosity on the deposited bead using numerical modeling; and (3) comparing 2D and 3D numerical modeling. Therefore, a subsection is dedicated to each of these contributions.
Note that for the sake of consistency and conciseness, the machine parameter settings used in the case studies are reported in the form of a chain of the variable acronym (symbol) followed by the associated set values, without any space between parameters and values. For instance, dn0.4TS20IV25 indicates that dn = 0.4 mm, TS = 20 mm·s−1, and IV = 25 mm·s−1.
3.1. Geometry of the Deposited Bead
The width of the deposited bead is a performance variable that is influenced directly by the printing parameter settings, machine accuracy, and other parameters defined in the slicing software. To determine the influence of printing parameters on the geometry of the deposited bead, the deposition of a single bead on a moving platform is modeled by numerical simulation and validated by experimental study. The influence of IV and TS on W is also determined by the experimental study for d
n = 0.4 mm and H
i = 0.3 mm.
Table 3 summarizes the results of the bead width and compares the values from both simulation and experimental measurements.
Table 3 also represents the deviation between the simulation and experimental measurements for each experiment. Note that, with the current machine configuration, the printing with TS/IV ratio above 1.25 is not feasible experimentally, hence these experiments are excluded from
Table 3. Obtained results show an average error of 5.92% in predicting bead width.
The rest of the analysis is carried out in the following cases to evaluate the effect of IV and TS. For the first case, TS is considered constant (fixed at 20 mm·s
−1) and IV is variable. For the second case, IV is fixed at 20 mm·s
−1 and TS is variable. The ratio of TS to IV (π
1) enables comparing these two cases.
Figure 7 compares the numerical simulation and experimental study results for these two cases. For both cases, increasing the ratio of TS to IV (π
1) leads to an increase in W. The obtained values for W found by numerical simulation have particularly good agreement with experimental studies, with an average error of 5.9% for the first series of experiments (first case) and an average error of 5.8% for the second series of experiments (second case). The small deviation between the expected and real value is mainly due to the uncertainty of the printed bead with a RepRap printer and systematic errors such as image measurement. Experimentally, it is not possible to determine W for TS to IV ratio (π
1) above 1.25 due to poor contact of the deposited bead and platform and detachment of the bead during deposition. The same behavior is observed in the second case experiments. Poor contact between the deposited bead and the platform is also observed in the numerical simulation. The results of the numerical simulation and experimental study suggest that improving the adherence between the deposited bead and deposition platform requires decreasing TS and H
i and increasing IV. Superposing the two curves shown in
Figure 7 reveals that the width of the bead is dependent on the π
1 ratio and is independent of the value of TS or IV. This implies that TS and IV do not influence the bead’s geometry as long as the π
1 is constant.
Figure 8 represents the accordance of the results of numerical simulation and experimental study in predicting the shape of bead geometry for the two selected case studies.
Figure 9 illustrates the influence of the H
i and d
n on the width of the bead combined with TS and IV. Since d
n 0.3 and d
n 0.4 are commonly used in the MEX process, two levels were selected to determine the effect of d
n on W. The obtained results from the numerical simulation show that increasing d
n results in a wider bead while increasing H
i leads to a narrower bead. This is due to the insufficiency of the extruded material to fill the gap between the nozzle and the substrate. This results in the deterioration of the bead/substrate adherence and delamination of the layers. Therefore, a larger H
i and a smaller d
n are not recommended for the higher TS. As a rule of thumb, H
i should be equal to or smaller than d
n, and the π
1 ratio should be below one (1) when H
i is bigger than d
n. Contrary to the π
1 ratio, the same π
2 ratio does not generate the same W. For instance, the red curve and green curve illustrated in
Figure 9 have the same π
2 value; however, they do not result in the same W.
3.2. Influence of Viscosity on the Geometry of the Deposited Bead
This section investigates the influence of viscosity on the shape of the deposited bead by numerical simulation.
Figure 10 shows the effect of different values of viscosity on the shape of the deposited bead. Three case studies, including the Carreau–Yasuda viscosity equation, constant viscosity below 0.1 Pa·s, and high constant viscosity of 1000 Pa·s, have been investigated. The molten polymer at low viscosity (e.g., 0.1 Pa·s) cannot keep its shape as a bead and eventually spreads on the substrate due to the gravity force. Increasing the viscosity above 10 Pa·s allows the polymer to keep its shape. It is observed that above 10 Pa·s shape of the deposited bead remains relatively constant, meaning that the shape of the deposited bead with 100 Pa·s and 1000 Pa·s is practically the same. This observation is in line with the numerical model developed by Comminal et al. [
21]. The shape of the deposited bead with constant viscosity is compared with the model developed based on the Carreau–Yasuda viscosity represented in Equation (1). This comparison shows a minor difference between the shape of the deposited beads. According to the numerical simulation, the influence of viscosity on the geometry for the viscosity higher than 10 Pa·s is negligible.
The conclusion derived from Equations (2) and (3) indicates that the velocity field and shear rate in the nozzle are dependent on the IV, dn, and n from the Carreau–Yasuda equation. Other parameters from the Carreau–Yasuda equation (ηinf, η0, a, λ) do not influence the shear rate and velocity field in the nozzle. Furthermore, the influence of pseudoplasticity index (n) on the velocity field and shear rate is negligible compared with IV and dn. Consequently, the shape of the bead is independent of the amplitude of the viscosity during deposition. However, for the lower viscosities (less than 10 Pa·s), the applied gravity force on the deposited bead is greater than superficial forces and it causes the spread of polymer on the substrate. Furthermore, even in the case of considering the effect of pseudoplasticity index (n) by inserting viscosity as the Carreau–Yasuda equation, its influence is negligible on the velocity field and shear rate of the nozzle. When polymer melts exit from the nozzle, it is not in contact with the internal nozzle diameter, so immediately after exiting from the nozzle, the shear rate and velocity field are reduced toward zero (and viscosity is equivalent to the viscosity at the terminal regime). As a result, the shape of the bead is independent of the viscosity.
However, it is necessary to use the Carreau–Yasuda model to determine the shear rate in the nozzle and after deposition since the viscosity parameters (n and a) highly influence the shear rate. In addition to shear rate, viscosity influences the coalescence of the adjacent beads and layers [
5]. Hence, it is essential to accurately determine the shear rate and, therefore, viscosity during the deposition.
3.3. Comparison between 2D and 3D Numerical Simulation
Numerical simulation of material deposition in 3D is computationally demanding and extremely sensitive to the accuracy of the boundary conditions definition and modeling. This motivates us to seek an alternative simpler modeling approach to measure the intended properties. This section aims to compare the modeling capability and accuracy of the 2D and 3D numerical simulations. The boundary conditions for 2D simulation are available in our previous publication [
29]. Contrary to the 3D simulation, which allows the modeling of the height and width of the deposited bead in a single simulation, the modeling of height and bead in 2D requires two separate simulations.
Due to this limitation of 2D simulation, the simulations are compared along the length of the bead by keeping the printing parameters constant. The results of the numerical simulations are visualized on a cross section in the XZ plane, which passes through the middle of the bead. Obviously, the 3D simulation is computationally more demanding than the 2D simulation, due to the increased number of mesh applied to the 3D model. The computational efficiency of 2D simulation allows us to define finer mesh sizes. The finer mesh size leads to a more accurate interface in 2D simulation compared with 3D simulation with a coarser mesh size. It is also possible to reduce the interfacial thickness parameter (ε
Is) to make the interface even more accurate when the objective is to determine other properties such as heat transfer. In this study, a total of 14,284 triangle meshes with an average size of 0.0174 mm and a total number of 833,448 tetrahedra meshes with an average size of 0.0306 mm were used for 2D and 3D simulations, respectively. Despite the finer mesh size in 2D simulation, the 3D simulation took considerable time to be completed. It took approximately 12 h to complete 3D simulation and only around 1 h for 2D simulation using a desktop computer with the following specifications: Core i7-7700HQ CPU @ 2.80Hz and 32 GB RAM. The comparison between the shape of the bead modeled with 2D and 3D simulation reveals an enormous difference between the results, as shown in
Figure 11. The simulation of the 2D model shows systematically more deposited material than the 3D model with the same parameter settings. This is mainly due to neglecting one of the dimensions in 2D simulation.
Even though 2D simulation is not suitable for predicting bead width, 2D simulations are still an effective approach in modeling parameters such as velocity field and shear rate.
Determination of properties such as transfer and kinetics of crystallization requires the simultaneous computation of several physics. Three-dimensional simulation is less effective for modeling these coupled properties since the model becomes too heavy to compute. In addition, lighter computational requirements for 2D simulations allow using finer mesh size in 2D simulation compared with 3D simulation. Using finer mesh size in 2D simulations leads to a more accurate interface near the interface of polymer and air. In the coupled simulations where several physics are involved, an inaccurate interface leads to deviation in the obtained results [
29].