Skip to main content

Free convection inside a porous square cavity with convective boundary condition using spline functions

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 [13], 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 and , 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

$$ - k_{f} \frac{\partial T}{\partial \overline{y}} = h_{f} ( T_{f} -T) \quad \text{on } y = 0. $$
(2.1)
Figure 1
figure 1

Physical model and coordinate system

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])

$$\begin{aligned}& \nabla \cdot \overline{\boldsymbol{v}} =0, \end{aligned}$$
(2.2)
$$\begin{aligned}& 0=-\nabla p- \frac{\mu }{K} \overline{\boldsymbol{v}} + \rho _{0} \bigl[ 1-\beta ( T- T_{c} ) \bigr] \boldsymbol{g}, \end{aligned}$$
(2.3)
$$\begin{aligned}& ( \overline{\boldsymbol{v}} \cdot \boldsymbol{\nabla } ) T= \alpha _{m} \nabla ^{2} T. \end{aligned}$$
(2.4)

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

$$ \overline{u} = \frac{\partial \overline{\psi }}{\partial \overline{y}},\qquad \overline{v} = - \frac{\partial \overline{\psi }}{\partial \overline{x}}, $$
(2.5)

we reduce equations (2.2) to (2.4) to

$$\begin{aligned}& \frac{\partial ^{2} \overline{\psi }}{\partial \overline{x}^{2}} + \frac{\partial ^{2} \overline{\psi }}{\partial \overline{y}^{2}} =- \frac{gK \rho _{0} \beta }{\mu } \frac{\partial T}{\partial \overline{y}}, \end{aligned}$$
(2.6)
$$\begin{aligned}& \frac{\partial \overline{\psi }}{\partial \overline{y}} \frac{\partial T}{\partial \overline{x}} - \frac{\partial \overline{\psi }}{\partial \overline{x}} \frac{\partial T}{\partial \overline{y}} = \alpha _{m} \biggl( \frac{\partial ^{2} T}{\partial \overline{x}^{2}} + \frac{\partial ^{2} T}{\partial \overline{y}^{2}} \biggr), \end{aligned}$$
(2.7)

where \(\alpha _{m} = k_{m} /(\rho c )_{f}\) is the effective thermal diffusivity. Introducing the dimensionless variables

$$ x= \frac{\overline{x}}{L},\qquad y= \frac{\overline{y}}{L},\qquad \psi = \frac{\overline{\psi }}{\alpha _{m}}, \qquad \theta = \frac{T- T_{c}}{\Delta T}\quad \text{or}\quad \theta = \frac{T- T_{\infty }}{T_{f} - T_{\infty }} $$
(2.8)

and substituting (2.8) into equations (2.6)–(2.7), we obtain:

$$\begin{aligned}& \frac{\partial ^{2} \psi }{\partial x^{2}} + \frac{\partial ^{2} \psi }{\partial y^{2}} =-Ra \frac{\partial \theta }{\partial x}, \end{aligned}$$
(2.9)
$$\begin{aligned}& \frac{\partial \psi }{\partial y} \frac{\partial \theta }{\partial x} - \frac{\partial \psi }{\partial x} \frac{\partial \theta }{\partial y} = \frac{\partial ^{2} \theta }{\partial x^{2}} + \frac{\partial ^{2} \theta }{\partial y^{2}}, \end{aligned}$$
(2.10)

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:

$$\begin{aligned}& \psi =0, \qquad \frac{\partial \theta }{\partial x} = -Bi ( 1-\theta ) \quad \text{on } x = 0, \\& \psi =0,\qquad \theta = 0\quad \text{on } x = 1, \\& \psi =0, \qquad \frac{\partial \theta }{\partial y} = 0\quad \text{on } y = 0,1, \end{aligned}$$
(2.11)

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

$$ N u_{l} =- \frac{\partial \theta }{\partial x} ( 0,y ) = Bi \bigl[ 1-\theta ( 0,y ) \bigr], $$
(2.12)

and the mean Nusselt number is

$$ \overline{Nu} =- \int _{0}^{1} \frac{\partial \theta }{\partial x} \bigg| _{x=0} \,dy= Bi \int _{0}^{1} \bigl[ 1-\theta ( 0,y ) \bigr]\,dy. $$
(2.13)

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

$$ \Phi _{ij}^{n+1/2} = F_{ij}^{n} + R_{ij}^{n} m_{\Phi ,ij}^{n+1/2} + Q_{ij}^{n} M_{\Phi ,ij}^{n+1/2} $$
(3.1)

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

$$ \Phi _{ij}^{n+1} = F_{ij}^{n+1/2} + R_{ij}^{n+1/2} l_{\Phi ,ij}^{n+1/2} + Q_{ij}^{n+1/2} L_{\Phi ,ij}^{n+1/2}, $$
(3.2)

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

$$ A_{ij} \varphi _{i-1,j}^{n+1/2} + B_{ij} \varphi _{i,j}^{n+1/2} + C_{ij} \varphi _{i+1,j}^{n+1/2} = D_{ij},\quad i=1,\dots ,N-1, $$
(3.3)

and

$$ A'_{ij} \varphi _{i,j-1}^{n+1} + B'_{ij} \varphi _{i,j}^{n+1} + C'_{ij} \varphi _{i,j+1}^{n+1} = D'_{ij},\quad j=1,\dots ,N-1, $$
(3.4)

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,

$$ \biggl\Vert \frac{\Phi ^{n+1} - \Phi ^{n}}{\Phi _{\max }^{n+1}} \biggr\Vert < 1 0^{-7}, $$
(3.5)

where n is the number of iterations.

Table 1 Coefficients in equation (3.3)
Table 2 Coefficients in equation (3.4)

When a steady-state solution is reached, the mean Nusselt number

$$ \overline{Nu} =- \int _{0}^{1} \frac{\partial \theta }{\partial x} \bigg| _{x=0} \,dy $$
(3.6)

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

$$ \theta _{ij}^{n+1/2} = F_{\theta ,ij}^{n} + R_{\theta ,ij}^{n} m_{\theta ,ij}^{n+1/2} + Q_{\theta ,ij}^{n} M_{\theta ,ij}^{n+1/2} $$
(3.7)

and

$$ \psi _{ij}^{n+1/2} = F_{\psi ,ij}^{n} + R_{\psi ,ij}^{n} m_{\psi ,ij}^{n+1/2} + Q_{\psi ,ij}^{n} M_{\psi ,ij}^{n+1/2} $$
(3.8)

with the coefficients given in Table 1. These equations are then put in the form

$$ A_{\theta ,ij} \theta _{i-1 j}^{n+1/2} + B_{\theta ,ij} \theta _{ij}^{n+1/2} + C_{\theta ,ij} \theta _{i+1 j}^{n+1/2} = D_{\theta ,ij},\quad i=1,\dots ,N-1, $$
(3.9)

and

$$\begin{aligned}& A_{\psi ,ij} \psi _{i-1 j}^{n+1/2} + B_{\psi ,ij} \psi _{ij}^{n+1/2} + C_{\psi ,ij} \psi _{i+1 j}^{n+1/2} = D_{\psi ,ij}, \quad i=1,\dots ,N-1, \end{aligned}$$
(3.10)

respectively.

From the boundary conditions (2.11) we get another equation for \(\theta _{ij}^{n+1/2}\),

$$ \theta _{N j}^{n+1/2} =0. $$
(3.11)

Also, combining the boundary conditions (2.11) with relations between cubic spline functions and their derivatives, we get one more equation

$$ A_{\theta ,0j} \theta _{0 j}^{n+1/2} + B_{\theta ,0j} \theta _{1 j}^{n+1/2} = D_{\theta ,0j}. $$
(3.12)

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)

