1.
Introduction
Fractional calculus (FC) theory was proposed by N. H. Abel and J. Liouville, and a description of their work is presented in [1]. By using FC, integer derivatives, and integrals can be generalized to real or variable derivatives and integrals. FC is studied since fractional differential equations (FDEs) are better suited to modeling natural physics processes and dynamic systems than integer differential equations. Furthermore, FDEs that incorporate memory effects are better suited to describing natural processes that have memory and hereditary properties. In other words, because fractional derivatives have memory effects, FDEs are more accurate in describing physical phenomena with memory or hereditary characteristics. There was a trend to consider FC to be an esoteric theory with no application until the last few years. Now, more and more researchers are investigating how it can be applied to economics, control system and finance. As a result, many fractional order differential operators were developed, such as Hadamard, Riemann-Liouville, Caputo, Riesz, Grünwald-Letnikov, and variable order differential operators. The researchers have devoted considerable effort to solving FDEs numerically so that they can be applied to a variety of problems [2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20]. Several numerical approaches have been proposed in the literature, including eigenvector expansion, the fractional differential transform technique [21], the homotopy analysis technique [22], the homotopy perturbation transform technique [23], the generalized block pulse operational matrix technique [24] and the predictor-corrector technique [25]. In addition, the use of Legendre wavelets to integrate and differentiate fractional order matrices has been suggested as a numerical method [26,27].
In this paper, we study the numerical solution of the time-fractional Burger's equation (TFBE) [28] as follows:
which is subject to the following boundary conditions (BCs):
and the following initial condition (IC):
in which 0<γ≤1 is a parameter representing the order of the fractional time, v denotes a viscosity parameter and g(x),l1(t)andl2(t) are given functions of their argument. The TFBE is a kind of sub-diffusion convection, which is widely adopted to describe many physical problems such as unidirectional propagation of weakly nonlinear acoustic waves, shock waves in flow systems, viscous media, compressible turbulence, electromagnetic waves and weak shock propagation [29,30,31]. In recent years, there has been some technique development in the study of Burger's equation: an implicit difference scheme and algorithm implementation [32], pointwise error analysis of the third-order backward differentiation formula (BDF3) [33], pointwise error estimates of a compact difference scheme [34], efficient (BDF3) finite-difference scheme [35], semi-analytical methods [36], composite spectral methods [37], least-squares methods [38], geometric analysis methods [39], error and stability estimate techniques [40].
Definition 1. Suppose that m is the smallest integer exceeding γ; the Caputo time fractional derivative operator of order γ>0 can be defined as follows [41]:
where u(x,t) is the unknown function that is (m−1) times continuously differentiable and Γ(.) denotes the usual gamma function. The finite-element method has been an important method for solving both ordinary and partial differential equation, therefore, in recent research, it has been applied to solve the TFBE. In what follows, we describe the solution process by using the finite-element scheme for solving the TFBE.
2.
Cubic B-Spline Galerkin method (CBSGM) with a quadratic weight function:
To discretize the TFBE (1), first let us define the cubic B-spline base function. We partition the interval [a,b], which represents the solution domain of (1) into M uniformly spaced points xm such that a=x0<x1<⋯<xM−1<xM=b and h=(xm+1−xm). Then, the cubic B-spline Cm(x),(m=−1(1)(M+1), at the knots xm which form basis on the solution interval [a,b], is defined as follows [42]:
where the set of cubic B-splines (C−1(x),C0(x),…,CM(x),CM+1(x)) is a basis for the functions defined over interval [a,b]. Thus, the numerical solution UM(x,t) to the analytic solution U(x,t) can be illustrated as
where σm(t) are unknown time-dependent parameters to be determined from the initial, boundary and weighted residual conditions. Since each cubic B-spline covers four consecutive elements, each element [xm,xm+1] is also covered by four cubic B-splines. So, the nodal values Um and its first and second derivatives U'm, U"m can be respectively computed in terms of the element parameter σm(t), at the knot xm as follows:
and by means of the local coordinate transformation [43] as follows:
A cubic B-spline shape function in terms of η over the element [xm,xm+1] is formulated as:
and the variation of UM(η,t) over the typical element [xm,xm+1] is represented as
in which B-splines Cm−1(η),Cm(η),Cm+1(η), Cm+2(η) and σm−1(t), σm(t),σm+1 and σm+2(t) are element shape functions and element parameters, respectively.
Based on the Galerkin's method with weight function W(x)>0, we get the following weak formula of (1):
using transformation (8) and by apply partial integration we obtain:
where λ=1hÛ, Φ=vh2 and Û=U(η,t) which is considered to be a constant on an element to simplify the integral [43]; replace the weight function W by quadratic B-spline Bm(x),m=−1(1)M, at the knots xm, which forms a basis on the solution interval [a,b], introduced as follows [44]:
where (B−1(x),B0(x),…,BM(x)) is the set of splines for the basis of functions introduced on [a,b]. The numerical solution UM(x,t) to the analytic solution U(x,t) is expanded by
where ϑm are unknown time-dependent parameters, and by using local coordinate transformation (8), the quadratic B-spline shape functions for the typical element [xm,xm+1] are given as
The variation of the function U(η,t) is approximated by
where ϑm−1(t), ϑm(t) and ϑm+1(t) act as element parameters and B-splines Bm−1(η),Bm(η) and Bm+1(η) as element shape functions based on the above; (12) will be in the following form:
in which "Dot" represents the σth fractional derivative with respect to time. We can write (17) in matrix notation as follows:
in which σe=(σm−1,σm,σm+1,σm+2)T are the element parameters. The element matrices Xeij,Yeij,Zeij,Qeij and Eei are rectangular 3×4 matrices introduced through the following integrals:
where i and j take only the values (m−1,m,m+1) and (m−1,m,m+1,m+2) respectively, and a lumped value for λ is defined by λ=12h(σm−1+5σm+5σm+1+σm+2).
By assembling all contributions from all elements, we get the following matrix equation:
where σ=(σ−1,σ0,σ1,…,σM,σM+1)T denotes a global element parameter. The matrices X,Z and Y represent rectangular, septa-diagonal and every sub-diagonal matrices, which include the following forms:
in which,
Following [45], we can approximate the temporal Caputo derivative with the help of the L1 formula:
where bγk=(k+1)1−γ−k1−γandΔt=tf−0N, and tf=n(Δt),n=0,1,…N,whereN represents a positive integer. Now, we recall the following lemma.
Lemma 1: Suppose that 0<γ<1andbγk=(k+1)1−γ−k1−γ,k=0,1,…;then,1=bγ0>bγ1>⋯>bγk→0,ask→∞ [46].
Then, we can we write the parameter σ⋅m as follows:
while the parameter σ by the Crank-Nicolson scheme, is as follows:
Substitution both parameters above into (18), we obtain the (M+2)×(M+3) matrix system:
where σ=(σm−2+σm−1+σm+σm+1+σm+1+σm+2+σm+3)T; to make the matrix equation be square, we need to find an additional constraint of BC (2) and their second derivatives and we obtain discard σ−1 from system (20) as follows:
the variables σn−1 and σnM+1 can be ignored from system (20) and then the system can be converted to an (M+1)×(M+1) matrix system. The initial vector of parameter σ0=(σ00,σ01,…,σ0M) should be obtained to iterate system (20); the approximation of (6) has been reformulated on the interval [a,b] when time t=0 as follows:
where U(x,0) fulfills the following equation at node xm:
Therefore, we can obtain the following system:
and we solve this identity matrix by applying the Jain algorithm [47].
3.
Stability analysis
This section adopts the von Neumann stability analysis to investigate the stability of approximation obtained by scheme (20). First, we introduce the recurrence relationship between successive time levels relating unknown element parameters σn+1m(t), as follows:
where
and α=(Δt)−γΓ(2−γ).
The growth factor of the typical Fourier mode is defined as
where, i=√−1,β is a mode number and h is the element size. Substitution of (22) into (21) yields
let and assume that is independent of time, therefore, we can write as follows:
where
Obviously note that . Therefore, according to the Fourier condition, the scheme (20) is unconditionally stable.
4.
Numerical results
This section introduces two numerical examples, which highlight numerical results for the TFBE with different IC and BCs given by the CBSGM with quadratic weight function. In this section, we use the and to calculate the accuracy of the CBSGM with a quadratic weight function, which has been employed in this study; we will also show how the analytical results and the numerical results are close to each other. To do this, first we will find the exact solutions to the problem (1) by applying the following problems; then, we compare the results with the numerical solution obtained from the given method. To this aim, the and error norms are respectively defined as [48]
where and represent the exact solution and numerical solution, respectively.
Example 1: Let us consider the TFBE (1) with the BCs
and IC
such that the forcing term is achieved as [45]
where the analytic solution is obtained as
Numerical results are reported in Tables 1–3 and Figure 1. Table 1 lists the numerical solutions and the and error norms with for various numbers of partitions As seen in Table 1, we notice that when the number of partitions M are increased, the and error norms will decrease considerably. Table 2 displays the numerical solutions with for various values of In view of Table 2, we can see that when decreases, the and error norms decrease, as was expected. Table 3 shows the numerical solutions with for various values of . As observed in Table 3, the and error norms decrease when γ increases. A comparison between the results of our proposed strategy and two other methods is demonstrated in detail, the researchers of which relied on their work on a weight function corresponding to the spline function in terms of degree; see [44,45]. Figure 1 represents the surfaces of the exact and numerical solutions of the TFBE in Example (1).
Example 2: Finally, we consider the TFBE (1) with the BCs
and IC
where the source term can be obtained as [44]
The exact solution is
Numerical results are represented in Tables 4 and 5 and Figure 2. Tables 4 and 5 report the numerical solutions for various numbers of partitions and values of . As seen in Tables 4 and 5, when the number of partitions M increased, the error norms and will decrease considerably, while, in Table 5, we can see that when ∆t decrease, the error norms and decrease. Figure 2 demonstrates the surfaces of the exact and numerical solutions of the TFBE in Example (2).
5.
Conclusions
This paper presented a numerical approach based on the CBSGM with a quadratic weight function for the TFBE including the time Caputo derivative. Numerical results have shown that the proposed method is an appropriate and efficient scheme for solving such problems.
Conflict of interest
The authors declare no conflict of interest.