Open access peer-reviewed chapter - ONLINE FIRST

Numerical Investigation of Natural Convection and Entropy Generation of Water near Density Inversion in a Cavity Having Circular and Elliptical Body

By Nguyen Minh Phu and Nguyen Van Hap

Submitted: November 10th 2020Reviewed: November 30th 2020Published: December 19th 2020

DOI: 10.5772/intechopen.95301

Downloaded: 39


In this chapter, a water-filled square cavity with left hot wall and right cold wall was numerically investigated. The hot and cold wall temperatures are 10°C and 0°C respectively to examine the density inversion of natural convection water, i.e. water at 4°C. In the middle of the square, there are circular and elliptical bodies to study fluid–structure interaction in terms of the thermohydraulic behavior and entropy generation. 2D numerical simulation was performed using finite volume method in Ansys fluent software with the assumption of laminar flow. The simulation results are compared with benchmark data to determine reliability. The results indicate that the body insertions increase the convection heat transfer coefficients at the best heat transfer positions due to impingement heat transfer. An increase in heat transfer rate of 1.06 times is observed in the case of circular body compared to none. There are three primary eddies in the cavity with bodies, whereas the cavity without body has two primary eddies. Maximum entropy generation was found in the upper right corner of cavity mainly due to high horizontal temperature gradient. Bodies of circle and vertical ellipse have almost the same thermohydraulic and entropy generation characteristics due to the same horizontal dimension which mainly effects on the downward natural convection current. The entropy generation of cavity with circular body is 1.23 times higher than that of the cavity without body. At positions y/L = 1 on the hot wall and y/L = 0.74 on the cold wall, the convection heat transfer coefficient is close to zero due to stagnant fluid.


  • natural convection
  • density inversion
  • numerical simulation
  • entropy generation
  • fluid-conic structure interaction

1. Introduction

Water is a fluid with special thermophysical properties compared to many pure substances. That is, the specific heat of water is so large that water is often thought of as a thermal storage media and the density inversion around 4°C alters the natural convection heat transfer mechanism around this temperature [1]. Early, Sasaguchi et al. [2, 3] examined water cooling with density inversion taken into account. They concluded that the position in vertical direction of the cold cylinder surface had a remarkable effect on the rate of water cooling. Tong [4] reported the effect of the aspect ratio of the cavity on the natural convection heat transfer rate of water around its maximum density. The results show that the aspect ratio of 3 enhances the density inversion. Varol et al. [5] investigated a rectangular cavity with porous media. Flow pattern and isotherms have been presented and analyzed in this study at different Rayleigh numbers. Recently, Hu et al. [6] numerically investigated circular, rectangular, and triangular cavity with inner blocks of circles, squares and triangles. They concluded that increasing the aspect ratio increases the number of vortex and that the effect of cavity’s shape on heat transfer is stronger than that of the inner blocks. More recently, Cho et al. [7] simulated natural convection in a cavity with circular and elliptical objects. They confirmed that the elliptical object placed at top increased the Nusselt number by 2.1% compared to the two circular objects.

The above works have been done regarding the thermo-hydraulic properties of natural convection in an enclosure. Entropy generation or exergy destruction is a second consideration to comprehensively evaluate an energy system to fulfill the laws of thermodynamics [9, 10, 11]. However, the entropy generation assessment due to natural convection in an enclosure with internal objects has been little interest by researchers. Some of the works that can be found in literature are as follows. Kashani et al. [12] investigated entropy generation due to natural convection in an enclosure with vertical wavy walls. They reported that both thermal hydraulics phenomena and entropy generation are strongly influenced by density inversion. Tayebi and Chamkha [13] investigated the entropy generation of a nanofluid in a square cavity with a conducting empty cylinder. Results showed that inserting the cylinder significantly changed the heat transfer mechanism and the irreversibility of the enclosure. Li et al. [14] examines a cylinder inside an inclined enclosure. The effects of radiation and electromagnetic fields on natural convection and entropy production were considered in this study. They reported that the largest Bejan number was reached at an inclination angle of 60°.

From the literature review above, it can be seen clearly that the addition of objects into the cavity alters the thermal properties, fluid flow and entropy generation in natural convection. However, a study of natural convection of water around its maximum density with circular and elliptical objects within cavity has not been found. In this chapter, both the thermohydraulic and entropy generation mechanisms of the above problem were investigated to characterize the energy and exergy aspects of the density inversion associated with the inserts.

2. Model description and validation

