1 Introduction

Passive enhancement methods are currently considered as appropriate approaches to increase the heat transfer rate without any requirement to an external force [1, 2]. These methods consist of surface coating, utilization of rough surfaces, insertion of additional liquids such as nanoparticles, turbulence makers, and generation of swirl–vortex through designing of twisted tapes, helical screw tapes, snail entrances, and tangential inlet nozzles [3, 4]. Among the mentioned passive techniques, utilization of twisted tapes and insertion of nanofluids attract more attentions to be used in the heat exchangers in order to improve the thermal performance [5]. Numerous advantages have been counted for these two techniques so far such as larger relative surface area, better heat conduction, acceptable stability, least clogging, and the establishment of a swirling flow and augmentation of the turbulence intensity near to the tube wall [6, 7]. Various researches have been carried out to boost the heat transfer rate through the utilization of nanofluid [8, 9] and twisted tapes [10].

The nanofluid is a suspension of solid in typical working fluids such as water, ethylene glycol, and engine oil [11]. The most attractive characteristic of nanofluid is its improved heat transfer performances including higher thermal conductivity and larger convective heat transfer coefficient compared with the base fluid, while the chemical and physical specifications of the base fluid are not changed significantly after insertion of nanofluids [12, 13]. This extensive intensification in heat transfer will result in decreasing energy cost, making smaller the equipment’s size, and improving the effectiveness of the system [14]. The application of insertion nano-sized particles in typical fluids was firstly investigated by Eastman et al. [15] and verified the enhancement in the thermal conductivity of nanofluids. Eastman et al. [15] performed an investigation which is highly followed by other scientists in this field. The authors reported that applying copper nanoparticles in the ethylene glycol at a volume concentration of 0.3% improved the thermal conductivity around 40% in comparison with the simple base fluid. Followed by Eastman, several reviews and researches have reported that nanofluids are able to enhance the thermal conductivity [16, 17]. Wen and Ding [18] analyzed the performance of Al2O3/water nanofluid in a simple copper tube under a laminar flow. It was found that the improvement was considerable in the inlet of the tube. Yang et al. [19] experimented the influence of using nanofluids in a horizontal tube heat exchanger under laminar flow. Various nanofluids were considered, and it is found that the graphite nanoparticles have this feature to significantly increase the convective heat transfer coefficient at low weight concentrations. Hwang et al. [20] calculated the pressure drop and convective heat transfer coefficient of Al2O3/water nanofluid in an experiment by providing a fully developed laminar flow condition in a circular tube which was heated steadily. It was monitored that utilization of nanofluid at a volume concentration of 0.3% enhanced the convective heat transfer coefficient by 8% in comparison with the simple base fluid. Xieet al. [21] experimented the effects of applying ZnO, Al2O3, MgO, and TiO2 in a hybrid base fluid (55% DI water–45% ethylene glycol) at a circular tube heat exchanger at laminar flow condition with a fixed wall temperature on the convective heat transfer coefficient. It was monitored that features including the size of the nanoparticles, the number of suspended nanoparticles, and flow regime were highly influential on the thermal performance. In other words, these parameters have increased the viscosity of the nanofluids. Augmentation of the thermal conductivity of nanofluid is not individually sufficient for obtaining an ideally improved heat transfer rate in the heat exchangers. Therefore, additional researches are essential in this topic.

As mentioned above, utilization of twisted tape is a passive technique which is highly favorable in the applications of heat exchangers. Twisted tape is mainly used due to the ability to generate the swirl flow without imposing any considerable expenses and can be easily used in an existing heat exchanger. Various numerical and experimental researches have been carried out so far to assess the influence of employing the twisted tape. Twisted tape insertion causes redeveloping the thermal boundary layer and generating swirl flow, totally improving the convective heat transfer coefficient. Twisted tape is an appropriate selection for upgrading available compact heat exchangers due to its simple installation procedure, uncomplicated maintenance instructions, and majorly its cheapness. In addition to its positive effects, insertion of twisted tapes also increases the friction loss in the system [22]. In order to overcome this generated friction loss, more pumping power is required which has an influence on the performance factor, and increases the pumping cost. Hence, to obtain a favorable heat transfer rate in addition to a cost-effective pumping work, a special layout of twisted tape with an appropriate geometry and shape is demanded.

