Next Article in Journal
Spatial Succession for Degradation of Solid Multicomponent Food Waste and Purification of Toxic Leachate with the Obtaining of Biohydrogen and Biomethane
Next Article in Special Issue
Novel Numerical Methods in Heat and Mass Transfer
Previous Article in Journal
Effect of Magnesium Additives on Phosphorous Recovery during Sewage Sludge Combustion and Further Improvement of Bioavailable Phosphorous
Previous Article in Special Issue
Optimum Multi-Mini-Channels Height for Heat Enhancement under Forced Convection Condition
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

A Fourth Order Numerical Scheme for Unsteady Mixed Convection Boundary Layer Flow: A Comparative Computational Study

by
Yasir Nawaz
1,2,
Muhammad Shoaib Arif
1,3,*,
Wasfi Shatanawi
3,4,5 and
Muhammad Usman Ashraf
2
1
Department of Mathematics, Air University Islamabad, PAF Complex E-9, Islamabad 44000, Pakistan
2
Department of Sciences and Humanities, National University of Computer and Emerging Sciences, Islamabad 44000, Pakistan
3
Department of Mathematics and Sciences, College of Humanities and Sciences, Prince Sultan University, Riyadh 11586, Saudi Arabia
4
Department of Medical Research, China Medical University Hospital, China Medical University, Taichung 40402, Taiwan
5
Department of Mathematics, Faculty of Science, The Hashemite University, P.O. Box 330127, Zarqa 13133, Jordan
*
Author to whom correspondence should be addressed.
Energies 2022, 15(3), 910; https://doi.org/10.3390/en15030910
Submission received: 15 December 2021 / Revised: 16 January 2022 / Accepted: 17 January 2022 / Published: 27 January 2022
(This article belongs to the Special Issue Novel Numerical Methods in Heat and Mass Transfer)

Abstract

:
In this paper, a three-stage fourth-order numerical scheme is proposed. The first and second stages of the proposed scheme are explicit, whereas the third stage is implicit. A fourth-order compact scheme is considered to discretize space-involved terms. The stability of the fourth-order scheme in space and time is checked using the von Neumann stability criterion for the scalar case. The stability region obtained by the scheme is more than the one given by explicit Runge–Kutta methods. The convergence conditions are found for the system of partial differential equations, which are non-dimensional equations of heat transfer of Stokes first and second problems. The comparison of the proposed scheme is made with the existing Crank–Nicolson scheme. From this comparison, it can be concluded that the proposed scheme converges faster than the Crank–Nicolson scheme. It also produces less relative error than the Crank–Nicolson method for time-dependent problems.

1. Introduction

