Introduction

Plastics industry is one among the fast growing industries in recent few decades. Application of plastics is growing due to their advantages in terms of specific properties and less production costs [13]. Plastics have a wide variety of applications. Each application demands specific chemical and physical properties. Commercial plastics can only provide a limited variety of chemical and physical properties. Usually some operations are conducted on commercial plastics to obtain new materials that can meet the required chemical and physical specifications. These new materials are usually referred as engineering plastics. Advancements of engineering plastics promise higher quality products with better performances; therefore, the application of engineering plastics in different industries such as aero-space, electronics, and automobile industries is increasing continuously [46].

Injection molding is a rapid and versatile manufacturing technique which is used in the plastics industry to produce objects with different sizes, shapes and, if needed, many details [7]. Since an injection mold is usually the most important and expensive assembly to produce plastic parts, the designing of suitable molds is an active research area. The moldability and the flow length ratio are two important considerations in the design of injection molds that are studied in this research [8, 9].

The study of flow length is usually carried out based on some experiments. The experiments are conducted using spiral molds appropriate to ISO standards (ASTM D 3123 (2009) standard test method for spiral flow of low-pressure thermosetting molding compounds 1–4). In earlier research attempt, it has been shown that the spiral depth affects the flow length [10]. It has been found that by increasing the value of spiral channel height, mold temperature and injection pressure, the flow length, based on the type of materials, increases as well. In this research, the experimental materials were molded based on ASTM D 3123 specifications. This standard introduces the specifications for spiral flow length and the ratio of viscosity and flow of the plastics (ASTM D 3123). The flow lengths in spiral tests were measured experimentally and compared to the corresponding values provided in the above standard.

This study covers two main objectives: (1) analyzing the moldability of engineering plastics including acrylonitrile butadiene styrene (ABS), polycarbonate (PC), polyamide 6.6 (PA 6.6), polyoxymethylene (POM), and investigating their flow lengths based on the injection parameters (melt temperature, injection pressure and flow rate) on the plastics melts. As a result of the experiment, the PA6.6 and POM materials have shown much greater flow lengths. Moreover, the maximum measured values of the flow length of the engineering plastics including PA 6.6, POM, PC and ABS were obtained as 948, 1235, 579 and 1050 mm during the experiments, in the order given; (2) predicting and obtaining the amounts of flow lengths in various plastics. For this purpose, a fuzzy logic model was designed and developed based on different injection parameters and channel depths. This method is cost effective and a reliable way to predict the flow lengths prior the injection molding process.

Experimental analysis

In this paper, four engineering plastics namely acrylonitrile butadiene styrene (ABS), polycarbonate (PC), polyamide 6.6 (PA 6.6), polyoxymethylene (POM) were selected as sample materials. The injection parameters of the above materials and their physical properties are listed in Table 1.

Table 1 The plastic properties and operating specifications

Materials were molded using a JINHWA (Çalışkan Plastic Ltd. Sti., Turkey) type plastic injection machine with a maximum injection pressure of 1400 bar and shot weight capacity of 160 g.

A mold containing spiral chutes was used for molding the plastics. This mold was designed and produced according to ASTM D 3123 standards. Figure 1 shows the schematic diagram of the mold. Beside the 1.6 mm of channel depth, the mold has been made for three other channels with 2, 3 and 4 mm depths.

Fig. 1
figure 1

Detail of plastic mold

Test procedure

In this research, to investigate the effects of injection parameters on flow length, four different commercial plastics were molded in a mold containing spiral chutes. The mold was mounted on a plastic injection machine and the effects of melt temperature, channel depth, injection pressure on these plastics and their flow lengths were measured.

During the experiments, the injection pressure was maintained constant and the melt temperature varied according to the given data in Table 1. Before feeding the raw material into the extruder, the materials were dehumidified based on the recommendations of the companies (Table 1). Before starting the tests, the hoses were attached to the water ducts in the mold to lead oil and sufficiently fill the mold conditioner and it was proved that the mold temperature reached 35 ± 1 °C.

In these tests, to investigate the flow lengths depending on melt temperature, injection pressure and channel depths, two or three sub values recommended by company for plastics were taken into consideration.

Before starting to measure the flow length, the melting flow index of the material was measured using a capillary rheometer. The results are given in Table 1.

Fuzzy logic