Several investigations have been performed to evaluate the influences of applying twisted tapes [23, 24]. Positive effects of nanofluids and twisted tapes on the improvement in heat transfer rate encourage researchers to investigate these applications, simultaneously [25, 26]. Mahyari et al. [27] performed an experimental investigation in order to obtain the effect of applying nanoparticles of graphene oxide–silicone carbide on the thermal characteristic. Several nanofluids with different volume concentrations and in a defined temperature range were fabricated, and at last, through fitting curve method, an experimental correlation was developed for determining the thermal conductivity. Esfe et al. [28] experimented the effect of diameter size of the nanoparticles on the convective heat transfer coefficient and also on the pressure drop. TiO2/water was considered as the working fluid. In addition, the experimental data were used to develop an artificial neural network (ANN) model to forecast the thermal performance of the selected nanofluid. Karimipour et al. [29] compared the ability of support vector regression (SVR) and ANN to predict conductivity of MWCNT–CuO/water hybrid nanofluid. It was shown that SVR is more accurate where small data sets were available. Alnaqi et al. [30] employed ANN approaches to estimate the influence of utilizing MWCNT/water nanofluid on the thermal specifications. Shahsavar et al. [31] carried out an experimental investigation in order to measure thermal conductivity and viscosity of paraffin–Fe3O4 and used the obtained data to develop a correlation for estimating those parameters through ANN. Bahrami et al. [32] employed the ANN technique to obtain the values of dynamic viscosity and shear rates of Fe–CuO/(ethylene glycol + water) nanofluid at different temperatures and concentrations. Esfe et al. [33] analyzed the accuracy of different ANN techniques on estimating the dynamic viscosity of TiO2/SAE 50 nanofluid. They modeled the dynamic viscosity through several ANN methods. Among the selected approaches, radial base function is expressed as the most accurate ANN model. ANN techniques have been widely applied in several applications for estimating purposes [14]. Ali et al. [34] performed an experimental investigation to obtain the effect of utilizing TiO2/water nanofluid on the overall boiling heat transfer rate. They fabricated nanofluids at various concentrations and reported that at a volume concentration of 0.15, the overall boiling heat transfer coefficient was enhanced to 1.38. Nafchi et al. [35] experimented the effects of volume concentration and temperature of TiO2/ZnO/EG nanofluid on the viscosity. It was monitored that in higher volume concentration the viscosity of the nanofluid was increased, while in higher temperature it was decreased. Ghasemi et al. [36] investigated the effect of applying COOH–MWCNT nanoparticles on the thermal conductivity. They performed experimental and numerical investigations to propose a predictive model for the thermal conductivity. Vafaei et al. [37] presented an optimal model to predict the thermal conductivity of MgOMWCNTs/EG nanofluid as a function of volume concentration and temperature. They reported that their model was able to predict thermal conductivity with a maximum deviation of 0.008. In overall, it was monitored that the heat transfer coefficient can be increased by applying nanofluids instead of conventional base fluids at certain working conditions. In addition, it is monitored that ANN techniques are reliable and also powerful on the prediction of thermal characteristics for different kinds of nanofluids. Yousefi et al. [38] performed an experimental study alongside proposing an ANN model to predict the thermal characteristics of carbon nanotube. Vakili et al. [39] used experimental data and developed a GA-based statistical model to forecast the viscosity of graphene nanoplate nanofluid. The authors assessed their model under different operational conditions such as different working temperatures and various concentrations of the nanofluid. The preciseness of the model was checked through RMSE and R2 criteria, which was 0.086 and 0.985, respectively. Adio et al. [40] implemented a study on the experimental measurement and development of a statistical model to predict the viscosity of MgO/ethylene glycol nanofluid. The utilized GA and ANFIS model illustrated a good agreement with the extracted data from experimental measurements.

Furthermore, it has been shown that insertion of twisted tapes while nanofluid is applied causes better heat transfer rate. For example, Fakoor-Pakdaman et al. [41] experimentally analyzed the thermophysical features of MWCNTs nanoparticles in a heat transfer oil base fluid at a vertical helically coiled heat exchanger. It was monitored that this specific design of nanofluid and the utilized geometry of tubes caused the improved overall performance index of 6.4. Al-Rashed et al. [42] performed a second law analysis on a microchannel heat exchanger. They utilized γ-AlO(OH)/(water + ethylene glycol) nanofluid and investigated the impact of nanoparticles’ shape on entropy generation. It was monitored that the platelet nanoparticles had the highest rate of total entropy generation and the spherical-shaped nanoparticles had the minimum amount of total entropy generation. Alsarraf et al. [43] tested the performance of γ-AlO(OH) nanofluid as a working fluid of a conventional double-pipe heat exchanger under turbulent flow condition and investigated the effects of shape, Reynolds number, and pressure drop on the overall heat transfer rate. Similar to Al-Rashed et al. [42], it was reported that the platelet and spherical-shaped nanoparticles had the maximum and minimum values of the overall heat transfer rate. In addition, it was monitored that increasing the Reynolds number and concentrations of nanoparticles yielded a higher heat transfer rate and an increase in the pressure drop.

