1 Introduction

Heat transfer analysis for mixed convection in lid driven cavities is of great significance as it is frequently encountered in engineering applications such as cooling of electronic and microelectronic components, heat exchangers, thermal designing of buildings, nuclear reactors, solar collectors, float glass production and food processing, etc. The interaction of buoyancy driven force along with shear driven force causes an enhancement in flow circulation and temperature distributions within the enclosure. In addition, the complex interaction between the buoyancy force and Lorentz’s force due to presence of magnetic field effect has an impact to control the flow and heat transport processes. Accordingly, detailed analysis of the flow and heat transport characteristics for such processes is important for better designing of engineering and industrial equipment. In this context, numerical and experimental researches have been conducted for mixed convection in lid driven cavities where magnetic field effect was either considered or not.

Basak et al. [1] presented a detailed numerical analysis of lid driven flow pattern and heat transfer rate in a square cavity. The flow pattern was dominated by effect of the governing parameters. Heat transfer rate was higher at the edge and lower at the centre of the bottom wall for uniform heating case. Mahmoodi [2] developed a numerical code using finite volume approach with SIMPLER algorithm to analyze flow and heat transfer in a lid driven rectangular cavity. He demonstrated that the heat transfer rate and flow vertex affected with the aspect ratio along with Richardson number. Fereidoon et al. [3] implemented similar mathematical technique [2] to investigate mixed convection in an inclined lid driven cavity and found the flow pattern changed radically with greater inclination angle of the cavity. Later on, Abu-Nada and Chamkha [4] utilized second order accurate finite volume method to develop numerical model for mixed convection in a wavy walled lid driven cavity. They reported that wavy wall enhances the heat transfer rate. A lattice Boltzmann solution was performed by Ekici [5] using Newtonian fluid to improve the heat transfer process. Rabani [6] conducted a numerical study of mixed convection in a lid driven triangular cavity and observed highest heat transfer occurs for assisting mixed convection flow. The problem of mixed convection in a square cavity having a rotating cylinder and flexible side wall was numerically investigated by Alsabery et al. [7]. They found that heat transfer rate increases with Rayleigh number and it was also maximum in counter clockwise rotation of the cylinder. Ali et al. [8, 9] analyzed the effects of magnetic field on mixed and natural convection flow for different geometries. Selimefendigil and Öztop [10] studied magnetic field effect on mixed convection in a lid driven cavity and revealed that the magnetic field effect decreases the average heat transfer rate. Finite volume method based numerical simulation [11] pointed out that the heat transfer rate becomes increasing function of magnetic inclination angle. Another numerical simulation [12] illustrated that the effect of magnetic field on the local heat transfer rate depend on suitable combinations of flow parameters. Selimefendigil and Oztop [13] studied the effect of inclined magnetic field on forced convection flow over a corrugated channel. They found that average Nusselt number is higher in pulsating flow than steady flow. It was also noted that the presence of magnetic field at Ha = 15 reduces the heat transfer rate remarkably. Later on, they [14] investigated the effect of magnetic field on mixed convection due to double rotating cone in a 3D enclosure and recommended that magnetic field reduces the convection effect, and average Nusselt number significantly improved with the size and speed of rotating cones.

In addition, abstractions of various shaped within closed or open enclosure are used to control the flow circulation and temperature distribution within enclosure. Several studies have been accomplished related to the natural/mixed/forced convection flow in presence of different abstractions. House et al. [15] numerically examined the fluid flow and heat transfer processes for natural convection in square cavity with centered square obstacle and recommended that heat transfer rate decreases with increase in size of the obstacle. The problem of mixed convection flow around a circular obstruction within a rectangular cavity was numerically studied by Rahman et al. [16] to visualize the effect of size, location and thermal conductivity of solid obstacle on the heat transfer process. They found flow and average Nusselt significantly affected with the mentioned parameters. Islam et al. [17] developed a computational code to analyze mixed convection in a square cavity in presence of a heated centered square blockage. They noted that heat transfer rate decreases with increasing blockage ratio for a fixed Richardson number. Later on, Bourada et al. [18] utilized Lattice Boltzmann method to investigate mixed convection in lid driven cavity containing a porous obstacle and found that heat transfer is important for a small reduction in obstacle size.

