Free Convection in a MHD Open Cavity with a Linearly Heated Wall Using LBM

This chapter examines the magneto-hydrodynamic (MHD) free convection in a square enclosure filled with liquid gallium subjected to a [transverse magnetic field] in-plane magnetic field. First, the side vertical walls of the cavity have spatially varying linearly temperature distributions. The bottom wall is uniformly heated and the upper wall is adiabatic. The second configuration is an open enclosure heated linearly from the left wall. Lattice Boltzmann method (LBM) is applied in order to solve the coupled equations of flow and temperature fields. This study has been carried out for Ra of 10 5 . The results show that the heat transfer rate decreases with an increase of the Ha number which is a widely solicited result in different engineering applications. Streamlines, isotherm counters and Nu numbers are displayed and discussed. A good stability is observed for all studied cases employing an in-house code. The obtained results show that the free-convection heat transfer in the open MHD enclosure is enhanced and it is greater to that of a uniformly heated wall.


Introduction
Free convection in open cavities is an important phenomenon in engineering systems because of this it have received a considerable attention due to their applications in various industries of high-performance insulation for buildings, injection molding chemical catalytic reactors, packed sphere beds, grain storage, float glass production, air-conditioning in rooms, cooling of electronic devices, and geophysical problems. Extensive research studies using various numerical simulations were conducted into free convection of open enclosures [1][2][3][4][5]. The latter works have acquired a basic understanding of free convection flows and heat transfer characteristics in an open enclosure with non-conducting fluid. However, in most studies, one vertical wall of the enclosure is cooled and another one heated while the remaining top and bottom walls are well insulated. Recently, MHD free convection flows have attracted attention since can be are encountered in numerous problems with industrial and technological interest, covering a wide range of basic sciences such as nuclear engineering, fire research, crystal growth, astrophysics and metallurgy [6]. Besides, the process of manufacturing materials in industrial problems and microelectronic heat transfer devices involves an electrically conducting fluid subjected to magnetic field. In this case the fluid experiences a Lorentz force reducing the flow velocities which affects the heat transfer rate [7,8]. In MHD free convection flows, the balance is achieved by inertial, viscous, electromagnetic and buoyancy forces, rendering the solution more complicated. Other useful research works had been conducted to simulate the MHD free convection under different conditions [9][10][11][12][13][14][15][16][17][18]. Kahveci and Oztuna [19] investigated MHD free convection flow and heat transfer in a laterally heated partitioned enclosure. They showed that the horizontal magnetic field is more effective in damping convection than the vertical one. Furthermore, Kefayati et al. [20] investigated the effect of Ra number on free convection MHD in an open cavity. Nonetheless several investigations in MHD free convection inside open enclosure with linearly heated wall have been carried out. In addition to conventional free convection in enclosures with uniform thermic boundaries, recent attention has been intensively focused on the cases with mixed boundary conditions on the walls of an open cavity [21][22][23][24].
On the other hand, the Lattice Boltzmann Method (LBM) is a new method for simulating fluid flow and modeling physics in fluids. It has been applied extensively within the last decade. Based on kinetic theory for simulating fluid flows and modeling the physics in fluids [25][26][27][28][29][30][31][32], it becomes a powerful, effective and easy numerical method, for simulation of complex flow problems with different boundary conditions [33,34].
In comparison with the conventional CFD methods, the LBM is based on the microscopic models, mesoscopic kinetic equations. The macroscopic dynamics of a fluid is the result of collective behavior of many microscopic particles in the system. The LBM has been proved to recover the Navier-Stokes equation by using the Chapman-Enskog expansion. The major advantage of this method is its explicit feature of the governing equation, easy for parallel computation and easy for implementation of irregular boundary conditions. To our best knowledge, no previous study on effects of linearly heated wall on free convection in an open MHD cavity with the LBM had already been studied so far. The main aim of this chapter is to study effects of linearly heated wall on flow field and temperature distribution in an open MHD cavity filled with liquid gallium and also to highlight the ability of the LBM for solving problems with various complex boundary conditions. The effects of Ra number on streamlines, isotherms and the Nusselt number are investigated.