In the present research, the turbulent heat transfer behavior in the constant wall temperature tube fitted with twisted tapes at twists ratio of 2–8 and using CNT nanofluid at volume concentrations of 0.2–1.2% will be evaluated. In addition, experimental results will be employed in an artificial neural network model to propose a new correlation for calculation of influential parameters on the heat transfer rate including the Nusselt number, friction factor, and overall thermal performance of heat exchangers, while nanofluid and twisted tapes are simultaneously used.

2 Experimental procedures and apparatus

2.1 Nanofluid

The characterization of the employed CNT nanoparticles is listed in Table 1. Based on the measurements, the outer diameter, the inner diameter, and the average length of the fabricated CNT nanoparticles are 3 nm, 1.2 nm, and 10 nm, respectively. Analyses illustrate that the purity index is 0.95. Moreover, thermophysical properties such as density, thermal conductivity, and specific heat capacity are measured and reported in Table 1. In addition, structural analyses are examined through TEM and the result is illustrated in Fig. 1. The significant step in the fabrication process of the CNT nanofluid is the dispersing process. Dispersing process of CNTs is very crucial since CNTs have a high aspect ratio and large specific surface area. In this research, an effective one-step procedure is carried out by the utilization of potassium persulfate (KPS) as an oxidant to fabricate water-soluble CNT.

Table 1 Characterization of CNT
Fig. 1
figure 1

TEM image of SWCNT

2.2 Twisted tape

The utilized twisted tapes are fabricated from aluminum sheet with tape thickness (d), width (w), and length (l) of 0.8 mm, 20 mm, and 800 mm, respectively. In order to prevent extra friction due to insertion of thicker tapes, the thickness of 0.8 mm is selected. Twisted tapes with various twist ratios (y/W) in the range of 2:8 are selected and tested in the experiments. Flat aluminum sheets are twisted with twist length (y) of 6:320 in order to create the twisted tapes at the desired twist ratios \( ({\text{TR}} = \frac{Y}{W}) \). The geometry of the fabricated tapes is illustrated in Fig. 2.

Fig. 2
figure 2

Illustration of a fabricated twisted tape [44]

2.3 Experimental setup

An open-loop layout is designed and used for the experiments as demonstrated in Fig. 3. The circulation working fluid of this process is CNT nanofluid. A horizontal copper-made tube with the geometry of 3 mm thickness, 22 mm diameter, and 1500 mm length is employed as the heating test tube. The test tube is kept warm through the heat which is provided by an electrical wire heater to have a uniform heat flux distribution. In total, ten thermocouples, K-type, are placed on the tube wall. Proper insulation is used to cover the tube and thermocouples in order to reduce heat loss. A rotameter is placed at the inlet of the test tube to measure the flow rate. The flow rate is varied to evaluate the experiments under various Reynolds numbers \( \left( {4000 < {\text{Re}} < 20,000} \right) \).

Fig. 3
figure 3

Representation layout of the experimental setup

A storage tank in a specific height is designed. The working fluid is pumped to the tank and then is entered into the test tube under the natural head. A Variac transformer is provided to regulate the heat flux distribution at the wall of the test tube. At each flux, the system is permitted to obtain steady-state condition at each Reynolds number. Twisted tapes are placed in a distance of 1200 mm from each other. Here, twisted tapes are employed as a swirl generator to provide turbulent flow. The intensity of the turbulence condition is dependent on the selected twist ratios (y/w = 2, 3, 4, and 5).

3 Data processing

The crucial factors for measuring the heat transfer qualities of nanofluid are its thermophysical specifications [45]. Measurement of thermal conductivity is more difficult than that of other thermophysical specifications since outsized errors are associated [46]. The correlation of the nanofluids’ density is:

$$ \rho_{\text{nf}} = \varphi \rho_{\text{np}} + \left( {1 - \varphi } \right)\rho_{\text{bf}} $$
(1)

