1 Introduction

Thermal management of electronic devices has become increasingly important for the design of products with increased power and efficiency in the electronics industry. Hence, for higher heat dissipation, lower coolant requirement and many other advantages due to the small size, microchannel heat sinks were first introduced by Tuckerman and Pease [1]. Nowadays, they are used as one of the most common methods of removing heat from electronics devices. In these devices, the heat transfer coefficient is inversely proportional to the channel hydraulic diameter [2].

One common way to improve the performance of engineering structures and design is using meta-heuristic algorithms in the optimization field. Many meta-heuristic algorithms have been introduced in the evolutionary computation and optimization field in recent years. For example, the particle swarm optimization (PSO) [3] algorithm has been inspired from the bird migration, and the imperialist competitive algorithm (ICA) [4] from social and human relationships to develop mathematical models and related optimization algorithms. The optimization problem has a direct relationship with the search, and its relevance is inspired by nature, for example, in the ant colony optimization (ACO) algorithm [5], the ants always look for the best food source and its saving. In the artificial bee colony (ABC) algorithm [6], the bees look for the best flower for honey production. Furthermore, several swarm intelligence algorithms have been recently developed. For example, grasshopper optimization algorithm (GOA) mimics the swarming behavior of grasshoppers in nature [7]. Similarly, dragonfly algorithm (DA) [8] and whale optimization algorithm (WOA) [9] are inspired from the behavior of dragonflies and whales, respectively. There is a vast body of literature on the successful applications of nature-inspired algorithms for solving different engineering problems [10,11,12,13,14,15,16]. Nature seeks to make the most resistant and superior creatures. Solvers capability of finding the best solution amongst the infinite solutions is critical for efficiently solving optimization problems. In fact, searching and optimization are applied to these problems, and those algorithms are more applicable here which investigate a large part of the solutions and arrive at a final solution.

In all conventional optimization methods, there are two phases in the common search phase: (a) exploration and (b) exploitation. The exploration ability aims at generating new and varied responses, while the exploitation ability is mainly responsible for the local improvement of the responses from the exploration phase. An efficient algorithm is considered as the one, which provides a balance between the two components [17].

HHO is a novel optimization method developed by Heidari et al. [18], which is inspired from the modeling of the behavior of Harris Hawks. Attacking strategy of Harris Hawks simultaneously from various directions has been the building block of the algorithm. This algorithm has shown high search power, acceptable exploitation and exploration, which led to their successful application to many real engineering problems compared to previous algorithms [19,20,21,22,23,24,25,26,27]. In HHO algorithm, firstly, eagles (search agents) try to search in the solution space effectively, thereby gathering information about the solution space. This information is then used by HHO algorithm to avoid being trapped to local optimums. After a comprehensive search, by using a group attack, hawks try to find the best solution region. Another key factor that leads to the superiority of this algorithm is the fact that HHO algorithm is able to update the search agents, which eventually lead to finding the global optimum. Applicability of this algorithm to the applications with many variables also make this algorithm an attractive alternative. On the other hand, other algorithms are, in general, accurate for one or two-dimensional problems. HHO algorithm is applicable to higher-dimensional problems by balancing exploration and exploitation phases [7].

Moayedi et al. [19] used HHO and DA optimization methods to analyze the bearing capacity of footing over two-layer foundation soils. In another work, they studied the effect of HHO optimization algorithm to enhance the accuracy of the conventional multilayer perception technique to find a more reliable analysis of the stability of the soil slobes [20]. Abdel Aleem et al. [21] optimized the harmonic overloading level of frequency-dependent components in a non-sinusoidal distribution system using HHO algorithm. They have proven that HHO is an effective algorithm compared to other algorithms. Yildiz et al. [22] studied the performance of HHO, GOA, MVO for solving manufacturing optimization problems. They showed that these algorithms are powerful for the manufacturing applications. Furthermore, the results of this study demonstrate that HHO is able to find the optimal solution with lower number of function evaluations. HHO algorithm was also used in the literature to find the optimal tuning of convolutional neural network parameters for the control chart patterns recognition [23]. Moreover, Mehta et al. [24] showed that HHO algorithm can be considered as an efficient optimization algorithm for solving the optimum load dispatch problems.

While HHO algorithm has shown a great performance in so many engineering problems, No Free Lunch (NFL) theorem states that none of the metaheuristic algorithms result in the best solutions for all problems. Therefore, it is required to calibrate optimization parameters to improve their performance. One of the limitations of HHO is that it cannot be used directly for binary problems. Too et al. [28] proposed a binary version of HHO making it possible for its application to the binary problems such as feature selection problems. This has been achieved by integrating S-shaped and V-shaped transfer functions to the HHO algorithm. Hussain et al. [29] modified the HHO algorithm with a long-term memory concept to apply it to higher dimensional and optimal power flow problems. Chen et al. [30] added one more exploration mechanism to the HHO algorithm to identify the unknown parameters of photovoltaic modulus efficiently. In this study, they used opposition-based learning and chaotic local search simultaneously to enhance its diversification algorithm. Jia et al. [31] used a dynamic control parameter method and mutation operator to modify the HHO and apply it for the satellite Image Segmentation. They concluded that the exploration and exploitation phases are not balanced, and this algorithm may not be able to yield global optimum for some complex problems. It is shown that this modification improves the search capability of the HHO, thereby leading to global optimum compared to original HHO algorithm. A new hybrid algorithm, which combines Harris Hawk algorithm and Nelder-Mead, is used by Yildiz et al. [32] for the optimization of process parameters of milling operations. Furthermore, Bao et al. [33] added differential evolution (DE) algorithm to the HHO algorithm for solving color image multilevel thresholding segmentation problems. In this paper, both algorithms of HHO and DE work at the same time to update the positions of each sub-population more efficiently. This study concludes that HHO-DE algorithm has superior performance for multi-level thresholding color image segmentation. In another study, Bui et al. [34] combined the Harris Hawk optimization (HHO) with artificial neutral network (ANN) for improving the ability of original HHO in landslide susceptibility analysis.