$$ \psi _{0 j}^{n+1/2} =0, \qquad \psi _{N j}^{n+1/2} = 0 $$
(3.13)

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

$$ A'_{\theta ,ij} l_{\theta ,i j-1}^{n+1} + B'_{\theta ,ij} l_{\theta ,ij}^{n+1} + C'_{\theta ,ij} l_{\theta ,i j+1}^{n+1} = D'_{\theta ,ij},\quad j=1,\dots ,N-1, $$
(3.14)

and

$$ A'_{\psi ,ij} \psi _{i j-1}^{n+1} + B'_{\psi ,ij} \psi _{ij}^{n+1} + C'_{\psi ,ij} \psi _{i j+1}^{n+1} = D'_{\psi ,ij}, \quad j=1,\dots ,N-1. $$
(3.15)

Again, from the boundary conditions (2.11) we get two more equations for \(l_{\theta ,ij}^{n+1}\),

$$ l_{\theta ,i 0}^{n+1} =0,\qquad l_{\theta ,i N}^{n+1} = 0, $$
(3.16)

and two for \(\psi _{ij}^{n+1}\),

$$ \psi _{i 0}^{n+1} =0, \qquad \psi _{i N}^{n+1} = 0. $$
(3.17)

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

Table 3 Comparison of the average Nusselt number \(\overline{Nu}\) at the hot wall

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.

Table 4 Variation of \(\overline{Nu}\) with the grid, \(Ra = 1000\), \(Bi = 100\), uniform grid
Table 5 Variation of \(\overline{Nu}\) with Bi, for \(Ra = 10\), 100, 1000, uniform grid

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. 35 the streamlines and isotherms are depicted for all the values of the parameters Ra and Bi considered.

Figure 2
figure 2

Variation of local Nusselt number with Bi for \(Ra = 10, 100, 1000\)

Figure 3
figure 3

Streamlines (first column) and isotherms (second column), \(Ra = 10\)

Figure 4
figure 4

Streamlines (first column) and isotherms (second column), \(Ra = 100\)

Figure 5
figure 5

Streamlines (first column) and isotherms (second column), \(Ra = 1000\)

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

Table 6 Variation of \(\overline{Nu}\) with the grid, \(Ra = 1000\), \(Bi = 100\), nonuniform grid

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

, :

dimensional velocity component in the - and -axes