Numerical methods play a vital role in solving mathematical models of physical phenomena. The mathematical models for fluid flow and heat transfer must be solved exactly or approximately using numerical methods. In the literature, several numerical approaches have been developed that involve two or more steps. These methods are called multi-step methods. The main advantage of using multi-step methods is their use for one stage, and so the solutions to the problems can be obtained in one loop. Still, it has a drawback of using any scheme on a first-time level or choosing one or more initial estimates to initialize the multi-step scheme.
On the other hand, Runge–Kutta methods have been constructed on different stages, and so these methods may consume more time than multi-step methods. These methods have the main advantage of providing greater stability region and do not require any other scheme on a first-time level. Mostly implicit methods provide greater stability regions than explicit methods, and some are unconditionally stable.
Compact schemes can be constructed to get the high accuracy of the solution. In [1], a sixth-order compact scheme has been constructed to solve Poisson equations with fixed or Dirichlet boundary conditions. The sixth order has been proved numerically and analytically, and it was shown that the sixth order scheme outperformed the existing fourth-order scheme. Two schemes were proposed in [2] for solving a Dirac equation with the periodic boundary conditions. The vectored forms of schemes were analyzed by finding convergence and conservative properties. In the literature, numerical schemes exist for solving problems having shock waves. In [3], a nested multi-resolution finite-difference fifth-order WENO scheme has been given. The scheme produced less error when it was compared with the classical fifth-order WENO scheme for the smooth region. The scheme switched to third and first orders near the discontinuous and strongly discontinuous regions. The scheme produced smaller numerical dissipation without using any dissipation preserving method. A higher-order compact scheme [4] was given for stratified rotating flows. The scheme was validated with analytical solutions. The code was useful to reduce the huge execution times. The Symplectic scheme has been proposed in [5], with three free parameters covering the implicit midpoint methods, symplectic Euler, and Stormer–Verlet methods. Moreover, second-order symplectic and symmetric symplectic schemes were obtained with two free parameters and a free parameter, respectively. A compact scheme was developed in [6] for second-order Schrodinger and parabolic partial differential equations using Dirichlet and Neumann boundary conditions and which had a smaller error and high order than the classical implicit scheme. The non-oscillatory behavior of numerical schemes is not the only requirement in hyperbolic conservation laws, but also it is required for singular perturbation problems. In [7], a Gaussian radial basis functions finite difference method was given to achieve a non-oscillatory solution using the finite difference method for any degree of resolution. The non-oscillatory solution of singular perturbation problems was obtained even with the small number of grid points. A compact nonlinear scheme [8] is given to solve the nonlinear Schrodinger equation on an unbounded domain. First, a method is applied to reduce the problem from unbounded domain to initial boundary value problem on a bounded domain, and then it is solved by the proposed method. One of the features of the scheme was to avoid time-consuming iterations. A class of second-order in time and fourth-order in space compact schemes [9] has been given to solve the Burgers’ equations. In addition to this, linear stability analysis was also carried out to prove that the scheme is conditionally stable. A fourth-order gas kinetic scheme [10] is based on two-stage time discretizing and Hermite WENO reconstruction to solve compressible Euler equations and Navier–Stokes equations. Comparing the DG method, both used the same stencil, but the gas–kinetic scheme used two stages of the time integration scheme. In contrast, the DG method utilized four stages of the time integration method. The fourth-order compact difference scheme has been proposed in [9] to solve Burgers’ equations. The scheme was fourth order in space and second-order in time, and linear stability analysis was also carried out. It was found that the scheme is conditionally stable. Since it was built on three grid points, the Thomas algorithm was considered for solving the tridiagonal system. Further, the scheme was also applied for solving two and three-dimensional Burgers’ equations. More work on the compact scheme can be seen in [10,11]. In the literature, implicit–explicit schemes have been proposed to solve differential equations numerically, and accelerated implicit–explicit schemes [12] have been proposed to solve stiff problems. The problem can be split into non-stiff and stiff constituent parts which were allowed by these schemes. The research work on the Runge–Kutta method can be seen in [13], in which order conditions have been found for delay differential equations. Up to order five, the stiff order conditions have been found. The exponential Runge–Kutta methods have been given [14] for delay differential equations which are semilinear parabolic. Conditions for DN-stability and stiff convergence have been examined, with these characteristics being offered in the context of the analytic semigroup framework. Up to order four, the stiff convergence order conditions have been derived. A third-order in time adaptive order Runge–Kutta method and finite volume in space for advection–diffusion equations have been implemented in [15]. The spatial derivatives have essentially been discretized by a weighted non-oscillatory (WENO) scheme. To reduce spurious oscillations, spatially partitioned Runge–Kutta methods have been employed. The structure-preserving family of exponential Runge–Kutta methods has been developed [16]. These methods were combined with the scalar auxiliary variable approach. A modified version of the explicit two-stage Runge–Kutta scheme of four, five, and six order has been derived in [17] to test a 2D cylinder and a 3D Taylor–Green vortex problem. It was claimed that proposed modified schemes were 25% faster than the Low-Storage Runge–Kutta method of the same order. A class of Maximum principal preserving integrators for the Allen–Cahn equation has been designed and analyzed [18]. The space discretization was performed by applying the second-order finite difference scheme. A fully discrete scheme was obtained by applying Lawson transformation and the Runge-Kutta scheme for discretizing time. Since some implicit compact numerical schemes do not converge for the convection-diffusion type equations, an explicit compact scheme has been proposed in [19] to overcome this deficiency of implicit scheme. The scheme was applied for the particular type of convection-diffusion problems and provided fourth-order accuracy in space and second-order accuracy in time.

2. Numerical Scheme