Figure 1 shows the 38 mm square cavity examined in this study. Inside the cavity there are circular and elliptical bodies with basic dimensions of 18 mm and 9 mm. The cavity without body is considered as base case (Case 1). The five different conic sections of the body include circle (Case 2), vertical ellipse (Case 3), horizontal ellipse (Case 4), left inclined ellipse (Case 5), and right inclined ellipse (Case 6). Accelerate gravity vector is vertical and in the opposite direction to the y-axis to investigate natural convection in the cavity. The boundary conditions of the computational domain include the temperature TH = 10°C in the left wall, TC = 0°C in the right wall. The remaining walls are considered adiabatic. Natural convection currents in cavity are assumed laminar, two-dimensional and incompressible fluid [2, 3, 6, 15]. The following equations are the governing equations under current consideration:

Figure 1.

Computational domain and investigated cases.

Continuity equation






Energy equation


where ρ0 is the reference density of water, its value of 999.8 kg/m3 in the present study.

The density of water in the temperature range from 0 to 10°C was fitted from the EES software (F-chart software) as follows:


where ρ is water density (kg/m3) and T is water temperature (K).

It can be observed the difficulty when dealing with the Navier–Stokes governing equation. This is due to the fact that left hand side of the momentum equations is non-linear term. Secondly, a pressure variable does not present in the continuity equation. To overcome drawbacks, a semi-implicit method was adopted in the present numerical study. The selected method is SIMPLE (Semi-Implicit Method for Pressure Linked Equations) algorithm which linearizes convection term in momentum equations and is used to couple velocity and pressure variables in Eqs. (1) and (2). Application of the SIMPLE algorithm to curved surfaces of circle and ellipse can be resolved by an interpolation between grid vertexes which are not coincident with the boundaries leading to low accuracy of the solution. Therefore, the geometric imperfection is eliminated by using a curvilinear coordinate system [16, 17].

Figure 2 shows the meshing in a typical computational domain. Refinements are enhanced for the surfaces to increase accuracy in predicting phenomena in conjunction with the boundary layer. For hybrid grids as displayed in Figure 2 and enlarged in Figure 3a, the velocity and pressure variables are stored in the center of a control volume as illustrated in Figure 3b. Thus, these qualities at a face could be interpolated by center-stored pressure and velocity of two adjacent control volumes. The face interpolation can be treated by using the curvilinear coordinate system ξ-η as seen in Figure 3c where n is the vector normal to the face, eξ and eη the unit vectors along ξ-η axes [18].

Figure 2.

Mesh generation with refinement.

Figure 3.

Face interpolation in finite volume method. (a) Vertex, face, and volume definition. (b) Pressure and velocity components stored in center of a volume. (c) Face interpolation by means of curvilinear coordinate system ξ-η.

Grid independence check for case 1 was conducted with the number of nodes of 18,214, 28,454, 54,609 and 181,524 showing that the number of nodes 54,609 has small error compared with data in the literature and computation cost is moderate. The residuals of 1e-4 and 1e-6 are set for the momentum and energy equations, respectively. Figure 4 displayed a comparison of velocity components in case 1 along the x-axis at the horizontal center line y = 19 mm with the number of nodes of 54,609, where X = x/L, X-velocity = uL/α, Y-velocity = vL/α, α is the thermal diffusivity. The comparison result with published data [19] showed a fairly good agreement. From these settings and confirmations, grids of about 56,000 nodes are obtained for 5 cases having a body in the middle of cavity.

Figure 4.

Validation with published data [19].

The thermal and entropy generation parameters were deduced from the simulated data. The local heat transfer coefficient (HTC) at hot and cold walls is computed as:


where k is the conductivity of water.

The local entropy generation inside the domain can be estimated by [20, 21]:

The local entropy generation due to heat transfer:


The local entropy generation due to fluid friction:


where μ is the water dynamic viscosity.

Average total entropy generation can be found by the volumetric integral as:


where V is the volume of computational domain.

3. Results and discussion

Figure 5 shows the velocity distribution in square cavity. Fluid–structure interactions can be clearly observed for six cases. The contour in the Figure 5 exhibited high-speed upward flow near the heat exchange surfaces and downflow in the middle due to the density difference. The maximum natural convection velocity is about 0.9 mm/s. Case 1 (without body) showed a lightly higher velocity than others due to motion obstruction of the body. It can be seen that the flow pattern of case 2 (circle) and case 4 (horizontal ellipse) is nearly the same. This is because the horizontal size of the two bodies is the same (18 mm). This is the main length that affects downward stream.

Figure 5.

Velocity magnitude.

The temperature field inside the cavity can be seen in Figure 6. The temperature stratifications are clearly visible in the upper half cavity. The upper left corner has high temperature due to the fluid that receives heat from the hot surface and rises. There is a region with relatively low temperature near the cold surface due to the interference between the downstream and the upstream causing stagnant fluid (point E on Figure 5).

Figure 6.


The flow pattern in the cavity can be observed through the streamlines as shown in Figure 7. It is clear that the number of vortices increases from 2 to 3 for the absence of body to its existence. The third swirl located on the upper right side of the body. The one more vortex is formed by the separation of the downstream flow by the bodies. The eddies in the body-inserted cases are smaller than those of the base case due to the occupation of the bodies.