Application of the optimization methods to MEMS electronics for the effective cooling by microchannel heat sinks have become popular in the recent years for the aforementioned reasons. In one of those studies, Wang et al. [35] optimized the geometric design of microchannel heat sink using the multi-parameter optimization methods. In this study, design parameters such as the number of channels, channel width, and channel height were optimized so as to minimize the heat transfer resistance. In another study by Bello-Ochende et al. [36], minimization of the peak temperature from microchannel heat sink walls was chosen as the objective function using the finite volume method. In a more recent study, Cruz-Duarte [37] developed an optimal microchannel heat sinks design with colloidal coolants by minimizing entropy generation. In this process, three optimization algorithms including unified Particle swarm optimization, spiral optimization and cuckoo were used and their performance was compared. They showed that the cuckoo algorithm provides a more accurate response than the other two methods. In another paper [38], using optimization methods such as SA, SO and UPSO, they investigated the minimization of heat resistance in micro channel heat sinks with spreading resistance.

Adham et al. [39] analyzed methods to improve micro channel heat sink performance by combining the classic optimization of genetic algorithm with EGM. In this process, the genetic algorithm has been used with different methodologies to improve optimization.

There is a vast body of literature on the minimization of the thermal resistance of microchannel heat sinks. Afzal Hussain and Kim [40] minimized the thermal resistance in a microchannel by optimizing the width and depth of the microchannel and fin width. In another study [41], they attempted to optimize the performance of microchannel heat sinks using hybrid multi-objective evolutionary algorithm coupled with surrogate methods, where multi-objectives were chosen as the thermal resistance and pumping power.

Furthermore, the effectiveness of different algorithms on the performance of microchannels has been compared in various works. Most common algorithms from the literature are MOGA [42], MOEA [43], prey-predator algorithm and Artificial Neutral network [44] GA and Taguchi methods [45] and Ant Lion algorithm [46]. Khan et al. [28] minimized the entropy generation rate in microchannel heat sinks using Genetic Algorithms. In this study, the optimization results were compared with those obtained from the Newton–Raphson method.

Given the articles cited in the literature review, improving the performance of micro channel heat sinks by optimizing the design of these structures is an important topic with high importance in the electrical equipment and MEMS industries. Among the previous studies, many researchers have tried to improve the performance of thermal microchannels using optimization algorithms [35,36,37,38,39,40,41,42,43,44,45,46,47]. Among them, only in one study conducted by Khan et al. [28], the slip flow velocity and temperature jump boundary conditions have been considered in calculating friction and heat transfer coefficient. It is noteworthy that in Khan’s study [47], the classical genetic optimization algorithm has been used. In this study, by using a new swarm intelligence algorithm called HHO (introduced in 2019), the most optimal possible solution and design parameters were obtained by considering the slip flow, and its performance has been compared to the results of the aforementioned algorithms such as bees algorithm (BeA), grasshopper optimization algorithm (GOA), whale optimization algorithm(WOA), dragonfly algorithm (DA) and particle swarm optimization (PSO) algorithms. In addition, results are considered for different fluids and microchannel materials to achieve the best performance. The organization of the paper is as follows: first, modeling of the heat transfer problem is explained in Sect. 2. An overview of the HHO optimization algorithm is given in Sect. 3. In Sect. 4, optimization methodology is explained in detail. The results are presented in Sect. 5. Finally, conclusions are addressed in Sect. 6.

2 Modeling

The geometry of the microchannel heat sink is shown in Fig. 1. It consists of N parallel microchannels with a rectangular cross-section (\(2W_{\text{c}} \times H_{\text{c}}\)), length and width are respectively equal to L and W (Fig. 1). It is noteworthy to be mentioned that the upper surface of micro-channel is isolated, and the bottom surface of it is uniformly heated. The thickness of the fin and temperature of the internal wall are 2Ww and Tw, respectively. Heat is dissipated away by a fluid as a coolant with the temperature of Ta and the velocity of Uav. For calculation of friction and heat transfer coefficient in channel’s wall, Slip flow velocity, and temperature jump boundary conditions are taken into account.

Fig. 1
figure 1

The geometry of the microchannel heat sink