Recently, non-Newtonian fluids become an interesting topic to the researchers because of its scientific and engineering applications compared to Newtonian fluids. In this regards, Casson (1995) developed a new class of fluid which doesn’t follow the Newton’s law of viscosity named as non-Newtonian Casson fluid or simple as Csaaon fluid. He found that it is more appropriate for rheological data compared to other non-Newtonian fluids. Some of the numerical analysis of Casson fluid flow have been reported here. Pop and Sheremet [19] analyzed free convection in a differentially heated square cavity filled with Casson fluid. Their results indicated the flow and heat transfer rate increases with Casson fluid parameter. The heat transfer rate due to variation of Pr accelerated for greater values of Casson fluid parameter. Reddy et al. [20] numerically studied heat transfer visualization for free convective non-Newtonian Casson fluid flow over a cylinder. They suggested that average Nusselt number escalates with increasing Casson fluid parameter. Later on, A numerical investigation on free convection flow of Casson fluid in a trapezoidal cavity was reported by Hamid et al. [21] and found that average Nusselt shows an increasing behavior for rising Rayleigh number, Casson fluid parameter and heater length. Reza et al. [22] used shooting method to obtain multiple solutions for mixed convection flow of Casson fluid through a channel under the effects of magnetic field. The velocity profiles were increased for Casson fluid parameter in this investigation.

From the above literature survey, it is evident that numerous attentions have been given on experimental and theoretical works using Newtonian fluid but a less attention has been given in using of non-Newtonian fluid. From the technological point of view non-Newtonian Casson fluids play important roles in flow and temperature behaviors within closed enclosure. In this context, we have considered mixed convection in non-Newtonian Casson fluid filled lid driven square cavity having a centered solid obstacle under the effect of magnetic field. However, to the best of our knowledge the problem of mixed convection in double lid driven square cavities filled with Casson fluid has not been considered yet. The flow and thermal fields within the cavity are analyzed in terms of streamlines and isotherms for a range of important dimensionless parameters such as Reynolds number, Casson fluid parameter and Hartmann number. Heat transfer rate is also analyzed using average Nusselt number in this study.

This study has been organized in five sections: Sect. 2 represents the physical model of this investigation; Sect. 3 deals with the formulation of the governing equations based on Casson fluid model; Sect. 4 is dedicated to results and discussion, and finally concluding marks are summarized in Sect. 5.

2 Physical model

The physical model of this study is developed for a square cavity of length L with two moving walls. A solid heat conducting circular obstacle is positioned at the center of the cavity. The vertical walls are in moving conditions which are respectively heated and cooled at temperature Th and Tc. The horizontal walls are kept adiabatic which are in no-slip conditions. Rectangular coordinate system (x, y) is considered where the gravitational acceleration is acted along reversal of vertical direction. Magnetic field with uniform strength is imposed transverse to the buoyancy force. The schematic configuration of this investigation is given in Fig. 1.

Fig. 1
figure 1

Physical model of the present study

3 Mathematical analysis

The governing conservation equations based on the physical model along with Boussinesq approximation can be written as follows [8, 10, 16, 19, 21]:

$$\frac{\partial u}{{\partial x}}\, + \,\frac{\partial v}{{\partial y\,}}\, = \,0$$
(1)
$$u\frac{\partial u}{{\partial x}}\, + \,v\frac{\partial u}{{\partial y}}\, = \, - \,\,\frac{1}{{\rho_{{}} }}\frac{\partial p}{{\partial x}}\, + \,\frac{\mu }{\rho }\,\left( {1 + \,\frac{1}{\beta }} \right)\,\,\,\,\left( {\frac{{\partial^{2} u}}{{\partial x^{2} }}\, + \,\frac{{\partial^{2} u}}{{\partial y^{2} }}} \right)$$
(2)
$$u\frac{\partial v}{{\partial x}}\, + \,v\frac{\partial v}{{\partial y}} = \, - \,\frac{1}{{\rho_{{}} }}\frac{\partial p}{{\partial y}}\, + \,\frac{\mu }{\rho }\,\left( {1 + \,\frac{1}{\beta }} \right)\,\,\,\left( {\frac{{\partial^{2} v}}{{\partial x^{2} }}\, + \,\frac{{\partial^{2} v}}{{\partial y^{2} }}} \right)\, + \,\frac{1}{\rho }\,[g\,\beta \,\rho \left( {T - T_{c} } \right)] - \,\frac{\sigma }{\rho }\,B_{0}^{2} \,v$$
(3)
$$u\frac{\partial T}{{\partial x}}\, + \,v\,\frac{\partial T}{{\partial y}}\, = \,\frac{{k_{{}} }}{{\left( {\rho C_{p} } \right)}}\left( {\frac{{\partial^{2} T}}{{\partial x^{2} }}\, + \,\frac{{\partial^{2} T}}{{\partial y^{2} }}} \right)$$
(4)
$$k_{s} \,\left( {\frac{{\partial^{2} T_{s} }}{{\partial x^{2} }}\, + \,\frac{{\partial^{2} T_{s} }}{{\partial y^{2} }}} \right) = 0$$
(5)

