Keywords

1 Introduction

Heat transfer by natural MHD convection in cavities heated from below and confining non-Newtonian fluids is an important area of research due to its involvement in many practical and industrial domains, including the medical and chemical industries, as well as the polymer and food processing [1]. The damping role of the magnetic field allows to modulate the thermally generated melting front [2] and its effect is controlled by the strength of the applied magnetic field through the Hartmann number. Many past studies have been conducted to investigate natural convection heat transfer of non-Newtonian fluids under the effect of an external magnetic field. The impact of the strength of the latter and the tilt angle of the confining configurations on heat transfer by natural convection in linearly heated [3], partially heated [4], and differentially heated [5] square cavities has been examined. The results presented in these studies show a considerable impact of the power-law index and the Hartmann number on heat transfer. More recently, Aghakhani et al. [6] employed the FD-LBM (Lattice Boltzmann-Finite Difference) approach to investigate the heat transfer of a non-Newtonian fluid by natural convection in a C-shaped enclosure submitted to the action of a horizontal magnetic field. Their findings reveal that the influence of convection becomes more important as the Rayleigh number increases, and that it is much more relevant for a shear-thinning fluid. However, raising the Hartmann number has a detrimental influence on fluid flow and heat transfer for various rheological behaviors. Similar findings have been reported by Zhang et al. [7] in an L-shaped cavity.

The literature review shows that natural convection in enclosures heated by internal heat sources has been the object of many studies [8,9,10]. This interest stems in part from the wide variety of important applications in different fields covering among others solar energy harvesting and operation, nuclear reactor safety, and fire prevention. The presence of internal heat generation provides additional dynamics in convective flow systems and may lead to unexpected behaviors. Thus, the effect of heat generation/absorption in the presence/absence of an external magnetic field on heat transfer generated by natural convection has been reported in some prior studies. In this frame, Khanafer et al. [11] studied numerically the magnetic field influence on the heat transfer generated by free convection in an inclined square cavity saturated with a porous media. Their results confirm the attenuation of the natural convection effect that results from the increase of Hartmann number. Recently, the Lattice Boltzmann method has been used to study the heat generation influence on heat and mass transfer and fluid flow by Soret driven free convection in the absence of the Lorentz force both in steady [12] and unsteady [13] flow regimes. The results of these studies show that heat generation impacts significantly the flow pattern, and the nature of oscillations while varying its intensity. The influence of heat generation/absorption in the presence of uniform [14], or variable [15] magnetic fields has been considered in the case of non-Newtonian fluids. The results obtained indicate that the Lorentz force is a key parameter for controlling the heat transfer within the cavity. The latter is also affected by the heat generation and decreases by raising the power-law index.

According to this preliminary literature review, it appears that there is a lack of studies addressing the numerical modeling in the presence of the Lorentz force and internal heat generation and their impacts on heat transfer generated by thermal convection in confined configurations filled with non-Newtonian fluids. Therefore, the objective of the present investigation is to elucidate the effect of the Hartmann number (\(Ha = 0\) to 50), the heat generation (\(R = 0\) and 1) and the power-law index (\(n = 0.8\) to 1.2) on natural convection within a square cavity partially heated from the bottom wall. The study is conducted using the MRT-LBM for an external Rayleigh number and a Prandtl number fixed at \(10^{5}\) and \(10\), respectively.

2 Mathematical Formulation

2.1 Physical Model

The two-dimensional physical model under consideration is depicted in Fig. 1. It consists of a square cavity partially heated from below. The heating source of length \(\varepsilon = w/L = 0.4\) is centrally located (\(d/L = 0.5\)). The cavity is cooled from its vertical sides, while the remaining walls (the upper horizontal wall and the non-heated elements of its lower wall) are thermally insulated. The cavity is filled with a non-Newtonian fluid (\(Pr = 10\)) and subject to the action of a horizontal magnetic field of intensity \(B_{0}\). The fluid flow is laminar, and all thermo-physical properties of the non-Newtonian fluid are assumed to be constant. However, the fluid density is assumed to vary linearly with temperature in the buoyancy term in line with the Boussinesq approximation.

Fig. 1.
figure 1

Schematic of the studied model.

2.2 Lattice Boltzmann Method

The MRT-LBM has been used in previous studies to simulate non-Newtonian fluid flows. This method has many advantages in terms of accuracy, numerical stability, ease of implementation of boundary conditions, and suitability for parallel computing. The LBM equations used to determine the velocity and temperature fields of the non-Newtonian fluid in the presence of two external forces (Lorentz and buoyancy forces) are expressed by Eqs. (1) (for flow) and (2) (for temperature) using the D2Q9 and D2Q5 models, respectively.

$$ f\left( {\vec{r} + c_{k} \Delta t,t + \Delta t} \right) = f\left( {\vec{r},t} \right) - M^{ - 1} S\left( {m\left( {\vec{r},t} \right) - m^{eq} \left( {\vec{r},t} \right)} \right) + M^{ - 1} \left( {{\mathbb{I}} - S/2} \right)F $$
(1)
$$ g\left( {\vec{r} + c_{k} \Delta t,t + \Delta t} \right) = g\left( {\vec{r},t} \right) - N^{ - 1} Q\left( {n\left( {\vec{r},t} \right) - n^{eq} \left( {\vec{r},t} \right)} \right) + \omega_{k} {\Phi } $$
(2)

where \(f/\left( g \right)\) is the density/(temperature) distributions functions. The function \(m_{k}\)/(\(n_{k}\)) is the moment space of density/(temperature) and \(m^{eq}\)/(\(n^{eq}\)) is its corresponding equilibrium moment space, which is defined as follows:

$$ m^{eq} = \left( \begin{gathered} \rho , - 2\rho + 3\rho \left( {u^{2} + v^{2} } \right),\rho - 3\rho \left( {u^{2} + v^{2} } \right),\rho u, \hfill \\ - \rho u,\rho v, - \rho v,\rho \left( {u^{2} - v^{2} } \right),\rho uv \hfill \\ \end{gathered} \right) $$
(3)
$$ n^{eq} = \left( {T,uT,vT, - 2T,0} \right) $$
(4)

The expressions of the force term F and the source term \({\Phi }\) in Eqs. (1) and (2) are given as following:

$$ F = \left\{ \begin{gathered} F_{0} = 0 \hfill \\ F_{1} = 6\rho \left( {F_{x} u + F_{y} v} \right) \hfill \\ F_{2} = - 6\rho \left( {F_{x} u + F_{y} v} \right) \hfill \\ F_{3} = F_{x} \hfill \\ F_{4} = - F_{x} \hfill \\ F_{5} = F_{y} \hfill \\ F_{6} = - F_{y} \hfill \\ F_{7} = 2\rho \left( {F_{x} u - F_{y} v} \right) \hfill \\ F_{8} = \rho \left( {F_{y} u + F_{x} v} \right) \hfill \\ \end{gathered} \right. $$
(5)
$$ {\Phi } = \frac{\alpha \Delta T}{{L^{2} }}R $$
(6)

The parameter \(R\) (\(= Ra_{I} /Ra_{E}\)) is the source term in the energy equation represented by the ratio between the internal and external Rayleigh numbers and \(F_{x}\) and \(F_{y}\) are the external forces applied in the x-direction and y-direction, respectively. In the present study, these forces are defined as follows:

$$ \begin{array}{*{20}c} {Fx = 0} \\ {Fy = \frac{{{\upalpha }^{2} PrRa_{E} }}{{\Delta TL^{3} }}\left( {T - T_{0} } \right) - \frac{{Ha^{2} k}}{{L^{2n} \alpha^{1 - n} }}v} \\ \end{array} $$
(7)

The physical parameters of the study are:

$$ \begin{gathered} Pr = \left( {\mu_{0} /\rho } \right)L^{2 - 2n} /(\alpha^{2 - n} ),\,\,Ra_{E} = g\beta \Delta TL^{2n + 1} /\left( {\left( {\mu_{0} /\rho } \right)\alpha^{n} } \right), \hfill \\ Ra_{I} = g\beta \dot{Q}L^{2n + 3} /(\lambda \left( {\mu_{0} /\rho } \right)\alpha^{n} ),\,\,Ha = B_{0} L^{n} \sqrt {\sigma \alpha^{1 - n} /\left( {\mu_{0} } \right)} \hfill \\ \end{gathered} $$
(8)

The relaxation diagonal matrices in the Eqs. (1) and (2) are defined as follows:

$$ S = diag\left( {1.0,1.4,1.4,1.0,1.2,1.0,1.2,1/\tau_{\vartheta } ,1/\tau_{\vartheta } } \right) $$
(9)
$$ Q = diag\left( {1.0,1/\tau_{\alpha } ,1/\tau_{\alpha } ,1.0,1.0} \right) $$
(10)

The parameters \(\tau_{\vartheta }\) and \(\tau_{\alpha }\) are the relaxation times, which are related to the dynamic viscosity and thermal diffusivity at the mesoscopic scale through the Chapmann-Enskog expansion analysis as follows:

$$ \tau_{\vartheta } = 3\left( {\mu /\rho } \right) + 0.5 $$
(11)
$$ \tau_{\alpha } = 5\alpha + 0.5 $$
(12)

In the case of a non-Newtonian fluid, the dynamic viscosity varies locally with the shear rate as follows:

$$ \mu = \mu_{0} \left| {\dot{\gamma }} \right|^{n - 1} $$
(13)

With

$$ \left| {\dot{\gamma }} \right| = \sqrt {2S_{\alpha \beta } S_{\alpha \beta } } $$
(14)

The parameter \(S_{\alpha \beta }\) is the shear stress, defined by Eq. (15) in the MRT model.

$$ S_{\alpha \beta } = \frac{ - 3}{{2\rho }}\sum C_{\alpha ,i} C_{\beta ,i} \sum M^{ - 1} SM\left( {f - f^{eq} } \right) $$
(15)

Classical Bounce-Back boundary conditions have been used to evaluate the unknown density distribution function (inside the physical domain), which is given by Eq. (16), along the motionless cavity walls. The evaluation of the unknown thermal distribution function \(g\) along the rigid walls, is expressed by Eq. (17).

$$ f_{w,i} = f_{{w,\overline{i}}} $$
(16)
$$ g_{w,i} = T_{w} - \mathop \sum \limits_{j = 0, j \ne i}^{4} g_{w,j} $$
(17)

where \(i\) is the direction of distribution function inside physical domain while \(\overline{i}\) is its opposite direction along the rigid wall, \(w\).

Finally, the macroscopic density, velocity and temperature are deduced by the expressions given by Eq. (18).

$$ \rho = \mathop \sum \limits_{k = 0}^{8} f_{k} ,\,\,\rho \vec{u} = \mathop \sum \limits_{k = 0}^{8} f_{k} \vec{c}_{k} + \Delta t\vec{F}/2 ,\,\,\,T = \mathop \sum \limits_{k = 0}^{4} g_{k} $$
(18)

The local/mean Nusselt number along the heating source are evaluated as follows:

$$ Nu_{L} = - \left. {\frac{\partial T}{{\partial Y}}} \right|_{Y = 0} \,\,{\text{and}}\,\,Nu_{m} = \frac{1}{\varepsilon }\!\!\!\!\!\!\!\!\mathop \smallint \limits_{\,\,\,\,\,\,\,\,\,\,d - \varepsilon /2}^{\,\,\,\,\,\,\,\,\,\,\,\,\,\,d + \varepsilon /2} Nu_{L} dX $$
(19)

2.3 Numerical Validation and Grid Size

The developed MRT-LBM code was submitted to several tests of validation. These tests are restricted here to the case of a cavity filled with a non-Newtonian fluid or submitted to the effect of an external magnetic field. In the case of a non-Newtonian fluid-filled square cavity, we used as reference the results obtained by Turan et al. [16]. The comparative results depicted in Fig. 2 in terms of mean Nusselt number for different rheological behaviors of the working fluid show a good agreement with a maximum difference not exceeding 1.38%. In the presence of an external magnetic field and an internal heat generation, the numerical results are compared to those published by Taghikhani [17] in terms of streamlines (Fig. 3a) and isotherms (Fig. 3b). From these figures, it can be seen that the results obtained with the MRT-LBM code are in very good qualitative and quantitative agreements with those published by Taghikhani [17].

The mesh adopted was preceded by numerous tests to examine its effect on the results. These tests were conducted in terms of \(Nu_{m}\) variations for \(Ra_{E} = 10^{5}\), \(Ha = 50\), \(R = 1\) and various n, using the grids 100 × 100, 160 × 160, 200 × 200, 260 × 260 and 300 × 300. Based on the results presented in Table 1, the grid 200 × 200 is considered appropriate in terms of accuracy and computation time. In fact, compared to the finest grid of 300 × 300, the maximum deviation recorded using the mesh 200 × 200 is within 0.88% with a substantial gain in terms of calculation time.

Fig. 2.
figure 2

Validation in terms of mean Nusselt number variations vs. \(n\) for \(Ra = 10^{5}\).

Fig. 3.
figure 3

Validations in terms of streamlines (a) and isotherms (b) for \(Ra_{E} = 10^{6}\), \(Pr = 0.733\) and \(R = 1\).

Table 1. Sensitivity of \(Nu_{m}\) to the grid size for \(Ra_{E} = 10^{5}\), \(Ha = 50\), \(R = 1\) and various n.

3 Results and Discussion

The combined influence of the Hartmann number (\(0 \le Ha \le 50\)), internal heat generation (\(R = 0\) and \(1\)) and power law index (\(0.8 \le n \le 1.2\)) on the thermal and dynamic behaviors of the non-Newtonian fluid are described in this section for a fixed external Rayleigh number of \(10^{5}\).

3.1 Streamlines and Isotherms

The solutions being symmetrical relative to the vertical cavity’s centerline, both streams and isotherms are exemplified in Fig. 4 to illustrate the combined effect of the parameters \(Ha\) and \(n\). By varying either, \(Ha\) or \(n\), the flow symmetry relative to the vertical centerline of the cavity is preserved but the flow intensity undergoes substantial changes. In fact, the fluid flow is organized into two vertical counter-rotating cells of equal intensities filling the inner space of the cavity. For \(R = 0\), Fig. 4a shows that both in the presence and in the absence of the Lorentz force, the increase of \(n\) reduces the flow intensity inside the cavity. Likewise, the intensification of the magnetic field through the increase of \(Ha\) has a damping effect leading to the attenuation of the flow intensity. Comparatively, the drop in the intensity of the flow that accompanies the augmentation of \(n\) engenders a slight shift downward of the center of rotation of each cell in the absence of the magnetic field while this shift is more manifest at \(Ha = 30\). Quantitatively, the flow intensity for the shear-thinning/(shear-thickening) fluid is 49.40%/48.57% higher/lower than that corresponding to the Newtonian case for \(Ha = 0\). These percentages become 76.80%/93.07% at \(Ha = 30\). This means that, the higher the fluid’s apparent kinematic viscosity, the more it is affected by the Lorentz force. For \(R = 1\), value expressing the equality between the internal and external Rayleigh numbers, limited changes (small reductions) are observed while comparing the results to those obtained without internal heat generation (\(R = 0\)). In fact, the intensification/reduction observed in the flow intensity in comparison with the Newtonian case is reduced to 48.22%/47.95% for a shear-thinning/(shear-thickening) fluid at \(Ha = 0\) and 68.05%/92.95% at \(Ha = 30\). From another perspective, increasing \(R\) has a limited impact on the flow intensity for \(n = 1.2\). Quantitatively, for \(Ha = 0\), the flow intensity decreases by about 3.37%/1.11% for \(n = 0.8\)/\(1.0\) by increasing \(R\) from 0 to 1. However, the effect of heat generation becomes increasingly important for the shear-thinning fluid in the presence of the magnetic field since the same increase of \(R\) leads to a decay of the flow intensity by about 27% for \(n = 0.8\) at \(Ha = 30\).

The thermal aspect of the problem, illustrated in Fig. 4 in terms of isotherms, shows that in the absence of magnetic field, the increase of \(n\) induces a relaxation of the isotherms next to the top sides of the heat evacuating walls and accentuates the length of thermal plume above the heated element. Also, as a result of convection attenuation accompanying the increase of \(n\) and \(Ha\), the thermal plume and the vertical thermal boundary layers observed next to the cold walls increase in thickness with such parameters. The important transformations engendered by increasing \(n\) and \(Ha\) are observed in the case of shear-thickening fluid which almost recovers the diffusive regime at \(Ha = 30\). Globally, the lower the consistency index, the less the temperature distribution is impacted by the intensification of \(Ha\). At \(R = 1\), a trend towards temperature uniformity within the cavity is observed for the different rheological behaviors of the fluid and the distortion of the isotherms is increasingly attenuated by increasing Hartmann number.

Fig. 4.
figure 4

Streamlines/Isotherms for (a) \(R = 0\) and (b) \(R = 1\) and various \(Ha\) and \(n\).

3.2 Heat Transfer

The effect of Hartmann number on the mean Nusselt number is illustrated in Fig. 5 in the absence and in the presence of internal heat generation and various values of n characterizing the change in the non-Newtonian behavior of the fluid. The analysis of the results presented in this figure shows different behaviors (depending on the nature of the fluid) resulting from the variation of \(Ha\). In fact, for the shear-thinning index, the effect of \(Ha\) stays limited and leads to a slight decrease of \(Nu_{m}\) for both values of \(R\). Comparatively, the Newtonian fluid is shown to be more sensitive to the variation of \(Ha\). The increase of the latter parameter engenders a degradation of \(Nu_{m}\) with a quasi-linear trend and an important decay slope. Despite the weakening of the intensity of the flow caused by the rise of \(Ha\), the maximum value considered in this study for this parameter (\(Ha = 50\)) does not bring the fluid back to rest. Finally, the most important effect of \(Ha\) is observed in the case of shear-thickening index; the mean Nusselt number decay is drastic by increasing \(Ha\) from 0 to 10 (the presence of heat generation accentuates \(Nu_{m}\) attenuation for the latter increase of \(Ha\)) and the diffusive regime prevails from \(Ha = 20\) for both values of \(R\).

Fig. 5.
figure 5

Variations of the mean Nusselt number vs. \(Ha\) for various \(n\) and \(R = 0\) and 1.

4 Conclusion

Natural convection heat transfer in a square enclosure locally heated by a heating sink symmetrically located on the bottom wall and cooled from the vertical sides has been investigated numerically using the MRT-LBM. The working fluid has a non-Newtonian behavior obeying a power law (or Ostwald) model. The study has focused mainly on the effect of the magnetic field (\(Ha\)), the rheological behavior of fluid \(\left( n \right)\), and in a lesser extent on the internal heat generation whose intensity was varied in a short range. The results presented show that the effect of natural convection is intensified by decreasing \(n\). The greatest attenuation rate accompanying the increase of Hartmann number, in terms of flow intensity and mean Nusselt number, is observed in the case of shear-thickening fluid. Globally, the internal heat generation has preserved the trends of \(Nu_{m}\) in their variations vs. \(Ha\) with a perceptible decay compared to \(R = 0\). For \(n = 1.2\), the presence of heat generation accentuates heat transfer drop when \(Ha\) goes from 0 to 10. Finally, the symmetry exhibited by the flow structure and the isotherms relative to the vertical cavity’s centerline has been preserved while varying the controlling parameters in their respective ranges.