1 Introduction

Additive manufacturing (AM) is a manufacturing technology increasingly used for various applications. In AM, a computer-aided design (CAD) model is created first and then manufactured by depositing a material layer by layer [1]. One major benefit of the AM process is that the manufacture of a three-dimensional (3D) object is relatively quick compared to that in the traditional manufacturing process [2]. AM methods that are broadly used include laser powder bed fusion (LPBF), vat photo-polymerization (VPP), material jetting, and material extrusion [3]. Of these methods, material extrusion is growing in popularity. Industrial sectors such as the automotive, aerospace, and biomedical equipment industries have heavily invested in adopting material extrusion due to its numerous advantages [4].

In studies of AM, sustainable AM is one of the most active research topics. Despite the ongoing global COVID-19 pandemic, the additive manufacturing industry expanded by 7.5% to roughly $12.8 billion in 2020 [5]. The use of 3D printers increased by 48% in 2020 compared to 2018, with sales of about 2.1 million 3D printers worldwide [6]. Also, 15.3 million units of 3D printers are predicted to be sold by 2028. Correspondingly, a significant rise in the energy consumption (EC) and related electricity costs of AM facilities is likely to occur in upcoming years.

Electricity costs in manufacturing mainly consist of an energy charge and a demand charge for each billing period [7]. An energy charge is calculated using total EC in kilowatt hours (kWh), while a demand charge is calculated using the peak power demand in kilowatts (kW) [8]. Thus, it is important to clearly understand the dynamics of the total kWh and peak kW during printing in order to keep energy costs lowered in an AM system.

Existing studies of material extrusion largely focused on process parameter optimization [9, 10]. Also, a considerable number of studies have conducted experiments to observe the effect of important AM process parameters on energy performances. For example, the effects of build orientations [11,12,13], part geometry [11], layer thickness [12,13,14,15,16,17], printing speed [14, 17], and infill percentages [18, 19] on EC have been well investigated. The majority of those studies, however, only perform experiments [11,12,13,14,15,16,17] that show the relationship between process parameters and performance measures in a summarized model without suggesting specific applications. For example, various regression [16], statistical [17], and mathematical [13, 20] studies have suggested equivalent specific energy consumption (SEC) models or material addition rate (MAR) models based on AM parameters. These studies, however, do not consider useful applications that can be made based on their experiments. An energy simulation method can estimate peak kW and total kWh from AM parameters that are not readily available in analytical studies [21]. Relevant studies demonstrate that EC drops, and average cycle time (time to complete processing a part from the start to the end of the process) rises at lower machine utilization [22]. Thus, applications of AM energy models, such as those that consider the various trade-offs between average cycle time and EC, would be beneficial to both industrial practitioners and academic scholars.

Performance measures of material extrusion are largely impacted by the selection of feedstock [23]. Frequently used feedstocks such as acrylonitrile–butadiene–styrene (ABS) and polylactide (PLA) have been extensively studied. In recent years, carbon fiber–reinforced poly-ether-ether-ketone (CFR-PEEK) has emerged as another option, as parts printed using CFR-PEEK exhibit superior mechanical properties when compared to ABS and PLA [24, 25]. Despite the advantages of CFR-PEEK, parts printed using it require additional time to finish printing [26] and thereby increase EC. A few studies investigate the relationship among AM process parameters, the manufacturing performance [26, 27], and the optimal mechanical properties [28, 29] of CFR-PEEK parts. However, studies that examine the effects of process parameters on energy performances and the productivity of material extrusion using CFR-PEEK are limited.

Various studies suggest that power demand during material removal processes such as milling, turning, and drilling processes can be estimated from material removal rates (MRR). The power demand of a machine consists of the minimum fixed power required to run the machine and the variable cutting power necessary for material removal [30, 31]. Hence, average power (W) can be written as \(W={b}_{0}+{b}_{1}\times MRR\), where \({b}_{0}\) and \({b}_{1}\) are constants. SEC of a machine tool can also be characterized using MRR [31]. Thus, MRR is applied as an important parameter during the energy study of material removal processes. Similarly, MAR can be considered for AM processes to calculate the power demand of machines.

An energy model using MAR can be integrated with a simulation model to calculate performance measures of material extrusion. MAR can be calculated from build time, as MAR is inversely related to build time. Zhu et al. [32] proposed build time models based on both the parametric and experimental methods by considering volume, height, and density as printing parameters of material extrusion. Komineas et al. [33] demonstrated a model to estimate build time by applying a trapezoidal velocity profile, taking into account the effects of acceleration and deceleration during the extruding nozzle movement as well.

Trade-off analyses between AM performance measures can be crucial to manufacturers with regard to operational perspectives. Park et al. [26] showed that the printing time was lowest for a 0.3-mm layer thickness, while dimensional accuracy and material costs were relatively higher. Kose et al. [34] studied the trade-off between productivity and part quality to optimize various process parameters in a powder bed–based AM process. Previous studies in subtractive manufacturing widely discussed the key trade-offs among average cycle time, EC, and energy costs [35, 36]. However, the trade-off between energy performances and average production cycle time has received less attention in the prevalent AM research.

To address and bridge the aforementioned research gaps, we propose an energy simulation approach to analyze trade-offs between average cycle time and energy costs based on experimental results. More specifically, we conducted a set of experiments in which a specimen was printed to estimate power as a function of material extrusion process parameters. To build a material extrusion power model, we used MAR as a process parameter instead of individual material extrusion process parameters because MAR can represent multiple material extrusion process parameters as a single compound variable. For feedstock, we used CFR-PEEK, which is increasingly used in various disciplines. Based on the experimental results, material extrusion power was then modeled as a regression equation in which power was written as a function of MAR. To provide an application of MAR regression models, a hypothetical AM facility with 50 parallel material extrusion machines was simulated. In this simulation, discrete event simulation (DES) and numerical simulation methods were combined so that time series power profiles could be generated at the equipment and facility levels for all simulated scenarios. Simio [37] was used to perform DES, and MATLAB [38] was used to conduct a numerical simulation in this study. Then, average cycle time and relevant energy performance measures such as peak kW, total kWh, and associated energy costs were calculated for each scenario. For the simulation, we also proposed a new control policy for material extrusion to reduce the peak kW during heating by limiting the number of machines in that state. Finally, we analyzed an important trade-off between average cycle time and energy costs from experimental and simulation results. Our work can contribute to industrial as well as academic communities by providing a simulation tool that can help manufacturers and researchers find a balance between the average cycle time and energy costs to reduce the overall production costs of AM facilities.