Zadeh [11] introduced fuzzy logic for the first time in 1965. Fuzzy logic is a major development of fuzzy set theory. This is a multi-valued logic that allows intermediate values to be defined between the conventional evaluations like yes/no, black/white, etc. [12]. In contrast with traditional logic theory, where binary sets have two-valued logic: true or false, fuzzy logic variables may have a true value that ranges in degree between 0 and 1. Fuzzy logic has been extended to handle the concept of partial truth, where the truth value may range between completely true and completely false. Furthermore, when linguistic variables are used, these degrees may be managed by specific functions. In other words, fuzzy logic was designed to represent and reason with knowledge in linguistic or verbal form.

As an extension of the case of multi-valued logic, valuations (\( \mu :v_{0} \to w \)) of propositional variables (\( v_{0} \)) into a set of membership degrees (\( w \)) can be thought of as membership functions mapping predicates into fuzzy sets (or more formally, into an ordered set of fuzzy pairs, called a fuzzy relation). With these valuations, many-valued logic can be extended to allow for fuzzy premises from which graded conclusions may be drawn.

Decisions in fuzzy systems are based on inputs in the form of linguistic variables. The variables trigger, or “fire”, a certain number of IF–THEN rules, which produce one or more responses (conclusions) depending on which the rules are fired. The conclusion of each rule is counterbalanced according to the degree of membership of its inputs. Usually, the centre of gravity of the responses is calculated to obtain an appropriate crisp output.

The major advantages of the fuzzy logic approach are: (1) a mathematical model is not necessary, (2) the knowledge base is formed by a set of practical rules using linguistic variables, and (3) this method is very efficient under uncertain conditions, which are common in everyday situations. According to Li and Elbestawi [13], fuzzy logic is the preferred algorithm because it is capable of providing a systematic means for dealing with the inherent uncertainties in the nonlinear processes.

Fuzzification

The purpose of fuzzification is to translate each crisp value obtained from the input into a linguistic term and grade of membership function [12, 14]. The combined linguistic term and grade membership function is also known as a fuzzy set. Several methods of fuzzification are available; however, the most common fuzzification method is the triangular method [12, 15]. But some other methods such as Trapezoid, Gauss and etc. can also be used for fuzzy modeling.

Inference system

Malki and Umeh [15] described the inference as the brain of the fuzzy logic model. The inference element contains the rule bank (knowledge base) necessary to control the system. The rule bank is generated based on human expertise and the data obtained from the experiment (training data) [12]. The inference element employs linguistic terms resulting from the fuzzification element and the if–then statement used to decide the output of the system [12, 16]. An if–then statement in fuzzy logic can be represented as follows [17]: IF (condition or antecedent), THEN (action or consequence)

Preconditions are present in the antecedent and a connecting operator is also required. One of the most widely used connecting operators is AND [11, 12].

Defuzzification

Output obtained by the inference element is in the form of a linguistic or symbolic value, but this form of value is not acceptable in the machine controller. Therefore, an element is required to convert the fuzzy value into a crisp value. This converting process is known as defuzzification [12, 14]. The most common defuzzification method is center-of-area [15]. The output grade membership function is also obtained along with the linguistic term conversion. A common grade membership function of the output can be obtained by multiplying the input grade membership function. The output membership function can be expressed as:

$$ \mu_{out(Fl)} (y) = \mu_{in(i1)} (x) \times \mu_{in(i2)} (x) \times \ldots \times \mu_{out(in)} (x) $$
(1)

where, i is the input factor for the system. The value obtained from the degree membership function and grade of output membership function is then used in the defuzzification equation. Susanto and Chen [17] suggested the following defuzzification equation:

$$ {\text{output}} = \frac{{\sum_{j = 1}^{p} y_{j} \mu (y_{j} )}}{{\sum_{j = 1}^{p} \mu (y_{j} )}} $$
(2)

where, y is the degree of membership function of the output and \( \mu \left( {y_{j} } \right) \) is the grade membership function of the output.

To throw light on fuzzy logic method used in MATLAB software, four test data have been used to provide four rules to calculate the degrees of membership functions for a certain values of input data. The membership function used in this part is a triangular one as follow (Fig. 2):

Fig. 2
figure 2

Triangular membership function of the fuzzy logic method

$$\mu_{A} (x) = \left\{ {\begin{array}{*{20}{c}} {0} \hfill & {if\; x \le a} \hfill \\ {\frac{x - a}{b - a}} \hfill & {if\;a \le x \le \;b} \hfill \\ {\frac{c - x}{c - b}} \hfill & {if\;b \le x \le c} \hfill \\ {0} \hfill & {if x \ge c } \hfill \\ \end{array} } \right\}$$
(3)