Mathematical formulation 2.1 Problem statement
The considered model is shown in Figure 1. It displays a two-dimensional open cavity with side length of H. At first case the left vertical is maintained at high temperature (T H ). Whereas at the second case, the vertical left wall is linearly heated. An external cold air enters into the enclosure from the east opening boundary, while the fluid is correlated with open boundary at constant temperature (T C ). The horizontal walls are insulated and impermeable to mass transfer. The bottom wall is at high temperature TH and the top one is adiabatic. The open cavity is filled with liquid gallium with Pr number of 0.025. The gravitational acceleration acts downward. The uniform external magnetic field with a constant magnitude B 0 is applied in the x-direction (transverse field). It is assumed that the induced magnetic field produced by the motion of an electrically conducting fluid is negligible compared to the applied magnetic field. Thermo-physical properties of the fluid are assumed to be constant, and the density variation in the buoyancy force term is handled by the Boussinesq approximation. The flow is two-dimensional, laminar and incompressible; in addition, it is assumed that the viscous dissipation and Joule heating are neglected.

Brief introduction to LBM
A scheme of the standard D2Q9 ( Figure 1) for flow and for temperature, LBM method are used in this work [33][34] hence only brief discussion will be given in the following paragraphs, for completeness. Therefore, classic governing equations for MHD free convection are written in terms of the macroscopic variable depending on position x, y as: Continuity equation Energy equation Where ν ¼ μ=ρ is the kinematic viscosity, F x and F y are the body forces at horizontal and vertical directions respectively and they are defined as follows [25]: Where the Ha number is defined as Figure 1.
Geometry of the present study with imposed boundary conditions and standard D 2 Q 9 velocity mode.
3 Free Convection in a MHD Open Cavity with a Linearly Heated Wall Using LBM DOI: http://dx.doi.org/10.5772/intechopen.81177 In the LBM the total force is: Where R ¼ μHa 2 and γ is the direction of the magnetic field. The functional density, velocity and temperature in the mesoscopic approach are:

Method of solution
To ensure that the <code simulates an approximated incompressible regime>, the characteristic velocity of the flow ) at the free convection regime must be compared with the fluid speed of sound c s . In the present study, the characteristic velocity is selected as 0.1 of sound speed. By fixing and thermal diffusivity α are deduced. Nusselt number Nu is one of the most important dimensionless parameters in describing the convective and thermic heat transport. For the example, the local Nusselt number and the average value at the left side wall are calculated as;

Algorithm of the numerical procedure
In this section, we present the steps that must be executed for the numerical implementation: 1. Input constant parameters.
2. Calculate the relaxation times.
3. Initialize the temperature, and velocity fields for the entire computational domain and the equilibrium distribution functions.
4.Calculate the current distribution function for propagation of temperature and velocity.
5. Propagate all current distribution functions to the neighbor lattices in all directions.
6. Impose the boundary conditions.
7. Calculate the current temperature and velocity field for the entire computational domain and the current equilibrium distribution functions using the current temperature and velocity fields.
8. The error convergence is checked, if the error does not satisfies the convergence criterion, go to step 4.