There exist numerous numerical schemes for solving time-dependent partial differential equations. The advantages and shortcomings of using multi-step and multi-stages or Runge–Kutta types of schemes have been mentioned earlier. For a better understanding, the performance of any scheme is its compared results with the existing known scheme on the different types of problems. For spatial variables, a compact scheme is chosen. The compact scheme of fourth order uses fewer grid points than the classical standard difference scheme of the same order. So, the fourth-order accurate solution in time and space can be obtained for parabolic equations.
To construct a numerical scheme for solving a time-dependent partial differential equation, consider the differential equation of the form
u t = 2 u x 2
For the first stage of the proposed scheme, consider the discretization of Equation (1) in a form
u ¯ i n + 1 = u i n + Δ t ( u t ) i n
where u ¯ i n + 1 is an unknown time level at the first stage of the scheme. Let the second stage of the proposed scheme be given by
u = i n + 1 = 1 2 [ u i n + u ¯ i n + 1 + Δ t ( u ¯ t ) i n + 1 ]
It should be observed that the first and second stages of the proposed schemes are explicit. For starting the third stage of the proposed scheme, consider the difference scheme with unknowns given as
u i n + 1 = u i n + Δ t { a ( u ¯ t ) i n + 1 + b ( u = t ) i n + 1 + c ( u t ) i n + 1 + c 1 ( u t ) i n }
Substituting first and second stages (2) and (3) into stage three (4) and Taylor series expansion for ( u t ) i n + 1 , it is obtained
u i n + 1 = u i n + Δ t { a ( u t ) i n + a Δ t ( 2 u t 2 ) i n + b 2 ( u t ) i n + b 2 Δ t ( 2 u t 2 ) i n + b 2 ( Δ t ) 2 ( 3 u t 3 ) i n + c ( u t ) i n + c Δ t ( 2 u t 2 ) i n + c 2 ( Δ t ) 2 ( 3 u t 3 ) i n + c 6 ( Δ t ) 3 ( 4 u t 4 ) i n + c 1 ( u t ) i n }
Expanding u i n + 1 using the Taylor series and comparing coefficients on both sides of Equation (5) it is obtained
1 = a + b + c + c 1 1 2 = a + b + c 1 6 = b 2 + c 1 24 = c 6 }
Solving Equation (6) gives the values of a , b , c and c 1 as
a = 1 6 ,   b = 1 12 ,   c = 1 4 ,   c 1 = 1 2
Thus, the third implicit stage of the proposed scheme is expressed as
u i n + 1 = u i n + Δ t 12 { 2 ( u ¯ t ) i n + 1 + ( u = t ) i n + 1 + 3 ( u t ) i n + 1 + 6 ( u t ) i n }
The proposed approach discretizes only the time variable; any scheme can be used to discretize the space variable. In the present contribution, a compact fourth-order scheme is chosen. For this reason, consider the Taylor series expansions for u i + 1 n and u i 1 n as
u i + 1 n = u i n + Δ x   ( u x ) i n + ( Δ x ) 2 2 ( 2 u x 2 ) i n + ( Δ x ) 3 6 ( 3 u x 3 ) i n + ( Δ x ) 4 24 ( 4 u x 4 ) i n u i 1 n = u i n Δ x   ( u x ) i n + ( Δ x ) 2 2 ( 2 u x 2 ) i n ( Δ x ) 3 6 ( 3 u x 3 ) i n + ( Δ x ) 4 24 ( 4 u x 4 ) i n }
Adding u i + 1 n and u i 1 n yields
u i + 1 n + u i 1 n = 2 u i n + ( Δ x ) 2 ( 2 u x 2 ) i n + ( Δ x ) 4 12 ( 4 u x 4 ) i n + O ( ( Δ x ) 4 ) .
This implies,
u i + 1 n 2 u i n + u i 1 n ( Δ x ) 2 = ( 2 u x 2 ) i n + ( Δ x ) 2 12 ( 4 u x 4 ) i n + O ( ( Δ x ) 4 ) ,
( 2 u x 2 ) i n = u i + 1 n 2 u i n + u i 1 n ( Δ x ) 2 ( Δ x ) 2 12 ( 4 u x 4 ) i n + O ( ( Δ x ) 4 ) .
The fourth derivative in Equation (12) can be found by finding the derivative of Equation (1) as,
( 4 u x 4 ) i n = 3 u t x 2
Substituting Equation (13) into (12), it is obtained
( u t ) i n = u i + 1 n 2 u i n + u i 1 n ( Δ x ) 2 ( Δ x ) 2 12 3 u t x 2 .
Equation (14) is a semi-discretized scheme that performs space discretization using a fourth-order compact scheme. This type of space discretization scheme has also been applied for partial differential equations in literature.
Equation (14) can be expressed as,
( u t ) i n = δ x 2 u i n ( Δ x ) 2 12 δ x 2 ( u t ) i n ,
where δ x 2 u i n = u i + 1 n 2 u i n + u i 1 n ( Δ x ) 2 .
Applying the first stage of the proposed scheme to Equation (15), it is obtained,
u ¯ i n + 1 = u i n + Δ t δ x 2 u i n Δ t ( Δ x ) 2 12 ( δ x 2 u ¯ i n + 1 δ x 2 u i n + 1 Δ t ) .
Applying the second stage of the proposed scheme it yields
u = i n + 1 = 1 2 [ u i n + u ¯ i n + 1 + Δ t δ x 2 u ¯ i n + 1 ( Δ x ) 2 12 ( δ x 2 u = i n + 1 δ x 2 u i n ) ] .
The implicit and final stage of the proposed scheme for Equation (1) is given as,
u i n + 1 = u i n + Δ t ( Δ x ) 2 { a ( 2 u x 2 ) i n + 1 + b ( 2 u x 2 ) i n + 1 + c ( 2 u x 2 ) i n + 1 + c 1 ( 2 u x 2 ) i n + 1 } ( Δ x ) 2 12 ( δ x 2 u i n + 1 δ x 2 u i n ) .

3. Algorithm