Based on the fuzzy sets of input variable in Fig. 3 and output variables in Fig. 4, the rules can be written as:

Fig. 3
figure 3

Membership functions of the input variables including density, channel depth and melt temperature

Fig. 4
figure 4

Membership function of the output including the flow length

  1. 1.

    If (density is D2) and (channel depth is C2) and (melt temperature is T1) then (flow length is F1)

  2. 2.

    If (density is D2) and (channel depth is C2) and (melt temperature is T2) then (flow length is F2)

  3. 3.

    If (density is D2) and (channel depth is C2) and (melt temperature is T3) then (flow length is F3)

  4. 4.

    If (density is D2) and (channel depth is C2) and (melt temperature is T4) then (flow length is F4)

By applying Eq. (3), the degree membership functions of inputs can be calculated. If density is 1.4 and channel depth is 1.6 mm and melt temperature is 224 °C, then the degrees of membership functions of the inputs are as follow:

$$ \mu ({\text{D}}2 = 1.4) = 1,\;\mu ({\text{C}}2 = 1.6) = 1,\;\mu ({\text{T}}1 = 224) = 0.4,\;\mu ({\text{T}}2 = 224) = 0.6 $$

Employing Eq. (1), the degree membership function of the outputs was determined as follow:

$$ \mu (Fl) = \mu (D) \times \mu (C) \times \mu (T) $$
(4)
$$ \begin{aligned} Rule\,1\,\,:\,1 \times 1 \times 0.6 = 0.6 \hfill \\ Rule\,2\,:\,\,1 \times 1 \times 0.4 = 0.4 \hfill \\ Rule\,3\,:\,\,1 \times 1 \times 0 = 0 \hfill \\ Rule\,4\,:\,\,1 \times 1 \times 0 = 0 \hfill \\ \end{aligned} $$

Then by applying Eq. (2), the defuzzified value can be calculated as Fig. 5:

Fig. 5
figure 5

Defuzzification of the variables using center-of-area (CoA) method

$${\text{Flow}}\,{\text{length}} = \frac{{\frac{{0.6 \times 3 \times 2}} {2} + (2.8 \times 0.6 \times 4.4) + (0.4 \times 0.4 \times 6) + \frac{{0.2 \times 0.4 \times 6.06}} {2} + (1.4 \times 0.4 \times 6.9) + \frac{{(0.4 \times 0.4 \times 7.86)}} {2}}} {{\frac{{0.6 \times 3}} {2} + (2.3 \times 0.6) + (0.4 \times 0.4) + \frac{{(0.2 \times 0.4)}} {2} + (1.4 \times 0.4) + \frac{{0.4 \times 0.4}} {2}}} + 245 = 249.35$$

whereas the real value of flow length for these inputs is 249 mm in the test data.

Fuzzy logic modeling

In this research, to predict the flow length, MATLAB fuzzy logic toolbox was used. The fuzzy inference system predicts the amount of flow length due to the changes in injection parameters. Three parameters, including the melt temperature, channel depth and density of the materials were given to the fuzzy model as inputs and the value of flow length was determined as the output (Fig. 6). In order to obtain an accurate result, all of the existed membership functions in MATLAB were tried and the best function was used for fuzzy modeling. In this research, Mamdani method [18] was applied to design the fuzzy logic model. In this study, difference between two sigmoidal functions (dsigmf) was the best membership function, in terms of accuracy, among the examined functions. For this reason it was used as a membership function of the model. After entering the measured data in the model, the rule base system will be designed to control the system. As it was mentioned earlier, the rule base system is designed based on the experimental data. The larger the number of experiments, the more closer the results of the experiments approximate.

Fig. 6
figure 6

The designed fuzzy logic model for prediction of the flow length

In this research, the numbers of experiments conducted are 100 due to the full factorial design of experiments created by JMP software. Factorial design is widely used in cases where the determination of mutual and simultaneous effects of a number of variables on response is important [19]. Therefore, the numbers of rules must be 100 by which the input and output are connected to each other.

The fuzzy prediction system results can be shown both graphically and numerically. In Fig. 7, a part of the designed fuzzy inference system including 29 rules is given. As it is seen in Fig. 7, by entering the amounts of inputs including density, melt temperature and channel depth, in the model, the values of flow length are predicted.

Fig. 7
figure 7

The fuzzy logic inference system which is used practically to predict the flow length by entering the inputs in the system