Half of the channel is considered for the analysis of the performance of the microchannel heat sink as shown in Fig. 1. The side and the top surfaces can be considered impenetrable, adiabatic and shear free i.e. no mass and shear work transfer across these surfaces. The system’s irreversibility is due to heat transfer and friction. For convenience, the following assumptions are taken into account:

  • The fluid is compressible with constant thermodynamic properties.

  • The fluid flow is fully developed fluid flow.

  • The fluid flow is 2D and steady-state laminar.

  • The material for the microchannels is isotropic.

  • The surfaces of the wall of microchannels are smooth.

  • There is uniform heat flux from the bottom surface of the microchannel.

  • Adiabatic fin tips boundary conditions are assumed.

  • Slip flow (which is between 0.1 and 0.001) without considering creep effect.

  • The change in kinetic and potential energies is negligible.

2.1 Entropy generation formulation

The conservation of mass equation for specified control volume (see Fig. 1) is defined as follows:

$$\frac{{{\text{d}}m_{\text{cv}} }}{{{\text{d}}t}} = \dot{m}_{\text{in}} - \dot{m}_{\text{out}}$$
(1)

where \(\dot{m}_{\text{in}}\) and \(\dot{m}_{\text{out}}\) are the mass rate at the inlet and outlet of the microchannel, respectively. \(\frac{{{\text{d}}m_{\text{cv}} }}{{{\text{d}}t}}\) is the mass rate of the control volume. Equation (1) is re-written as follows with the steady state assumption:

$$\dot{m}_{\text{in}} = \dot{m}_{\text{out}} = \dot{m}$$
(2)

The application of the first law of thermodynamics to the aforementioned control volume in steady-state condition and neglecting kinetic and potential energies results in:

$$Q = \dot{m}\left( {h_{\text{out}} - h_{\text{in}} } \right)$$
(3)

where Q is the total heat transfer from the fin and base of the microchannel. \(h_{\text{in}} ,h_{\text{out}}\) are the inlet and outlet enthalpies of the fluids, respectively. Equation 4 is obtained by the application of the second law of thermodynamics according to the procedure from [48, 49]:

$$\frac{{{\text{d}}S_{\text{cv}} }}{{{\text{d}}t}} = \dot{m}\left( {s_{\text{in}} - s_{\text{out}} } \right) + \frac{{Q_{\text{fin}} }}{{T_{\text{a}} }} + \frac{{Q_{\text{b}} }}{{T_{\text{b}} }} + S_{\text{gen}}$$
(4)

where \(\frac{{{\text{d}}S_{\text{cv}} }}{{{\text{d}}t}}\) is the entropy rate of the control volume. \(T_{\text{b}}\) and \(Q_{\text{b}}\) are the temperature and heat transfer of the base of heat sink, \(Q_{\text{fin}}\) is the heat transfer from the fin and \(S_{\text{gen}}\) is the entropy generation. \(s_{\text{in}} ,s_{\text{out}}\) are the inlet and outlet entropies of the fluids. The left hand’s side of Eq. 4 becomes zero under the steady-state condition. In addition, the heat transfer from the fin and base add to the total heat transfer resulting in:

$$S_{\text{gen}} = \dot{m}\left( {s_{\text{out}} - s_{\text{in}} } \right) - \frac{Q}{{T_{\text{b}} }}$$
(5)

By integrating Gibb’s equation one can find:

$$h_{\text{in}} - h_{\text{out}} = T_{a} \left( {s_{\text{in}} - s_{\text{out}} } \right) + \frac{1}{\rho }\left( {P_{\text{in}} - P_{\text{out}} } \right)$$
(6)

where \(\rho\) is the density of the fluid. \(P_{\text{in}} ,P_{\text{out}}\) are the inlet and outlet pressure of the fluids, respectively. By substituting Eqs. (3) and (5) into Eq. (6) and considering \(\theta_{\text{b}} = T_{\text{b}} - T_{\text{a}}\), we have:

$$S_{\text{gen}} = \frac{{Q\theta_{\text{b}} }}{{T_{\text{a}} T_{\text{b}} }} + \frac{{\dot{m}}}{{\rho T_{\text{b}} }}\Delta P$$
(7)

where \(P\) is the total pressure drop across the microchannel and \(\theta_{\text{b}} = R_{\text{th}} Q\). So, the final form of Eq. (7) becomes as:

$$S_{\text{gen}} = \frac{{Q^{2} R_{\text{th}} }}{{T_{\text{a}} T_{\text{b}} }} + \frac{{\dot{m}}}{{\rho T_{\text{b}} }}\Delta P$$
(8)

where \(R_{\text{th}}\) is total thermal resistance across the microchannel. The expression in Eq. 8 is the entropy generation equation, which consists of thermal resistance and pressure drop.

The number of channels for the specified dimensions is calculated as follows:

$$N = \frac{{W - w_{\text{w}} }}{{w_{\text{c}} - w_{\text{w}} }}$$
(9)

\(w_{\text{w}}\) is half of the width of the channel and \(w_{\text{c}}\) is the half of the fin of the microchannel. Given the total flow rate, height and width of the microchannel, the average velocity in each channel can be obtained from Eq. (10):

$$U_{\text{av}} = \frac{{\dot{m}}}{{N\rho (2w_{\text{w}} )H_{\text{c}} }}$$
(10)

where \(H_{\text{c}}\) is the height of microchannel.

2.2 Thermal resistance of microchannel

Thermal resistance taking into account the convective and fluid thermal resistances is calculated from:

$$\begin{aligned} R_{\text{th}} &= \frac{{\theta_{\text{b}} }}{Q} \hfill \\ R_{\text{th}} &= \frac{{T_{\text{b}} - T_{\text{f}} }}{Q} + \frac{{T_{\text{f}} - T_{\text{a}} }}{Q} \hfill \\ R_{\text{th}} & = R_{\text{conv}} + R_{\text{fluid}} \hfill \\ \end{aligned}$$
(11)

where Tf is the bulk fluid temperature. The temperature of base surface of microchannel and bulk fluid can be written calculated according to Eqs. (12) and (13), respectively:

$$T_{\text{b}} = T_{\text{a}} + QR_{\text{th}}$$
(12)
$$T_{\text{f}} = T_{\text{a}} + \frac{Q}{{2C_{p} \dot{m}}}$$
(13)

where Cp is the specific heat of fluid. Assuming same heat transfer coefficient for fin and base, i.e. (\({\text{h}}_{\text{base}} = {\text{h}}_{\text{fin}} = {\text{h}}_{\text{av}}\)), the thermal resistance reduces to:

$$R_{\text{conv}} = \frac{1}{{Ah_{\text{av}} }}$$
(14)
$$R_{\text{fluid}} = \frac{1}{{C_{p} \dot{m}}}$$
(15)

where \(h_{\text{av}}\) is the average heat transfer coefficient. A is the contact surface, which can be calculated from Eq. (16):

$$A = 2NL(W_{\text{c}} + H_{\text{c}} \eta_{\text{fin}} )$$
(16)

Fin efficiency (\(\eta_{\text{fin}}\)) is defined as follow [50]:

$$\eta_{\text{fin}} = \frac{{\tanh \left( {mH_{\text{c}} } \right)}}{{mH_{\text{c}} }}$$
(17)
$$m = \sqrt {\frac{{2h_{\text{av}} }}{{kw_{\text{c}} }}}$$
(18)

where m is the fin parameter and k is the thermal conductivity of the fin. Khan et al. [49] determined the Nusselt number in the dimensionless form by solving energy equation and taking into account the slip flow velocity and temperature boundary conditions:

$${\text{Nu}} = \frac{{h_{\text{av}} D_{\text{h}} }}{{k_{\text{f}} }}$$
(19)
$${\text{Nu}} = \frac{140/17}{{\left( {1 + \alpha_{\text{c}} } \right)\left[ {1 - \frac{6}{17}\frac{{U_{\text{s}} }}{{U_{\text{av}} }} + \frac{2}{51}\left( {\frac{{U_{\text{s}} }}{{U_{\text{av}} }}} \right)^{2} } \right] + \frac{140}{17}\xi_{t} }}$$
(20)
$$\alpha_{\text{c}} = \frac{{2w_{\text{c}} }}{{H_{\text{c}} }}$$
(21)
$$\frac{{U_{\text{s}} }}{{U_{\text{av}} }} = \frac{6\alpha }{1 + 6\alpha }$$
(22)
$$\alpha = \frac{{2\xi_{u} }}{{1 + \alpha_{\text{c}} }}$$
(23)
$$\xi_{u} = \left( {\frac{2 - \sigma }{\sigma }} \right) {\text{Kn}}$$
(24)
$$\xi_{t} = \left( {\frac{{2 - \sigma_{\text{t}} }}{{\sigma_{\text{t}} }}} \right).\frac{2\gamma }{\gamma + 1}.\frac{\text{Kn}}{ \Pr }$$
(25)

where \(D_{\text{h}}\) is the hydraulic diameter and \(k_{\text{f}}\) is the thermal conductivity of the fluid, \(U_{\text{s}}\) is the slip velocity of the fluid, \(\alpha\) is the thermal diffusivity, \(\xi_{u}\) is the slip velocity coefficient,\(\xi_{t}\) is the temperature jump coefficient, \(\sigma_{t}\) is the energy accommodation coefficient, \({ \Pr }\) Prandtl number, \(\gamma\) is the ratio of specific heat. Kn is the Knudsen number, which characterizes the boundary condition of the fluid.

By using the above equations thermal resistance can be calculated according to Eqs. (26) to (31):

$$R_{\text{th}} = \frac{{2C_{3} \alpha_{\text{hs}} }}{{LC_{1} C_{2} k_{\text{f}} }}$$
(26)
$$C_{1} = N\alpha_{\text{hs}} \left( {2\eta_{\text{fin}} + \alpha_{\text{c}} } \right)$$
(27)
$$C_{2} = \left( {1 + \alpha_{\text{c}} } \right)/\alpha_{\text{c}}$$
(28)
$$C_{3} = \frac{1}{{{\text{Nu}}_{\text{Dh}} }} + \frac{{C_{1} }}{{{\text{Pe}}_{\text{Dh}} }}$$
(29)
$$\alpha_{\text{hs}} = \frac{L}{{2w_{\text{c}} }}$$
(30)
$$\beta = \frac{{w_{\text{c}} }}{{w_{\text{w}} }}$$
(31)

2.3 Pressure drop formulation

Pressure drop due to flow across the channel is as follow:

$$\Delta P = \frac{{\rho U_{\text{av}}^{2} }}{2}\left[ {K_{\text{ce}} + \left( {f\frac{L}{{D_{\text{h}} }}} \right)} \right]$$
(32)

where \(K_{\text{ce}}\) is the sum of entrance and exit losses. Khan et al. [48] calculated the friction coefficient of a rectangular microchannel in terms of aspect ratio and slip velocity coefficient as:

$$f \text{Re}_{\text{Dh}} = \left( {\frac{24}{{1 + \alpha_{\text{c}} }}} \right).\left( {\frac{1}{1 + 6\alpha }} \right)$$
(33)

where \(\text{Re}_{\text{Dh}}\) is the Reynold’s number and f is the friction factor. Kce can be expressed as follow [51, 52]:

$$K_{\text{ce}} = 1.79 - 2.32\left( {\frac{{w_{\text{c}} }}{{w_{\text{c}} + w_{\text{w}} }}} \right) + 0.53\left( {\frac{{w_{\text{c}} }}{{w_{\text{c}} + w_{\text{w}} }}} \right)^{2}$$
(34)

By substituting the above equation in the Eq. (8) Sgen can be found as follow:

$$S_{\text{gen}} = \frac{{Q^{2} }}{{T_{\text{a}} T_{\text{b}} }}.\frac{{2C_{3} \alpha_{\text{hs}} }}{{LC_{1} C_{2} k_{\text{f}} }} + \frac{{\rho w_{\text{c}} H_{\text{c}} U_{\text{av}}^{3} }}{{T_{\text{a}} }}C_{4}$$
(35)
$$C_{4} = \left[ {K_{\text{ce}} + \left( {f\frac{L}{{D_{\text{h}} }}} \right)} \right]$$
(36)

3 HHO optimization algorithm

HHO is a novel optimization method developed by Heidari et al. [18]. HHO is a nature-inspired optimization algorithm inspired by the Harris Hawk birds’ behavior modeling. The essence of the algorithm is the cooperation between hawks in hunting the prey. Based on this algorithm, a group of Harris hawks attack the prey from different directions to take it by surprise. Evidently, the prey’s escape pattern is proportional to the Harris hawk’s chase model. Birds cooperate in the process of attack. Meanwhile, the leader of the Harris hawks attacks the target prey, follows it, and suddenly moves out of sight, and the next Harris hawk continues the chase. This strategy tires the prey and eventually results in its capture. HHO algorithm is more superior to other algorithms on its applicability to constrainted problems. Moreover, HHO, which is a global optimizer, can maintain its balance between exploitation and exploration phases. The HHO algorithm has three phases. The first phase is the ability of exploration, which is formulated as follows:

$$x(t + 1) = \left\{ {\begin{array}{*{20}l} {x_{\text{rand}} (t) - r_{1} \left| {x_{\text{rand}} (t) - 2r_{2} x(tt} \right|} \hfill & {q \ge 0.5} \hfill \\ {x_{\text{prey}} (t) - x_{a} (t) - r_{3} (LB + r_{4} (UB - LB))} \hfill & {q \prec 0.5} \hfill \\ \end{array} } \right.$$
(37)

where X(t) is the current location of Hawk, X(t + 1) is the location of Hawk in the next iteration t, \(X_{\text{prey}} (t)\) is the location of prey, \(r_{1} ,r_{2} ,r_{3} ,r_{4}\) and q are random numbers between (0,1). \(X_{\text{rand}} (t)\) is the randomly selected hawk between the population. Furthermore, LB and UB denote the lower bands and the upper bands, respectively. \(X_{\text{a}} (t)\) is the average location of Harris Hawk, which is given as below:

$$x_{\text{a}} (t) = \frac{1}{N}\sum\limits_{i = 1}^{N} {x_{i} \left( t \right)}$$
(38)

where \(X_{i} (t)\) demonstrates the position of each Harris Hawk in iteration t and N is the number of all Harris Hawks. The second phase is the exploitation. Evidently, the hawks’ energy is reduced during chase and hunt. The energy of a prey can be defined as:

$$E = 2E_{0} \left( {1 - \frac{1}{T}} \right)$$
(39)

E0 is the energy in the first stage, T indicates the maximum number of iterations and E is the escaping energy. In this phase, when \(\left| {E_{0} } \right| \ge 1\) exploration happens and when \(\left| {E_{0} } \right| \prec 1\) exploitation occurs.

The third phase is exploitation, which is mainly to improve the local solutions from previously found solutions. This phase is the hawks’ surprising attack on the prey identified in the previous phase. Based on the prey’s escape and hawks’ chasing, four models have been proposed for the attack phase. Different phases of the HHO algorithm are shown in Fig. 2.

Fig. 2
figure 2

Different phases of HHO algorithm [18]

3.1 Soft besiege

Soft besiege condition is valid when \(r \ge 0\) and \(\left| E \right| \ge 0\), which is modeled as:

$$x(t + 1) = \Delta x(t) - E\left| {Jx_{\rm prey} (t) - 2x(t)} \right|$$
(40)
$$\Delta x(t) = x_{\rm prey} (t) - x(t)$$
(41)

where \(\Delta x\) is the difference between the prey location and the current location of Hawk in the iteration t. J is the random jump power of the prey while it is escaping which is equal to \(J = 2(1 - r_{5} )\) and \(r_{5}\) is a random number in the interval (0,1).

3.2 Hard besiege

Hard besiege condition is valid when \(r \ge 0\) and \(\left| E \right| \prec 0\). The prey is tired and does not have sufficient energy to escape. This phase is modeled as follows:

$$x(t + 1) = x_{\rm prey} (t) - E_{n} \left| {\Delta x(t)} \right|$$
(42)

3.3 Soft besiege with progressive rapid dive

Soft besiege with progressive rapid dive condition is valid when \(r \prec 0\) and \(\left| E \right| \ge 0\). In this phase, the prey has enough energy to escape successfully. In this stage, for performing soft besiege Hawk examines the next move that can be formulated as follows:

$$x = x_{\rm prey} (t) - E\left| {Jx_{\rm prey} (t) - x(t)} \right|$$
(43)
$$Z = Y + S + {\rm LF}(D)$$
(44)

where D indicates the dimension and S is a random vector by size \(1 \times D\) and LF is the levy flight function [18, 53]. As a result we have:

$$x(t + 1) = \left\{ {\begin{array}{*{20}c} {Y\quad \quad f(Y) \prec f(y(t))} \\ {Z\quad \quad f(Z) \prec f(y(t))} \\ \end{array} } \right.$$
(45)
  1. 1.

    Hard besiege with progressive rapid dive

  2. 2.

    Hard besiege with progressive rapid dive is valid when \(r \prec 0\) and \(\left| E \right| \prec 0\). In this case, the prey does not have enough energy to escape appropriately. This strategy can be formulated as follows:

    $$x(t + 1) = \left\{ {\begin{array}{*{20}l} {x_{\rm prey} (t) - E\left| {Jx_{\rm prey} (t) - x_{m} (t)} \right|} & \quad {f(Y) \prec f(y(t))} \\ {Z = Y + S + {\rm LF}(D)} & \quad {f(Z) \prec f(y(t))} \\ \end{array} } \right.$$
    (46)

4 Optimization methodology

The objective function is defined as the minimization of the entropy generation. The constraints are put for the geometric dimensions of the microchannel. The optimization problem is formulated in Eq. (47) with the objective function and constraints in the negative null form:

$$F\left( x \right) = S_{\text{gen}} = \frac{{Q^{2} }}{{T_{\text{a}} T_{\text{b}} }}.\frac{{2C_{3} \alpha_{\text{hs}} }}{{LC_{1} C_{2} k_{\text{f}} }} + \frac{{\rho w_{\text{c}} H_{\text{c}} U_{\text{av}}^{3} }}{{T_{\text{a}} }}C_{4}$$
(47)
$$\begin{aligned} {\text{Subject}}\;{\text{to :}} & \, 0.1 \, < \, 2W_{\text{c}} < \, 0.3 \\ & 0.1 \, < 2W_{\text{w}} < \, 0.3 \\ & 3 \, < H_{\text{c}} < \, 8 \\ \end{aligned}$$
(48)

For the optimization case study, silicon and air are chosen as the material for the microchannel and the coolant, respectively. Harris Hawk’s optimization algorithm (HHO) is applied to obtain the optimal design variables in terms of two dimensionless parameters: channel aspect ratio (\(\alpha_{\text{c}} = \frac{{2W_{\text{c}} }}{{H_{\text{c}} }}\)) and fin spacing ratio (\(\beta = \frac{{W_{\text{c}} }}{{W_{\text{w}} }}\)). Fin spacing ratio is related to the width of channels and thickness of fin. Furthermore, the channel aspect ratio depends on the width and height of channels. HHO algorithm for the optimization of microchannel heat sink (MCHS) is shown in Fig. 3. The recommended parameters from the literature are used for PSO, BeA, GOA, WOA, DA and HHO algorithms and are given in Table 1. We set maximum iteration number to 500 iterations to ensure the convergence. For further information on the PSO, GOA, WOA, DA, BeA algorithms, readers are referred to [3, 7,8,9, 54], respectively. All algorithms were simulated using Matlab (R2019a). Alternative materials to silicon and air are used to investigate their effect on the performance of microchannels. Computational efficiency of each algorithm is calculated as the average of 20 different runs and compared to each other. Model parameters and material properties of MCHS are given in Table 1.

Fig. 3
figure 3

HHO algorithm for the design of the microchannel heat sink

Table 1 Dimensions of heat sink and relevant material properties

4.1 Calibration of optimization parameters

Calibration of the optimization parameters plays an important role in minimizing entropy generation problems using the aforementioned algorithms. Therefore, in this section, we describe how to tune these parameters for obtaining the best possible solution. For that purpose, silicon–air case (Si–Air) is used as a test case, where the properties of Si–air are shown in Table 1. In the tuning process, all of the optimization parameters (shown in Table 2) are considered and varied across their nominal values generating a design of experiment (DOE) matrix. The optimization is run for all the elements of the DOE matrix and the optimization parameters corresponding to the minimum entropy generation are considered as the tuned parameters.

Table 2 The optimization parameters

5 Results and discussions

Results are presented in two sections. In Sect. 1, HHO, GOA, WOA, DA optimization methods are used to minimize the entropy generation for optimizing the silicon microchannel design with air coolant fluid at various volume flow rate and Knudsen numbers. The results of this study are compared with those obtained from the previous studies conducted by Khan, Newton–Raphson and GA methods [48, 49]. The results from the optimization study indicate the effectiveness of the HHO algorithm based on the lower entropy generation results compared to other algorithms. In Sect. 2, a variety of materials with different thermal conductivity and coolant fluids are evaluated to obtain the optimum microchannel design. The results from this study are compared with six optimization algorithms: (HHO, GOA, WOA, DA, BeA, PSO).

5.1 Design using silicon–air

In this section, the entropy generation is minimized by HHO, GOA, WOA and DA optimization for silicon microchannel with air coolant at different flow rates and Knudsen numbers. The results of the comparison with Khan’s previous works [48, 49] are summarized in Table 3. It is observed that by reducing the Knudsen number, the entropy generation increases. It should be mentioned that in Table 3, G is the volume flow rate of coolant and Kn is the Knudsen number, which were described in Sect. 2.2. The results indicate that the design from HHO algorithm is more efficient than others in the shortest time in a few iterations since the entropy generation is reduced as well as \(\alpha_{\text{c}}\) and \(\beta\). Using HHO algorithm, the entropy generation has been reduced by 63.31% compared to analytical NR method and 30.77% compared to GA algorithm from the literature. HHO has several characteristics that make it possible to show superior performance in exploring and exploiting in the search space. For example, the energy parameter, described in Sect. 3, improves the exploitation and exploration phase. HHO uses various array of diversification mechanism depending on the average location of hawks. The algorithm has different LF-based patterns with short length jumps, which would lead to increasing the capability of exploiting and exploring phases in HHO algorithm. Furthermore, search agents are able to improve their location by using progressive selection scheme in the algorithm. One of the superiority of HHO algorithm compared to previous algorithms is its capability to solve constrained problems and it can maintain its balance between exploitation and exploration. Moreover, HHO algorithm can use different search strategies based on r, E and jump (J) parameters, which allows HHO to balance the exploitation and exploration phases. The convergence curve for HHO, GOA, WOA, DA is shown in Fig. 4 for the various arrays of Kn and G. It is concluded from the convergence curve that, GOA, WOA and DA algorithms converge in 150 iterations. On the other hand, HHO algorithm as explained in Sect. 3 yields better results compared to other metaheuristic algorithms. As can be detected from Table 3, WOA is the second best algorithm after HHO (best results in Table 3 are highlighted as bold). The results show that minimum entropy generation [Sgen = 0.1268 (W K−1)] is achieved for G = 0.007 m s−3 and Kn = 0.1 for silicon MCHSs with air as a coolant.

Table 3 Comparison of optimum design variables and performance metrics
Fig. 4
figure 4figure 4

Sgen versus iterations in 500 iterations for S–Air configuration corresponding to different G and Kn values

Figure 5 shows the variations of the entropy generation as a function of the volume flow rate for different Kn values. This figure is plotted for the specific design variables, (Hc as height of channel, 2wc as width of the channel, and 2ww as width of the fin), it can be observed that Sgen depends on these dimensions. Then, the parameters, which minimize Sgen, can be identified.

Fig. 5
figure 5

The effect of volume flow rate on Sgen for various Kn

For some flow rate values, the entropy generation is decreasing while for others it is increasing. It is also deduced from the diagram that for each model there is a volume of volumetric flow rate in which the entropy generation is minimized. Different flow rate designs and microchannel materials can change this specific volume of flow rate. In Fig. 6, conductivity thermal changes induce significant changes in entropy generation. At a large Knudsen number, by increasing thermal conductivity, the entropy generation is reduced. Conductivity is a critical parameter on the microchannel design. It is known that a material with high conductivity in the design of microchannel improves the efficiency of the system considerably. The results of Figs. 5 and 6 are in line with Khan’s findings from [47]. Our results show that there is a similar trend for Sgen versus volume flow rate between Sgen versus thermal conductivity as in the literature. This proves the accuracy of our formulation and numeric results.

Fig. 6
figure 6

The effect of thermal conductivity on Sgen for various Kn with G = 0.005

5.2 Design using alternative materials

In the second part, for better investigation six optimization algorithm (HHO, GOA, WOA, DA, BeA, PSO) are used to minimize the entropy generation. As it is mentioned in the previous section microchannel’s conductivity has a significant effect on entropy generation of system. In this regard, three microchannels of copper and aluminum–silicon with two fluids of air and ammonia gas are investigated. Another important design consideration on the MCSH design is the coolant fluid. In this study, we consider two types of coolants: ammonia and air. Ammonia gas (R-717) is used extensively in industrial systems due to its known advantages. Firstly, ammonia is environmentally compatible. Second, ammonia has superior thermodynamic quality and requires less heat transfer area and hence uses less electricity. Moreover, the odor of ammonia makes it easy to detect the leaks. Finally, it is comparatively cheaper than other alternatives.

Six cases (1) Cu–NH3:Cupper–ammonia, (2) Al–NH3: (3) Aluminum–Ammonia, (4) Si–NH3:silicon–ammonia, (5) Al–Air: Aluminum–Air, Cu–Air: Cupper–air and (6) Si–Air: silicon air) are evaluated with six algorithms to minimize the entropy generation (Si–Air was studied in Sect. 5.1).

Table 4 show the results for various Knudsen number and volumetric flow rates (best results in Table 4 are highlighted as bold). The results indicate the effectiveness and computational efficiency of the HHO method compared to other algorithms. In addition, its high search and exploration power is also visible in Fig. 7 for case Cu–NH3. Considering the merits of HHO algorithm which are elaborated in the previous section, this algorithm is looking for optimal solutions by trying to balance the exploration and exploitation. The BeA algorithm found the solution in the same low number of iterations, and the higher iterations failed to produce better solutions but compare to other algorithms it shows superior performance. The opposite is seen in the HHO algorithm, which achieved better results in higher iterations by producing more acceptable solutions, indicating this novel algorithm’s strength in examining problems. Another distinctive feature of this algorithm is conducting the optimization process in less time, which is recommended to use in more complex functions with more variables.

Table 4 Optimum design results from the application of optimization algorithms for different MCHSs
Fig. 7
figure 7figure 7

Objective function versus iterations for Cu–NH3 case for different G and Kn parameters from a to i

From Table 4 it can be concluded that material of microchannel and fluid as a coolant are effective parameters on entropy generation and the efficiency of system. Copper, compared to aluminum and silicon, has a higher conductivity and therefore leads to lower entropy generation. From the comparisons between Cu–NH3 and Cu-air, entropy generation is reduced drastically for the Cu–NH3 case, which is attributed to the use of ammonia as the coolant fluid.

Thermophysical properties, conductivity and specific heat capacity of ammonia can result in a better performance of microchannel’s coolant fluid compare to air. In addition, using ammonia is advantageous as the leakage from a potential damage in the system would lead to early detection of the damage due to its odor, which is not harmful to human health. Moreover, it has a lower density which makes it suitable for microscale applications.

It is fair to be mentioned that ammonia has some disadvantageous. The major disadvantage of ammonia as a coolant is its toxicity. Due to ammonia’s hygroscopic nature, it migrates to moist areas of the body, including the eyes, nose, throat and moist skin and may cause severe burn injuries.

Figure 8 shows the minimum generation entropy data compared to the volumetric flow rate for the six design cases, indicating that the use of ammonium coolant performs better than using air as the coolant to minimize entropy generation as bad factor for system. This can be due to the high specific heat of ammonia compared to air.

Fig. 8
figure 8

Optimal Sgen versus G for different design of microchannel through ac, for a various Kn

As seen in the diagram, the best design is the copper-ammonia (Cu–NH3), whose entropy generation value in volumetric flow rate 0.007 reaches its minimum value.

Even though ammonia has very attractive properties, it is a corrosive material when used with copper, brass and bronze. Therefore, we proposed to use aluminum-ammonia (Al-NH3) in the microchannel design as Al–NH3 is the second best case from the results of Fig. 8.

Reliability of aluminum has been proven as an efficient material in industry for many years. Advantageous of aluminum are summarized below:

  • cost efficient and ductile

  • good machinability

  • toughness at subzero temperature

  • suitable for soldering and welding

  • cheaper than copper

6 Conclusion

In this paper, the effects of different channel aspect ratio, fin aspect ratio, heat sink materials and different Knudsen numbers in different flow rate have been studied. In this regard, the entropy generation is optimized with the powerful novel HHO method, which provides better results than previous works applying other methods and algorithms. The results obtained by the HHO method indicate that the entropy generation, which is a negative factor for the system, can be designed with a lower aspect ratio and fin aspect ratio, which in turn reduces the negative effect of this disturbing factor for the system.

Alternative materials for the microchannel and coolant fluids were also assessed in terms of their effect on the performance of the system. Optimization results indicate that copper as the microchannel material and ammonia gas as the coolant results in the minimum entropy generation. Since ammonia is not resistive to corrosion, aluminum-ammonia (Al-NH3) is recommended as an alternative for microchannel material and coolant fluid.

In this paper, the newly introduced HHO optimization algorithm is used to minimize the entropy generation. This algorithm was compared to the five powerful algorithms of GOA, WOA, DA, BeA and PSA. It is found that the HHO algorithm yields a better solution than the well-known algorithms in less CPU time thanks to its strong exploration and search pattern. HHO has several characteristics that make it possible to finds solution based on stable equilibrium between diversification and intensification and it is able to converge towards global optimum without being trapped to local optimum solutions. This simulation results show that the application of this algorithm is a strong and efficient candidate in many engineering problems, which are modeled with complex functions and many variables.

It is well known that material parameters can effectively minimize the entropy generation (Sgen). other materials based on kw, ʋ and ρ and etc. can be studied to improve the performance of MCHS design. Furthermore, it is possible to integrate HHO with other evolutionary schemes for improving the performance of HHO algorithm. These are acknowledged as future work.