Keywords

1 Introduction

An investigation of natural convection in a fluid flow via a porous media was increasing because of many engineering applications such as separation process in a chemical industries, crystal growth structure, phase change applications, dispersion of chemical contaminant in a through water and geophysics [1,2,3]. The natural convective flow through the porous media with the effect of magnetic field is governed by non-dimensional parameters such as Rayleigh number \({\text{Ra}}\), Darcy number \({\text{Da}}\), Prandtl number \({\text{Pr}}\), and Hartmann number \({\text{Ha}}\). Note that, \({\text{Ra}}\) denotes the natural convective effect, porosity by \({\text{Da}}\) and magnetic field strength by \({\text{Ha}}\), respectively. A comprehensive study is found in the references [4, 5].

Basak et al. [6, 7] discussed the effect of natural convection in a porous cavity for the various thermal boundaries such as constantly heated, linearly heated and sinusoidally heated. An increase in Ra leads to conversion of conduction dominant flow to the convection dominant flow, and also increase in Da motivates the circulation intensities. Natural convection heat transfer in a nanoparticle into a fluid saturated porous media is presented by Groşan et al. [8]. Sheikholeslami [9, 10] investigated the influence of magnetic field in a different shaped porous cavities filled with nanofluid. The results denote that increase in the nanofluid solid volume fraction \(\phi ,~{\text{Ra}},~{\text{Da}}\) enhances the heat transfer and increase in the \({\text{Ha}}\) reduces the heat transfer. Also, the increase in the Darcy number from \(10^{{ - 2}}\) to \(10^{2}\) changes the shape of the streamlines and increases the flow rushing. Rashad et al. [11] investigated the effect of heat generation and magnetic field in a porous cavity saturated with Cu-water nanofluid. The results shows that, increase in the \({\text{Ha}}\) and \(\phi\) reduces the average Nusselt number and increase in Hartmann number increases the maximum temperature while it reduces the flow circulation intensity. Kumar et al. [12, 13] investigated the fluid flow due to natural convection in a porous square cavity with sinusoidally and partially heated boundaries. Jino and Vanav [14] discussed the heat flow, fluid flow and nanoparticle concentration generated due to the magneto-hydrodynamics natural convection in a porous cavity using Carman–Kozeny equation model.

Teamah and El-Maghlany [15] discussed natural convective on magnetic field and heat generation, absorption in a square cavity. Ghasemi et al. [16] in their study concluded that an increase in \(\phi\) causes increase of drop in heat transfer performance depending upon the value of \({\text{Ha}}\) and \({\text{Ra}}\) selected. Rudraiah et al. [17] studied the magnetic field effects on natural convective cavity. The rate of convection is reduced by increasing the Hartmann number and reduces the average Nusselt number in an electrically conducting fluid.

In this study, the effect magnetic field on natural convective porous cavity filled with the Cu-water nanofluid is carried out. The Carman–Kozeny equation model is used to model the fluids passes via porous media.

2 Problem Description

A cavity \(\left( {H \times ~H} \right)\) is filled with the Cu-water nanofluid \(\left( {{\text{Pr}} = 6.2} \right)\) in a two-dimensional cartesian coordinate system with higher wall temperatures in both the vertical walls and lower temperature at the bottom wall. The top side wall temperature of the cavity is maintained adiabatically as shown in Fig. 1.

Fig. 1
figure 1

Physical model

Fig. 2
figure 2

Code validation of streamlines (left) and isotherm (right) contours of present study (bottom) to that of Ghasemi et al. [16] (top)

The nanofluid is assumed to be Newtonian, incompressible and laminar with the validation of Boussinesq approximation. Here, the water is considered as the base fluid containing the Cu nanoparticle. The thermo-physical properties of Cu-water nanofluid is listed in Table 1. The gravity acts parallel to the vertical walls, and the induced magnetic field is negligible when compared to the applied magnetic field.

Table 1 Properties of water and Cu nanoparticle

3 Mathematical Model

The governing equations are made to fluid and heat flow in a cavity by the conservation of mass, momentum and energy with the applicable assumptions made above as,