The mathematical model about the specific heat value is:

$$ \left( {\rho Cp} \right)_{\text{nf}} = \varphi (\rho Cp)_{\text{np}} + \left( {1 - \varphi } \right)(\rho Cp)_{\text{bf }} $$
(2)

A KD2 Pro thermal property analyzer is used to measure thermal conductivity. The obtained outcomes at volume concentrations of 0.2% are checked with the Hamilton and Crosser correlation [47] in order to validate the analyzer device:

$$ k_{\text{nf}} = \frac{{k_{\text{np}} + \left( {n - 1} \right)k_{\text{bf}} + \left( {n - 1} \right)\varphi \left( {k_{\text{np}} - k_{\text{bf}} } \right)}}{{k_{\text{np}} + \left( {n - 1} \right)k_{\text{bf}} - \varphi \left( {k_{\text{np}} - k_{\text{bf}} } \right)}}k_{\text{bf}} $$
(3)

To measure the viscosity of the tested nanofluids, Brookfield cone and plate viscometer (LVDV-I PRIME C/P) designed by Brookfield engineering laboratories of USA are utilized. Between the existed theoretical correlations, Khanafer and Vafai’s equation [48] is used to validate the obtained results of the viscosity values:

$$ \mu_{\text{nf}} = (1.0538 + 0.144\varphi - 3.363 \times 10^{ - 3} T)\mu_{\text{bf}} $$
(4)

4 Artificial neural network (ANN)

Back-propagation (BP) approach is an optimization technique which made minimum the target function by adjusting the preliminary weights and biases. Selection of initial weights is a significant step in order to prevent the algorithm from finishing and stopping in the wrong local minimum. In order to surmount this limitation, a stochastic optimization method is added to the BP networks to calculate the optimum values of the network weights. Novel empirical stochastic algorithms have been widely employed for optimization purposes due to their high computational efficiency. It should be noted that an algorithm which achieves the best fit to the data must be chosen. Therefore, genetic algorithm (GA) which has an appropriate performance and demonstrates acceptable results in optimization processes is selected for this study.

The major goal in regulating the weights is to make minimum the target function. This process is usually demonstrated in the words of mean square error (MSE) and R-squared (R2) which are defined as follows:

$$ {\text{MSE}} = {\raise0.7ex\hbox{$1$} \!\mathord{\left/ {\vphantom {1 N}}\right.\kern-0pt} \!\lower0.7ex\hbox{$N$}}\mathop \sum \limits_{i = 1}^{N} \left( {X_{i}^{\text{Sim}} - X_{i}^{\text{ANN}} } \right) $$
(5)
$$ R^{2} = \frac{{\mathop \sum \nolimits_{i = 1}^{N} \left( {X_{i}^{\text{Sim}} - \bar{X}} \right)^{2} - \mathop \sum \nolimits_{i = 1}^{N} \left( {X_{i}^{\text{Sim}} - X_{i}^{\text{ANN}} } \right)^{2} }}{{\left( {X_{i}^{\text{Sim}} - \bar{X}} \right)^{2} }} $$
(6)

where N represents the number of data, \( X_{i}^{\text{Sim}} \) indicates the obtained value from simulation or measurement, \( X_{i}^{\text{ANN}} \) is the value which is calculated by ANN, and the average value is denoted by \( \bar{X} \). The important rules, which are employed to renew the population of chromosomes, are the selection, crossover, and mutation operators. Based on the literature, lower mutation rate and higher crossing over are desired. Mutation is performed as a progressively rise or drop with specific step size producing a new value within the minimum and maximum ranges.

5 Genetic algorithm

GA is a powerful evolutionary technique which is widely employed in energy applications with the aim of system’s optimization [49, 50]. This technique is grounded on the survival theory of Darwin and is regulated based on genetic and natural selection [51]. GA has three basic operators as follows:

  • Reproduction: employed for choosing the desirable one among a certain population.

  • Crossover: to create new individual through conveying characteristics among the mating pool entities.

  • Mutation: employed to changeover some of the characteristics of the entities in a random procedure.

The GA drives optimization process built on a random population. Then, the above-mentioned operators are taken apart to function the chosen population so as to breed a new set of data. Next, the generated sets of data (population) are re-assessed to attain the fitness values and also monitored for convergence criterion. In GA, each cycle is defined as generation including the mentioned three basic operators (reproduction, crossover, and mutation) in addition to the evaluation of fitness values.