The boundary conditions using physical model are:

$$u\, = \,0, \, v\,\, = \,\,0, \, \frac{\partial \,T}{{\partial y}}\, = \,0; \, y\,\,\, = \,\,0{\text{ and }}y\,\,\, = \,\,1$$
(6)
  • Case I

    $$u\, = \,0, \, v\,\, = \,\,\,1, \, T\, = \,T_{h} , \, x\,\,\, = \,\,0{\text{ and }}u\, = \,0, \, v\,\, = \,\,\,1,\, \, T\, = \,T_{c} ; \, x\,\,\, = \,\,1$$
    (7)
  • Case II

    $$u\, = \,0, \, v\,\, = \,\,\,1, \, T\, = \,T_{h} , \, x\,\,\, = \,\,0{\text{ and }}u\, = \,0, \, v\,\, = \,\,\, - 1,\, \, T\, = \,T_{c} ; \, x\,\,\, = \,\,1$$
    (8)

At the interface of fluid and solid obstacle:

$$u\, = \,0, \, v\,\, = \,\,0{\text{ and }}\left( {\frac{{\partial T_{cf} }}{\partial n}} \right)\, = K\left( {\frac{{\partial T_{s} }}{\partial n}} \right)$$
(9)

The following usual quantities are used to obtained dimensionless governing equations.

$$X = \,\frac{x}{L}, \, Y = \,\frac{y}{L}, \, U = \,\frac{u\,}{{U_{lid} }},\, \, V = \,\frac{v}{{U_{lid} }},\, \, P = \,\frac{p\,}{{\rho_{nf} \,U_{lid}^{2} }}{\text{ and }}\theta = \,\frac{{T - T_{c} }}{{T_{h} - T_{c} }}$$
(10)

and the resulting non dimensional governing equations are:

$$\frac{\partial U}{{\partial X}}\, + \,\frac{\partial V}{{\partial Y}}\, = \,0$$
(11)
$$U\frac{\partial U}{{\partial X}}\, + \,V\frac{\partial U}{{\partial Y}}\, = \, - \,\,\frac{\partial P}{{\partial X}}\, + \,\frac{1}{{\text{Re}}}\,\,\left( {1 + \,\frac{1}{\beta }} \right)\,\,\left( {\frac{{\partial^{2} U}}{{\partial X^{2} }}\, + \,\frac{{\partial^{2} U}}{{\partial Y^{2} }}} \right)$$
(12)
$$U\frac{\partial V}{{\partial X}}\, + \,V\frac{\partial V}{{\partial Y}}\, = \, - \,\,\frac{\partial P}{{\partial Y}}\, + \,\frac{1}{{\text{Re}}}\,\left( {1 + \,\frac{1}{\beta }} \right)\,\,\left( {\frac{{\partial^{2} V}}{{\partial X^{2} }}\, + \,\frac{{\partial^{2} V}}{{\partial Y^{2} }}} \right)\, + \,\,\,\frac{Gr}{{{\text{Re}}^{2} }}\theta - \frac{{Ha^{2} }}{{\text{Re}}}V$$
(13)
$$U\frac{{\partial \theta_{{}} }}{\partial X}\, + \,V\,\frac{{\partial \theta_{{}} }}{\partial Y}\, = \,\,\left( {\frac{1}{{{\text{Re}} \,\Pr }}} \right)\,\,\left( {\frac{{\partial^{2} \theta_{{}} }}{{\partial X^{2} }}\, + \,\frac{{\partial^{2} \theta }}{{\partial Y^{2} }}} \right)$$
(14)
$$\,\left( {\frac{{\partial^{2} \theta_{s} }}{{\partial X^{2} }}\, + \,\frac{{\partial^{2} \theta_{s} }}{{\partial Y^{2} }}} \right) = 0$$
(15)

The boundary conditions (Eqs.6–9) are converted to the following form:

$$U\, = \,0,\,\,\,V\, = \,0,\,\,\,\frac{\partial \,\theta }{{\partial Y}}\, = \,0;\,\,Y\,\,\, = \,\,0\,\,{\text{and}}\,\,Y\,\,\, = \,\,1$$
(16)
  • Case I

    $$U\, = \,0, \, V\,\, = \,\,\,1,\, \, \theta \, = \,1,\, \, X\,\,\, = \,\,0{\text{ and }}U\, = \,0,\, \, V\,\, = \,\,\,1, \, \,\theta \, = \,0,\, \, X\,\,\, = \,\,1$$
    (17)
  • Case II

    $$U\, = \,0, \, V\,\, = \,\,\,1,\, \, \theta \, = \,1,\, \, X\,\,\, = \,\,0{\text{ and }}U\, = \,0,\, \, V\,\, = \,\,\, - 1, \, \,\theta \, = \,0,\, \, X\,\,\, = \,\,1$$
    (18)

At the interface of fluid and solid obstacle:

$$U\, = \,0,\,\,V\, = \,0\,\,{\text{and}}\,\,\left( {\frac{\partial \theta }{{\partial N}}} \right)_{cf} \, = K\,\,\,\left( {\frac{{\partial \theta_{s} }}{\partial N}} \right)_{solid} \,$$
(19)

3.1 Evaluation of local and average Nusselt number

The important feature of our investigation is the heat transfer rate which is to be estimated using local Nusselt number for the heated wall. Accordingly, the local Nusselt number can be defined in dimensionless form as [23]:

$$Nu\, = \, - \,\,\frac{\partial \theta }{{\partial X}}$$
(20)

and the average Nusselt number can be calculated by the following relation [23]:

$$Nu_{av} = \,\,\,\frac{1}{L}\,\int_{\,\,0}^{\,\,1} {Nu\,dY}$$
(21)

3.2 Computational procedure

Galerkin’s weighted residual based finite element method has been exercised to simulate the momentum and energy equations. In this simulation, the solution domain is discretized by finite element mesh considering non-uniform triangular elements. Galerkin residual method has been implemented to convert the governing partial differential equations (Eqns. 1115) into integral equations and then modified using Gauss’s quadrature method which are transformed into linear algebraic equations and solved by Triangular Factorization Technique [24]. The detail computational procedure is available in Ali et al. [9] which was not repeated here. It is also well described by Taylor and Hood [25] and Dechaumphai [26]. The numerical results have been plotted using TECHPLOT 10 software.

3.3 Mesh generation

To implement the finite element method the geometric domain is divided into a set of sub-domains which are called finite element. It is mostly a discrete presentation of a solution domain where the problem is to be solved. The mesh configuration with triangular elements of this investigation has been shown in Fig. 2.

Fig. 2
figure 2

Mesh generation of the square cavity

3.4 Grid sensitivity test

The grid independent test has been performed by calculating average Nusselt number at different mesh size and presented in Table 1, 2 and Fig. 3, 4respectively. In calculating average Nusselt number, no significant changes were found for further increment in mesh levels. Thus, the grid size of 15,079 nodes and 29,178 elements should be selected to simulate the present problem.

Table 1 Grid sensitivity test at Pr = 20, Re = 10, Ha = 10 and β = 0.5
Table2 Comparison of average Nusselt number for different Reynolds number and Grashof number
Fig. 3
figure 3

Grid sensitivity test

Fig.4
figure 4

comparison of streamlines (top) and isotherms (bottom) for present results with that of bakar et al. [11]

3.5 Validation of numerical procedure

To valid our numerical procedure, we have performed three comparisons using existing results for mixed convection in lid driven cavity and presented as follows:

3.5.1 Validation case No. 1

Iwatsu et al. [27] and Tiwari and Das [28] numerically analyzed mixed convection flow in lid driven cavities with different boundary conditions. Comparison of the present results with the comparable results of Iwatsu et al. [27] and Tiwari and Das [28] has been presented in Table 3. It is to be found a rational deflection among the reported data given in Table 3.

Table 3 Comparison of average Nusselt number (\({\text{Nu}}_{{{\text{av}}}}\)) for different Ha and ϕ at Ra = 105

3.5.2 Validation case No. 2

Ghasemi et al. [29] simulated MHD flow effects on nanofluid natural convection in a square cavity. We have simulated the problem [29] using our code and obtained results are compared in Table 3. A good agreement has been reflected between our numerical results and the results of Ref. [29].

3.5.3 Validation case No. 3

Bakar et al. [11] simulated the mixed convection in a lid driven cavity in presence of inclined magnetic field. We have simulated the identical problem of Bakar et al. [11] using our present code. The obtained numerical results are plotted in terms of streamlines and isotherms, and compared with the results of Ref.[11]. This comparison shows an excellent agreement between our results and the results presented by Bakar et al. [11].

