Next Article in Journal
Numerical Solution of Bending of the Beam with Given Friction
Next Article in Special Issue
k-Version of Finite Element Method for BVPs and IVPs
Previous Article in Journal
Control Method of Flexible Manipulator Servo System Based on a Combination of RBF Neural Network and Pole Placement Strategy
Previous Article in Special Issue
Trigonometric Solution for the Bending Analysis of Magneto-Electro-Elastic Strain Gradient Nonlocal Nanoplates in Hygro-Thermal Environment
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Direct Collocation with Reproducing Kernel Approximation for Two-Phase Coupling System in a Porous Enclosure

1
Department of Civil Engineering, National Yang Ming Chiao Tung University, Hsinchu 30010, Taiwan
2
Department of Civil Engineering, National Chiao Tung University, Hsinchu 30010, Taiwan
*
Author to whom correspondence should be addressed.
Mathematics 2021, 9(8), 897; https://doi.org/10.3390/math9080897
Submission received: 1 April 2021 / Revised: 14 April 2021 / Accepted: 16 April 2021 / Published: 17 April 2021

Abstract

:
The direct strong-form collocation method with reproducing kernel approximation is introduced to efficiently and effectively solve the natural convection problem within a parallelogrammic enclosure. As the convection behavior in the fluid-saturated porous media involves phase coupling, the resulting system is highly nonlinear in nature. To this end, the local approximation is adopted in conjunction with Newton–Raphson method. Nevertheless, to unveil the performance of the method in the nonlinear analysis, only single thermal natural convection is of major concern herein. A unit square is designated as the model problem to investigate the parameters in the system related to the convergence; several benchmark problems are used to verify the accuracy of the approximation, in which the stability of the method is demonstrated by considering various initial conditions, disturbance of discretization, inclination, aspect ratio, and reproducing kernel support size. It is shown that a larger support size can be flexible in approximating highly irregular discretized problems. The derivation of explicit operators with two-phase variables in solving the nonlinear system using the direct collocation is carried out in detail.

1. Introduction

In the literature, there is a bunch of numerical studies on double-diffusive natural convection in enclosures filled with fluid-saturated porous media [1]. It was not until the investigation by Costa that the enclosure of a parallelogram was numerically and theoretically studied in detail [2]. In the practical application, a parallelogrammic enclosure is referred to as the diode of heat and mass transfer owing to the fact that its inclined angle, aspect ratio, and boundary conditions can be designed to meet different purposes concerning various heat and mass transfer characteristics. Nevertheless, the coupling feature of three variables, including temperature, stream function, and concentration, in the problem of double-diffusive natural convection in a parallelogrammic porous enclosure inevitably leads to a highly nonlinear system of partial differential equations (PDEs).
Among the numerical methods for solving PDEs governed by diffusion-convection in parallelogrammic enclosures, the mesh-based methods were adopted early, while the meshfree methods were introduced in recent years. For instance, the finite difference method was employed in the analysis of double-diffusive convection in a porous enclosure with a rectangular shape in 2002 [3]. Around the same time, the finite element method was used to solve the two-dimensional double-diffusive natural convection problem [2]. With the prosperous development of numerical methods in computational mechanics, there was a tendency towards boundary-type methods, in addition to the domain-type methods. To name but a few, the boundary domain integral method was applied to study the double diffusive natural convection in porous media [4]; the boundary element method was introduced to simulate three-dimensional double-diffusive natural convection in porous media [5]. As the meshfree methods get rid of mesh constraint and the strong form methods discard domain integral, a growing number of studies appear and are reported as follows: the local radial basis collocation method was used to solve the two-dimensional double diffusion and natural convection problem in 2012 [6]; the exponentially convergent scalar homotopy algorithm was introduced as the nonlinear solver. Later, in 2018, the generalized finite difference method combined with the Newton–Raphson method was proposed to solve both single thermal natural convection in parallelogrammic enclosures and double-diffusive natural convection in parallelogrammic enclosures filled with fluid-saturated porous media [7].
By examining the work done by Fan et al. [6] and Li et al. [7], the major features in common is the local approximation adopted in the meshfree methods, in which a stable system of equations can be established for nonlinear analysis. As motivated by this idea, the present study proposes the reproducing kernel collocation method in conjunction with the Newton–Raphson method to efficiently and effectively solve the natural convection problems with parallelogrammic enclosures. As there exist several parameters affecting the convergence of the proposed method in solving nonlinear PDEs, only single thermal natural convection in parallelogrammic enclosures filled with fluid-saturated porous media is considered in this study.
In the collocation methods, both global and local functions can be used in the approximation. The commonly adopted global function is the radial basis function (RBF) defined by the Euclidean norm; nevertheless, the shape parameter of RBF cannot be determined uniquely by a given formula so far. As the resulting system is often ill-conditioned with a large condition number, numerical instability might be raised; for more information, see [8,9,10]. In contrast, the reproducing kernel (RK) shape function is a local function; although it maintains an algebraic convergence rate, the resulting system is more stable to yield promising results [11,12,13]. Other types of approximation adopted in the collocation method, such as global expansion in Bernstein polynomials, exponential functions, and Taylor matrix, can be referred to the studies [14,15,16] for solving nonlinear ODE systems. Regarding the two-phase coupling problems, the concept of u-p formulation for describing displacement–pressure behavior was developed early in the Biot theory for the analysis of poromechanics in fluid-saturated media [17]. Later, the u-p formulation was further introduced in the weak-form reproducing kernel particle method (RKPM) to perform the hydro-mechanical analysis in porous media coupled by solid stiffness matrix and compressibility matrix [18]. Unlike the u-p formulation for describing displacement and pressure, the present study first introduces the strong-form reproducing kernel collocation method (RKCM) to the analysis of two-phase coupling system governed by thermal-convection equations.
The structure of this study is the following: the mathematical formulation of the two-phase coupling in a porous enclosure is re-visited in Section 2. The RKCM for the nonlinear system coupled by two variables is introduced with detailed formulation in direct collocation in Section 3. Four numerical examples are given in Section 4. Section 5 concludes the present study.