6 Results and discussion

6.1 Thermal parameters

Figure 4 demonstrates the result of thermal conductivity (Fig. 4a) and viscosity (Fig. 4b) of fabricated nanofluids in various concentrations at 25 °C. It is monitored that in higher concentrations of nanofluid, higher thermal conductivity and also higher viscosity are obtained in comparison with the base fluid. The maximum value of thermal conductivity, i.e., 1.21 W/m K, is obtained at volume concentration of 1.5%. The outcomes indicate an acceptable convergence with recognized correlations.

Fig. 4
figure 4

Thermal conductivity (a) and viscosity (b) of nanofluid versus concentration

6.2 Validation test with water and twisted tapes

Experiments are carried out with water as the working fluid in vacant tubes over the designed Reynolds number in turbulent condition to check the verification and creditability of the procedure. The calculated results are compared and monitored with those results which were obtained by Dittus and Boelter correlation [52] for water to evaluate their correctness:

$$ {\text{Nu}} = 0.04{\text{Re}}^{0.75} { \Pr }^{0.4} $$
(7)

Blasius equation [52] for water is used to compute the friction factor:

$$ f = 0.316{\text{Re}}^{ - 0.25} $$
(8)

The Nusselt number and friction factor are measured and compared to those results from Dittus and Boelter correlation and Blasius correlation under the turbulent condition and the outcomes are illustrated in Figs. 5 and 6, respectively. As it is monitored from the figures, measured results from the experimental setup have a reasonable consensus with correlations. The highest Nusselt number of 120 is obtained at Reynolds number higher than 20,000. On the other hand, the lowest friction factor is yielded at Reynolds number of 20,000 by 0.026. The differences for Nusselt number and friction factor of empty water between experiments and correlations are 6% and 2.7%, respectively.

Fig. 5
figure 5

Nusselt number calculation for simple tube under various Reynolds number: experiments versus Dittus–Boelter equation

Fig. 6
figure 6

Friction factor calculation for simple tube under various Reynolds number: experiments versus Blasius correlation

In order to verify the obtained results while the twisted tape is inserted, Manglik and Bergles correlation [23] is used to calculate the Nusselt number and friction factor:

$$ {\text{Nu}} = \left( {1 + \frac{0.769}{{\left( {\frac{y}{w}} \right)}}} \right)\left[ { 0.023{\text{Re}}^{0.8} { \Pr }^{0.4} \left( { (\frac{\pi }{{\pi - \left( {\frac{4\delta }{{d_{i} }}} \right)}} )^{0.8} (\frac{{\pi + 2 - \left( {\frac{2\delta }{{d_{i} }}} \right)}}{{\pi - \left( {\frac{4\delta }{{d_{i} }}} \right)}} )^{0.2} } \right)} \right] $$
(9)
$$ f = \left( { 1 + 2.06(1 + (2\frac{{\frac{y}{w}}}{\pi })^{2} )^{ - 0.74} } \right) *\left[ { 0.079{\text{Re}}^{ - 0.25} (\frac{\pi }{{\pi - \left( {\frac{4\delta }{{d_{i} }}} \right)}})^{1.75} (\frac{{\pi + 2 - \left( {\frac{2\delta }{{d_{i} }}} \right)}}{{\pi - \left( {\frac{4\delta }{{d_{i} }}} \right)}} )^{1.25} } \right] $$
(10)

The correctness of the experiments is checked between measured data and results from Manglik and Bergles correlation, and the results are illustrated in Figs. 7 and 8, for Nusselt number and friction factor, respectively. It is monitored that the differences between experiments and correlation are 4.6% for the Nusselt calculation and 1.3% for friction factor. The highest Nusselt number, 200, is obtained at twist ratio of 2 and Reynolds number of 21,000. Increasing the twist ratio decreases the friction factor, and the lowest friction factor is obtained at Reynolds number of 21,000 and twist ratio of 8 about 0.04.

Fig. 7
figure 7

Nusselt number calculation under various Reynolds number: experiments versus Manglik and Bergles equation

Fig. 8
figure 8

Friction factor calculation under various Reynolds number: experiments versus Manglik and Bergles equation

The variation of Nusselt number with Reynolds number is shown in Fig. 9. For all cases, Nusselt numbers considerably increase with increasing Reynolds number. The improvement in heat transfer with increasing Reynolds number is a result of a decrease in thermal boundary thickness.