These comparisons confirmed us that our numerical procedure provides a considerable accuracy to simulate mixed convection in a Casson fluid filled double lid driven cavity.

4 Results and discussion

In this analysis, double lid driven mixed convection in a square cavity filled with Casson fluid has been simulated using finite element method. The effect of magnetic field is considered to control the flow and thermal behaviors within the cavity. The ranges of the important parameters are assumed as Reynolds number (Re) from 1 to 500, Casson fluid parameter (β) from 0.1 to 5 and Hartmann number (Ha) from 0 to 100 for the visualization of fluid motion and temperature distributions. The value of Pransdtl number was fixed at Pr = 20 and conductivity ratio of fluid to solid at K = 10. The flow and temperature fields have been presented via streamlines and isotherms distributions. The heat transfer rate also analyzed in terms of average Nusselt numbers in this section.

The streamline distributions for varying of Re along with the direction of lid walls are presented in Fig. 5. In Fig. 5(a) for case I, the flow circulation is visualized by producing two convection circulations beside the solid obstacle where the left one is rotated in clockwise direction with higher stength as well as elongated shaped compared to right one which is in opposite deection. As Re is increased to 10 in case I, mixed convection is dominant over natural convection which has a negligible effect in flow strenght except the concentration and formation of core cells within the circulations. Further increase in Reynolds number to 100, forced convection become dominant over mixed convection which controls the distribution of streamlines. In this case (Re = 100), streamlines are concentrated with higher strength which reflects a higher rate of convective heat transfer from the heated wall. After that, when Re increased to 500, the core region of each vortices shifted upward and gets higher magnetude. This suggests a advanced rate of heat transfer from heated wall. On the other hand, when the lid walls are moved in opposite direction in Fig. 5(b), multipule secondary vortices are generated within and outside the the primary circultions that occupies the whole cavity. It is worth to notice that two seconday circulations are rotated in indentical directions beside the obstacle. The strength and intensification of flow circulation increases remarkebly with increasing of Re as increased Re causes greater fluid inertia. This is an indicative of higher convective heat transfer. Moreover, the flow strength is prominent in case II compared to case I. Thus it is clear that the direction of lid walls plays a vital role in controlling streamlines distributions within the cavity.

Fig. 5
figure 5

Streamline variation at a case I and b case II while Re = variable, β = 0.5, Ha = 10

Figure 6 represents the isotherm countoutrs for the effcts of Re associated to the different lid wall’s directions. When the lid walls move in upward direction in case-I as seen in Fig. 6(a) at Re = 1, isotherms are emanating from the heated wall and then distributed toward the cold wall. It seems to be almost parallel in vertical direction from heft to right. The red lines corresponds high temperature region near the left moving wall and the blue lines for low temperature region near the right moving wall. From isotherm plotting, it is seen that when the value of Re increased to 10, increased fluid inertia tends to dominate the pattern of temperature contours within cavity. As a result, isotherms compressed near middle of the top wall and spread out toward the bottom wall. Further increasing in Re, isotherms are squeezed near the mid section of the cavity and densely bifurcated around the obstacle as well. Moreover, two complicated temperature circulations are also formed besides the condensed isotherms. Further rise in fluid inertia due to higher Re causes fantastic vortices which are symmertic and elongated where central isotherms distribution takes champagne glass shaped. This results led to enhance the heat transfer mechanism significantly. It is impotant to note that the temperature at the core of the solid obstacle gets high values with incresing Re as the thermal conductivity of solid domain decreases with increase in Re. On the other hand, in Fig. 6 (b) the isotherm distribution slitely bended due to the directions of lid walls as described in case II. Moreover, temperature contour tends to condense colse to the left and right vertical walls and parallely dispersed from left to right at Re = 10 which leads to increase the heat transfer rate effectively. Further increase in Reynolds number a large isotherms vortex is generated where isotherms are densed near the side walls and more spaced out close to the obstacle. Which leads to increase convective heat transfer rapidely.

Fig. 6
figure 6

Isotherm variation at a case I and b case II while Re = variable, β = 0.5, Ha = 10

Combined effect of Casson fluid parameter and the direction of lid walls on streamlines is presented in Fig. 7. In Fig. 7(a) at case I, two symmetric circulations are developed beside the obstacle where the right one is stronger compared to the left one. Moreover, the pattern of flow circulation does not change noticiably with increasing β except the core region of each circulation. In addition, streamlines are intensified and strength of flow circulation increases considerably for increasing β as the increased Casson fluid parameter characterize the additional fluid viscosity which leads to decrease the effective viscosity of working fluid. Accordingly, lower β (at β = 0.1) causes a lower intensity in streamlines distribution which becomes intensified with greter strength at higher β (at β = 5) as shown in Fig. 7(a). Besides this, at case II in Fig. 7 (b), the streamlies densely distrubuted by producing two set of eliptic circulations and an annular circulation around the obstacles that occupies the whole cavity. Streamlines pattern almost similar for different values of β but an increase in β causes an intensification in flow circulations within the cavity. Moreover, strength of fluid motion is accentuated for rising of Casson fluid parameter as seen in Fig. 7 (b).

Fig. 7
figure 7

Streamline variation at a case I and b case II while Re = variable, β = 0.5, Ha = 10

Figure 8 deleinates isotherm contours for the effect of β along with the change in direction of lid walls while the remaining prameters are kept fixed. In Fig. 8 (a), isotherm contours are compactly dictrubuted near the middle of top region and spaced out near the bottom region of the solid cylinder. Denseness of isotherms is visualized close to the middle and solid body comapared to the side regions within the caity. Distribution of isotherms become almost similar with increasing β except the solid region. Moreover, temperature at the core of the cylinder reduces with β which indicates a higher rate of heat transfer out side the solid blockage. On the other hand, in Fig. 8(b), isotherms distribution affected significantly while the direction of lid wall is changed in opposite direction. It is also observed that these patterns are faintly changed with increasing β.

Fig. 8
figure 8

Isotherm variation at a case I and b case II while Re = variable, β = 0.5, Ha = 10

The heat transfer rate in terms of average Nusselt number is shown in Fig. 9 and Fig. 10, respectively. In both figures (Fig. 9 and Fig. 10) and cases (case I and case II) heat transfer rate increases consistently with increasing Re. Moreover, when the value Re is considered as unity, heat transfer rate is found to be minimum due to lower fluid inertia and then heat transfer behaviors changes rapidly by increasing Re which was caused by the domination of fluid inertia. In addition, a surprising enhancement in heat transfer rate is observed in case II while the lid walls are moved in opposite direction as seen in Fig. 9(b). It is important to note that the increment of heat transfer in case II become almost five times compared to the case I. In Fig. 9 (a), average Nusselt number becomes highest while magnetic field was not considered. After that, while magnetic field effect was considered at Ha = 10, it gets lower values and then average Nusselt number becomes minimum at higher strength of magnetic field. The effect of magnetic field on heat transfer rate due to Re dominated by the direction of lid walls as the heat transfer decreases by 29.63% in case I whereas it becomes 8.05% in case II. On the other hand, augmentation of heat transfer rate due to Re essentially accelerates with an increase in Casson fluid parameter in both cases as seen in Fig. 10. The physics behind its that flow circulation is intensified with increase in β and also the direction of lid walls. The numerical results confirmed that heat transfer rate increases by 9.05%% in case I while the values of β varies from 0.1 to 5 at Re = 500 whereas it becomes 13.59% in the case II which also indicates a domination of the direction of lid walls on the heat transfer rate.

Fig. 9
figure 9

Average Nusselt number variation at a case I and b case II while Re = variable, Ha = variable β = 0.5

Fig. 10
figure 10

Average Nusselt number variation at a case I and b case II while Re = variable, β = variable and Ha = 10

5 Conclusion

In this paper, the problem of mixed convection in a Casson fluid filled double lid driven cavity having a solid obstacle under the effect of magnetic field is numerically studied. The finite element method has been used to solve the governing partial differential equations. Comparisons against the previously published works on the basis of special cases have been performed and found to be in rational agreements. Obtained numerical results have been discussed precisely from the technological point of view. The major findings of this investigation can be highlighted as follows:

  • Flow strength accelerates with the increase of Reynolds number and Casson fluid parameter, and decelerates for increasing of magnetic parameter.

  • Temperature distribution modified noticeably with higher Re while it remains uniform for varying of β.

  • Heat transfer rate enhances with rising Re while it reduces for magnetic field.

  • The increase in Casson fluid parameter enhances the heat transfer rate effectively.

  • Flow circulation and temperature distribution are influenced significantly in the direction of lid walls.

  • Heat transfer rate is maximum while lid walls move in opposite direction.

  • Present investigation is carried out for advanced practical applications of non-Newtonian Casson fluid. As our study is a numerical investigation, experimental work is required for more validation and effectiveness of the simulated findings.