$$\frac{{\partial u}}{{\partial x}} + \frac{{\partial v}}{{\partial y}} = 0$$
(1)
$$\rho _{n} \left[ {u\frac{{\partial u}}{{\partial x}} + v\frac{{\partial u}}{{\partial y}}} \right] = \mu _{n} \left( {\nabla ^{2} \cdot \user2{u}} \right) - F_{x}$$
(2)
$$\rho _{n} \left[ {u\frac{{\partial v}}{{\partial x}} + v\frac{{\partial v}}{{\partial y}}} \right] = \mu _{n} \left( {\nabla ^{2} \cdot \user2{v}} \right) - F_{y}$$
(3)
$$\left( {\rho c_{p} } \right)_{n} \left[ {u\frac{{\partial T}}{{\partial x}} + v\frac{{\partial T}}{{\partial y}}} \right] = k_{n} \left( {\nabla ^{2} \cdot \user2{T}} \right)$$
(4)

Here \(F_{y} = - \partial p/\partial y - \rho _{n} \left[ {C_{m} \left( {1 - \lambda } \right)} \right]^{2} /\lambda ^{3} v - \sigma _{n} B^{2} v + \left( {\rho \beta } \right)_{n} g\left( {T - T_{0} } \right)\) and \(F_{x} = - \partial p/\partial x - \rho _{n} \left[ {C_{m} \left( {1 - \lambda } \right)} \right]^{2} /\lambda ^{3} ~u\). \(u,~v\) are velocities, \(p\) is pressure and \(T\) is temperature with the directions \(x\) and \(y\). The fluid in a porous media is controlled by the porosity constant \(\left( {C_{m} } \right)\) and liquid fraction \(\left( \lambda \right)\). \(B\) is the applied magnetic field. The other parameters such as electrical conductivity, density, viscosity, thermal conductivity, specific heat and thermal expansion coefficient depend on the amount of solid volume fraction of the Cu nanoparticle [13].

The above two-dimensional dimensional governing equations Eqs. (14) are modified into the non-dimensional governing equation as,

$$\frac{{\partial U}}{{\partial X}} + \frac{{\partial V}}{{\partial Y}} = 0$$
(5)
$$U\frac{{\partial U}}{{\partial X}} + V\frac{{\partial U}}{{\partial Y}} = \frac{{\mu _{n} }}{{\rho _{n} \alpha _{{fl}} }}\left( {\frac{{\partial ^{2} U}}{{\partial X^{2} }} + \frac{{\partial ^{2} U}}{{\partial Y^{2} }}} \right) - F_{X}$$
(6)
$$U\frac{{\partial V}}{{\partial X}} + V\frac{{\partial V}}{{\partial Y}} = \frac{{\mu _{n} }}{{\rho _{n} \alpha _{{fl}} }}\left( {\frac{{\partial ^{2} V}}{{\partial X^{2} }} + \frac{{\partial ^{2} V}}{{\partial Y^{2} }}} \right) - F_{Y}$$
(7)
$$U\frac{{\partial \theta }}{{\partial X}} + V\frac{{\partial \theta }}{{\partial Y}} = \frac{{\alpha _{n} }}{{\alpha _{{fl}} }}\left( {\frac{{\partial ^{2} \theta }}{{\partial X^{2} }} + \frac{{\partial ^{2} \theta }}{{\partial Y^{2} }}} \right)$$
(8)