2 Material and methods

2.1 AM power

A sample energy profile of material extrusion during the three states of heating, building, and cooling is presented in Fig. 1. This energy profile was obtained using the Apium P220 [39] as a material extrusion machine for fabricating CFR-PEEK products (2 \(\times\) 1 \(\times\) 1 cm3) with a layer thickness of 0.1 mm and print speed of 1,000 mm/min. The feedstock employed in our experiment was TECAPEEK CF30 [40, 41], an industrial-grade CFR-PEEK filament compatible with the Apium P220 printer. The figure shows an example of power measured by Wattman HPM-100A power meter logger [42] for each time point in the time horizon and demonstrates the average power of the material extrusion machine in each of the three states. In heating, the first state, the machine increases the temperature to a certain level on the build platform and extruding nozzle and then maintains it. In building, the second state of material extrusion, the extruded materials are deposited in layers by the extruding nozzle. Finally, in cooling, the third state, the printed product is cooled down and further processed into a finished product. \({W}_{h}\), \({W}_{b}\), and \({W}_{c}\) represent the average power in the heating, building, and cooling states, respectively. Note that power demands during the heating and cooling states barely change over time. Therefore, we assumed that the power demands during those two states were constant in this study.

Fig. 1
figure 1

States of a material extrusion machine with (a) instantaneous and (b) average power for one printing cycle

2.2 AM power models with MAR

2.2.1 Process parameters

In this study, we analyzed the average power of material extrusion machines by considering two process parameters: layer thickness and printing speed. We focused on these two process parameters because we believed that they would considerably influence the performance measures of material extrusion machines [18]. Five different layer thicknesses (0.1, 0.15, 0.2, 0.25, and 0.3 mm) and six different printing speeds (1000, 1100, 1200, 1300, 1400, and 1500 mm/min) were considered in our experiments. Table 1 shows the different levels of layer thickness and printing speed, as well as other fixed process parameters, used in our experiments.

Table 1 Process parameters in the experiments

2.2.2 Specimen modeling and fabrication

The single test specimen used in our experiments has dimensions of 2-cm length (A), 1-cm width (B), and 1-cm height (C). To compare the energy performance of material extrusion during fabrication of the same specimen, we considered two different orientations: \({0}{^\circ }\) (2 \(\times\) 1 \(\times\) 1 cm3) and \(9{0}{^\circ }\) (1 \(\times\) 1 \(\times\) 2 cm3), as presented in Fig. 2. The specimen was printed with CFR-PEEK by varying the layer thickness and printing speed for each orientation during material extrusion. We prepared and modeled the specimen using a computer-aided design (CAD) application, from which an STL file was generated. The file was then read by a slicer application (Simplify3D) [43] and further processed in the material extrusion machine. A brim was used as a supporting base for the finished product during the deposition of the first layer, as it enhances product quality by minimizing deformation during the printing process [44].

Fig. 2
figure 2

A specimen with (a) orientation and (b) orientation and respective brims

2.2.3 Design of experiment (DOE)

We designed our experiment by considering five levels of layer thickness and six levels of printing speed. In this study, the continuous factors are levels of both layer thickness and printing speed. Overall, we performed 30 experiments (five layer thicknesses \(\times\) six printing speeds) in random order to examine the effects on the responses for each orientation of the specimen. We considered a set of responses: build time, filament volume, and EC. Since the time required by the material extrusion machine during the warm-up phase before extrusion was nearly constant throughout the process, variables related to the warm-up phase were not considered as response variables in DOE. Build time as well as filament volume for each part were recorded by the material extrusion machine during the experiments. A power-meter logger, Wattman HPM-100A, was used to measure EC during material extrusion [42]. The response variables are summarized in Table 2.

Table 2 Responses examined in the experimental design

2.2.4 MAR models

MAR can be used to estimate average AM power, similar to the use of MRR in subtractive manufacturing processes. Using the relationship between build time (\({t}_{b}\)) and filament volume (\({V}_{f}\)), MAR can be expressed as shown in the following equation:

$$MAR=\frac{{V}_{f}}{{t}_{b}}$$
(1)

Also, average build power (\({W}_{b}\)) can be expressed as a linear function of MAR:

$${W}_{b}={b}_{0}+{b}_{1}\times MAR$$
(2)

In Eq. (2), \({b}_{0}\) and \({b}_{1}\) are constants. The values of these constants were estimated using a regression model based on the experiments in this study, as will be discussed later. Based on 30 sets of experiments with various treatments of layer thickness and printing speed, we measured EC (\({Wh}_{b})\) and \({t}_{b}\) during the building state of material extrusion. Therefore, \({W}_{b}\) can also be calculated using the following equation:

$${W}_{b}=\frac{{Wh}_{b}}{{t}_{b}}$$
(3)

2.3 Simulation models of AM power

We propose a method to simulate the power of material extrusion at the facility level. Our proposed method is illustratively summarized in Fig. 3 and described further on what follows.

Fig. 3
figure 3

Power demand and EC simulation for material extrusion machines using our proposed method

2.3.1 Build time estimation model

The build time of material extrusion can be characterized by the amount of time needed by a machine to complete the fabrication of a product [32]. Build time varies with the different process parameters involved in the printing process as well as the geometrical shape and orientation of parts. Acceleration and deceleration of the extruding nozzle and infill percentages are also taken into account by including layer thickness and printing speed as process parameters in the build time estimation model [32, 33]. Table 3 describes the process parameters and their measurement units.

Table 3 Process parameters of material extrusion

The time required during the extrusion process can be defined as the extrusion time of the material extrusion machine (\({t}_{b,ex}\)). After the completion of one layer, the extruding nozzle moves back to its initial position to start the extrusion for the next layer. During this movement of the nozzle, no extrusion occurs, and the time required for the nozzle movement can be defined as the non-extrusion time of the machine (\({t}_{b,nex}\)). Therefore, total build time (\({t}_{b}\)) can be represented as follows [32, 33]:

$${t}_{b}={t}_{b,ex}+{t}_{b,nex}$$
(4)

The delay time (\({t}_{b,d}\)) during extrusion is included in the build time estimation model to account for the additional time needed for each layer to solidify before depositing the next layer [45]. Hence, \({t}_{b,ex}\) is comprised of the time the extruding nozzle moves at constant speed (\({t}_{b,c}\)), the time during the acceleration and deceleration of the extruding nozzle (\({t}_{b,a}\)), the filament retraction time (\({t}_{b,r}\)), and \({t}_{b,d}\). Therefore, \({t}_{b,ex}\) can be expressed by the following equation:

$$\begin{aligned}{t}_{b,ex}&={t}_{b,c}+{t}_{b,a}+{t}_{b,r}+{t}_{b,d}=\left(\frac{{l}_{1}\times {w}_{1}\times {I}_{p}}{{v}_{ps,1}\times {w}_{ex,1}}\times \frac{{h}_{1}}{{l}_{t,1}}+\frac{{l}_{r}\times {w}_{r}\times {I}_{p}}{{v}_{ps,r}\times {w}_{ex,r}}\times \frac{{h}_{r}}{{l}_{t,r}}\right)\\&+\frac{{v}_{ps}}{{a}_{xy}}+\frac{2\times {l}_{fr}}{{v}_{fr}}+\frac{{t}_{i,d}\times {h}_{d}}{{l}_{t,d}}\end{aligned}$$
(5)

where

\({l}_{1}\) = part length for producing the first layer, mm

\({w}_{1}\) = part width for producing the first layer, mm

\({h}_{1}\) = part height for producing the first layer, mm

\({I}_{p}\) = infill percentage (%)

\({v}_{ps,1}\) = printing speed in XY plane for producing the first layer, mm/min = 20% \(\times\) \({v}_{ps}\)

\({v}_{ps}\) = printing speed in XY plane, mm/min

\({w}_{ex,1}\) = extrusion width for producing the first layer, mm = 130% \(\times\) \({l}_{t,1}\)

\({l}_{t,1}\) = layer thickness for producing the first layer, mm = 0.1 mm

\({l}_{r}\) = part length for producing the remaining layers, mm

\({w}_{r}\) = part width for producing the remaining layers, mm

\({h}_{r}\) = part height for producing the remaining layers, mm

\({v}_{ps,r}\) = printing speed in XY plane for producing the remaining layers, mm/min = \({v}_{ps}\)

\({w}_{ex,r}\) = extrusion width for producing the remaining layers, mm

\({l}_{t,r}\) = layer thickness for producing the remaining layers, mm

\({a}_{xy}\) = acceleration or deceleration in XY plane, mm/min2

\({l}_{fr}\) = length of the retracted filament, mm

\({v}_{fr}\) = filament retraction speed, mm/min

\({t}_{i,d}\) = interval between each printing cycle, min

\({l}_{t,d}\) = layer thickness of each layer, mm

\({h}_{d}\) = part height without the first layer, mm

The \({w}_{ex,1}\) and \({v}_{ps,1}\) values are based on the settings of the slicing software (Simplify3D) used to print 2 \(\times\) 1 \(\times\) 1 cm3 and 1 \(\times\) 1 \(\times\) 2 cm3 blocks. The non-extrusion build time (\({t}_{b,nex}\)) consists of two portions: extruding nozzle movement time and extruding nozzle repositioning time in the XY plane [32]. In order to calculate the extruding nozzle movement time in the XY plane during the non-extrusion process, we calculate the displacement in the X-axis (\({l}_{nm,x}\)) and the Y-axis (\({l}_{nm,y}\)) with the extruding nozzle repositioning speed (\({v}_{xy}\)). For the extruding nozzle repositioning time calculation in the X, Y, and Z directions, we consider \({a}_{xy}\) and \({v}_{xy}\). Thus, the equation of \({t}_{b,nex}\) is as follows:

$${t}_{b,nex}=\frac{{l}_{nm,x}+{l}_{nm,y}}{{v}_{xy}}+\frac{{v}_{xy}}{{a}_{xy}},$$
(6)

where

\({l}_{nm,x}\) = extruding nozzle displacement in X-axis during the non-extrusion process, mm

\({l}_{nm,y}\) = extruding nozzle displacement in Y-axis during the non-extrusion process, mm

\({v}_{xy}\) = extruding nozzle repositioning speed during the non-extrusion process, mm/min

\({a}_{xy}\) = extruding nozzle repositioning acceleration during the non-extrusion process, mm/min2

Finally, \({t}_{b}\) can be represented as follows:

$${t}_{b}=\frac{{l}_{1}\times {w}_{1}\times {I}_{p}}{{v}_{ps,1}\times {w}_{ex,1}}\times \frac{{h}_{1}}{{l}_{t,1}}+\frac{{l}_{r}\times {w}_{r}\times {I}_{p}}{{v}_{ps,r}\times {w}_{ex,r}}\times \frac{{h}_{r}}{{l}_{t,r}}+\frac{{v}_{ps}}{{a}_{xy}}+\frac{2\times {l}_{fr}}{{v}_{fr}}+\frac{{t}_{i,d}\times {h}_{d}}{{l}_{t,d}}+\frac{{l}_{nm,x}+{l}_{nm,y}}{{v}_{xy}}+\frac{{v}_{xy}}{{a}_{xy}}$$
(7)

2.3.2 Facility level power model

To simulate the facility level power model, we consider a hypothetical AM shop. We define \({W}_{i,t}\) as the time series power demand of each material extrusion machine, where i is the index of the machine and t is time. Then, the power demand at the facility level can be calculated by accumulating the power demand of each machine in the facility. If N machines are operating in an AM facility, the facility level power (\({X}_{t}\)) at t can be expressed as follows:

$${X}_{t}={\sum }_{i=1}^{N}{W}_{i,t},$$
(8)

where \({W}_{i,t}\) = time series power demand of material extrusion machine i at time t.

Figure 4 shows an example power profile of two parallel material extrusion machines.

Fig. 4
figure 4

Power profile example of two material extrusion machines at the equipment level and the facility level

We developed and applied a DES model in this study to account for multiple material extrusion machines. Using the DES model, we considered various simulation configurations. In our study, the model is based on a simple queueing model. The interarrival time (IAT) of the queueing model is determined with the machine utilization information defined in simulated scenarios. Also, the processing time of the queueing model is based on the average heating time, average build time, and average cooling time from the experiments. IAT and processing time are then defined using various probability distribution functions for the simulation. By using DES, we can obtain the departure time (\({t}_{d}\)) of each finished product from the material extrusion machine. Then, the power demand at the equipment level and the facility level is calculated by using a numerical simulation approach based on \({t}_{d}\), which is obtained from DES. During the numerical simulation, the power demand for each machine at a specific time moment is calculated, and the power demand of all machines in the facility can be obtained by calculating the total sum of the power demand of every machine, as shown in Eq. (8). The simulation approach is briefly described in Table 4.

Table 4 Simulation steps to estimate equipment level and facility level power demand

2.4 Material extrusion machine control strategy

A control strategy can be developed and adopted if one material extrusion status requires more kilowatts than another. For example, we restrict the number of material extrusion machines that can enter the heating state at the same time. This strategy lowers the demand charge at the facility level because the heating state requires more power than the building and cooling states. On one hand, if we make more products in a shorter average cycle time, we are likely to pay higher energy costs due to higher demand charges. On the other hand, if we control the number of machines entering the heating state to keep the demand charge lowered, more raw materials will be waiting, and the average cycle time will become longer. Thus, the throughput will be compromised, leading to greater productivity loss. Then, a trade-off analysis between the average cycle time and energy costs can be conducted using a set of control strategies to limit the number of machines in the heating state.

3 Results and discussion

3.1 Power models with MAR

We performed an ANOVA analysis on the results obtained from the experiments in our DOE. As discussed earlier, we performed two different sets of experiments for \({0}^{^\circ }\) (2 \(\times\) 1 \(\times\) 1 cm3) and \(9{0}^{^\circ }\) (1 \(\times\) 1 \(\times\) 2 cm3) orientations of the specimen to examine energy performances while printing identical specimens. Therefore, the results from both sets of experiments are integrated into a combined regression model that expresses kilowatts as a function of MAR.

Tables 56 and 7 present the values of the intercept and the coefficient of MAR in the individual and combined regression models of average build power (\({W}_{b}\)) for the 2 \(\times\) 1 \(\times\) 1 cm3 and 1 \(\times\) 1 \(\times\) 2 cm3 blocks. The tables also present the p values of the t-statistics and R2 values for MAR. The p value indicates that MAR is statistically significant at a 5% level in both the individual and the combined regression models.

Table 5 Parameter estimates for the regression model of \({W}_{b}\) for the 2 \(\times\) 1 \(\times\) 1 cm3 block
Table 6 Parameter estimates for the regression model of \({W}_{b}\) for the 1 \(\times\) 1 \(\times\) 2 cm3 block
Table 7 Parameter estimates for the combined regression model of \({W}_{b}\)

In Fig. 5, MAR is presented on the horizontal axis and \({W}_{b}\) on the vertical axis. The regression equation for estimating \({W}_{b}\) of the 2 \(\times\) 1 \(\times\) 1 cm3 block can be expressed as follows:

Fig. 5
figure 5

Estimated average build power from the individual and combined MAR regression models

$${W}_{b,2\times 1\times 1}=195.1+6.57 MAR$$
(9)

where

\({W}_{b,2\times 1\times 1}\) = average build power for printing the 2 \(\times\) 1 \(\times\) 1 cm3 block, watts

MAR = material addition rate for printing the 2 \(\times\) 1 \(\times\) 1 cm3 block, mm3/s

Also, the regression equation for estimating \({W}_{b}\) of the 1 \(\times\) 1 \(\times\) 2 cm3 block can be expressed as follows:

$${W}_{b,1\times 1\times 2}=196.4+10.24 MAR$$
(10)

where

\({W}_{b,1\times 1\times 2}\) = average build power for printing the 1 \(\times\) 1 \(\times\) 2 cm3 block, watts

MAR = material addition rate for printing the 1 \(\times\) 1 \(\times\) 2 cm3 block, mm3/s

Finally, a regression equation for the combined model can be expressed as follows:

$${W}_{b,combined}=196.18+8.04 MAR$$
(11)

where

\({W}_{b,combined}\) = average combined build power, watts

MAR = material addition rate, mm3/s

As shown in Fig. 5, the combined regression line is located between the two regression lines corresponding to the two orientations of the specimen. As discussed, heating and cooling power are stable in the process. Thus, the combined heating power is calculated by considering the average heating power obtained before the material extrusion of the 2 \(\times\) 1 \(\times\) 1 cm3 block and the 1 \(\times\) 1 \(\times\) 2 cm3 block. Combined cooling power is calculated by following a similar approach. Hence, the combined heating power (\({W}_{h,combined}\)) and the combined cooling power (\({W}_{c,combined}\)) are \({W}_{h,\mathrm{combined}}=319.5 W\) and \({W}_{c,\mathrm{combined}}=51.5 W\), respectively. These values were obtained when printing CFR-PEEK parts using material extrusion on an Apium P220 machine in accordance with the design specified in this study.

3.2 Illustrative examples with simulation models

3.2.1 Estimation of build time

In this section, we discuss the build time estimation model from Subsect. 2.3.1 using a numerical example. We estimated the printing time for our simulation models using \({l}_{t}\) = 0.1 mm and \({v}_{ps}\) = 1,500 mm/min. The build time measured in the experiments was \({t}_{m}\)= 2,804 s. Once the values of all the relevant parameters are plugged into Eq. (7), the following estimation can be obtained:

$$\begin{aligned}{t}_{b}&=\frac{{l}_{1}\times {w}_{1}\times {I}_{p}}{{v}_{ps,1}\times {w}_{ex,1}}\times \frac{{h}_{1}}{{l}_{t,1}}+\frac{{l}_{r}\times {w}_{r}\times {I}_{p}}{{v}_{ps,r}\times {w}_{ex,r}}\times \frac{{h}_{r}}{{l}_{t,r}}+\frac{{v}_{ps}}{{a}_{xy}}+\frac{2\times {l}_{fr}}{{v}_{fr}}+\frac{{t}_{i,d}\times {h}_{d}}{{l}_{t,d}}+\frac{{l}_{nm,x}+{l}_{nm,y}}{{v}_{xy}}+\frac{{v}_{xy}}{{a}_{xy}}\\&=\frac{20\times 10\times 1}{(0.2\times \frac{\mathrm{1,500}}{60})\times (1.3\times 0.1)}\times \frac{0.1}{0.1}+\frac{20\times 10\times 1}{\frac{\mathrm{1,500}}{60}\times 0.48}\times \frac{9.9}{0.1}+\frac{\frac{\mathrm{1,500}}{60}}{\mathrm{1,500}}\times \frac{10}{0.1}+\frac{2\times 2}{70}\times \frac{10}{0.1}+\frac{8.1\times 9.9}{0.1}+\frac{20+10.24}{\frac{\mathrm{4,800}}{60}}\times \frac{10}{0.1}+\frac{\frac{\mathrm{4,800}}{60}}{\mathrm{1,500}}\times \frac{10}{0.1}\\&=\mathrm{2,810} s\end{aligned}$$

The values of most of the above parameters can be obtained directly from the process parameters and printer settings. However, we estimated the values of a few parameters such as \({t}_{i,d}\) and \({l}_{nm,y}\). Given a layer thickness of 0.1 mm and a speed of 1,500 mm/min for the 2 \(\times\) 1 \(\times\) 1 cm3 block, the printing time of each layer was estimated at around 17 s, without considering any interval between two consecutive printing cycles. However, a delay time of about 20 to 30 s would be required for the recently deposited layers to solidify and form an adequate base for the next layer [46]. Therefore, we assumed an interval of around 8 to 10 s between two printing cycles and modified the settings in the slicer software accordingly. Hence, total printing time to complete the deposition of one layer (\({t}_{i,d}\)) with a layer thickness of 0.1 mm and a printing speed of 1,500 mm/min was assumed to be 25 s (= 17 + 8) for this experiment. During material extrusion, sufficient clearance must be maintained between the last deposited layer and the next layer to be deposited. Correspondingly, we adjusted the extruding nozzle displacement setting in the slicer software to prevent overlapping between concurrent printed layers. Thus, we conservatively assumed that value of the extruding nozzle displacement in the Y-axis was the sum of the width of the specimen and half of the extrusion width (\({l}_{nm,y}\)= 10 + \(\frac{0.48}{2}\) = 10.24 mm). Finally, an error between the build time measured in our experiments (\({t}_{m}\)) and the build time estimated in our model (\({t}_{b}\)) was calculated as \(\left|\frac{{t}_{m}-{t}_{b}}{{t}_{m}}\right|=\left|\frac{\mathrm{2,804}-\mathrm{2,810}}{\mathrm{2,804}}\right|\) = 0.22%.

Since there were 30 experimental observations, we were able to compare 30 experimental build times with 30 estimated build times for validation and verification. Overall, the average error rate for the 30 observations was approximately 0.6%. This rate suggests that the build time model provides reliable estimates and can be used for simulations.

3.2.2 Electricity rate in US states

In this study, we used the demand rates ($/kW) and energy rates ($/kWh) of four different US states, Hawaii (HI), Missouri (MO), Nebraska (NE), and Washington (WA), to obtain more practical results. Information about these rates was collected from [8] and is presented in Table 8.

Table 8 Demand and energy rates in four states of the USA

3.2.3 Simulation results

A hypothetical AM facility with 50 parallel material extrusion machines for CFR-PEEK was posited for the estimation of power demands and electricity costs. With respect to the product to be made using material extrusion, we considered a 1 \(\times\) 1 \(\times\) 1 cm3 specimen and a 1.5 \(\times\) 1.5 \(\times\) 1.5 cm3 specimen. Geometries of specimens used in the simulation were selected differently from those used in our experiments to demonstrate the applicability of the MAR power model, thereby applying the model to other cases that are not direct results of the experiments. We assumed that the average IAT of each raw material at the source of each machine follows an Exponential distribution. We also assumed a simulation time of 45,000 min (= 45,000 min \(\approx\) 31 days \(\times\) 24 h \(\times\) 60 min) to derive the monthly electricity costs. After simulating various sets of configurations, we calculated the peak demand, EC, and monthly utility costs for the hypothetical AM facility. Figure 6 presents the simulation model of the 50 parallel material extrusion machines. More specifically, a simulation case study with 40 scenarios was performed using the DES approach, in which we considered six different sets of process parameters.

Fig. 6
figure 6

A conceptual diagram (a) and Simio simulation model (b) for 50 material extrusion machines

Table 9 presents the levels of factors for the sets of material extrusion process parameters considered in the simulation. As seen from the table, build time in the simulation was assumed to follow two probability distributions: normal and exponential. Also, an exponentially distributed waiting time of material extrusion machines was considered in the simulation experiments. Assumptions of probability distributions for build time and average waiting time of material extrusion machines were made according to related simulation studies available [21, 47, 48]. Furthermore, material extrusion machine utilization (\(\rho\)) in Table 9 is defined as the likelihood of the machine being occupied, or the percentage of time the machine is busy with the fabrication of parts [49]. In other words, machine utilization is the ratio of the average printing time of products to the average IAT of raw materials. Machine utilization is typically used in simulation or queueing studies. Two machine utilization factors (0.4 and 0.8) were considered in this study based on the relevant simulation study [50] as well. The DES results were then used as inputs for a numerical simulation to generate time series power profiles for evaluating performance measures in each scenario.

Table 9 Levels of factors considered in the simulation

The results for Set 1, a simulation with a 1 \(\times\) 1 \(\times\) 1 cm3 specimen and normally distributed build time, are presented in Table 10 by the various process and simulation parameters. The average interarrival time of the raw materials as well as the average heating time, average build time, and average cooling time during material extrusion are denoted as average IAT, average HT, average BT, and average CT, respectively, in the table. Case 1–1 (C1-1) is the baseline scenario for comparing other cases in the table, and each counterpart is different from the baseline in at least one parameter. For each scenario, we controlled the number of machines that entered the heating state (see 2nd column of Table 10). As shown in Table 9, we considered three control strategies in this study, P1, P25, and P50, which allowed one, 25, or 50 machines to enter the heating state at a time, respectively. If a machine cannot enter the heating status due to this control, it waits for a random time (WT) until attempting to enter the heating status again (see 10th column in Table 10). For the top five cases in Set 1, the control strategies of material extrusion machines and the mean WT varied by the levels shown in Table 9. For the bottom five cases in Set 1, the parameters changed similarly while \(\rho\) (machine utilization) increased from 0.4 (C1-1) to 0.8.

Table 10 Results with a 1 \(\times\) 1 \(\times\) 1 cm3 specimen and Normally distributed build time (Set 1)

The number of printed parts, number of waiting raw materials, and average cycle time are obtained from the simulation results. Average cycle time is defined as the average amount of time that it takes to finish printing one complete part, including the waiting time. Peak kilowatt is equal to the maximum kilowatt value obtained in the heating, building, and cooling states during 45,000 min of material extrusion operations. Total kilowatt hour is calculated by multiplying the average kilowatt and the total simulation time (= 45,000 min). Furthermore, electricity costs are calculated by adding the demand charge (= peak demand \(\times\) demand rate) and the energy charge (= energy usage \(\times\) energy rate).

For C1-1, peak kilowatt and total kilowatt hour were relatively low since control strategy P1 was adopted. Also, the average cycle time increased in C1-1. Hence, productivity was relatively low due to the increase in unprocessed raw materials in the production process over time. Compared with results of C1-1, peak kW, total kWh, electricity costs, and throughputs rose considerably in C1-2 due to more material extrusion machines being allowed to heat with P25. Also, the average cycle time decreased rapidly in C1-2 because more machines could process parts. A negligible change in performance measures is observed between C1-1 and C1-3 due to similarities in the simulation parameters. Compared with C1-1, performance measures significantly increased with P25 in C1-4. It can also be noted that an increase in the average WT had a minor effect on performance measures. Compared to C1-1, C1-5 exhibited a rising trend in performance measures as well. In this case, the change in peak kW was relatively higher since P50 was employed. For C1-6, the arrival rate of raw materials increased with \(\rho\), and thus, the number of waiting raw materials in C1-6 rose much higher with a longer average cycle time compared to C1-1. Accordingly, productivity in C1-6 showed a considerable drop. A similar result is found in a comparison between C1-1 and C1-8. Compared to C1-1, C1-7 showed a significant increase in performance measures with notable reductions in average cycle time as more raw materials were processed with P25. A similar observation can be made in comparisons between C1-1 and C1-9 and between C1-1 and C1-10. In terms of electricity costs in the four US states, relatively higher electricity costs were observed in HI since $/kW and $/kWh are greater there than in the other three states. Also, WA demonstrated the lowest utility costs among the four states because $/kW and $/kWh are relatively low.

While \(\rho\) increased from 0.4 to 0.8 in 10 cases of Set 1, we observe similar peak kilowatts in the respective counterpart scenarios. This similarity can be explained by the number of machines allowed to be working at a time. Since the control strategy for material extrusion machines remained the same for higher \(\rho\), the increase in the number of raw materials and in productivity due to higher \(\rho\) was constrained by the same number of machines available for the heating status. Hence, peak kilowatt did not show any noticeable change in scenarios of Set 1 with an increase in \(\rho\).

As seen from the simulation results, the number of waiting raw materials is similar in C1-4 (5) and C1-5 (5). We observe similar findings in C1-9 (84) and C1-10 (92) as well. Thus, the number of printed parts in C1-4 and C1-5 scenarios as well as in C1-9 and C1-10 scenarios is expected to be similar in our simulation study. It is noticed that 84 additional parts are fabricated in C1-4 (15,583) compared to C1-5 (15,499), while C1-9 (30,639 parts) has 35 more printed parts in comparison to C1-10 (30,604 parts). A slight variation in productivity appears to be the result of random effects during simulation. Also, differences between throughputs in C1-4 and C1-5 as well as in C1-9 and C-10 are 0.54% and 0.11%, respectively. This suggests that the differences are insignificant with respect to the total number of parts printed in the corresponding scenarios.

The power profiles of the 50 material extrusion machines at both the equipment and facility levels for C1-1, C1-2, and C1-5 are presented in Figs. 7, 8 and 9, respectively. These figures show that the facility level power demands of C1-2 and C1-5 were noticeably higher compared to those of C1-1 because more machines were allowed to work at the same time. It can also be noticed that the average power required to print parts is similar for C1-2 and C1-5. The difference between facility level power demands of C1-2 and C1-5 can be well understood with the total number of parts printed during material extrusion. As observed from Table 10, differences between the number of parts fabricated in C1-2 (15,487) and C1-5 (15,499) are small in this study. Hence, the facility level power demands in C1-2 and C1-5 differ by a small amount. For the equipment level, the power profile for each of the 50 machines considered in the simulation experiment is displayed in a different color.

Fig. 7
figure 7

Power profiles for 50 material extrusion machines at equipment level and facility level for C1-1 with P1

Fig. 8
figure 8

Power profiles for 50 material extrusion machines at equipment level and facility level for C1-2 with P25

Fig. 9
figure 9

Power profiles for 50 material extrusion machines at equipment level and facility level for C1-5 with P50

Table 11 shows the results of the 10 scenarios in Set 2, a simulation with a larger product volume (1.5 \(\times\) 1.5 \(\times\) 1.5 cm3). In Table 11, no major increase in throughputs, average cycle time, or total kilowatt hour is observed from C2-1 to C2-5. Comparisons between C2-1 and C2-6, C2-1 and C2-7, and so on reveal a trend similar to that found in Set 1. The results of peak kW from C2-1 to C2-10 show a similar pattern to those of Set 1 as well.

Table 11 Results with a 1.5 \(\times\) 1.5 \(\times\) 1.5 cm3 specimen and Normally distributed build time (Set 2)

The volume of the printed parts in Set 2 was about 3.4 times higher than that of Set 1. Since the volume of the printed parts was larger, it took longer to finish each part. Thus, total kilowatt hour values were relatively higher in Set 2 than those in Set 1 in a comparison between respective counterparts. Also, throughputs in Set 2 were lower compared to those in Set 1 due to an increase in average cycle time. When we conduct a pairwise comparison of peak kilowatt values from the scenarios of Set 2 with those of Set 1, the peak kilowatt values in C2-1, C2-3, C2-6, and C2-8 were greater than those in C1-1, C1-3, C1-6, and C1-8. This difference occurred because more raw materials were being processed in Set 2 at the same time when compared to Set 1. Also, electricity costs were notably higher in Set 2 compared to Set 1 due to higher total kilowatt hour values.

In Table 12, we show the performance measures in 10 cases of Set 3 with a similar configuration to Set 1 and an exponentially distributed build time. Peak kW in most of the scenarios of Set 3, however, was relatively higher than those of Set 1. This difference can be explained by the variability in Exponential versus Normal distributions. The coefficient of variation is 0.25 (CV = standard deviation/mean = 5.3/21.2) in a normally distributed build time, as in Set 1. CV, however, is 1 in an Exponential distribution. Because build time was exponentially distributed for Set 3, a larger variability in build time distributions could be expected during the simulation. Thus, more variability in build time likely contributed to a higher peak kilowatt in Set 3.

Table 12 Results with a 1 \(\times\) 1 \(\times\) 1 cm3 specimen and Exponentially distributed build time (Set 3)

In a comparison of total kilowatt hour between scenarios in Set 1 and Set 3, little change in total kilowatt hour is observed. Similar findings can be observed for the average cycle time as well. Variability in build time distributions in Set 3 would have less impact on average total power compared to peak kilowatt. Thus, total kilowatt hour in Set 3 and Set 1 showed similar results since the total kilowatt hour is calculated by multiplying average kilowatt and total simulation time. Overall, monthly electricity costs were slightly higher in Set 3 compared to Set 1 due to a moderate rise in peak kilowatt while total kilowatt hour values barely changed.

Table 13 presents the results for Set 4, the latter of which was similar to Set 2 except it used an exponentially distributed build time. The performance measures in 10 cases of Set 4 behaved similarly to those in Set 2 when compared to Set 1. Peak kilowatt values in most of the scenarios of Set 4, however, were relatively higher due to the larger variability in the exponentially distributed build time as well as a larger volume of printed parts. Also, the average cycle time and total kilowatt hour in scenarios of Set 4 were similar to those found in Set 2. Utility costs, however, were reasonably higher due to larger peak kilowatt.

Table 13 Results with a 1.5 \(\times\) 1.5 \(\times\) 1.5 cm3 specimen and Exponentially distributed build time (Set 4)

Table 14 presents the ratios of various performance measures between the scenarios in Set 1 and the corresponding scenarios in the other three sets. The ratio of each row is calculated based on two counterpart values in two of the tables.

Table 14 Comparison of results for Case 1–1 through Case 1–10

In a comparison between Set 2 and Set 1, differences in the volume of parts had a significant impact on throughputs and average cycle time and a moderate impact on peak kilowatt, total kilowatt hour, and electricity costs. In a comparison between Set 3 and Set 1, the difference between exponential and normal distributions was a major factor for the peak kilowatt and electricity costs because an exponential distribution has higher variability (CV = 1) than a normal distribution (CV < 1) in our simulation. We can see that most ratios in the peak kilowatt and electricity costs between Set 3 and Set 1 are close to or greater than 1. It seems that some randomness affected the results with ratios less than 1, but these ratios are still close to 1 with a minimum of 0.97 (C3-4/C1-4). Similar conclusions can be drawn when Set 4 is compared to Set 1. The effects on peak kilowatt and utility costs, however, were relatively higher in the ratios between Set 4 and Set 1 compared to the ratios between Set 2 and Set 1 due to more variability with longer printing time.

3.2.4 Validation of simulation models

In this subsection, we discuss and show how we validated our simulation model. Simulated average power at the equipment level was compared and validated with the average power of the machine obtained in experiments. For example, the average power measured in the experiment was approximately 127 W for printing a 2 \(\times\) 1 \(\times\) 1 cm3 block with a processing time of 1 h. From our simulated results, the average power of a single machine (Machine #01) was estimated as about 130 W for 1 h of operation of the machine during fabricating a 2 \(\times\) 1 \(\times\) 1 cm3 block. It can be seen that variation in average power at the equipment level during experiments (127 W) and simulations (130 W) is 2% approximately. This percentage suggests that our simulation model provides relatively accurate results in the context of the average power and EC at the equipment level. Moreover, we thoroughly examined and validated the facility level power in this simulation study. For example, at the 15th minute of the simulation, the equipment level powers of 50 machines were observed as 205 W (Machine #01), 202 W (Machine #02), and so on for C1-5. Facility level power at the 15th minute was then calculated as 9,997 W by manually adding the equipment level power of 50 machines. The simulated power at the facility level at the 15th minute of the simulation was also obtained as 9,997 W from our simulation model. By following the same approach, we comprehensively validated and verified the facility level power with the results that we manually calculated from the equipment level power for 100 time points of each of the 40 simulation scenarios without any discrepancy. Thus, we believe that our simulation model is valid, and this model can provide reliable results while calculating the energy performances of AM machines.

3.2.5 Trade-offs between average cycle time and energy costs

To show the trade-off between average cycle time and energy costs of material extrusion, an example calculation for evaluating the energy cost of C1-1 is presented first. For this example analysis, we picked the relatively higher demand rate ($19.95/kW) and relatively lower energy rate ($0.0891/kWh) of the US state NE. This selection can help us better understand the trade-offs among performance measures in some example scenarios. The total energy cost for C1-1 was calculated as \(Peak demand\times Demand rate+Energy consumption\times Energy rate=2.9\times 19.95+\mathrm{1,754}\times 0.0891=\$214\). The average cycle time of C1-1, or 8,323 min, was obtained from the simulation experiment.

Figures 10 and 11 present the trade-off between average cycle time and energy costs for Set 1 and Set 2, respectively, as obtained from the simulation experiments. The X-axis shows the average cycle time and the Y-axis shows energy costs. In both figures,\(\rho\) = 0.8 demonstrates relatively higher energy costs than \(\rho\) = 0.4.

Fig. 10
figure 10

Trade-off between average cycle time and energy costs for scenarios in Set 1

Fig. 11
figure 11

Trade-off between average cycle time and energy costs for scenarios in Set 2

As shown in Fig. 10, trade-offs between the average cycle time and energy costs for scenarios in Set 1 with \(\rho\) = 0.4 can be analyzed in two groups. One group (G1) consists of C1-2, C1-4, and C1-5, and the other group (G2), of C1-1 and C1-3. If the priority of a manufacturer is to minimize the average cycle time, G1 should be considered. For example, manufacturers would be more interested in C1-2 and C1-5 in G1, because the average cycle time is considerably lower (78 min) with P25 and P50, respectively. In a comparison between C1-2 ($470) and C1-5 ($527), C1-2 would provide more energy cost savings because a reasonable number of material extrusion machines work with P25.

Alternately, if a manufacturer places more emphasis on minimizing energy costs, G2 would be a better option, because fewer working machines in P1 result in smaller energy costs for C1-1 and C1-3. Between C1-1 and C1-3, manufacturers would prefer C1-1 ($214) over C1-3 ($214), as the average cycle time of C1-1 (8,323 min) is less than that of C1-3 (8,420 min) due to the lower average WT in C1-1. Also, if manufacturers have no preference between minimum average cycle time and minimum energy cost, they can choose P25 as this policy offers a balanced combination of energy cost and average cycle time, as shown in C1-2 ($470, 78 min) and C1-4 ($471, 79 min). For example, average cycle time decreases by more than 8,200 min from C1-1 (P1: 8,323 min) to C1-2 (P25: 78 min), while energy costs increase only about $256 from C1-1 (P1: $214) to C1-2 (P25: $470). Thus, if a balanced result is preferred, P25 would be a better policy than P1 and P50 since it can provide a more moderate result. Similar observations can be made for \(\rho\) = 0.8 as well, although overall energy costs are relatively higher compared to \(\rho\) = 0.4.

Figure 11 shows that scenarios in Set 2 (C2-1 to C2-5) for \(\rho\) = 0.4 should be arranged in one group. In this group, C2-1 ($355, 173 min) and C2-3 ($351, 181 min) with P1 can provide the preferable energy costs and average cycle times because these two scenarios are located at the left-most bottom of the figure. There is a negligible amount of unprocessed raw materials with a lower average cycle time for \(\rho\) = 0.4 in C2-1 (7) and C2-3 (11). Thus, more energy cost savings are obtained with less peak demand and less EC with P1 (C2-1 and C2-3). Between C2-1 and C2-3, manufacturers can pick C2-3 ($351) over C2-1 ($355) if they prefer the minimum energy cost. Otherwise, they can select C2-1 to obtain the minimum average cycle time as the average WT of C2-1 (0.17 min) is less than that of C2-3 (1 min). For \(\rho\) = 0.8, the scenarios from C2-6 to C2-10 can be organized into two groups similar to those in Set 1 (C1-6 to C1-10). For example, if manufacturers place more importance on minimizing the average cycle time, they can choose C2-7 (322 min) and C2-10 (322 min), because the average cycle time drops significantly with both P25 and P50. In terms of cost savings, C2-7 ($697) can further offer better results with P25 to manufacturers compared to C2-10 ($759). Also, if more weight is given to achieving minimum energy costs, manufacturers can select C2-8 ($383), limiting the number of material extrusion machines working to the lowest possible level in the heating state with P1. Moreover, C2-7 with P25 can provide a balanced combination of energy costs and average cycle time because the average cycle time decreases about 9157 min from C2-6 (P1: 9,479 min) to C2-7 (P25: 322 min), while energy costs rise only about $311 from C2-6 (P1: $386) to C2-7 (P25: $697).

4 Conclusions

An AM energy simulation model of a production system with multiple material extrusion machines was proposed in this study based on MAR models to examine the trade-off between the average cycle time and energy costs. In particular, a set of experiments were conducted with two key process parameters (layer thickness and printing speed) to evaluate material extrusion power. A power model was developed as a linear function of MAR based on experimental results since MAR can represent layer thickness and printing speed as a single compound parameter. A theoretical facility with 50 material extrusion machines was simulated using the MAR regression model, and time series power profiles at the equipment and facility levels were obtained from the simulation model for 40 scenarios by changing production and simulation parameters.

Our proposed simulation model provides several beneficial results, as discussed in the illustrative examples, by showing how energy costs and cycle times of material extrusion can be controlled with various combinations of production parameters including machine control strategies. In particular, a balanced combination of average cycle time and energy costs can be obtained when a moderate number of machines are allowed to work at the same time. Also, manufacturers can choose one of the two controls policies between a reduced and an increased number of machines at the same time in the heating status, depending on their preference. On one hand, a reduced number of machines in the heating status result in reduced utility costs due to lower peak kilowatt and total kilowatt hour, but this strategy increased cycle time. On the other hand, an increase in the number of machines working in the heating status leads to improved cycle time, but this policy increased energy costs as well. Thus, manufacturers can benefit by employing a suitable control strategy during material extrusion. Also, the example analysis in this study showed that peak kilowatt and total kilowatt hour of material extrusion are relatively low when the volume of the printed parts is relatively small and there is less variability in the process.

Thus, results from our research can help industrial practitioners and academic researchers build a production strategy in such a way that a preferred amount of parts can be printed with acceptable energy costs. Our proposed energy simulation model can be applied to evaluate performance measures of a variety of AM methods. Also, a variety of time series energy data can be obtained using the simulation tool, data that can be used to forecast the electrical demand of AM facilities. Our method can be further extended to other related important research topics to study the power demand of material extrusion machines at the equipment and facility levels by performing extensive simulation runs with correlated process parameter settings. We expect to address this point in future studies and to study research topics for generalizing the findings from P1, P25, and P50 for other policies.