Since the proposed time-discretizing scheme comprises three stages, it requires at least four loops to compute results. Each loop for the corresponding stage of the scheme will find the solution on each grid point at a fixed time level. Since the scheme is implicit, the present strategy for solving equations is to use an iterative scheme. This iterative scheme is used for solving discretized or difference equations obtained by applying proposed scheme on considered system of partial differential equations. There will be six dependent variables due to velocity and temperature profiles and three stages of the scheme. The Matlab code is consisted on the following steps:
Step 1. Define the starting and ending points of 1D domain and also define the final time. Then, choose step sizes in space and time. Define the independent and dependent variables, choose values for dimensionless parameters. Go to the next step 2;
Step 2. Initialize the loop for the iterative scheme, define the initial conditions for each dependent variable that represents the velocity and temperature of the flow. Go to the next step 3;
Step 3. Initialize the time loop for finding the solution for each time level. In addition, Initialize the first loop for spatial direction for the first stage of the scheme. Define the boundary condition for each variable, compute the solution at each grid point, and End this spatial loop. Similarly, Initialize another loop for the second stage of the scheme and find the solution at each grid point using the same step size used for the previous loop. Then, End this second loop Initialize the loop for the third stage and find the solution at each grid point and at a particular time level. Then, End this third spatial loop for finding the final solution on each grid point. Also, end the loop for time direction. Go to the next step 4;
Step 4. Give the stopping criteria to stop the first iterative loop. If the stopping criteria are met, End this iterative loop; otherwise, go to step 3.

4. Stability Analysis

For finding the stability of the proposed scheme, the Von Neumann stability criterion is considered. According to this criterion, the dependent variables in a scheme are replaced with other variables in time and space. Therefore, the following transformations are considered first,
u i n + 1 = E n + 1 e i I θ ,     u i + 1 n = E n e ( i + 1 ) I θ ,     u i 1 n = E n e ( i 1 ) I θ u ¯ i n + 1 = E ¯ n + 1 e i I θ ,   u = i n + 1 = E = n + 1 e i I θ } ,
where I = 1 . Substitution of transformation (19) into the first stage of proposed scheme (16) yields,
E ¯ n + 1 e i I θ = E n e i I θ + Δ t   ( e ( i + 1 ) I θ e i I θ + e ( i 1 ) I θ ( Δ x ) 2 ) E n 1 12 [ e ( i + 1 ) I θ e i I θ + e ( i 1 ) I θ ( Δ x ) 2 ( E n + 1 E n ) ] .
Dividing both sides of Equation (20) by e i I θ results,
E ¯ n + 1 = E n + Δ t ( Δ x ) 2 ( 2 c o s θ 2 ) 1 12 ( 2 c o s θ 2 ) ( E n + 1 E n ) ,
E ¯ n + 1 = [ 1 + 2 d ( c o s θ 1 ) + 1 6 ( c o s θ 1 ) ] E n 1 + 1 6 ( c o s θ 1 ) .
Re-write Equation (22) in the form of,
E ¯ n + 1 = φ E n ,
where
φ = 1 + 2 d ( c o s θ 1 ) + 1 6 ( c o s θ 1 ) 1 + 1 6 ( c o s θ 1 ) .
Similarly, the relationship between E ¯ n + 1 and E n can be found by substituting transformations (19) to Equation (17), which results,
E = n + 1 = φ 1 E n ,
where
φ 1 = 1 2 [ 1 + φ + 2 d ( c o s θ 1 ) φ + 1 6 ( c o s θ 1 ) ] E n 1 + 1 12 ( c o s θ 1 ) .
Similarly substituting transformations into the third stage of the proposed scheme, it is obtained,
E n + 1 = 1 + d ( 2 a φ + 2 b φ 1 + 2 c 1 ) ( c o s θ 1 ) + 1 6 ( c o s θ 1 ) 1 + ( 2 c d + 1 6 ) ( c o s θ 1 ) .
Let c o s θ = 1 , in (25), it yields
E n + 1 = [ 2 3 + d ( 3 2 3 d ( 12 5 ) d 3 ) 2 3 + d ] E n
The amplification factor and stability conditions can be expressed as
| E n + 1 E n | 1
By drawing the graph of the third equation in (26), the stability region can be found approximately, as shown in Figure 1.
This contribution has also consisted of the mathematical model of fluid flow under heat transfer effects. The general form of the model is given as:
u t = α 1 2 u x 2 + α 2 u
θ t = β 1 2 θ x 2 + β 2 ( u x ) 2
where α 1 , α 2 , β 1 and β 2 are constants. System of Equations (28) and (29) can be expressed in a single equation of the form
U t = A 2 U x 2 + B U x + C U
where A = [ α 1 0 0 β 1 ] ,   U = [ u θ ] C ,   B = [ 0 0 2 β 2 ( u x ) ¯ 0 ] ,   C = [ α 2 0 0 0 ] .
Applying first stage of the proposed scheme on Equation (30), it is obtained
U ¯ i n + 1 = U i n + Δ t A δ x 2 U i n ( Δ x ) 2 12 { A 1 3 U x 2 t A 1   B A 1 2 U x t + ( A 1 B A 1 B A 1 C ) 2 U x 2 + A 1 B A 1 C U x } + Δ t   B δ x U i n ( Δ x ) 2 6 { A 1 2 U x t B 2 U x 2 C U x } + C U i n
where third- and fourth-order derivatives in (31) are found using Equation (30), similarly, the other two stages of the proposed scheme can be constructed.
Theorem 1.
The proposed scheme for the Equations (28) and (29) converges if it satisfies
1 1 3 A 1 1 Δ x A 2 0 ,
where  A 2 = ( Δ x ) 2 12 A 1 B A 1 ( Δ x ) 2 6 A 1 .
Proof. 
Let the error between exact and numerical scheme be denoted by e i = u i n U i n . Then error equation using the first stage of the scheme is given as
e ¯ i n + 1 = e i n + Δ t A δ x 2 e i n ( Δ x ) 2 12 A 1 ( δ x 2 e ¯ i n + 1 δ x 2 e i n ) + A 2 ( δ x e ¯ i n + 1 δ x e i n ) + A 3 δ x 2 e i n + A 4 δ x e i n + C e i n
where, A 3 = ( A 1 B A 1 B A 1 C ) ( Δ x ) 2 12 + ( Δ x ) 2 6 B and A 4 = ( Δ x ) 2 12 A 1 B A 1 C + ( Δ x ) 2 6 C .
Applying norm on both sides of Equation (32) and using norm property, it is obtained,
e ^ n + 1 e ^ n + Δ t A δ x 2 e ^ n + ( Δ x ) 2 12 A 1 ( δ x 2 e ^ n + 1 + δ x 2 e ^ n ) + A 2 ( δ x e ^ n + 1 + δ x e ^ n ) + A 3 δ x 2 e ^ n + A 4 δ x e ^ n + C e ^ n
where e ^ n = max ( e i n ,   e ¯ i n ) . From (33), the following inequality can be obtained,
( 1 1 3 A 1 1 Δ x A 2 ) e ^ n + 1 e ^ n + 4 Δ t ( Δ x ) 2 A e ^ n + 1 3 A 1 e ^ n + 1 Δ x A 2 e ^ n + 4 ( Δ x ) 2 A 3 e ^ n + 1 Δ x A 4 e ^ n + C e ^ n
The following inequality can be obtained from (34),
e ^ n + 1 λ e ^ n + M ( O ( Δ t ) 4 , ( Δ x ) 4 ) ,
where λ = 1 + 4 Δ t ( Δ x ) 2 A + 1 3 A 1 + 1 Δ x A 2 + 4 ( Δ x ) 2 A 3 + 1 Δ x A 4 + C 1 1 3 A 1 1 Δ x A 2 .
Let, n = 0 in (35), it gives
e ^ 1 λ e ^ 0 + M ( O ( Δ t ) 4 , ( Δ x ) 4 )
where e ^ 0 = 0 for initial boundary condition and for n = 1 in (35), it is obtained
e ^ 2 λ e ^ 1 + M ( O ( Δ t ) 4 , ( Δ x ) 4 ) ( 1 + λ ) M ( O ( Δ t ) 4 , ( Δ x ) 4 )
If this is continued, then for any finite n ,
e ^ n ( 1 + λ + + λ n 1 ) M ( O ( Δ t ) 4 , ( Δ x ) 4 )
e ^ n 1 λ n 1 λ M ( O ( Δ t ) 4 , ( Δ x ) 4 )
Since the series + λ n 1 + + λ + 1 is a geometric series with common ratio λ , and it will converge if | λ | 1 . So, convergence conditions are obtained. Similarly, convergence conditions for the second and third stages can also be obtained. □

5. Applications to Engineering Problem

Example 1.
Consider a parabolic Equation (1), subject to the initial
u ( x , 0 ) = s i n ( x )
and boundary conditions
u ( 0 , t ) = 0 ,   u ( π , t ) = 0
The exact solution of the problem (1), (37), (38) is expressed as
u ( x , t ) = e t s i n ( x )
Figure 2 shows the comparison of relative error obtained by applying the Crank–Nicolson method with the proposed scheme. It is clearly observed that the proposed fourth-order scheme produced less relative error than the one obtained by the second-order Crank-Nicolson method. This error can be increased and decreased by choosing different time and step sizes. Figure 3 compares the speed of the convergence of the proposed scheme and the Crank-Nicolson method. Since the proposed method is fourth-order accurate, it converges faster than the Crank-Nicolson method.
Example 2.
Stokes First Problem.
Consider unsteady, laminar, and incompressible fluid flow over the stretching sheet u w . The sheet is infinitely long, and the flow is generated by a sudden plate movement in a positive x * -axis direction. Let the x * -axis be along with the plate, and y * -axis is perpendicular to the plate. According to Stokes assumptions, the governing equations of the flow can be expressed as
u * t * = ν 2 u * y * 2 σ B 0 2 ρ u * + g β T ( T T )
T t * = α 2 T y * 2 + μ ρ c p ( u * y * ) 2
subject to the initial condition
u * ( y * , 0 ) = 0 ,   T ( y * , 0 ) = 0 ,
and boundary conditions
u * ( y * , t * ) = u w ,   T ( y * , t * ) = T w   w h e n   y * 0 u * ( y * , t * ) = 0 ,   T ( y * , t * ) = T     w h e n   y * }
The governing equations with initial and boundary conditions are dimensional, which are turned into non-dimensional equations using the transformations
u = u * u w ,   θ = T T T w T ,   t = u w 2 t * ν ,   y = u w y * ν
Applying transformations (44) to Equations (40)–(43) results
u t = 2 u y 2 M u + G r L θ
θ t = 1 P r 2 θ y 2 + E c ( u y ) 2
subject to the dimensionless initial condition
u ( y , 0 ) = 0 ,   θ ( y , 0 ) = 0
and boundary conditions are given as
u ( y , t ) = 1 ,   θ ( y , t ) = 1   w h e n   y 0 u ( y , t ) = 0 ,   θ ( y , t ) = 0   w h e n   y }
The dimensionless Equations (45)–(48) are solved by employing the proposed scheme in time and fourth-order compact scheme in space. Figure 4 shows the comparison of the speed of convergence for two schemes, showing that the proposed scheme converges faster than the Crank–Nicolson method. Figure 5 and Figure 6 show contours for velocity and temperature profiles, respectively. Velocity and temperature are maximum at the plate y = 0 . Then these profiles decrease from one to zero if one moves away from the plate.
Example 3.
Stokes Second Problem.
In this problem, the sheet has behaved in the manner of a trigonometry function form. The governing equations, initial and boundary conditions are considered to be (40)–(43), except one boundary condition expressed as
u * ( y * , t * ) = u w c o s ( ω t * )
Then using the transformations [20]
u = u * u w ,   y = y * ω ν ,   t = ω t * ,   θ = T T T w T
The set of dimensional Equations (40)–(43) (except one boundary condition) & (40) are reduced to Equations (45)–(48) except and including one dimensionless boundary condition given as
u ( y , t ) = c o s ( t )
The proposed strategy for discretizing the time variable is used to solve the set of equations for heat transport in Stokes second problem, and a compact scheme is used for spatial discretization. Figure 7 shows that the proposed scheme converges faster than the existing scheme, and also it produces a smaller norm of error than the one obtained by the Crank–Nicolson method. The contour plots are presented in Figure 8 and Figure 9. The oscillatory behaviors of the velocity and temperature profiles can be seen in these figures.

6. Results and Discussion

The proposed numerical scheme for discretizing time variables is applied to the boundary layer flow problem. The problems of flow over the flat and oscillatory sheets are considered. These problems are associated with the energy equation, which can investigate the effect of temperature on flow. A dissipation force is also added to the energy equation, which makes the problem nonlinear. The compact scheme can be applied to solve the linear or linearized problem, and so the nonlinear term is linearized, and the proposed scheme solves the resulting linearized problem. For checking the scheme’s performance, a figure is drawn that shows the stability region of the proposed scheme. This region can be compared with those given by some existing explicit schemes, and improvement in the stability region can be observed. So, the proposed scheme provides a better region of stability than some explicit schemes. For its convergence, figures for convergence of the proposed and existing scheme are also established. Its faster convergence can be seen in the convergence plots for three kinds of problems since it stops earlier than the Crank–Nicolson method, so it converges faster than the existing second-order Crank–Nicolson scheme. Moreover, the first time-dependent problem provides less relative error than the existing Crank–Nicolson scheme. The contour plots have also been constructed that show the contours on which surface stays constant, and colors in these plots show the surface’s peak or trough. Since the flow is generated due to a certain acceleration of sheet, so its effect on the adjacent layers can be seen in these figures. Additionally, when sinusoidal boundary conditions in time are chosen, it will have oscillatory effects near the time axis that can be observed in corresponding velocity and temperature contour plots.

7. Conclusions

A fourth-order numerical scheme has been constructed for solving time-dependent partial differential equations. The scheme was explicit–implicit, and it has been constructed on two-time levels. The stability of the single-equation and convergence for the system of equations has been given. The extended mathematical model for mixed convection of magnetohydrodynamics (MHD) Stokes problems has been given and solved using the proposed fourth-order scheme. Comparison with the existing Crank–Nicolson scheme showed its faster convergence. The scheme can be implemented for solving time-dependent partial differential equations. Additionally, the suggested method is straightforward to implement and may be used to a broader class of partial differential equations that are encountered in both practice and theoretical settings.

Author Contributions

Conceptualization, Y.N.; funding acquisition, W.S.; investigation, writing—original draft, methodology, Software, Formal Analysis, writing—review and editing, Y.N.; methodology, M.S.A.; project administration, W.S.; resources, W.S.; supervision, M.S.A.; visualization, W.S.; writing—review and editing, M.S.A.; Formal Analysis, M.U.A.; software, M.U.A. All authors have read and agreed to the published version of the manuscript.

Funding

The authors would like to acknowledge the support of Prince Sultan University for paying the Article Processing Charges (APC) of this publication.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

The manuscript included all required data and implementing information.

Acknowledgments

We are thankful to the anonymous referees for their valuable comments, which helped us improve the paper’s quality. The second and third authors wish to express their gratitude to Prince Sultan University for facilitating the publication of this article through the research lab Theoretical and Applied Sciences Lab.

Conflicts of Interest

The authors declare no conflict of interest.

Nomenclature

u Horizontal velocity
ν Kinematic viscosity
σ Electrical Conductivity
B 0 Strength of magnetic field
ρ Density of Fluid
g Gravity
β T Coefficient of Thermal Expansion
T Ambient Temperature
α Thermal Diffusivity
c p Specific Heat Capacity
T w Wall Temperature
M Magnetic parameter
G r L Grashof number
P r Prandtl number
E c Eckert number
μ Dynamic viscosity

References

  1. Gatiso, A.H.; Belachew, M.T.; Wolle, G.A. Sixth-order compact finite difference scheme with discrete sine transform for solving Poisson equations with Dirichlet boundary conditions. Results Appl. Math. 2021, 10, 100148. [Google Scholar] [CrossRef]
  2. Li, J.; Wang, T. Optimal point-wise error estimate of two conservative fourth-order compact finite difference schemes for the nonlinear Dirac equation. Appl. Numer. Math. 2021, 162, 150–170. [Google Scholar] [CrossRef]
  3. Wang, Z.; Zhu, J.; Tian, L.; Zhao, N. A low dissipation finite difference nested multi-resolution WENO scheme for Euler/Navier-Stokes equations. J. Comput. Phys. 2021, 429, 110006. [Google Scholar] [CrossRef]
  4. Abide, S.; Viazzo, S.; Raspo, I.; Randriamampianina, A. Higher-order compact scheme for high-performance computing of stratified rotating flows. Comput. Fluids 2018, 174, 300–310. [Google Scholar] [CrossRef] [Green Version]
  5. Bo, Y.; Cai, W.; Wang, Y. A general symplectic scheme with three free parameters and its Applications. Appl. Math. Lett. 2021, 112, 106792. [Google Scholar] [CrossRef]
  6. Gordin, V.A.; Tsymbalov, E.A. Compact difference scheme for parabolic and Schrodinger-type equations with variable coefficients. J. Comput. Phys. 2018, 375, 1451–1468. [Google Scholar] [CrossRef] [Green Version]
  7. Gu, J.; Jung, J. Consistent, non-oscillatory RBF finite difference solutions to boundary layer problems for any degree on uniform grids. Appl. Math. Lett. 2020, 115, 106499. [Google Scholar] [CrossRef]
  8. Hu, Y.; Li, H.; Jiang, Z. Efficient semi-implicit compact finite difference scheme for nonlinear Schrödinger equations on unbounded domain. Appl. Numer. Math. 2020, 153, 319–343. [Google Scholar] [CrossRef]
  9. Yang, X.; Ge, Y.; Zhang, L. A class of high-order compact difference schemes for solving the Burgers equations. Appl. Math. Comput. 2019, 358, 394–417. [Google Scholar] [CrossRef]
  10. Ji, X.; Pan, L.; Shyy, W.; Xu, K. A Compact fourth-order gas-kinetic scheme for the Euler and Navier–Stokes equations. J. Comput. Phys. 2018, 372, 446–472. [Google Scholar] [CrossRef]
  11. Sun, Y.X.; Tian, Z.F. High-order upwind compact finite-difference lattice Boltzmann method for viscous incompressible flows. Comput. Math. Appl. 2020, 80, 1858–1872. [Google Scholar] [CrossRef]
  12. Vermeire, C.; Nasab, S.H. Accelerated Implicit-Explicit Runge-Kutta Schemes for Locally Stiff Systems. J. Comput. Phys. 2021, 429, 110022. [Google Scholar] [CrossRef]
  13. Fang, J.; Zhan, R. High order explicit exponential Runge–Kutta methods for semilinear delay differential equations. J. Comput. Appl. Math. 2021, 388, 113279. [Google Scholar] [CrossRef]
  14. Zhao, J.; Zhan, R.; Xu, Y. Explicit exponential Runge–Kutta methods for semilinear parabolic delay differential equations. Math. Comput. Simul. 2020, 178, 366–381. [Google Scholar] [CrossRef]
  15. Arbogast, T.; Huang, C.S.; Zhao, X.; King, D.N. A third order, implicit, finite volume, adaptive Runge–Kutta WENO scheme for advection–diffusion equations. Comput. Methods Appl. Mech. Eng. 2020, 368, 113155. [Google Scholar] [CrossRef]
  16. Cui, J.; Xu, Z.; Wang, Y.; Jiang, C. Mass and energy preserving exponential Runge–Kutta methods for the nonlinear Schrödinger equation. Appl. Math. Lett. 2021, 112, 106770. [Google Scholar] [CrossRef]
  17. Figueroa, A.; Jackiewicz, Z.; Löhner, R. Efficient two-step Runge-Kutta methods for fluid dynamics simulations. Appl. Numer. Math. 2021, 159, 1–20. [Google Scholar] [CrossRef]
  18. Zhang, H.; Yan, J.; Qian, X.; Song, S. Numerical analysis and applications of explicit high order maximum principle preserving integrating factor Runge-Kutta schemes for Allen-Cahn equation. Appl. Numer. Math. 2021, 161, 372–390. [Google Scholar] [CrossRef]
  19. Nawaz, Y.; Arif, M.S.; Shatanawi, W.; Nazeer, A. An Explicit Fourth-Order Compact Numerical Scheme for Heat Transfer of Boundary Layer Flow. Energies 2021, 14, 3396. [Google Scholar] [CrossRef]
  20. Ishfaq, N.; Khan, W.A.; Khan, Z.H. The Stokes’ second problem for nanofluids. J. King Saud Univ.-Sci. 2019, 31, 61–65. [Google Scholar] [CrossRef]
Figure 1. Amplification factor over diffusion number.
Figure 1. Amplification factor over diffusion number.
Energies 15 00910 g001
Figure 2. Comparison of two schemes over spatial coordinate using N x = 40 ,   N t = 520 ,   L = π ,   t f = 1 . (a) Crank–Nicolson; (b) Proposed.
Figure 2. Comparison of two schemes over spatial coordinate using N x = 40 ,   N t = 520 ,   L = π ,   t f = 1 . (a) Crank–Nicolson; (b) Proposed.
Energies 15 00910 g002
Figure 3. Comparison of speed of convergence of two schemes using N x = 40 ,   N t = 520 ,   L = π ,   t f = 1 .
Figure 3. Comparison of speed of convergence of two schemes using N x = 40 ,   N t = 520 ,   L = π ,   t f = 1 .
Energies 15 00910 g003
Figure 4. Comparison of speed of convergence of two schemes using M = 0 ,   N = 0 ,   N x = 40 ,   N t = 200 ,   L = 17 ,   t f = 10 .
Figure 4. Comparison of speed of convergence of two schemes using M = 0 ,   N = 0 ,   N x = 40 ,   N t = 200 ,   L = 17 ,   t f = 10 .
Energies 15 00910 g004
Figure 5. Contours of velocity profile.
Figure 5. Contours of velocity profile.
Energies 15 00910 g005
Figure 6. Contours of temperature profile.
Figure 6. Contours of temperature profile.
Energies 15 00910 g006
Figure 7. Comparison of speed of convergence of two schemes for Stokes second problem using M = 0 ,   N = 0 ,   N x = 40 ,   N t = 200 ,   L = 17 ,   t f = 10 .
Figure 7. Comparison of speed of convergence of two schemes for Stokes second problem using M = 0 ,   N = 0 ,   N x = 40 ,   N t = 200 ,   L = 17 ,   t f = 10 .
Energies 15 00910 g007
Figure 8. Contours of velocity profile for Stokes second problem.
Figure 8. Contours of velocity profile for Stokes second problem.
Energies 15 00910 g008
Figure 9. Contours of temperature profile for Stokes second problem.
Figure 9. Contours of temperature profile for Stokes second problem.
Energies 15 00910 g009
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Nawaz, Y.; Arif, M.S.; Shatanawi, W.; Ashraf, M.U. A Fourth Order Numerical Scheme for Unsteady Mixed Convection Boundary Layer Flow: A Comparative Computational Study. Energies 2022, 15, 910. https://doi.org/10.3390/en15030910

AMA Style

Nawaz Y, Arif MS, Shatanawi W, Ashraf MU. A Fourth Order Numerical Scheme for Unsteady Mixed Convection Boundary Layer Flow: A Comparative Computational Study. Energies. 2022; 15(3):910. https://doi.org/10.3390/en15030910

Chicago/Turabian Style

Nawaz, Yasir, Muhammad Shoaib Arif, Wasfi Shatanawi, and Muhammad Usman Ashraf. 2022. "A Fourth Order Numerical Scheme for Unsteady Mixed Convection Boundary Layer Flow: A Comparative Computational Study" Energies 15, no. 3: 910. https://doi.org/10.3390/en15030910

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