2. Mathematical Formulation

2.1. Governing Equations

As shown in Figure 1a, the parallelogram is formed by an angle θ with two sides of length L and H . Assuming that the fluid-saturated porous medium has two phases, the components of flux or velocity Q x and Q y along the X and Y directions are described by Darcy’s law with the following proportionality to pressure drop:
Q x = K μ ( p X ) ,
Q y = K μ ( p Y + ρ g ) ,
where K is the permeability of the isotropic medium; μ , p , and ρ are the dynamic viscosity, pressure, and density of the fluid, respectively; and g is the gravitational constant. The stream function Ψ is introduced to relate the flux as given by:
ρ Q x = Ψ Y ,
ρ Q y = Ψ X ,
For the sake of convenience, Equations (1) and (2) are normalized as:
q x = Q x α / H = H ρ α Ψ Y ψ y ,
q y = Q y α / H = H ρ α Ψ X ψ x ,
where the non-dimensional parameters x = X H , y = Y H , and ψ = Ψ ρ α are used. α is the thermal diffusivity of the porous medium; nevertheless, it is assumed to be the thermal diffusivity of the fluid alone herein, i.e., the effective thermal diffusivity [1,2]. The non-dimensional temperature is given by:
T = T p T p L T p H T p L ,
where the subscript p in Equation (7) represents the quantity in the physical domain; the subscripts H and L refer to the corresponding higher and lower values. For the non-solute transferring problem, the governing equations are described by the balance laws of linear momentum and thermal energy:
2 ψ x 2 + 2 ψ y 2 + R a T T x = 0 ,
2 T x 2 + 2 T y 2 x ( q x T ) y ( q y T ) = 0 ,
where a steady state is assumed in the above two equations. Introducing Equations (5) and (6) to Equation (9) gives:
2 T x 2 + 2 T y 2 ψ y T x + ψ x T y = 0 ,
For natural heat convection in a non-porous medium, Rayleigh number R a and Darcy number D a are:
R a = g β T ( T p H T p L ) H 3 ν α ,
D a = K H 2 ,
where β T is the thermal expansion coefficient ( β T 0 ) and ν is the kinematic viscosity of the fluid. Based on Equations (11) and (12), the Darcy-modified Rayleigh number R a T can be defined as:
R a T = D a × R a = g β T ( T p H T p L ) K H ν α ,
which is also the non-dimensional parameter.

2.2. Boundary Conditions

Referring to the general model depicted in Figure 1b, the boundary walls of the porous medium in a parallelogram are assumed to be impermeable, which indicates ψ = 0 . As such, the non-dimensional components of velocity q x and q y are zero at boundary walls, while they can be evaluated by using Equations (5) and (6). The explicit boundary conditions for T and T / n together with ψ = 0 are described as follows:
ψ ( 0 , y ) = 0 , T ( 0 , y ) = 1 ,
ψ ( cos θ H / L , y ) = 0 , T ( cos θ H / L , y ) = 0 ,
Along the inclined bottom side:
ψ = 0 , T n = 0 ,
Along the inclined upper side:
ψ = 0 , T n = 0 .
In Equations (16) and (17), n denotes the non-dimensional normal to the inclined wall.

3. RKCM for a Nonlinear Coupling System

3.1. Reproducing Kernel Approximation for Two-Phase Variables