Also, a three-dimensional graphic of fuzzy prediction system for ABS, PC, PA6.6 and POM plastics is shown in Fig. 8. It may be seen in Fig. 8, the values of flow length for the any amount of channel depths between 1 and 5 mm are graphically predictable.

Fig. 8
figure 8

Predicted amounts of flow length by fuzzy logic method in relation to the density and channel depth

In Fig. 9, another surface modeling of the fuzzy logic system is shown. In this three-dimensional graphics, the predicted values of flow length can be seen obviously in relation to the ABS, PC, PA6.6 and POM plastics and different melt temperatures. The types of plastics in this research are specified due to their densities. By increasing the melt temperature of the various plastics, the value of flow length would be increased.

Fig. 9
figure 9

Predicted amounts of flow length by fuzzy logic method in relation to the density and melt temperature

In Fig. 10, the measured values of flow lengths and those obtained from the fuzzy model are compared with each other.

Fig. 10
figure 10

Comparison of the measured and predicted flow lengths by fuzzy logic method in relation to different densities and channel depths in temperature of 260 °C

Results and discussion

A fuzzy logic formula was introduced for predicting the values of flow length in four plastic materials. For this propose, a full factorial design was created and appropriate experiments were conducted. The total number of experiments was 100 and carried out according to the various plastic types, melt temperature and channel depth.

It is obvious from Figs. 8 and 9 that by increasing the values of melt temperature and channel depth for any of the plastic types, there is a linear rise in flow lengths. However, the slopes of the rising in various plastics are different. For example, the variations in the flow length of the PC plastic are increased gently based on the melt temperature and channel depth where as in other plastics such as POM, the increasing rate is considerable.

In Figs. 10, 11, and 12, the measured values of the flow lengths have been compared with the estimated values obtained from fuzzy logic model. In Fig. 10, the graph has been provided for the melt temperature of less than 260 °C, different channel depths and four types of plastics. In Fig. 11, the PA6.6 type of the plastic is considered and the other parameters are varied to predict the results. Finally, in Fig. 12, for investigating the effects of channel depth on the flow length, the channel depth is taken as a constant and the other inputs are varied. It is found from the graphs that the accuracy of fuzzy model is different in various materials. For example in Fig. 10, the measured and estimated values of flow length for each of the POM and ABS plastics are very close to each other whereas in cases of PC and PA6.6 materials, there is a slightly higher difference between measured and estimated values.

Fig. 11
figure 11

Comparison of the measured and predicted flow lengths by fuzzy logic method in relation to the different channel depths and melt temperatures in density of 1.13 g/cm3

Fig. 12
figure 12

Comparison of the measured and predicted flow lengths by fuzzy logic method in relation to different melt temperatures and densities in channel depth of 3 mm

The largest estimated values of flow lengths by the fuzzy logic model were 1215, 596, 963 and 1040 mm in the order given for POM, PC, PA 6.6 and ABS.

In general, the accuracy of fuzzy logic prediction system is acceptable and it can be used practically in injection molding and mold designing process. The accuracy of the fuzzy logic is relatively less than the neural network method which has been applied by Karataş et al. [2], for a small number of data fuzzy logic is more accurate than the neural network. It is confirmed by Fig. 13 that the amount of R 2 for the measured and estimated values is 0.920529. Again in Fig. 13, the measured and estimated values of flow lengths were compared to each other for all of the observations. The prediction of the flow length, both in numerical and graphical forms is one of the specifications of the fuzzy model in this research.

Fig. 13
figure 13

Comparison of measured and predicted flow length by fuzzy logic method

Conclusion

The results of this research show that the fuzzy logic system is a reliable method to predict the values of flow length to prevent any short shot before an injection process. Even though there are some differences between the measured and estimated values, yet by conducting a small number of tests, fuzzy logic can appropriately approximate the results. Also it is found from the results that the fuzzy logic can predict accurate results when the used plastics have close specifications with one another. By using fuzzy logic to predict the amounts of flow length in this research, prediction is possible for non-skilled operators, because there is no need of any other technical software such as moldflow. Before injection process, the input values are entered in the fuzzy system by the operator and the flow lengths will estimated accurately. The prediction system can be applied and generalized for more polymer types and various inputs. By conducting more experiments, the prediction will be more accurate and reliable. From the results of the research, it is concluded that the fuzzy logic system can be applied to the other tasks in injection molding process. For example, it is used to predict the warpage in injection molding.