Figure 7.


Figure 8 shows the total entropy generation distribution. It can be seen that the largest entropy generation is the upper right corner, the second largest is the lower left corner. Case 2 had the largest entropy generation and case 1 indicated the smallest one. The maximum entropy generation is about 190 W/m3-K. The entropy generation distribution is quite similar to that of Kashani et al. [12]. The laminar flow and the low velocity lead to small entropy generation due to friction. Entropy generation in the cavity is prevailed by heat transfer. Figure 9 shows the temperature gradients in case 2 to clarify the effect of the components. Combining Figures 6 and 9 shows that the horizontal temperature variation is large in the upper right corner. Since downward flow is accompanied by strong heat exchange, the temperature gradient in x direction has considerably high magnitude. The second largest entropy generation is close to the stagnant point on cold wall caused by a large temperature gradient in y-direction. Figure 10 compares the mean entropy generation for the cases under consideration. The largest and smallest average entropy generations are 3.7 W/ m3-K and 3 W/m3-K respectively, corresponding to the entropy generation in case 2 of 1.23 times higher than the base case. The other cases have the average entropy generation of 3.35 W/m3-K.

Figure 8.

Total entropy generation.

Figure 9.

Temperature gradients in case 2.

Figure 10.

Average entropy generation.

Figure 11 reported the local heat transfer coefficient (HTC) on hot and cold surfaces. The largest HTC for the hot surface finds near the bottom wall due to reverse flow causing impingement heat transfer. The local heat transfer coefficient decreased with increase in height. This is due to the fact that the fluid increases the temperature leading to reduce the temperature difference between the hot wall and the adjacent fluid. At the top of the hot surface (y = L) the fluid was not moving. Therefore, the convection heat transfer coefficient approaches zero. Body insertion increased the HTC at the best heat transfer position (y ≈ 0). This is because the flow is guided by the body and acts perpendicular to the hot surface as seen in Figure 5 (point C). In this region, circular body gives the highest heat transfer coefficient because its shape plays a role as a guide vane. Similar phenomena can be observed for HTC of the cold side as shown in Figure 11b. At position y = 35 mm HTC is the largest due to impingement heat transfer (see more point D on Figure 5). At y = 28 mm (y/L = 0.74), the HTC is approximately zero due to the stagnant fluid as explained above. When y increases from 0 to 28 mm, the HTC decreases due to the decrease in temperature gradient in x-direction. At the best heat transfer position of the cold surface, i.e. y = 35 mm, we can see that the circular body gives the highest HTC and the base case results in the smallest HTC.

Figure 11.

Local heat transfer coefficient. (a) Hot wall; (b) cold wall.

Figure 12 compares the maximum heat transfer coefficient on hot (y ≈ 1.5 mm) and cold (y ≈ 35 mm) walls. It can be seen that the HTC of a circle-inserted cavity is 1.06 times (≈ 167/157) higher than that of the base case (Case 1). Once again, we can see that the HTC of cases 2 and 4 is quite identical. Because circular body and elliptical body have the same horizontal dimension (18 mm). The natural convection flow in an enclosure is prevailed by width of a body due to upwelling and downwelling plumes. Among the inserted cavity, case 3 (vertical ellipse) has the smallest HTC due to its smallest horizontal length.

Figure 12.

Comparison of maximum heat transfer coefficient.

4. Conclusions

The numerical study of the natural convection of water around its maximum density was carried out in this chapter. Fluid-conic structure interaction and natural convection heat transfer were presented and analyzed. The characteristics of temperature distribution, water fluid flow, local entropy generation and local convection heat transfer coefficient were investigated. The main findings from the chapter are as follows:

  1. The body insertions prevent the middle downstream causing a slight decrease in fluid velocity.

  2. The flow pattern of the circular body and the horizontal elliptical body are nearly identical.

  3. The bodies inserted into cavity increase one more primary vortex because of the downward flow separated by bodies.

  4. The circular body has the largest entropy generation, the cavity without body yields the smallest entropy generation.

  5. Maximum entropy generation occurs at the upper right corner of the cavity. This comes from the huge x-direction temperature variation in this region.

  6. Inserts increase the greatest heat transfer coefficient on hot and cold walls. In which the biggest increase is circular body followed by the horizontal elliptical body.

Download for free

chapter PDF

© 2020 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

Nguyen Minh Phu and Nguyen Van Hap (December 19th 2020). Numerical Investigation of Natural Convection and Entropy Generation of Water near Density Inversion in a Cavity Having Circular and Elliptical Body [Online First], IntechOpen, DOI: 10.5772/intechopen.95301. Available from:

chapter statistics

39total chapter downloads

More statistics for editors and authors

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

Access personal reporting

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