Non-dimensional source terms \(F_{Y} = - \partial P/\partial Y - \rho _{{fl}} \left( {{\text{Pr/Da}}} \right)V + \left( {\rho \beta } \right)_{n} /\left( {\rho _{n} ~\beta _{{fl}} } \right){\text{RaPr}}\theta - {\text{Ha}}^{2} {\text{Pr}}V\) and \(F_{X} = - \partial P/\partial X - \rho _{{fl}} \left( {{\text{Pr/Da}}} \right)U\), respectively. The non-dimensional variables are \(X = x/H,~Y = y/H,~U = \left( {uH} \right)/\alpha _{f} ,~V = \left( {vH} \right)/\alpha _{f} ,~P = \left( {pH^{2} } \right)/\left( {\rho _{n} \alpha _{f}^{2} } \right)\) and \(\theta = \left( {T - T_{0} } \right)/\left( {T_{h} - T_{0} } \right)\). The other non-dimensional numbers such as Prandtl number \(\left( {{\text{Pr}} = \nu _{f} /\alpha _{f} } \right)\), Darcy number \({\text{Da}} = \left( {\mu _{f} ~\lambda ^{3} } \right)/\left( {C_{m} ~\left( {1 - \lambda } \right)^{2} H^{2} } \right)\) to control the porosity, Rayleigh number \({\text{Ra}} = \left( {g\beta _{f} H^{3} \left( {T_{h} - T_{c} } \right)} \right)/\left( {\nu _{f} \alpha _{f} } \right)\) responsible for natural convection effects, and intensity of magnetic field by Hartmann number \({\text{Ha}} = Bl\sqrt {\sigma _{n} /\left( {\rho _{n} \nu _{n} } \right)}\).

The flow governing equations are solved by the essential boundary conditions such as \(\left( {\theta = 1} \right)\) for higher temperature walls, \(\left( {\theta = 0} \right)\) for lower temperature wall and adiabatic wall as \(\left( {\partial \theta /\partial n = 0} \right)\). The no-slip velocity \(\left( {U = V = 0} \right)\) boundaries are imposed on all the walls.

The fluid motion in the cavity is visualized using the streamlines which are obtained from the velocities \(U = \left( {\partial \psi /\partial Y} \right)\) and \(V = - \left( {\partial \psi /\partial X} \right)\).

The heat transfer enhancement of the convective to the conductive heat transfer at the wall is denoted by the dimensionless quantity local Nusselt number, \({\text{Nu}} = - \left( {k_{n} /k_{{fl}} } \right)\left( {\partial \theta /\partial n} \right)\).

4 Numerical Description

The streamlines \(\psi\) from the velocities \(U,V\) and isotherms \(\theta\) are solved using the second order of finite different method in a \(100 \times 100\) constant spaced computational domain. The governing equations Eq. (58) are formulated into vorticity–streamfunction, which are solved using the respective boundary conditions. The solutions are formed using the iterative process and iteration can be done till the convergence criteria \((\left[ {\left( {\xi ^{{n + 1}} - \xi ^{n} } \right)/\xi ^{{n + 1}} ~} \right]| < 10^{{ - 5}} )\) for temperature and velocities. Here, \(n\) represents the iteration number.

The validation of code has been performed for effect of magnetic field on natural convection in a square cavity filled with nanofluid. The results obtained are quite similar to the work of Ghasemi et al. [16]. The grid independence study is carried out (ref Fig. 3), and constant grid of \(100 \times 100\) is considered in this entire study.

Fig. 3
figure 3

Grid independency study

5 Results and Discussion

The numerical result presents the streamlines and isotherms of Cu-water nanofluid for the various values of \(10^{3} \le ~{\text{Ra}} \le ~10^{5}\) with the constant volume fraction of the particle \(\phi = 0.1\), within the Darcy number \(10^{{ - 2}} \le ~{\text{Da}} \le ~10^{2}\). The applied magnetic field strength in a cavity is indicated by Hartmann number \(0 \le {\text{Ha}} \le ~50\). The local Nusselt number \(\left( {{\text{Nu}}} \right)\) is calculated at heated vertical walls for \({\text{Ra}}\) with respect to the Darcy number and Hartmann number.

Figure 4 represents the flow structure of streamlines and isotherms at \({\text{Ra}} = 10^{4}\) for various \({\text{Da}}\) and \({\text{Ha}}\). The flow in a cavity initiates by the temperature difference and has the symmetry flow pattern in both the side vertical orientation with anti-clockwise and clockwise rotation. The variation of rotation is due to the difference in temperature distribution of higher to lower temperature and lower to higher temperature of bottom and vertical walls. At the lower Darcy number, the flow rush is low and increased for increase in the \({\text{Da}}\) from \(10^{{ - 2}}\) to \(10^{2}\). The isotherm also flows from both the vertical walls symmetrically towards the mid-plane without any collaboration. The higher Darcy number makes increase in flow rush, and the isotherm that moves from the vertical walls is merged and makes the temperature distribution from the lower bottom to top cavity linearly.