Fig. 9
figure 9

Nuvariation under different conditions of Re number, φ, and TR

Due to the creation of swirl flow, when the twisted tape is inserted, heat transfer performance is increased in comparison with the case without twisted tape. In addition, due to the intensification of swirl flow at lower twist ratios, considerable augmentation is monitored in the calculation of the Nusselt number. Moreover, utilization of twisted tapes increases the heat transfer area as a result of increasing the contact surfaces between wall and fluid.

As it was proved in the literature, applying nanofluid enlarges the Nusselt number in comparison with the simple base fluid under certain conditions, and it is boosted up by increasing the nanofluid concentration. In overall, following outcomes are resulted by applying nanofluid: (1) improving the thermal conductivity, heat transfer enhancement as a result of nanoparticles’ collision; (2) increasing the viscosity of the fluid which has a negative effect on the fluid flow and also on the heat transfer performance. It is monitored from the experiments that positive effect of applying nanofluid on the thermal conductivity is superior to its negative impact on increasing the viscosity.

Visual observations from experiments demonstrate that twisted tapes have a higher influence on the heat transfer enhancement in comparison with the effect of nanofluid on the heat transfer performance. Moreover, the simultaneous application of twisted tapes and nanofluids leads to higher Nusselt number in comparison with the cases where either twisted tape or nanofluid is applied.

The effects of twisted tape and nanofluid concentration on the friction factor are shown in Fig. 10. It is monitored that raising the Reynolds number significantly decreases the friction factor. Applying nanofluids under designed volume concentrations boosts up the friction factor in comparison with the simple base fluid. Moreover, a simultaneous increase in CNT concentration and a decrease in twist ratio lead to increasing the friction factor due to larger shear forces on tube wall as a result of smaller twist ratio or greater concentrations of nanoparticles.

Fig. 10
figure 10

Factor variation under different conditions of Re number, φ, and TR

6.3 Thermal performance

In order to evaluate the advantage of utilized application, i.e., nanofluids and twisted tapes, at a constant pumping work, Eq. (11) is used. Therefore, an equality correlation between the pressure drop and the volumetric flow of the enhanced case and the simple case is written as follows:

$$ (\dot{V}\Delta P)_{E} = (\dot{V}\Delta P)_{\text{NE}} $$
(11)

Equation (11) can also be written in the following form by performing thermodynamic and fluid mechanic regulations to convert volumetric flow and pressure drop into the Reynolds number and friction factor:

$$ \left( {f{\text{Re}}^{3} } \right)_{E} = \left( {f{\text{Re}}^{3} } \right)_{\text{NE}} $$
(12)

where NE represents the base fluid (not enhanced) and E indicates the enhanced case due to the utilization of nanofluids and twisted tapes.

Influences of applying nanofluid at different volume concentrations and twisted tapes at various twist ratios on the thermal performance are illustrated in Fig. 11. It can be easily seen that higher thermal performance is yielded in higher CNT concentrations and smaller twist ratios. Hence, it can be expressed that the advantage of the designed method on the heat transfer enhancement is superior to the disadvantage as a result of pressure drop.

Fig. 11
figure 11

\( \eta \) variation under different conditions of Re number, φ, and TR

6.4 GA–ANN model

Data are classified into three subsets of training set, validation set, and test set to implement the introduced ANN method. The defined error function is minimized by utilizing the training sets in the networks [53, 54]. Validation sets monitor the error function and choose the network with the lowest value of error. Various scenarios are defined to gather the required experimental data. These scenarios are variations of volume concentrations (φ), fabrication of different twist ratios (TR: 2–8), and providing a range for the Reynolds number (4000 < Re < 20,000). All input and output data are normalized in order to obtain a better evaluation and judgment.

Specifying the network topology is the first phase toward implementation of the ANN [10, 53]. In order to utilize an approach with the lowest error, a feed-forward artificial neural network with three layers of an input, a hidden, and an output is designed. The next important phase is to determine the optimal neurons’ number in different layers. The number of input and output data specifies the neurons’ number in the input and output layers, respectively. In order to obtain an optimum number of neurons in the hidden layer, the trial-and-error technique is utilized. Therefore, the training process is performed on a number of networks. The selection of the optimal network is dependent on the maximization of the target function and enhances the network’s generalization potential.

