- Research
- Open access
- Published:
Free convection inside a porous square cavity with convective boundary condition using spline functions
Boundary Value Problems volume 2021, Article number: 57 (2021)
Abstract
In this paper, we consider the problem of free convection in a square cavity filled with a porous medium with convective boundary condition on the left wall of the cavity. We first transform the governing equations transformed in terms of dimensionless variables and then solve them numerically using a cubic spline colocation method. We discuss the effects of two very important parameters, the Biot (Bi) and Rayleigh (Ra) numbers. We perform a comparison of the average Nusselt number \(\overline{Nu}\) at the hot wall with results from the open literature. We can notice that the comparison is very good, which gives us strong confidence that this cubic spline collocation method works very efficiently for such problems. We also state that the present problem has not been considered before by any researcher.
1 Introduction
Convection in enclosures saturated with porous media is present in several transport operations in engineering devices. This is advised for altitude heat-dissipating electronic ingredients, where free convection is notable for providing effective cooling, heat exchangers, solar energy storage, greasing technology, cooling the electronic systems, and desiccation technologies. It also occurs in investigations considering the chemical reactions and detaching fluids, food processing and storage, petroleum and geothermal industries, dialysis of blood in artificial kidney, blood oxygenators and flow of blood in the capillaries, fibrous insulation, thermal insulation of buildings, geophysical systems, solar power collectors, nuclear reactors, geothermal applications, electro chemistry, metallurgy, underground disposal of nuclear or nonnuclear waste, and so on (see the books by Ingham and Pop [1–3], Pop and Ingham [4], Kaviany [5], Vafai [6, 7], Vadasz [8], Bejan [9], Nield and Bejan [10], Bear [11], Prasad and Kulacki [12], and Gross et al. [13]).
The situation with convective boundary condition arises in conjugate convective flows, where the heat is supplied to the convective fluid through a bounding surface with a finite heat capacity. This configuration occurs in many important engineering devices, for example, in heat exchange where the conduction in the solid tube wall is greatly influenced by the convection in the fluid flowing over it (see Chaudhary and Jain [14]).
We also mention some very good papers on efficient methods for such problems: Abdelwahed et al. [15] on reconstruction of Tesla micro-valve using topological sensitivity analysis, Abdelwahed and Chorfi [16] on the convergence analysis of a time-dependent elliptic equations with discontinuous coefficients, and Chorfi et al. [17] on the analysis of a geometrically selective turbulence model.
The objective of the present analysis is investigating the influence of the thermal boundary condition in a square cavity filled with a porous medium using a spline colocation method. We determine numerical solutions for the streamlines, isotherms, and local and average Nusselt numbers.
2 Mathematical formulation
We consider the free convection in a square cavity filled with a fluid-saturated porous medium, as it is shown in Fig. 1, where the Cartesian coordinates are x̅ and y̅, and L is the wall length. The temperatures at the left and right sides of the walls are considered constant, and the bottom and top walls are thermally insulated. We also assume that the outside left side surface of the cavity is heated by convection from a hot fluid at constant temperature \(T_{f}\), which provides a heat transfer coefficient \(h_{f}\) (see Aziz [18]), namely
The homogeneity and the thermal equilibrium of the porous medium are assumed.
Then the steady conservation of mass, Darcy’s law with the Oberbeck–Boussinesq approximation employed, and the energy equations are (see Nield and Bejan [10])
In these equations, \(\overline{\boldsymbol{v}} =( \overline{u}, \overline{v} )\) is the velocity vector, T is the fluid temperature, p is the fluid pressure, k is the thermal conductivity, \(\nabla ^{2}\) is the Laplace operator, and the physical meanings of the other quantities are mentioned in the Abbreviations list.
Equations (2.2)–(2.4) are written in Cartesian coordinates, and the pressure p is eliminated by cross-differentiation. Introducing the stream function ψ̅ defined by
we reduce equations (2.2) to (2.4) to
where \(\alpha _{m} = k_{m} /(\rho c )_{f}\) is the effective thermal diffusivity. Introducing the dimensionless variables
and substituting (2.8) into equations (2.6)–(2.7), we obtain:
where \(Ra=gK \rho _{0} \beta \Delta T/( \alpha _{m} \mu )\) is the Rayleigh number, and \(\Delta T= T_{h} - T_{c}\). Then we complete the mathematical model with the following corresponding boundary conditions:
where \(Bi=L h_{f} / k_{f}\) is the Biot number. Note that for large values of \(Bi(\gg 1)\), from (2.11) it follows that \(\theta (0)=1\) (isothermal left wall of the cavity).
The physical quantities of interest are the local and average Nusselt numbers \(Nu_{l}\) and \(\overline{N u_{l}}\). The local Nusselt number at the left wall is given by
and the mean Nusselt number is
3 Numerical method
The governing equations (2.9) and (2.10) coupled with the boundary conditions (2.11) are approximated numerically using the SADI (spline-alternating-direction-implicit) method, a combination of spline collocation and standard ADI (alternating-direction-implicit) methods. Each unknown is approximated by a cubic spline function. This is an efficient method, having good accuracy and low cost in implementation, as it leads to a governing linear tridiagonal system.
Using the fictitious time technique, we write equations (2.9) and (2.10) in the form
in the x-direction, with \(m_{\Phi ,ij}\) and \(M_{\Phi ,ij}\) denoting the spline approximations of the first- and second-order partial derivatives with respect to x. Then, in the y-direction, we write
where \(l_{\Phi ,ij}\) and \(L_{\Phi ,ij}\) are the spline approximations of \(( \Phi _{y} )_{ij}\) and \(( \Phi _{yy} )_{ij}\). In these equations, \(i,j=0,N\) refer to the mesh nodes, n denotes the false time step, and \(\Phi _{ij}\) are the cubic spline approximations of the functions θ or ψ at the grid nodes. The coefficients \(F_{ij}\), \(R_{ij}\), and \(Q_{ij}\) at the two steps are given in Tables 1 and 2. By the usual cubic spline collocation relations (see Pu and Kahawita [19]) we transform equations (3.1) and (3.2) to
and
respectively, where φ can be the function Φ or one of its derivatives (m or M for equation (3.3) and l or L for equation (3.4)). Obtaining two more equations from the boundary conditions, we get a closed tridiagonal, diagonally dominant linear system, which can be solved efficiently by the Thomas algorithm. For details on the mathematical computations, see Rubin and Graves [20] or Pu and Kahawita [19]. The computations are iterated until a steady-state solution is reached, that is,
where n is the number of iterations.
When a steady-state solution is reached, the mean Nusselt number
is approximated by the trapezoidal rule.
The procedure is described in more detail by Micula and Pop [21].
At the first step, in the x-direction, from time \(n \Delta t\) to \((n+1/2) \Delta t\), discretizing equations (2.6)–(2.7), for every \(i=1,\dots ,N-1\) and fixed \(j\in \{0,1,\dots ,N\}\), we write
and
with the coefficients given in Table 1. These equations are then put in the form
and
respectively.
From the boundary conditions (2.11) we get another equation for \(\theta _{ij}^{n+1/2}\),
Also, combining the boundary conditions (2.11) with relations between cubic spline functions and their derivatives, we get one more equation
The derivation of coefficients \(A_{\theta ,0j}\), \(B_{\theta ,0j}\), and \(D_{\theta ,0j}\) is given in the Appendix.
Equations (3.9), (3.11), and (3.12) form an \((N+1)\times (N+1)\) tridiagonal, diagonally dominant linear system in the unknowns \(\{ \theta _{ij}^{n+1/2} \}_{i= \overline{0,N}}\). When the system is solved and these values are found, the values of \(\{ m_{\theta ,ij}^{n+1/2} \}_{i= \overline{0,N}}\) (and of \(\{ M_{\theta ,ij}^{n+1/2} \}_{i= \overline{0,N}}\), if needed) can also be found.
Similarly, for \(\psi _{ij}^{n+1/2}\), equations (3.10) coupled with (from the boundary conditions)
form an \((N+1)\times (N+1)\) tridiagonal, diagonally dominant linear system for the unknowns \(\{ \psi _{ij}^{n+1/2} \}_{i= \overline{0,N}}\).
For the second step, in the y-direction, from time \((n+1/2) \Delta t\) to \((n+1) \Delta t\), we proceed similarly. For any fixed \(i\in \{0,1,\dots ,N\}\) and for every \(j=1,\dots ,N-1\), using the coefficients from Table 2, we get equations
and
Again, from the boundary conditions (2.11) we get two more equations for \(l_{\theta ,ij}^{n+1}\),
and two for \(\psi _{ij}^{n+1}\),
Then equations (3.14) and (3.16) form a closed linear system for the unknowns \(\{ l_{\theta ,ij}^{n+1} \}_{j= \overline{0,N}}\) (again, from these the values of \(\{ \theta _{ij}^{n+1} \}_{i= \overline{0,N}}\) and \(\{ L_{\theta ,ij}^{n+1} \}_{j= \overline{0,N}}\) can also be found). Similarly, equations (3.15) and (3.17) give an \((N+1)\times (N+1)\) tridiagonal linear system for the unknowns \(\{ \psi _{ij}^{n+1} \}_{j= \overline{0,N}}\).
4 Numerical results and discussion
We apply the SADI method to our problem taking the values \(Ra=10, 100, 1000\) and \(Bi= 0.5, 5, 50, 100\). The method is validated by comparing the values of \(\overline{Nu}\) we obtained with other well-known results in the literature (see Table 3).
We use uniform meshes of \(N\times N\) nodes for \(N=100, 200, 300\), and 400. A sensitivity to the grid size test is performed, and the results are seen in Table 4. As the values in the table show, the results vary little from \(100\times 100\) to \(400\times 400\) meshes. Therefore, for various values of the parameters Ra and Bi, in our calculations, we considered \(200\times 200\) grids. The values of the average Nusselt number \(\overline{Nu}\) are presented in Table 5. For each value of Ra, note that as the values of Bi become larger, the results approach the values corresponding to the case where the boundary condition is \(\theta =1\) on the left wall of the cavity.
Also, the average Nusselt number increases as the values of the Biot number increase, as can be seen from Table 5.
Figure 2 shows the variation of the local Nusselt number with Bi, again the tendency toward the case \(\theta =1\) on \(x=0\) being evident. In Figs. 3–5 the streamlines and isotherms are depicted for all the values of the parameters Ra and Bi considered.
For the maximum values of the parameters (\(Ra=1000\) and \(Bi=100\)), we also performed calculations using nonuniform grids. We used a nonuniform mesh obtained by keeping the spacing ratio from the wall to the center \(h_{i+1} / h_{i}\) a constant (strictly greater than 1), which depends on the desired number of nodes. In this case, we produced a symmetric grid with \(h_{\min } \approx 5\times 1 0^{-5}\) (near the walls) and \(h_{\max } \approx 0.02\) (at the center). The variation of \(\overline{Nu}\) with the number of nodes for a nonuniform grid is shown in Table 6. As it can be seen, there are insignificant differences from smaller to larger numbers of nodes. Note that the values obtained when a nonuniform mesh was used are slightly higher than those obtained by a uniform grid at the same number of nodes. That was also evident in the simple case of a hot wall, \(\theta =1\), on \(x=0\) (see Table 3).
5 Conclusions
We used a cubic spline collocation scheme to obtain the numerical solution of the problem of free convection inside a porous square cavity with convective boundary condition. This is an efficient method as it leads to a sparse (tridiagonal) linear system that can be solved faster using the Thomas algorithm. The SADI method is especially useful when the boundary conditions involve values of the derivatives, not just of the function, as it is the case here. That is because the governing linear system can be written for the values of the (first or second) derivatives at the nodes, not just for the functional values, as in other classical methods. This can be chosen by convenience (depending on the boundary conditions), with fewer extra computations and without other local numerical differentiation techniques. This saves computational time and storage space. The method is second-order accurate, even when nonuniform meshes are used, as is often necessary near the boundary. At the same time, it yields accurate results, in good agreement with other reported values, as Table 3 shows.
As the numerical results and graphs show, when the values of Bi increase (≫1), the boundary condition on the left wall approaches the case \(\theta =1\) (isothermal left wall of the cavity).
The Biot number enhances the release of heat energy, substantially cooling the system. This analysis may certainly have practical impact on obtaining the conditions needed to design an integrated system to achieve optimal functionality.
Availability of data and materials
The data that support the findings of this study are available within the paper.
Abbreviations
- g :
-
acceleration vector due to gravity
- K :
-
permeability of the porous medium
- L :
-
height of the cavity
- \(Nu_{x}\) :
-
local Nusselt number
- \(\overline{Nu}\) :
-
average Nusselt number
- p :
-
pressure
- Ra :
-
Rayleigh number for porous medium
- Bi :
-
Biot number
- T :
-
temperature
- \(T_{c}\) :
-
temperature of the cooled wall
- \(T_{h}\) :
-
temperature of the left hot wall
- v :
-
velocity vector
- u̅, v̅ :
-
dimensional velocity component in the x̅- and y̅-axes
- x̅, y̅ :
-
dimensional Cartesian coordinates
- x, y :
-
dimensionless Cartesian coordinates
- \(\alpha _{m}\) :
-
thermal diffusivity of the porous medium
- β :
-
coefficient of thermal expansion of the nanofluid
- ε :
-
porosity
- θ :
-
dimensionless temperature
- μ :
-
dynamic viscosity of the fluid
- \(\rho _{0}\) :
-
density of the fluid
- ψ̅ :
-
dimensional stream function
- ψ :
-
dimensionless stream function
References
Ingham, D.B., Pop, I. (eds.): Transport Phenomena in Porous Media Pergamon, Oxford (1998)
Ingham, D.B., Pop, I. (eds.): Transport Phenomena in Porous Media, Vol. II Pergamon, Oxford (2002)
Ingham, D.B., Pop, I. (eds.): Transport Phenomena in Porous Media, Vol. III Elsevier, Oxford (2005)
Pop, I., Ingham, D.B.: Convective Heat Transfer: Mathematical and Computational Modeling of Viscous Fluids and Porous Media. Pergamon, Oxford (2001)
Kaviany, M.: Principals of Heat Transfer in Porous Media, 2nd edn. Springer, New York (1999)
Vafai, K. (ed.): Handbook of Porous Media 2nd edn. Taylor & Francis, New York (2005)
Vafai, K.: Porous Media: Applications in Biological Systems and Biotechnology. CRC Press, Tokyo (2010)
Vadasz, P. (ed.): Emerging Topics in Heat and Mass Transfer in Porous Media Springer, New York (2008)
Bejan, A.: Convection Heat Transfer, 4th edn. Wiley, New York (2013)
Nield, D.A., Bejan, A.: Convection in Porous Media, 5th edn. Springer, New York (2017)
Bear, J.: Modeling Phenomena of Flow and Transport in Porous Media. Springer, New York (2018)
Prasad, V., Kulacki, F.A.: Convective heat transfer in a rectangular porous cavity-effect of aspect ratio on flow structure and heat transfer. J. Heat Transf. 106, 158–165 (1984)
Gross, R.J., Bear, M.R., Hickox, C.E.: The application of flux-corrected transport (FCT) to high Rayleigh number natural convection in a porous medium. In: Proceedings of the 8th International Heat Transfer Conference, San Francisco (1986)
Chaudhary, R.C., Jain, P.: Unsteady free convection boundary layer flow past an impulsively started vertical surface with Newtonian heating. Rom. J. Phys. 51, 911–925 (2006)
Abdelwahed, M., Chorfi, N., Malek, R.: Reconstruction of Tesla micro-valve using topological sensitivity analysis. Adv. Nonlinear Anal. 9, 567–590 (2020)
Abdelwahed, M., Chorfi, N.: On the convergence analysis of a time dependent elliptic equation with discontinuous coefficients. Adv. Nonlinear Anal. 9, 1145–1160 (2020)
Chorfi, N., Abdelwahed, M., Berselli, L.C.: On the analysis of a geometrically selective turbulence model. Adv. Nonlinear Anal. 9, 1402–1419 (2020)
Aziz, A.: A similarity solution for laminar thermal boundary layer over a flat plate with a convective surface boundary condition. Commun. Nonlinear Sci. Numer. Simul. 14, 1064–1068 (2009)
Pu, W., Kahawita, R.: The numerical solution of the unsteady natural convection flow in a square cavity at high Rayleigh number using SADI method. Appl. Math. Mech. 8, 219–228 (1987)
Rubin, G., Graves, R.A.: A cubic spline approximation for problems in fluid mechanics. National Aeronautics and Space Administration (1975) Technical Report
Micula, S., Pop, I.: Numerical results for the classical free convection flow problem in a square porous cavity using spline functions. Int. J. Numer. Methods Heat Fluid Flow 31(3), 753–765 (2021). https://doi.org/10.1108/HFF-03-2020-0159
Walker, K.L., Homsy, G.M.: Convection in a porous cavity. J. Fluid Mech. 87, 449–474 (1978)
Bejan, A.: On the boundary layer regime in a vertical enclosure filled with a porous medium. Lett. Heat Mass Transfer 6, 93–102 (1979)
Beckermann, C., Viskanta, R., Ramadhyani, S.: A numerical study of non-Darcian natural convection in a vertical enclosure filled with a porous medium. Numer. Heat Transf. 10, 557–570 (1987)
Moya, S.L., Ramos, E., Sen, M.: Numerical study of natural convection in a tilted rectangular porous material. Int. J. Heat Mass Transf. 30(4), 741–756 (1987)
Manole, D.M., Lage, J.L.: Numerical benchmark results for natural convection in a porous medium cavity. In: Heat and Mass Transfer in Porous Media. ASME Conference, vol. 105, pp. 44–59 (1992)
Baytas, A.C., Pop, I.: Free convection in oblique enclosures filled with a porous medium. Int. J. Heat Mass Transf. 42(6), 1047–1057 (1999)
Sheremet, M.A., Pop, I.: Natural convection in a square porous cavity with sinusoidal temperature distributions on both side walls filled with a nanofluid: Buongiorno’s mathematical model. Transp. Porous Media 105, 411–429 (2014)
Acknowledgements
The authors wish to express their thanks to Dr. Teodor Groşan for reading the paper.
Funding
There is no funding for this paper.
Author information
Authors and Affiliations
Contributions
Both authors contributed equally and significantly in writing this paper. SM has obtained the numerical results and contributed to the discussion of the results, and IP has formulated the problem and made some discussion. Both authors read and approved the final manuscript.
Corresponding author
Ethics declarations
Competing interests
The authors declare that they have no competing interests.
Appendix
Appendix
In this section, we derive equation (3.12). To simplify the writing, since this is only done for the function θ at the first step, we omit the subscript θ for the coefficients and the superscript \(n+1/2\) for the function. Also, since \(j\in \{0,1,\dots ,N\}\) is fixed, we also omit it. The notations m and M for the approximations of the first and second derivatives of θ with respect to x are also accordingly simplified. So, we want to derive the equation of the form
From discretization (3.7) we get (for \(i=0\) and \(i=1\))
and
From the boundary conditions (2.11) we also have
By the basic cubic spline relations between functional and derivative values (see Rubin and Graves [17]) we know that
and
We eliminate four of the six unknowns, namely \(m_{0}\), \(M_{0}\), \(m_{1}\), and \(M_{1}\) from five equations (A.2)–(A.6) to obtain a linear relationship between the last two remaining unknowns \(\theta _{0}\) and \(\theta _{1}\).
Denoting
we obtain equation (A.1) with
Rights and permissions
Open Access This article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if changes were made. The images or other third party material in this article are included in the article’s Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article’s Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this licence, visit http://creativecommons.org/licenses/by/4.0/.
About this article
Cite this article
Micula, S., Pop, I. Free convection inside a porous square cavity with convective boundary condition using spline functions. Bound Value Probl 2021, 57 (2021). https://doi.org/10.1186/s13661-021-01533-6
Received:
Accepted:
Published:
DOI: https://doi.org/10.1186/s13661-021-01533-6