, :

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

  1. Ingham, D.B., Pop, I. (eds.): Transport Phenomena in Porous Media Pergamon, Oxford (1998)

    MATH  Google Scholar 

  2. Ingham, D.B., Pop, I. (eds.): Transport Phenomena in Porous Media, Vol. II Pergamon, Oxford (2002)

    MATH  Google Scholar 

  3. Ingham, D.B., Pop, I. (eds.): Transport Phenomena in Porous Media, Vol. III Elsevier, Oxford (2005)

    Google Scholar 

  4. Pop, I., Ingham, D.B.: Convective Heat Transfer: Mathematical and Computational Modeling of Viscous Fluids and Porous Media. Pergamon, Oxford (2001)

    Google Scholar 

  5. Kaviany, M.: Principals of Heat Transfer in Porous Media, 2nd edn. Springer, New York (1999)

    Google Scholar 

  6. Vafai, K. (ed.): Handbook of Porous Media 2nd edn. Taylor & Francis, New York (2005)

    MATH  Google Scholar 

  7. Vafai, K.: Porous Media: Applications in Biological Systems and Biotechnology. CRC Press, Tokyo (2010)

    Book  Google Scholar 

  8. Vadasz, P. (ed.): Emerging Topics in Heat and Mass Transfer in Porous Media Springer, New York (2008)

    Google Scholar 

  9. Bejan, A.: Convection Heat Transfer, 4th edn. Wiley, New York (2013)

    Book  Google Scholar 

  10. Nield, D.A., Bejan, A.: Convection in Porous Media, 5th edn. Springer, New York (2017)

    Book  Google Scholar 

  11. Bear, J.: Modeling Phenomena of Flow and Transport in Porous Media. Springer, New York (2018)

    Book  Google Scholar 

  12. 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)

    Article  Google Scholar 

  13. 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)

    Google Scholar 

  14. 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)

    Google Scholar 

  15. Abdelwahed, M., Chorfi, N., Malek, R.: Reconstruction of Tesla micro-valve using topological sensitivity analysis. Adv. Nonlinear Anal. 9, 567–590 (2020)

    Article  MathSciNet  Google Scholar 

  16. Abdelwahed, M., Chorfi, N.: On the convergence analysis of a time dependent elliptic equation with discontinuous coefficients. Adv. Nonlinear Anal. 9, 1145–1160 (2020)

    Article  MathSciNet  Google Scholar 

  17. Chorfi, N., Abdelwahed, M., Berselli, L.C.: On the analysis of a geometrically selective turbulence model. Adv. Nonlinear Anal. 9, 1402–1419 (2020)

    Article  MathSciNet  Google Scholar 

  18. 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)

    Article  Google Scholar 

  19. 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)

    Article  Google Scholar 

  20. Rubin, G., Graves, R.A.: A cubic spline approximation for problems in fluid mechanics. National Aeronautics and Space Administration (1975) Technical Report

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

    Article  Google Scholar 

  22. Walker, K.L., Homsy, G.M.: Convection in a porous cavity. J. Fluid Mech. 87, 449–474 (1978)

    Article  Google Scholar 

  23. Bejan, A.: On the boundary layer regime in a vertical enclosure filled with a porous medium. Lett. Heat Mass Transfer 6, 93–102 (1979)

    Article  Google Scholar 

  24. 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)

    Google Scholar 

  25. 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)

    Article  Google Scholar 

  26. 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)

    Google Scholar 

  27. 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)

    Article  Google Scholar 

  28. 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)

    Article  MathSciNet  Google Scholar 

Download references

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

Authors

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

Correspondence to Ioan Pop.

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

$$ A_{0} \theta _{0} + B_{0} \theta _{1} = D_{0}. $$
(A.1)

From discretization (3.7) we get (for \(i=0\) and \(i=1\))

$$ \theta _{0} = F_{0} + R_{0} m_{0} + Q_{0} M_{0} $$
(A.2)

and

$$ \theta _{1} = F_{1} + R_{1} m_{1} + Q_{1} M_{1}. $$
(A.3)

From the boundary conditions (2.11) we also have

$$ m_{0} =-Bi(1- \theta _{0} ). $$
(A.4)

By the basic cubic spline relations between functional and derivative values (see Rubin and Graves [17]) we know that

$$ m_{1} - m_{0} = \frac{h_{1}}{2} ( M_{0} + M_{1} ) $$
(A.5)

and

$$ M_{1} = \frac{2}{h_{1}} \biggl( m_{0} +2 m_{1} - \frac{3}{h_{1}} ( \theta _{1} - \theta _{0} ) \biggr). $$
(A.6)

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

$$ K= Q_{1} + \frac{h_{1}}{2} R_{1},\qquad J = \frac{K+ Q_{1}}{Q_{0}}, $$
(A.7)

we obtain equation (A.1) with

$$\begin{aligned}& A_{0} =Bi \biggl( \frac{4}{h_{1}} K+ \frac{2}{h_{1}} Q_{1} - R_{0} J \biggr) + \frac{6}{h_{1}^{2}} K+J, \\& B_{0} =1- \frac{6}{h_{1}^{2}} K, \\& D_{0} =Bi \biggl( \frac{4}{h_{1}} K+ \frac{2}{h_{1}} Q_{1} - R_{0} J \biggr) + F_{0} J+ F_{1}. \end{aligned}$$
(A.8)

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

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

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

Download citation

  • Received:

  • Accepted:

  • Published:

  • DOI: https://doi.org/10.1186/s13661-021-01533-6

Keywords