Fig. 4
figure 4

Streamfunction and temperature contours for \({\text{Ra}} = 10^{4}\) with a \({\text{Da}} = 10^{{ - 2}}\) and b \({\text{Da}} = 10^{2}\)

The effect of Hartmann number has a very less sense at the lower \({\text{Da}}\) in both the streamlines and the isotherms but at the \({\text{Da}} = 10^{2}\) the increase in the Ha suppresses the flow rush. The isotherm at top separated because of reduction in the heat transfer rate at the \({\text{Ha}} = 50\).

The \({\text{Ra}} = 10^{5}\) is set, so that the natural convective effect is increased and the flow rush also increases than before and isotherm also merged half and distributed. An increase in the Hartmann number has very minor change in the streamlines and in isotherm, the temperature distribution \(\left( {\theta = 0.5} \right)\) small elongation towards the adiabatic wall at \({\text{Da}} = 10^{{ - 2}}\) as shown in Fig. 5. When increasing the Darcy number, the flow rush is increased more as discussed previously, and the temperature distribution from the vertical wall is more. The increase in the \({\text{Ha}} = 50\) leads to reduce in flow rush and push towards the bottom. The temperature deviation also reduces as compared to \({\text{Ha}} = 0\).

Fig. 5
figure 5

Streamfunction and temperature contours for \({\text{Ra}} = 10^{5}\) with a \({\text{Da}} = 10^{{ - 2}}\) and b \({\text{Da}} = 10^{2}\)

The local Nusselt number for the left isothermal wall is shown in Fig. 6. \({\text{Nu}}\) is more for \({\text{Da}} = 10^{{ - 2}}\) at lower Rayleigh number and decreases for increasing in the \({\text{Ra}}\). But \({\text{Nu}}\) is less for same Rayleigh number as Darcy number increased to \(10^{2}\) because at \({\text{Da}} = 10^{{ - 2}}\) the conduction effects are more dominant. The increase in the \({\text{Ra}}\) gradually decreases in \({\text{Nu}}\) for smaller \({\text{Da}}\) and increases for higher \({\text{Da}}\). At when Rayleigh number reaches to \(10^{5}\), the Nusselt number becomes almost similar for both the \({\text{Da}} = 10^{{ - 2}}\) and \(10^{2}\). The effect of applied magnetic field leads to the slight increase in Nu for lower Darcy number and for \({\text{Da}} = 10^{{ - 2}}\), initially at \({\text{Ra}} = 10^{3}\) the \({\text{Nu}}\) increases and decreases for further increase in the \({\text{Ra}}\) because of domination of natural convection effects. The \({\text{Nu}}\) at the bottom increases at the vertical walls because of discontinuity in temperature from higher temperature to lower temperature. The variation in a local Nusselt number is same for both the vertical walls.

Fig. 6
figure 6

Local Nusselt number for a \({\text{Ra}} = 10^{3}\), b \({\text{Ra}} = 10^{4}\) and c \({\text{Ra}} = 10^{5}\) at left wall

6 Conclusion

The flow modelling of Cu-water nanofluid in a porous cavity is studied numerically using the various Darcy number due to natural convection. The magnetic field strength is introduced by varying the Hartmann number from \(0\) to \(50\). The increase in the Darcy number leads to the decrease in the heat transfer rate at lower \({\text{Ra}}\) and vice versa at for higher Rayleigh number. The effect of \({\text{Ha}} = 50\) leads to a minor increase in Nu for lower Darcy number and decreases slightly for \({\text{Da}} = 10^{2}\) except when \({\text{Ra}} = 10^{3}\). The flow rush in a cavity is more for higher Darcy number and magnetic field effect reduces it rush. At lower Darcy number, only negligible flow field change occurs for increase in the \({\text{Ha}}\).