To efficiently solve the nonlinear system of equations, the RK shape functions are introduced for two variables ψ and T at N s source points as follows:
ψ ( x ) = I = 1 N s Ψ I ( x )   a I ψ , T ( x ) = I = 1 N s Ψ I ( x )   a I T ,
where   a I ψ and a I T are the generalized coefficients. Ψ I ( x ) is the RK shape function consisting of a monomial basis H ( x x I ) , coefficient vector b ( x ) , and kernel function φ a ( x x I ) of the following form:
Ψ I ( x ) = H T ( x x I ) b ( x ) φ a ( x x I ) ,  
where b ( x ) is found by the reproducing conditions listed below:
I = 1 N s Ψ I ( x ) x I α = x α , | α | p ,
where α is the multi-index defined as | α | = α 1 + α 2 , and p is the order of H ( x x I ) . The detailed derivation of RK shape functions is referred to previous work [19]. The explicit form of RK shape functions is:
Ψ I ( x ) = H T ( 0 ) M 1 ( x ) H ( x x I ) φ a ( x x I ) ,
with the moment matrix M ( x ) given by:
M ( x ) = I = 1 N s H ( x x I ) H T ( x x I ) φ a ( x x I ) ,
To ensure continuity, the high order B-spline kernel function is usually required in strong form collocation methods. The quintic B-spline kernel function used herein is given by:
φ a ( s ) = { 11 20 9 s 2 2 + 81 s 4 4 81 s 5 4 , 0 s < 1 3 17 40 + 15 s 8 63 s 2 4 + 135 s 3 4 243 s 4 8 + 81 s 5 8 , 1 3 s < 2 3 81 40 81 s 8 + 81 s 2 4 81 s 3 4 + 81 s 4 8 81 s 5 40 , 2 3 s < 1 0 , s 1 ,
where the normalized nodal distance s = x x I / a , and a denotes the radius of a circular support. For the p th order monomial basis, the RK support size is chosen to be proportional to the average nodal distance h , i.e., a = ( p + δ ) h with δ > 0 for any discretization.
The two equations in Equation (18) can be combined as:
[ ψ ( x ) T ( x ) ] = [ Ψ T ( x ) 0 0 Ψ T ( x ) ] a ,
with:
a = [ a ψ a T ] ,
Ψ T ( x ) = [ Ψ 1 ( x ) Ψ 2 ( x ) Ψ N s ( x ) ] ,
a ψ = [ a 1 ψ a 2 ψ a N s ψ ] , a T = [ a 1 T a 2 T a N s T ] ,
Substituting Equation (24) into Equations (8) and (10) leads to:
[ Ψ , x x T ( x ) + Ψ , y y T ( x ) ] a ψ + R a T Ψ , x T ( x ) a T = 0 ,
[ Ψ , x x T ( x ) + Ψ , y y T ( x ) ] a T Ψ , y T ( x ) a ψ Ψ , x T ( x ) a T + Ψ , x T ( x ) a ψ Ψ , y T ( x ) a T = 0 ,  
Similarly, substituting Equation (24) into Equations (14)–(17) gives the following equations:
Ψ T ( x ) a ψ = 0 , Ψ T ( x ) a T = 1 ,
along x = 0 , and:
Ψ T ( x ) a ψ = 0 , Ψ T ( x ) a T = 0 ,
along x = cos θ H / L , and:
Ψ T ( x ) a ψ = 0 , Ψ , n T ( x ) a T = 0 ,
for the inclined bottom side, and:
Ψ T ( x ) a ψ = 0 , Ψ , n T ( x ) a T = 0 .
for the inclined upper side.

3.2. Newton–Raphson Collocation Method for Nonlinear System

From Equations (28) and (29), it is obvious that the system is nonlinear and coupled by two phases. To this end, the Newton–Raphson method is introduced under the collocation framework, which is designated as a Newton–Raphson collocation method in this work.
As a beginning of the formulation, three sets of collocation points are defined: x p ( p = 1 N p ) for governing equations in the domain, x q ( q = 1 N q ) for Neumann boundary conditions, and x r ( r = 1 N r ) for Dirichlet boundary conditions. Note that the same discretization of collocation points N c and source points N s is adopted herein; for two field variables, the total number of collocation equations is 2 N c , which is equal to N p + N q + N r . By using the direct collocation, Equations (28)–(33) can be recast as follows:
A = [ A p ( x p ) A q ( x q ) A r ( x r ) ] = 0 ,
where:
A p ( x p ) = [ A p ψ ( x p ) A p T ( x p ) ] N p × 1 ,
with:
A p ψ ( x p ) = [ Ψ , x x T ( x p ) + Ψ , y y T ( x p ) ] a ψ + R a T Ψ , x T ( x p ) a T ,
A p T ( x p ) = [ Ψ , x x T ( x p ) + Ψ , y y T ( x p ) ] a T Ψ , y T ( x p ) a ψ Ψ , x T ( x p ) a T + Ψ , x T ( x p ) a ψ Ψ , y T ( x p ) a T
Nevertheless, to obtain the general expression of boundary collocation equations for wider application, the prescribed non-zero values, but not limited to, of both Neumann and Dirichlet boundary conditions are presented. That is, ψ ¯ n , T ¯ n , ψ ¯ , and T ¯ are assumed in the following derivation. Therefore:
A q ( x q ) = [ A q ψ ( x q ) A q T ( x q ) ] = [ Ψ n T ( x q ) a ψ ψ ¯ n Ψ n T ( x q ) a T T ¯ n ] N q × 1 ,
A r ( x r ) = [ A r ψ ( x r ) A r T ( x r ) ] = [ Ψ T ( x r ) a ψ ψ ¯ Ψ T ( x r ) a T T ¯ ] N r × 1 ,
As the collocation system is coupled in matrix A p , the nonlinear version of direct collocation is established by using the Newton–Raphson method given by:
a k + 1 = a k ( J k ) 1 A k ,
in which the superscript k denotes the step of iteration and J is the Jacobian matrix defined as J = A a . Thus, the Jacobian matrix is derived as:
J = [ J p J q J r ] = [ A p a ψ A p a T A q a ψ A q a T A r a ψ A r a T ] ,
in which:
J p = [ A p ψ a ψ A p ψ a T A p T a ψ A p T a T ] N p × 2 N s = [ Ψ , x x T ( x p ) + Ψ , y y T ( x p ) R a T Ψ , x T ( x p ) J p 1 J p 2 ] ,
with:
J p 1 = Ψ , y T ( x p ) T , x ( x p ) + Ψ , x T ( x p ) T , y ( x p ) , J p 2 = Ψ , x x T ( x p ) + Ψ , y y T ( x p ) ψ , y ( x p ) Ψ , x T ( x p ) + ψ , x ( x p ) Ψ , y T ( x p ) ,
and:
J q = [ A q ψ a ψ A q ψ a T A q T a ψ A q T a T ] N q × 2 N s = [ Ψ n T ( x q ) 0 0 Ψ n T ( x q ) ] ,
J r = [ A r ψ a ψ A r ψ a T A r T a ψ A r T a T ] N r × 2 N s = [ Ψ T ( x r ) 0 0 Ψ T ( x r ) ] ,
However, from Equation (40), it can be observed that the computation of the inverse of the Jacobian matrix at each iteration is computationally expansive. As such, the following two-step Newton–Raphson method is adopted [7]:
J k Δ a k = A k ,
a k + 1 = a k + Δ a k .
where Δ a k denotes the increment of vector a k at k th step. The explicit expressions for matrices A and J are detailed in Appendix A. The stopping criterion for iteration is given by:
max | Δ a k | < 10 9 .
which is adopted in the present study.

3.3. Remarks

For illustration purpose, a schematic diagram of discretization shown in Figure 2 is considered, where the numbers of collocation points in the parallelogram are marked by N v , N h , and N d for vertical, inclined, and domain points, respectively. It is noted that the four corner points are included in the present method without causing any difficulty in the numerical simulation, while they were excluded in the generalized finite difference method as reported in [7].
By taking the boundary conditions described in Equations (14)–(17) or Equations (30)–(33) as an example, the total collocation points are 2 N c = 2 N d + 4 N v + 4 N h with N p = 2 N d , N q = 2 N h , and N r = 4 N v + 2 N h . This indicates that the Jacobian matrix is a square matrix, and the resulting system is determined. As such, the present study adopts the direct collocation method. For the problem in consideration, the same location and number of source points and collocation points are utilized herein, i.e., Ns = Nc. Unlike the weighted collocation method with least-squares formulation in the previous studies [11,12,13,19], there are typically more collocation points than source points in the collocation system, and boundary conditions are imposed by weights to balance the errors in the domain and on the boundary. With the RK approximation in the direct collocation method, a sparse system of Jacobian matrix is reached, thereby making the Newton–Raphson collocation method efficient.

4. Numerical Examples

To validate the proposed method in solving the nonlinear system coupled by two-field variables, four numerical examples with various parallelogrammic geometries are provided in the following study. In the reproducing kernel collocation method, the RK shape functions are constructed by using the quadratic basis with a quintic B-spline kernel function, and the support size of RK shape functions is chosen as a = 3 h without loss of generality. In particular, the parametric study is conducted in each example to thoroughly understand the effect of nonlinearity and the convergence of approximation.

4.1. Square Domain

The schematic diagrams of the uniform and non-uniform discretizations in a unit square are depicted in Figure 3a,b, respectively. In the uniform discretization, three refinements with N s = N c = 20 2 , 30 2 , 40 2 are considered in the approximation for R a T = 100 with initial conditions ( ψ 0 , T 0 ) = ( 0 , 0.5 ) . Figure 4 compares the number of iterations obtained by three refinements; Figure 5 shows the corresponding contour plots of ψ and T . Clearly, the present method converges fast and stably in 7 iterative steps for all discretizations; the contour plots of both ψ and T also exhibit the same pattern. The convergence of approximation is validated through the refinement of discretization. In the following study, N c = 30 2 is used. In Figure 3b, the non-uniformly discretized domain is obtained by adding 3% (disturbing factor s = 3 ) disturbance to Figure 3a. By using the same values of R a T and ( ψ 0 , T 0 ) , the number of iterations for various non-uniform discretizations obtained by s = 1 , 2 , 3 are given in Figure 6. For s = 3 , the contour plots of ψ and T are shown in Figure 7, where a similar distribution of ψ and T to those obtained by uniform discretization is observed.
Based on the quadratic basis adopted in constructing the RK shape functions, the RK support size generally ranges from 2.5   h to 4   h . To understand the influence of support size for the nonlinear system, the number of iterations corresponding to various support size is summarized in Figure 8 for R a T = 100 with ( ψ 0 , T 0 ) = ( 0 , 0.5 ) . It is shown that the number of iterations is 7 for all cases regardless of the support size. As for the Newton–Raphson method, the choice of initial conditions may affect the convergence of approximation. To this end, several sets of initial conditions ( ψ 0 , T 0 ) are tested, and the corresponding iteration is shown in Figure 9; all approximate solutions converge within 7 iterative steps, although their initial errors in the first step may be quite different. For wider application, various initial values, such as ( ψ l e f t 0 , ψ r i g h t 0 , T l e f t 0 , T r i g h t 0 ) , are considered as depicted in Figure 10a; the corresponding iteration is shown in Figure 10b. It is found that the initial conditions might affect the path of convergence, and more iterations might be needed to meet the stopping criterion. Nevertheless, most initial conditions yield convergent approximation.
For the nonlinear system in consideration, the parameter R a T governs the nonlinearity, and various values of R a T such as 1 and 60 are considered herein. The comparison of the number of iterations obtained by various R a T is made in Figure 11; it was found that more iteration steps are needed for a larger value of R a T . For illustration purpose, the contour plots of ψ and T obtained by R a T = 1 and R a T = 60 are presented in Figure 12. From Figure 12a, the contour of ψ is almost symmetric in both vertical and horizontal directions for R a T = 1 ; as R a T increases to 60 and 100, the contours of ψ gradually showed anti-symmetric distribution along the line inclined at 45 to the horizontal direction as referred to Figure 5b and Figure 12b. As for the contour of T , with increasing R a T , its distribution moved from a vertical direction toward a curved orientation as shown in Figure 5e and Figure 12c,d.

4.2. Diamond Domain

A unit diamond with θ = 30 is discretized uniformly and non-uniformly as shown in the schematic diagrams Figure 13a,b, respectively. The analysis is performed by following the previous example as described in Section 4.1. For R a T = 100 and ( ψ 0 , T 0 ) = ( 0 , 0.5 ) , the number of iterations obtained by uniform discretizations with N c = 20 2 , 30 2 , 40 2 are shown in Figure 14; the corresponding contour plots of ψ and T are given in Figure 15. It is shown that only 7 steps are required in the iteration process. In addition, the convergence of approximation is assured by the presence of consistent patterns in the contours, as also shown in the previous work [7]. The non-uniform discretization with N c = 30 2 in Figure 13b is obtained by adding 3% disturbance to the uniform discretization. For various percentage of disturbance s = 1 , 2 , 3 , the number of iterations are given in Figure 16. For large disturbance s = 3 , more iterations are required due to a longer path of convergence; the corresponding contour plots of ψ and T are shown in Figure 17, where similar patterns of ψ and T to those obtained by uniform discretization are retrieved, while the smoothness of the contours is reduced.
The influence of initial conditions are investigated by considering ( ψ 0 , T 0 ) for entire domain and ( ψ l e f t 0 , ψ r i g h t 0 , T l e f t 0 , T r i g h t 0 ) for two half domains, and the corresponding results are shown in Figure 18 and Figure 19, with Figure 19a illustrating the arrangement of ( ψ l e f t 0 , ψ r i g h t 0 , T l e f t 0 , T r i g h t 0 ) . From Figure 18 and Figure 19b, it is observed that the initial conditions may affect the path of convergence, i.e., the number of iterations. As for the influence of R a T , Figure 20 compares the number of iterations obtained by various R a T ranging from 1 to 100; the larger value R a T is, the more iterations it requires. The selected contour plots of ψ and T obtained by R a T = 1 and R a T = 60 are shown in Figure 21. As R a T increases, the contour of ψ changes from symmetry to anti-symmetry with respect to the line inclined at 45 in the horizontal direction, and its magnitude increases as well, as shown in Figure 15b and Figure 21a,b. The contour of T gradually changes the orientation from left to right with increasing nonlinearity, as can be observed in Figure 15e and Figure 21c,d.

4.3. Parallelogram Domains I and II

As shown in Figure 22a,b, two parallelograms ( L / H = 4 ) with inclined angles 30 and 30 are considered, in which the former is denoted as domain I, while the latter is denoted as domain II. For clarity, when comparing the results of two parallelograms in domain I and domain II, the corresponding results are depicted in terms of blue and red lines as will be shown in the following figures. For R a T = 100 and ( ψ 0 , T 0 ) = ( 0 , 0.5 ) , three refinements of uniform discretization with N c = 10 × 40 , 20 × 50 , 30 × 60 are considered. The path of convergence expressed in terms of iteration is depicted in Figure 23. In each domain, the approximation converges with the same number of iterations regardless of whether different points are used in the discretization; moreover, domain I shows slower convergence than domain II. The contour plots of ψ and T obtained by N c = 20 × 50 are shown in Figure 24, which are consistent with the results given in [7]. The distributions of both ψ and T in two domains are dissimilar due to different inclination; in particular, the contour of ψ in domain II with a negative inclined angle has two small vortices at the two ends.
The influence of initial conditions on the solutions is investigated by concerning ( ψ 0 , T 0 ) and ( ψ l e f t 0 , ψ r i g h t 0 , T l e f t 0 , T r i g h t 0 ) for R a T = 100 and N c = 20 × 50 ; the corresponding paths of iteration are shown in Figure 25a,b, respectively. In general, domain I needs more iterations to reach the desired accuracy in approximation as compared with domain II. Nevertheless, domain II might require more iterations under certain initial conditions. The influence of R a T is presented in Figure 26, where more iterations are needed for larger R a T ; in addition, domain I shows slower convergence than domain II. To further unveil the nonlinearity of the problem with different inclined angles, the contour plots obtained by R a T = 1 , R a T = 60 , and R a T = 100 are shown in Figure 24, Figure 27 and Figure 28. For both domain I and domain II, the magnitude of ψ increases with larger R a T , and the order of contour (nonlinearity) of T increases with larger R a T as well. Specifically, for domain II, the two vortices in the contour of ψ become more pronounced as R a T increases.
The disturbance of discretization is added to test the stability of the method. By using R a T = 100 and N c = 20 × 50 with various s = 1 , 2 , 3 , the convergence paths of two domains are compared in Figure 29; again, domain I shows slower convergence than domain II, and a larger s requires more iterations. For illustration purpose, the non-uniform discretization obtained by s = 3 is presented in Figure 30, and the corresponding contour plots of ψ and T are given in Figure 31. Similar trends in the distribution of both contours ψ and T are observed while the smoothness of the contours is reduced to some extent in comparison with those obtained by uniform discretization. Lastly, a higher level of disturbance s = 4 is further investigated, as shown in Figure 32, which has not been discussed in the literature. It is found that the RK support size a = 3 h is not able to yield satisfactory results. Nevertheless, the flexibility of RKCM enables a larger support size in the approximation. When using a = 4 h , the contour plots of ψ and T are shown in Figure 33 with corresponding iteration given in Figure 34. The patterns of the contours are ensured.

5. Conclusions

The Newton–Raphson collocation method with reproducing kernel approximation is proposed to solve the natural convection problem within a parallelogrammic enclosure. Particularly, a nonlinear system is established on the basis of local approximation. In addition to the benchmark problems given in the literature, a unit square enclosure is designed to unveil the parameters in RKCM when nonlinearity is of importance in such a porous enclosure. From the parametric study, the convergence of the method is stable and efficient, regardless of various initial conditions, disturbance of discretization, inclination, aspect ratio, and the RK support size. Additionally, it is observed that the parameter R a T controls the nonlinearity of the system. In all examples, as the value of R a T increases, the magnitude of ψ increases, and so does the nonlinearity of contour T . Even so, the present method yields the desired accuracy for a large value of R a T . Although the RK support size is not sensitive to uniformly discretized domains, for highly irregular discretization, it is shown that a larger support size in RKCM offers flexibility in yielding accurate approximation. The feasibility of the method for analyzing two-phase coupling problems is, therefore, demonstrated. To keep the article an adequate length, the extension to three-phase coupling problems, i.e., double-diffusive natural convection problems, is left to be investigated by future works.

Author Contributions

Funding acquisition, J.P.Y.; Investigation, Y.-S.L.; Methodology, J.P.Y.; Project administration, J.P.Y.; Supervision, J.P.Y.; Writing—original draft, J.P.Y.; Writing—review & editing, J.P.Y. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by the Ministry of Science and Technology of the Republic of China (Taiwan) under grant number MOST 107-2221-E-009-141-MY3.

Conflicts of Interest

The authors declare no conflict of interest.

Appendix A

Explicit Expression for Matrix A :
A = [ A p ψ ( x p ) A p T ( x p ) Ψ , n T ( x q ) a T Ψ , n T ( x q ) a T Ψ T ( x r ) a ψ Ψ T ( x r ) a ψ Ψ T ( x r ) a ψ Ψ T ( x r ) a ψ Ψ T ( x r ) a T 1 Ψ T ( x r ) a T ]
Explicit Expression for Matrix J :
J = [ Ψ , x x T ( x p ) + Ψ , y y T ( x p ) R a T Ψ , x T ( x p ) J p 1 J p 2 0 Ψ , n T ( x q ) 0 Ψ , n T ( x q ) Ψ T ( x r ) 0 Ψ T ( x r ) 0 Ψ T ( x r ) 0 Ψ T ( x r ) 0 0 Ψ T ( x r ) 0 Ψ T ( x r ) ]

References

  1. Nithiarasu, P.; Seetharamu, K.N.; Sundararajan, T. Double-diffusive natural convection in an enclosure filled with fluid-saturated porous medium: A generalized non-Darcy approach. Numer. Heat Transf. A 1996, 30, 413–426. [Google Scholar] [CrossRef]
  2. Costa, V.A.F. Double-diffusive natural convection in parallelogrammic enclosures filled with fluid-saturated porous media. Int. J. Heat Mass Transf. 2004, 47, 2699–2714. [Google Scholar] [CrossRef]
  3. Chamkha, A.J. Double-diffusive convection in a porous enclosure with cooperating temperature and concentration gradients and heat generation or absorption effects. Numer. Heat Transf. A 2002, 41, 65–87. [Google Scholar] [CrossRef] [Green Version]
  4. Kramer, J.; Jecl, R.; Škerget, L. Boundary domain integral method for the study of double diffusive natural convection in porous media. Eng. Anal. Bound. Elem. 2007, 31, 897–905. [Google Scholar] [CrossRef]
  5. Stajnko, J.K.; Ravnik, J.; Jecl, R. Numerical simulation of three-dimensional double-diffusive natural convection in porous media by boundary element method. Eng. Anal. Bound. Elem. 2017, 76, 69–79. [Google Scholar] [CrossRef]
  6. Fan, C.M.; Chien, C.S.; Chan, H.F.; Chiu, C.L. The local RBF collocation method for solving the double-diffusive natural convection in fluid-saturated porous media. Int. J. Heat Mass Transf. 2013, 57, 500–503. [Google Scholar] [CrossRef]
  7. Li, P.W.; Chen, W.; Fu, Z.J.; Fan, C.M. Generalized finite difference method for solving the double-diffusive naturalconvection in fluid-saturated porous media. Eng. Anal. Bound. Elem. 2018, 95, 175–186. [Google Scholar] [CrossRef]
  8. Yang, J.P.; Su, W.T. Investigation of radial basis collocation method for incremental-iterative analysis. Int. J. Appl. Mech. 2016, 8, 1650007. [Google Scholar] [CrossRef]
  9. Yang, J.P.; Su, W.T. Strong-form framework for solving boundary value problems with geometric nonlinearity. Appl. Math. Mech. Engl. 2016, 37, 1707–1720. [Google Scholar] [CrossRef]
  10. Yang, J.P.; Chen, Y.C. Gradient enhanced localized radial basis collocation method for inverse analysis of Cauchy problems. Int. J. Appl. Mech. 2020, 12, 2050107. [Google Scholar] [CrossRef]
  11. Yang, J.P.; Guan, P.C.; Fan, C.M. Weighted reproducing kernel collocation method and error analysis for inverse Cauchy problems. Int. J. Appl. Mech. 2016, 8, 1650030. [Google Scholar] [CrossRef]
  12. Yang, J.P.; Hsin, W.C. Weighted reproducing kernel collocation method based on error analysis for solving inverse elasticity problems. Acta Mech. 2019, 230, 3477–3497. [Google Scholar] [CrossRef]
  13. Yang, J.P.; Lam, H.F.S. Detecting inverse boundaries by weighted high-order gradient collocation method. Mathematics 2020, 8, 1297. [Google Scholar] [CrossRef]
  14. Bataineh, A.S.; Isik, O.R.; Oqielat, M.A.; Hashim, I. An enhanced adaptive Bernstein collocation method for solving systems of ODEs. Mathematics 2021, 9, 425. [Google Scholar] [CrossRef]
  15. Brunner, H. The solution of systems of stiff nonlinear differential equations by recursive collocation using exponential functions. In Numerische Behandlung von Differentialgleichungen; Birkhäuser: Basel, Switzerland, 1975; pp. 29–44. [Google Scholar]
  16. Bülbül, B.; Sezer, M. A new approach to numerical solution of nonlinear Klein-Gordon equation. Math. Probl. Eng. 2013, 2013, 869749. [Google Scholar] [CrossRef]
  17. Biot, M.A. Theory of stability and consolidation of a porous medium under initial stress. J. Math. Mech. 1963, 12, 521–541. [Google Scholar]
  18. Haoyan, W.; Chen, J.S.; Hillman, M. A stabilized nodally integrated meshfree formulation for fully coupled hydro-mechanical analysis of fluid-saturated porous media. Comput. Fluids 2016, 141, 105–115. [Google Scholar]
  19. Chi, S.W.; Chen, J.S.; Hu, H.Y.; Yang, J.P. A gradient reproducing kernel collocation method for boundary value problems. Int. J. Numer. Meth. Eng. 2013, 93, 1381–1402. [Google Scholar] [CrossRef]
Figure 1. Mathematical model: (a) geometry; (b) boundary conditions.
Figure 1. Mathematical model: (a) geometry; (b) boundary conditions.
Mathematics 09 00897 g001
Figure 2. Schematic diagram of collocation points.
Figure 2. Schematic diagram of collocation points.
Mathematics 09 00897 g002
Figure 3. Schematic diagrams of the discretization in square domain: (a) uniform discretization; (b) non-uniform discretization.
Figure 3. Schematic diagrams of the discretization in square domain: (a) uniform discretization; (b) non-uniform discretization.
Mathematics 09 00897 g003
Figure 4. Various collocation points and corresponding iterations.
Figure 4. Various collocation points and corresponding iterations.
Mathematics 09 00897 g004
Figure 5. Contour plots obtained by various collocation points: (a) ψ by N c = 20 2 ; (b) ψ by N c = 30 2 ; (c) ψ by N c = 40 2 ; (d) T by N c = 20 2 ; (e) T by N c = 30 2 ; (f) T by N c = 40 2 .
Figure 5. Contour plots obtained by various collocation points: (a) ψ by N c = 20 2 ; (b) ψ by N c = 30 2 ; (c) ψ by N c = 40 2 ; (d) T by N c = 20 2 ; (e) T by N c = 30 2 ; (f) T by N c = 40 2 .
Mathematics 09 00897 g005
Figure 6. Non-uniform discretization with various s values and corresponding iterations.
Figure 6. Non-uniform discretization with various s values and corresponding iterations.
Mathematics 09 00897 g006
Figure 7. Contour plots obtained by non-uniform discretization: (a) ψ ; (b) T .
Figure 7. Contour plots obtained by non-uniform discretization: (a) ψ ; (b) T .
Mathematics 09 00897 g007
Figure 8. Various RK support sizes and corresponding iterations.
Figure 8. Various RK support sizes and corresponding iterations.
Mathematics 09 00897 g008
Figure 9. Various initial conditions ( ψ 0 , T 0 ) and corresponding iterations.
Figure 9. Various initial conditions ( ψ 0 , T 0 ) and corresponding iterations.
Mathematics 09 00897 g009
Figure 10. Various initial conditions ( ψ l e f t 0 , ψ r i g h t 0 , T l e f t 0 , T r i g h t 0 ) in the discretized square domain: (a) schematic diagram; (b) iterations.
Figure 10. Various initial conditions ( ψ l e f t 0 , ψ r i g h t 0 , T l e f t 0 , T r i g h t 0 ) in the discretized square domain: (a) schematic diagram; (b) iterations.
Mathematics 09 00897 g010
Figure 11. Various R a T values and corresponding iterations.
Figure 11. Various R a T values and corresponding iterations.
Mathematics 09 00897 g011
Figure 12. Contour plots obtained by various R a T : (a) ψ with R a T = 1 ; (b) ψ with R a T = 60 ; (c) T with R a T = 1 ; (d) T with R a T = 60 .
Figure 12. Contour plots obtained by various R a T : (a) ψ with R a T = 1 ; (b) ψ with R a T = 60 ; (c) T with R a T = 1 ; (d) T with R a T = 60 .
Mathematics 09 00897 g012
Figure 13. Schematic diagrams of the discretization in the diamond domain: (a) uniform discretization; (b) non-uniform discretization.
Figure 13. Schematic diagrams of the discretization in the diamond domain: (a) uniform discretization; (b) non-uniform discretization.
Mathematics 09 00897 g013
Figure 14. Various collocation points and corresponding iterations.
Figure 14. Various collocation points and corresponding iterations.
Mathematics 09 00897 g014
Figure 15. Contour plots obtained by various collocation points: (a) ψ by N c = 20 2 ; (b) ψ by N c = 30 2 ; (c) ψ by N c = 40 2 ; (d) T by N c = 20 2 ; (e) T by N c = 30 2 ; (f) T by N c = 40 2 .
Figure 15. Contour plots obtained by various collocation points: (a) ψ by N c = 20 2 ; (b) ψ by N c = 30 2 ; (c) ψ by N c = 40 2 ; (d) T by N c = 20 2 ; (e) T by N c = 30 2 ; (f) T by N c = 40 2 .
Mathematics 09 00897 g015
Figure 16. Non-uniform discretization with various s and corresponding iterations.
Figure 16. Non-uniform discretization with various s and corresponding iterations.
Mathematics 09 00897 g016
Figure 17. Contour plots obtained by non-uniform discretization: (a) ψ ; (b) T .
Figure 17. Contour plots obtained by non-uniform discretization: (a) ψ ; (b) T .
Mathematics 09 00897 g017
Figure 18. Various initial conditions ( ψ 0 , T 0 ) and corresponding iterations.
Figure 18. Various initial conditions ( ψ 0 , T 0 ) and corresponding iterations.
Mathematics 09 00897 g018
Figure 19. Various initial conditions ( ψ l e f t 0 , ψ r i g h t 0 , T l e f t 0 , T r i g h t 0 ) in the discretized square domain: (a) schematic diagram; (b) iterations.
Figure 19. Various initial conditions ( ψ l e f t 0 , ψ r i g h t 0 , T l e f t 0 , T r i g h t 0 ) in the discretized square domain: (a) schematic diagram; (b) iterations.
Mathematics 09 00897 g019
Figure 20. Various R a T and corresponding iterations.
Figure 20. Various R a T and corresponding iterations.
Mathematics 09 00897 g020
Figure 21. Contour plots obtained by various R a T : (a) ψ with R a T = 1 ; (b) ψ with R a T = 60 ; (c) T with R a T = 1 ; (d) T with R a T = 60 .
Figure 21. Contour plots obtained by various R a T : (a) ψ with R a T = 1 ; (b) ψ with R a T = 60 ; (c) T with R a T = 1 ; (d) T with R a T = 60 .
Mathematics 09 00897 g021aMathematics 09 00897 g021b
Figure 22. Schematic diagrams of uniform discretization in the parallelograms: (a) domain I; (b) domain II.
Figure 22. Schematic diagrams of uniform discretization in the parallelograms: (a) domain I; (b) domain II.
Mathematics 09 00897 g022
Figure 23. Various collocation points and corresponding iterations.
Figure 23. Various collocation points and corresponding iterations.
Mathematics 09 00897 g023
Figure 24. Contour plots obtained by uniform discretization with N c = 20 × 50 : (a) ψ in domain I; (b) ψ in domain II; (c) T in domain I; (d) T in domain II.
Figure 24. Contour plots obtained by uniform discretization with N c = 20 × 50 : (a) ψ in domain I; (b) ψ in domain II; (c) T in domain I; (d) T in domain II.
Mathematics 09 00897 g024
Figure 25. Various initial conditions and corresponding iterations: (a) ( ψ 0 , T 0 ) ; (b) ( ψ l e f t 0 , ψ r i g h t 0 , T l e f t 0 , T r i g h t 0 ) .
Figure 25. Various initial conditions and corresponding iterations: (a) ( ψ 0 , T 0 ) ; (b) ( ψ l e f t 0 , ψ r i g h t 0 , T l e f t 0 , T r i g h t 0 ) .
Mathematics 09 00897 g025
Figure 26. Various R a T and corresponding iterations.
Figure 26. Various R a T and corresponding iterations.
Mathematics 09 00897 g026
Figure 27. Contour plots obtained by various R a T in domain I: (a) ψ with R a T = 1 ; (b) ψ with R a T = 60 ; (c) T with R a T = 1 ; (d) T with R a T = 60 .
Figure 27. Contour plots obtained by various R a T in domain I: (a) ψ with R a T = 1 ; (b) ψ with R a T = 60 ; (c) T with R a T = 1 ; (d) T with R a T = 60 .
Mathematics 09 00897 g027
Figure 28. Contour plots obtained by various R a T in domain II: (a) ψ with R a T = 1 ; (b) ψ with R a T = 60 ; (c) T with R a T = 1 ; (d) T with R a T = 60 .
Figure 28. Contour plots obtained by various R a T in domain II: (a) ψ with R a T = 1 ; (b) ψ with R a T = 60 ; (c) T with R a T = 1 ; (d) T with R a T = 60 .
Mathematics 09 00897 g028
Figure 29. Non-uniform discretization with various s values and corresponding iterations.
Figure 29. Non-uniform discretization with various s values and corresponding iterations.
Mathematics 09 00897 g029
Figure 30. Non-uniform discretization with s = 3 in the parallelograms: (a) domain I; (b) domain II.
Figure 30. Non-uniform discretization with s = 3 in the parallelograms: (a) domain I; (b) domain II.
Mathematics 09 00897 g030
Figure 31. Contour plots obtained by non-uniform discretization with s = 3 : (a) ψ in domain I; (b) ψ in domain II; (c) T in domain I; (d) T in domain II.
Figure 31. Contour plots obtained by non-uniform discretization with s = 3 : (a) ψ in domain I; (b) ψ in domain II; (c) T in domain I; (d) T in domain II.
Mathematics 09 00897 g031
Figure 32. Non-uniform discretization with s = 4 in the parallelograms: (a) domain I; (b) domain II.
Figure 32. Non-uniform discretization with s = 4 in the parallelograms: (a) domain I; (b) domain II.
Mathematics 09 00897 g032
Figure 33. Contour plots obtained by non-uniform discretization with s = 4 : (a) ψ in domain I; (b) ψ in domain II; (c) T in domain I; (d) T in domain II.
Figure 33. Contour plots obtained by non-uniform discretization with s = 4 : (a) ψ in domain I; (b) ψ in domain II; (c) T in domain I; (d) T in domain II.
Mathematics 09 00897 g033
Figure 34. Non-uniform discretization with s = 4 and corresponding iterations.
Figure 34. Non-uniform discretization with s = 4 and corresponding iterations.
Mathematics 09 00897 g034
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Yang, J.P.; Liao, Y.-S. Direct Collocation with Reproducing Kernel Approximation for Two-Phase Coupling System in a Porous Enclosure. Mathematics 2021, 9, 897. https://0-doi-org.brum.beds.ac.uk/10.3390/math9080897

AMA Style

Yang JP, Liao Y-S. Direct Collocation with Reproducing Kernel Approximation for Two-Phase Coupling System in a Porous Enclosure. Mathematics. 2021; 9(8):897. https://0-doi-org.brum.beds.ac.uk/10.3390/math9080897

Chicago/Turabian Style

Yang, Judy P., and Yi-Shan Liao. 2021. "Direct Collocation with Reproducing Kernel Approximation for Two-Phase Coupling System in a Porous Enclosure" Mathematics 9, no. 8: 897. https://0-doi-org.brum.beds.ac.uk/10.3390/math9080897

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop