Open access peer-reviewed chapter

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

By Raoudha Chaabane

Submitted: May 20th 2018Reviewed: August 27th 2018Published: September 27th 2019

DOI: 10.5772/intechopen.81177

Downloaded: 313


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 105. 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.


  • MHD
  • open cavity
  • free convection
  • LBM
  • heat transfer

1. 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.


2. 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 (TH). 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 (TC). 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 B0 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.

Figure 1.

Geometry of the present study with imposed boundary conditions and standard D2Q9 velocity mode.

2.2 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,yas:

Continuity equation


Momentum equations


Energy equation


Where ν=μ/ρis the kinematic viscosity, Fxand Fyare the body forces at horizontal and vertical directions respectively and they are defined as follows [25]:


Where the Ha number is defined as


In the LBM the total force is:


Where R=μHa2and γis the direction of the magnetic field.

The functional density, velocity and temperature in the mesoscopic approach are:


2.3 Method of solution

To ensure that the <code simulates an approximated incompressible regime>, the characteristic velocity of the flow (V=gβTHTwT) at the free convection regime must be compared with the fluid speed of sound cs. In the present study, the characteristic velocity is selected as 0.1 of sound speed. By fixing Ra number Ra=βgyH3PrTHTC/ν2, Pr number Pr=ανand Mach number (Ma=u/c), the kinematic viscosity ν=MaHacsPr/Raand thermal diffusivity αare deduced. Nusselt number Nuis 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;


2.4 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.

3. 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 = 105.

Figure 2.

Comparison of the steady state streamlines (a) and isotherms (b) at Pr = 0.71 for Ha = 0 and Ra = 105 between [20] (continuous lines) and the present work (dashed lines).

Figure 3.

Of the steady state fluid velocity streamlines (a) and isotherms (b) of linearly heated side walls MHD cavity for Ha = 50, Pr = 0.025 and Ra = 105 between [7] (continuous lines) and the present work (dashed lines). Frame ranges [−0.001, 0.5] (a), frame ranges [0, 1] (b).

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 Nub with the horizontal normalized distance x/X for the case of linearly heated side walls with Ha = 50, Pr = 0.025 and Ra = 105. 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 Nub 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 = 105) 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].

Figure 4.

Variation of bottom Nusselt number with distance at bottom wall in the case of linearly heated side walls (Pr = 0.025 and Ra = 105) for different Ha numbers. (a) Ha = 0, (b) Ha = 50 and (c) Ha = 150.

Figure 5.

Variation of local Nusselt number with distance at side wall for linearly heated side walls (Pr = 0.025 and Ra = 105). (a) Ha = 0 and (b) Ha = 50.

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 Ra = 105. Numerical results in terms of flow and thermic structure show that the flow within the cavity takes place owing to the thermic buoyancy effects caused by the linearly heated walls, which is represented by the Ra number. The finding of Ra = 105 in the absence of magnetic field show that the flow is characterized by a multi-cellular behavior in which the re-circulating eddies or cells of relatively high 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).

Figure 6.

Comparison of the steady state isotherms at Ra =105 and Pr = 0.025 for different Ha numbers in the case of linearly heated side walls. (a) Ha = 0 (b) Ha = 50 and (c) Ha = 100.

Figure 7.

Comparison of the steady state fluid velocity streamlines at Ra =105 and Pr = 0.025 for different Ha numbers in the case of linearly heated side walls.

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 105, high Ha number (Ha = 50) and Pr number of 0.025. The exit section of flow on the open boundary moves downward and the movement of the flow gets limited with the increment of Ha number that it influences heat transfer from the linearly heated wall to the cold open boundary (see Figure 8). The effect of the presence of the magnetic field is clear since the isotherms recede from the linearly heated left wall slowly and their gradient on the left wall declines extremely which it exposes the decrease in heat transfer in the open cavity. Figure 9 illustrates the variation of local Nusselt number with distance at bottom wall in the case of linearly heated side wall for a MHD open cavity.

Figure 8.

Steady state fluid velocity streamlines (a) and isotherms (b) at Ha = 50, Pr = 0.025 and Ra = 105 for linearly heated open cavity.

Figure 9.

Variation of local Nusselt number with distance at bottom wall in the case of linearly heated side wall for a MHD open cavity (Pr = 0.025, Ha = 50 and Ra = 105).

4. Conclusions

The present study considered steady state, laminar, two-dimensional MHD free convection within a liquid gallium filled square enclosure in the presence of in-plane 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.


Clattice speed
cidiscrete particle speeds
cpspecific heat at constant pressure
Fexternal forces
f eqequilibrium density distribution functions
geqequilibrium internal energy distribution functions
GBuoyancy per unit mass
Henclosure height
MaMach number
NuNusselt number
PrPrandtl number
RaRayleigh number
x,ycartesian coordinates
Xhorizontal length of the cavity
Yvertical length of the cavity
HaHartmann number
Greek letters
ωiweighted factor indirection i
βthermal expansion coefficient
τrelaxation time
νkinematic viscosity
Δttime increment
αthermal diffusivity

© 2019 The Author(s). Licensee IntechOpen. This chapter is distributed under the terms of the Creative Commons Attribution 3.0 License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.

How to cite and reference

Link to this chapter Copy to clipboard

Cite this chapter Copy to clipboard

Raoudha Chaabane (September 27th 2019). Free Convection in a MHD Open Cavity with a Linearly Heated Wall Using LBM, Pattern Formation and Stability in Magnetic Colloids, Nicola?s O. Rojas, IntechOpen, DOI: 10.5772/intechopen.81177. Available from:

chapter statistics

313total chapter downloads

More statistics for editors and authors

Login to your personal dashboard for more detailed statistics on your publications.

Access personal reporting

Related Content

This Book

Next chapter

Introductory Chapter: An Example in Superparamagnetic Colloids

By Nicolás O. Rojas

Related Book

First chapter

Microfluidics and Nanofluidics: Science, Fabrication Technology (From Cleanrooms to 3D Printing) and Their Application to Chemical Analysis by Battery-Operated Microplasmas-On-Chips

By Vassili Karanassios

We are IntechOpen, the world's leading publisher of Open Access books. Built by scientists, for scientists. Our readership spans scientists, professors, researchers, librarians, and students, as well as business professionals. We share our knowledge and peer-reveiwed research papers with libraries, scientific and engineering societies, and also work with corporate R&D departments and government entities.

More About Us