Results and discussion
For all further numerical cases, both for flow and temperature fields, the computations are based on an iterative LBM used for obtaining the numerical simulations. In order to validate the numerical code, the pure free convection, in a square open cavity with insulated horizontal walls filled with air was solved, and the results were compared with the numerical ones reported by reference [20]. The present findings are obtained with an extended computational domain. In Figure 2, we depict the comparison of the streamlines and isotherms of the present study with the prediction of [20]. Obtained results demonstrate that a good agreement was achieved. Also, in Figure 3, a comparison of isotherms and streamlines demonstrate a good agreement with previous work [7] where the considered matter is MHD free convection in a closed cavity with linearly heated west wall which is filled with liquid gallium (Pr = 0.025) and Ha = 50. The present chapter extend the study to deal with free convection in MHD open cavity with constant or linearly heated west wall which is filled with liquid gallium with Pr = 0.025 and Ha = 50 for Ra = 10 5 .
The heat transfer rate is highlighted within the local and average Nusselt number in the case of linearly heated side walls. Figure 4b illustrates the variation of the local Nusselt number at the bottom wall of the cavity Nu b with the horizontal normalized distance x/X for the case of linearly heated side walls with Ha = 50, Pr = 0.025 and Ra = 10 5 . The Nusselt local value at the bottom is equal to unity at the left (x/X = 0) and right (x/X = 1). This is an expected result due to the linearly heated side walls. The latter is associated with the symmetry in the thermic boundary conditions of the side walls of the cavity. Figure 4a-c shows clearly that the local Nusselt number at the bottom wall Nu b exhibits an oscillatory behavior with the horizontal distance x/X and that it is exactly symmetric about the centerline of the bottom wall. The Variation of local Nusselt number with distance at bottom wall in the case of linearly heated side walls (Pr = 0.025 and Ra = 10 5 ) is depicted for different Ha numbers. Figure 5b depicts the variation of the local Nusselt number at the linearly heated side walls of the cavity Nu sides with the vertical distance y/Y for Ha = 50 while Figure 5a depicts the variation of the local Nusselt number at the linearly heated side walls of the cavity Nu sides with the vertical distance y/Y for Ha = 0. In general, the values of Nu sides increase as the vertical distance y/Y increases reaching maximum at y/Y = 1. Also, for Ha = 0, the distributions of Nu sides along the vertical distance y/Y oscillate close to lower end of the vertical side wall and continues with an increasing trend in its upper end. This behavior is believed to be related the feature represented by two pairs of symmetric cells with clockwise and counter-clockwise rotations [7]. Figures 6 and 7 display steady-state contour maps for the isotherms and the streamlines contours at various Ha numbers (0, 50 and 100) for Pr = 0.025 and     velocity are formed within the enclosure. The main awareness is about the cells that occur at upper left and lower right side which are circulating in the anti-clockwise direction and the rest are circulating in the clockwise direction (see Figure 7a). Near the adiabatic wall of the cavity, stronger cells are formed. Provided that we implement the same boundary conditions for the left (west) and right (east) walls of the enclosure, the two pairs of cells close to each of the linearly heated walls are symmetric. As forecasted, because of the boundary layer effects, the temperature field is sketched by sharp drop in its value near the adiabatic wall of the enclosure while it increases away from it in order to reach its maximum at the bottom boundary. Besides, we highlight that the temperature contour maps are not horizontally uniform in the core region of the cavity. We infer that an in-plane magnetic field has the tendency to slow down the movement of the fluid in the confined enclosure. As an outcome, the recirculating cells stretch or elongated in the rising vertical direction. In addition, the same process remains as Ha number increases provided the lower cells merge with the primary recirculating eddies which are at the outset positioned near the upper wall for Ha = 50 and 100 (Figures 6 and 7). Furthermore, vertical stretching of the cells occurs in such a way that the eyes of the cells get closer to the upper boundary. As a result, a significant reduction in the fluid movement in the cavity is spotted. Beyond, the braking effect of the magnetic field is discerned from the depicted circulation. When steady states are reached, temperature stratification becomes ruling as the strength of the magnetic field increases and temperature contour maps become more horizontally uniform in the core region of the cavity. The observed dynamic and thermic behavior converge on a quasi-conduction regime and this vanquish the overall heat transfer in the cavity. The observed dynamic behavior is very useful and effective in the metals semiconductor crystal growth industries [35] and in controlling melts (Figures 6 and 7).
To the author's knowledge, studies have thus far addressed a mesoscopic approach in an MHD open cavity with linearly heated wall ( Figure 1). The objective of the present chapter is therefore to predict dynamic and thermic heat transfer in a crucial engineering application. In this section, the cavity is investigated at the high Ra number of 10

Conclusions
The present study considered steady state, laminar, two-dimensional MHD free convection within a liquid gallium filled square enclosure in the presence of inplane magnetic field for different thermic boundary conditions. Lattice Boltzmann Method is utilized for simulation of this problem. The results of this method are validated in good agreement with previous numerical investigations. This investigation demonstrated ability of LBM for simulation of different boundary conditions at various elements affecting the stream. In addition this method helps to obtain stream function and isotherm counters smoothly. The governing equations are developed and solved by the LBM in the cases of linearly heated side walls and linearly heated left wall with cooled open right wall. In both cases, the upper wall of the enclosure is kept insulated. It was found that for the case of linearly heated side walls, a multi-cellular symmetric streamline behaviour was obtained for transverse applied magnetic fields. However, for the case of linearly heated left wall with cooled right wall, a two-cell (one primary and one secondary) feature was obtained. In general, the application of the magnetic field reduces the convective heat transfer rate in the cavity. Besides, the local Nusselt number at the bottom wall of the cavity exhibited oscillatory behavior along the horizontal distance for the case of linearly heated side walls whereas it increased continuously for the case of linearly heated left wall and cooled open right wall.

Nomenclature
C lattice speed c i discrete particle speeds c p specific heat at constant pressure F external forces f eq equilibrium density distribution functions g eq equilibrium internal energy distribution functions g gravity G