It is monitored from Table 2 that a network with ten neurons in the hidden layer yields the most accurate prediction and the minimum value of MSE by 0.017 and the highest correlation coefficient of 0.86. The network arrangement will be yielded in terms of weights and bias values associated with each layer through training, validation, and testing of created networks.

Table 2 Outcomes of applied ANN with different configurations

The target function of exergy efficiency is defined when the established ANN model yields a satisfactory performance and then the optimization process is commenced. The trained networks with GA are employed as the fundamentals to succeed in this stage. The foremost target of the optimization process is to maximize the fitness values, i.e., make minimum the overall MSE. The minimization process is defined as the regulation and optimization of networks’ weights. In order to implement the introduced algorithm, a sensitivity analysis is performed to achieve the optimal layout of the presented genetic algorithm. In the initial phase, the mutation rate of 0.02, a crossover rate of 0.5, and an individual number of 0.06 in the early population are set. The selection rule is roulette, the mutation rule is uniform, and the heuristic approach is chosen as the crossover. The genetic population number is regulated to 120. The variables employed in the configuration of the GA are listed in Table 3. It is monitored that the optimal GA configuration has individuals of 0.12, the mutation rate of 0.036, and the crossover rate of 0.2 in the basic population. At last, the response of the implemented technique for a set of input is monitored to yield the optimized genetic algorithm. It can be seen from Table 3 that a selection of 85 generations yields the optimal value of the R-squared statistical index for the GA–ANN. The bold values in Table 3 are representing the final selected results.

Table 3 Employed variable range of the configured GA

In overall, the exergy efficiency with R-squared of R2 = 0.9259 is obtained after implementation of the ANN–GA method.

For the employed BP training approach, the momentum correction factor of 0.7 and the learning coefficient of 0.001 are regulated. GA–ANN is a time-consuming approach. But comparing the ability in error minimization and computation time states that this method is still beneficial. To increase the computation speed led to cut the computation time of the model, local probing terms are employed at the final stage of the algorithm when the overall MSE is minimized or the fitness function is nearly maximized.

The simulated and predicted values of exergy efficiency are graphically compared in Fig. 12. The MSE and coefficient of determination are obtained. It can be seen from Fig. 12 that predicted values demonstrate a satisfactory deviation with the actual measured data. The computation time of 340 s is recorded and demonstrates the powerfulness of the employed model. It is demonstrated in Fig. 12 that the outcomes of the GA–ANN technique are placed in the vicinity of the X = Y line. This closeness illustrates the high level of model accurateness in the exergy efficiency calculation. It can be differently stated that when the predicted output and the real output are similar, they will be located in the slope line of 45° (X = Y). This statistical index is known as the correlation coefficient. The correlation coefficient of 1 demonstrates the high precision of the proposed approach. An index number is donated to each data, and the measured exergy efficiency is compared to the predicted exergy efficiency in Fig. 13. It can be monitored from Fig. 13 that the obtained values of the model are close to the real measured values, and this indicates the satisfactory precision of the proposed model. Error diagram shown in Fig. 14 illustrates the closeness of predicted values and real results that it can additionally prove accurate performance of purposed approach.

Fig. 12
figure 12

Scatter plot for exergy efficiency based on GA–ANN method and the R-squared of 0.9259

Fig. 13
figure 13

Comparison of ANN–GA predicted outcomes and experiment values of exergy efficiency for all data

Fig. 14
figure 14

Relative error between predicted data via neural network and experimental data

7 Conclusion

In this investigation, application of CNT/water nanofluid and twisted tape insertion is assessed in a heat exchanger with a fixed wall temperature. Combination of GA and BP for the training phase in the NN algorithm is employed to assess the total exergy performance of the heat exchanger. Following deductions can be obtained from this study:

  1. 1.

    Simultaneous application of nanofluid and twisted tape increases the convective heat transfer, friction factor, and in overall the thermal performance factor.

  2. 2.

    Increasing the CNT volume concentrations and decreasing the twist ratios of the twisted tape yield higher friction factor and convection coefficient and in overall yield improvement in the thermal performance factor.

  3. 3.

    The highest performance factor of 3.4 is yielded when the CNT is applied at the concentration of 1.2%, and twisted tapes are fabricated at the twist ratio of 2.

  4. 4.

    The outcomes based on the presence of nanoparticles demonstrate that the influence of increasing thermal conductivity is superior to the rise of viscosity.

  5. 5.

    The ANN–GA model demonstrated its high accuracy in the prediction of exergy efficiency of the heat exchangers.