Skip to main content

ORIGINAL RESEARCH article

Front. Phys., 23 January 2020
Sec. Statistical and Computational Physics
Volume 7 - 2019 | https://doi.org/10.3389/fphy.2019.00240

Jacobi Spectral Galerkin Method for Distributed-Order Fractional Rayleigh–Stokes Problem for a Generalized Second Grade Fluid

  • 1Department of Mathematics, Faculty of Education, Matrouh University, Matrouh, Egypt
  • 2Department of Applied Mathematics, National Research Centre, Giza, Egypt
  • 3Department of Mathematics and Statistics, College of Science, Imam Mohammad Ibn Saud Islamic University, Riyadh, Saudi Arabia
  • 4Department of Mathematics, Faculty of Science, Beni-Suef University, Beni-Suef, Egypt

Distributed-order fractional differential operators provide a powerful tool for mathematical modeling of multiscale multiphysics processes, where the differential orders are distributed over a range of values rather than being just a fixed fraction. In this work, we consider the Rayleigh-Stokes problem for a generalized second-grade fluid which involves the distributed-order fractional derivative in time. We develop a spectral Galerkin method for this model by employing Jacobi polynomials as temporal and spatial basis/test functions. The suggested approach is based on a novel distributed order fractional differentiation matrix for Jacobi polynomials. Numerical results for one- and two-dimensional examples are presented illustrating the performance of the algorithm. The results show that our scheme can achieve the spectral accuracy for the problem under consideration with smooth solution and allows a great flexibility to deal with multi-dimensional temporally-distributed order fractional Rayleigh-Stokes problems as the global behavior of the solution is taken into account.

1. Introduction

Let Λ ⊂ ℝd (d = 1, 2) be a bounded convex domain with a polygonal boundary ∂Λ, and T>0 be a fixed time. The purpose of this paper is to extend the approach in Hafez and Zaky [1] to the distributed-order time-fractional Rayleigh-Stokes problem for a generalized second-grade fluid in one and two space dimensions. The mathematical model is given by

tU(x,t)-(1+0Dtw(ν))ΔU(x,t)=H(x,t),  xΛ, t(0,T],    (1)

with initial-boundary conditions:

U(x,0)=f(x),  xΛ,    (2)
U(x,t)|xΛ=g(x,t),  t(0,T],    (3)

where Δ is the Laplacian operator, ∂Λ is the boundary of Λ, H(x, t), f(x), and g(x, t) are given smooth functions on Λ. The distributed-order fractional derivative 0Dtw(ν) is defined by

 0Dtw(ν)U(x,t)=01w(ν)0CDt1νU(x,t)dν,    (4)

where w(ν) is a non-negative smooth weight function satisfying the conditions

w(ν)0, w(ν)0, 01w(ν)dν<,0CDtνU(x,t)=1Γ(1 -ν)0t(t-ξ)-νU(x,ξ)ξdξ, 0<ν<1.    (5)

The fractional-order derivatives appearing in (4) is defined in the Caputo sense. Unlike Riemann-Liouville derivatives, Caputo derivatives are not singular on the domain boundaries. That feature makes them particularly appealing for non-local numerical methods, like the spectral methods. Zhang et al. [2] have also confirmed that Riemann-Liouville derivatives could cause mass-balance errors on bounded domains. The time derivative is thus defined in the Caputo sense.

Recently, the fractional-order Rayleigh-Stokes problem has received considerable attention in recent years. This model plays an important role in describing the behavior of some non-Newtonian fluids [3, 4]. In order to gain insights into the behavior of the solution of this model, there has been substantial interest in deriving a closed form solution for the special case w(ν) = δ(ν − 1 + β), where δ(·) is the Dirac delta function and β ∈ (0, 1). For example, Shen et al. [4] derived exact solutions of this model using the Fourier transform and the fractional Laplace transform. Girault and Saadouni [5] analyzed the existence and uniqueness of a weak solution of a closely related time-dependent grade-two fluid model. Zhao and Yang [6] obtained exact solutions using the eigenfunction expansion. Xue and Nie [7] obtained also closed form solutions of this model in a porous half-space using both Fourier and fractional Laplace transforms. The exact solutions obtained in these studies involve infinite series and special functions, e.g., generalized Mittag-Leffler functions, and thus are inconvenient for numerical evaluation. Further, closed-form solutions are available only for a restricted class of problem settings. Hence, it is imperative to develop efficient and optimally accurate numerical algorithms for problem (1). Wu [8] developed an implicit numerical scheme by transforming the above mentioned problem into an integral equation. Lin and Jiang [9] introduced a numerical sachem based on the reproducing kernel space. Mohebbi et al. [10] compared a fourth-order compact scheme with radial basis functions meshless approach. Recently, Bazhlekova et al. [11] developed two fully discrete schemes based on the backward difference method and backward Euler method and a semidiscrete scheme based on the Galerkin finite element method. Abdelkawy and Alqahtani [12] proposed spectral collocation techniques for solving fractional Stokes' first problem for a heated generalized second grade fluid. Bhrawy et al. [13] developed two shifted Jacobi-Gauss collocation schemes. More recently, Dehghan and Abbaszadeh [14] developed a finite element method for two-dimensional fractional Rayleigh–Stokes model on complex geometries. Shivanian and Jafarabadi [15] developed a spectral meshless radial point nterpolation technique. Zaky [16] develop efficient algorithms based on the Legendre-tau approximation for one- and two-dimensional fractional Rayleigh–Stokes problems for a generalized second-grade fluid. Yang and Jiang [17] proposed a numerical algorithm based on the L1 finite difference scheme for the temporal direction while the Legendre spectral method for the spatial direction.

Theoretical studies on numerical methods for fractional differential equations involving distributed-order derivatives have received considerable attention in the last decade [1820]. A general form of distributed-order fractional ordinary differential equation is solved in Katsikadelis [21], Mashayekhi and Razzaghi [22], and Zaky et al. [23]. Numerical methods for solving distributed-order time-fractional diffusion equations are presented in Morgado and Rebelo [24], Abdelkawy et al. [25], and Zaky and Machado [26]. Numerical methods for distributed-order space-fractional diffusion equations are provided in Abbaszadeh [27], Kazmi and Khaliq [28], and Fan and Liu [29]. Numerical methods for multi-dimensional distributed-order generalized Schrödinger equations are provided in Bhrawy and Zaky [30]. For numerical methods for solving distributed-order fractional optimal control problems, see [31, 32]. In this paper, we use a non-local representation of the solution of the distributed-order time-fractional Rayleigh-Stokes problem to introduce spectral solutions. The spectral and pseudospectral methods are well-known for their high accuracy and have been used extensively in scientific computation, see [3341] and the references therein. The main contribution of this paper is to develop Jacobi-Galerkin algorithms for solving the multidimensional distributed-order time-fractional Rayleigh-Stokes problem (1).

The outline of this work is as follows. In section 2, we introduce the distributed-order fractional differentiation matrix of the shifted Jacobi polynomials. In section 3, we derive a time-space discretization for the one-dimensional distributed-order fractional Rayleigh–Stokes problem. In section 4, we consider the numerical solution of the two-dimensional case. In section 5, we present various numerical results exhibiting the efficiency of our numerical schemes. We end this paper with a few concluding remarks in section 6.

2. Distribute-Order Fractional Differentiation Matrix

In this section, we first introduce some basic properties of Jacobi polynomials. Then, we construct the operational matrix of distributed-order fractional derivative for the Jacobi polynomials. The Jacobi polynomials Ji(γ,η)(z); γ>-1, η>-1, z(-1,1) are defined by the following three term recurrence relation:

Ji+1(γ,η)(z)=(R~iz-B~i)Ji(γ,η)(z)-C~iJi-1(γ,η)(z),  i1,

with

J0(γ,η)(z)=1,J1(γ,η)(z)=12(η+γ+2)z+12(-η+γ),

where

R~i= (γ+η+2i+1)(γ+2i+η+2)2(1+i)(γ+i+η+1),B~i= (γ+η+2i+1)(η2-γ2)2(1+i)(γ+i+η+1)(γ+2i+η),C~i= (γ+η+2i+2)(γ+i)(i+η)(1+i)(γ+i+η+1)(γ+2i+η).

Using the linear map z=2xL-1, the interval [−1, 1] can be rescaled onto [0, L]. Hence, the set of shifted Jacobi polynomials JL,i(γ,η)(x); x[0,L] can be generated by:

 JL,i+1(γ,η)(x)=(E~ix-K~i)JL,i(γ,η)(x)-C~iJL,i-1(γ,η)(x), i1,

where

E~i= (γ+2i+η+1)(2+γ+2i+η)L(1+i)(1+i+γ+η),K~i= (γ+2i+η+1)(2i2+(η+1)(γ+η)+2i(γ+1+η))(1+i)(1+i+γ+η)(γ+2i+η).

The terminal values of the shifted Jacobi polynomials satisfy

JL,i(γ,η)(0)=(-1)iΓ(1+i+η)Γ(1+η)i!,  JL,i(γ,η)(L)=Γ(1+i+γ)Γ(1+γ)i!,    (6)

The JL,j(γ,η)(x) satisfies the following orthogonality relation

0LJL,j(γ,η)(x)JL,i(γ,η)(x)wL(γ,η)(x)dx=δjihL,i(γ,η),    (7)

where wL(γ,η)(x)=xη(L-x)γ is the weight function, and

hL,i(γ,η)=L1+γ+ηΓ(i+1+γ)Γ(i+1+η)(2i+1+γ+η)i!Γ(i+1+γ+η).    (8)

The following Jacobi-Gauss quadrature rule is commonly used to approximate the previous integrals

0Lφ(x)wL(γ,η)(x)dx=i=0NϖG,L,i(γ,η)φ(xG,L,i(γ,η)), φP2N+1(Λ),    (9)

where PN(Λ) is any sequence of polynomials of degree not exceeding N, ϖG,L,i(γ,η) and xG,L,i(γ,η) (0iN) are the shifted Jacobi Gauss wights and nodes in Λ, respectively.

For the shifted Jacobi-Gauss: The weights are given by

ϖG,L,i(γ,η)=CL,N(γ,η)(L-xG,L,i(γ,η))xG,L,i(γ,η)[xJN+1(γ,η)(xG,L,i(γ,η))]2,0iN,    (10)

where

CL,N(γ,η)=Lγ+η+1Γ(N+γ+2)Γ(N+η+2)(N+1)!Γ(N+γ+η+2),

and the nodes xG,L,i(γ,η) (0iN) are the zeros of JL,N+1(γ,η)(x).

Lemma 2.1. (see [42]) The q times differentiation of the Jacobi polynomials JL,j(γ,η)(x) are given by

DqJL,j(γ,η)(x)=i=0j-qAq(j,i,γ,η)JL,i(γ,η)(x),  q+,    (11)

where

Aq(j,i,γ,η)=(λ+j)q(j+q+λ)i(q+1+i+γ)jiq Γ(i+λ)Lq(jqi)! Γ(λ+2i)                         ×3F2(q+ij,i+q+λ+j,1+i+γ;1q+i+1+γ,2i+1+λ),    (12)

where (·)i is the Pochhammer symbol, λ = γ + η + 1, and 3F2 is the generalized hypergeometric function.

Lemma 2.2. (see [43]) The Caputo fractional derivative of order ν ∈ (0, 1) of the shifted Jacobi polynomials is given by

D0C xνJL,i(γ,η)(x)j=0NG(i,j,γ,η,ν)JL,j(γ,η)(x), i=1,,N,    (13)

where G(i,j,γ,η,ν)=k=1iθijk, and

θijk=(-1)i-k Lγ+η-ν+1 Γ(1+j+η)Γ(1+i+η) Γ(1+k+γ+i+η) hL,j(γ,η) Γ(η+j+γ+1) Γ(η+k+1) (i-k)!Γ(η+i+γ+1) Γ(k+1-ν)          ×=0j (-1)j-Γ(j++1+γ+η) Γ(1+γ)Γ(+k-ν+γ++1) Γ(+1+η) ()! (j-)!Γ(+2+γ+k-ν+).    (14)

Lemma 2.3. Let xG,L,r(0,0) and ϖG,L,r(0,0) (0rN) be the set of nodes and the weights of the Legendre-Gauss quadrature formula given in (10). Then, the distributed-order fractional derivative of the shifted Jacobi polynomials is given by

 0Dtw(ν)JL,i(γ,η)(x)j=0NA^ω(i,j,γ,η)JL,j(γ,η)(x), i=1,,N,    (15)

where

A^ω(i,j,γ,η)=r=0Nω(xG,L,r(0,0))ϖG,L,r(0,0)G(i,j,γ,η,1-xG,L,r(0,0)).

3. One-Dimensional Case

We consider the following one-dimensional distributed-order fractional Rayleigh–Stokes problem:

tU(x,t)-(1+0Dtw(ν))x2U(x,t)=H(x,t), (x,t)Ω:=Λ×I,    (16)
U(x,0)=0,U(0,t)=U(L,t)=0.    (17)

Let PN(Λ) and PM(I) denote the set of polynomials of degree N in space and M in time, respectively. Since we have the homogeneous initial and boundary conditions, we choose appropriate basis for the space ansatz from

PNs(Λ)={UPN(Λ)|U(0)=U(L)=0},    (18)

as well as for time

PMt(I)={UPM(I)|U(0)=0}.    (19)

For the sake of clarity, we define the multiindex L = (N, M) and

WL:=PMt(I)PNs(Λ),SL:=PM(I)PN(Λ).    (20)

To simplify the notation, we introduce the following integral operators for the Jacobi–Galerkin spectral formulation:

·0L0L0T· wL(γ,η)(x) wL(γ,η)(y) wT(γ,η)(t) dx dy dt,       ·0L0T· wL(γ,η)(x) wT(γ,η)(t) dx dt,             ·x0L· wL(γ,η)(x) dx,             ·t0T· wT(γ,η)(t) dt.    (21)

The spectral-Galerkin approximation of the solution UWL is given by

U(x,t)U^(x,t)=i=0N-2j=0M-1θL,i(γ,η)(x)UijϑT,j(γ,η)(t),    (22)

where θL,i(γ,η)(x)PNs(Λ), ϑT,j(γ,η)(t)PMt(I), and Uij are the unknown coefficients. The key idea behind the Galerkin approximation is to fined U^WL such that

Y^tU^-Y^0Dtw(ν)(x2U^)-Y^x2U^=HY^, Y^WL.    (23)

The actual linear system for (23) depends on the choice of basis functions of WL. We shall construct below suitable spectral basis functions θL,i(γ,η)(x) and ϑT,j(γ,η)(t) of WL. Therefore, we construct basis functions using compact combinations of the Jacobi polynomials. In this case, we define

θL,i(γ,η)(x)=JL,i(γ,η)(x)+κiJL,i+1(γ,η)(x)+λiJL,i+2(γ,η)(x),ϑT,j(γ,η)(t)=JT,j(γ,η)(t)+μjJT,j+1(γ,η)(t),    (24)

where the parameters μj, κi and λi are chosen to satisfy the boundary conditions in (17). Such basis functions are referred to as modal basis functions. (11).

Lemma 3.1. (see [1]) For all i, j ≥ 0, there exists a unique set of {κi, λi, μj} such that

θL,i(γ,η)(x)=JL,i(γ,η)(x)+κiJL,i+1(γ,η)(x)+λiJL,i+2(γ,η)(x),ϑT,j(γ,η)(t)=JT,j(γ,η)(t)+μjJT,j+1(γ,η)(t),    (25)

verify the boundary conditions in (17).

The set of basis functions θL,i(γ,η)(x)PN+2s(Λ) and ϑT,j(γ,η)(t)PM+1t(I) are linearly independent. Hence, by dimension argument, we obtain

PMt(I)=span{ϑT,j(γ,η)(t):j=0, 1, 2,, M-1},PNs(Λ)=span{θL,i(γ,η)(x):i=0, 1, 2,, N-2}.    (26)

It is clear that the Galerkin formulation of (23) is equivalent to following discrete discretization

θL,i(γ,η)(x)tU^(x,t)ϑT,j(γ,η)(t)-θL,i(γ,η)(x)0Dtw(ν)(x2U^(x,t))ϑT,j(γ,η)(t) -θL,i(γ,η)(x)x2U^(x,t)ϑT,j(γ,η)(t)=θL,i(γ,η)(x)H(x,t)ϑT,j(γ,η)(t),    (27)

for 0 ≤ jM − 1 and 0 ≤ iN − 2. Throughout this paper, we assume that the indices j and s vary between 0 and M − 1 and that the indices i and r vary between 0 and N − 2. Moreover, we assume that repeated indices are summed over. Thus, the matrix form of (27) becomes

θL,i(γ,η)θL,r(γ,η)xUijdϑT,j(γ,η)dtϑT,s(γ,η)tθL,i(γ,η)d2θL,r(γ,η)dx2xUij 0Dtw(ν)ϑT,j(γ,η)ϑT,s(γ,η)t    (28)θL,i(γ,η)d2θL,r(γ,η)dx2xUijϑT,j(γ,η)ϑT,s(γ,η)t=θL,i(γ,η)(x)H(x,t)ϑT,j(γ,η)(t).

Let us denote

U=(Uij), H=(Hij), A=(Air), B=(Bir), C=(Cjs), Dω=(Djsω), E=(Ejs), H=(Hjs),

where H is the matrix whose entries are Hij=θL,i(γ,η)(x)H(x,t)ϑT,j(γ,η)(t), U is the matrix of unknown coefficients, and the non-zero elements of the matrices A, B, C, Dω and E are given explicitly by Theorem 0.0.5. The previous integrals can be computed using the Jacobi-Gauss quadrature rule (9). The discretization of the distributed-order fractional Rayleigh–Stokes problem (16) is equivalent to the following matrix equation

AUC-BUDω-BUE=H.    (29)

In order to be able to solve (29), we shall recast it in a more convenient form. To do so, we make use of the Kronecker product (represented by ⊗). If we consider the matrices H ∈ ℝn,m and G ∈ ℝq,p, then the Kronecker product of H and G is defined as follows

HG=(h11Gh12Gh1mGh21Gh22Gh2mGhn1Ghn2GhnmG)nq,mp.

Let hin denote the columns of H ∈ ℝn,m so that H = [h1, …, hm]. Then vec(H) is defined to be the nm-vector formed by stacking the columns of H on top of one another, i.e.,

vec(H)=[h1hm]hm  nm

The Kronecker product has the useful property that for any three matrices H, G and H for which the matrix product is defined, we have:

vec(HGF)=(FTH)vec(G),

where T denotes the transpose. Equation (29) can finally be expressed in matrix form as follows:

(CTA-DωTB-ETB)vec(U)=vec(H).    (30)

Theorem 3.2. Let

Air=θL,i(γ,η)θL,r(γ,η)x,Bir=θL,i(γ,η)d2θL,r(γ,η)dx2x,Cjs=dϑT,j(γ,η)dt ϑT,s(γ,η)t,Djsω= 0Dtw(ν)ϑT,j(γ,η)ϑT,s(γ,η)t,    (31)Ejs=ϑT,j(γ,η)ϑT,s(γ,η)t.

Then the non-zero elements Air, Bir, Cjs, Djsω, and Ejs are given by

Aii=hL,i(γ,η)+κi2hL,i+1(γ,η)+λi2hL,i+2(γ,η),Ai+1,i=Ai,i+1=κihL,i+1(γ,η)+λiκi+1hL,i+2(γ,η),    (32)Ai+2,i=Ai,i+2=λihL,i+2(γ,η),
Bii=λiA2(i+2,i,γ,η)hL,i(γ,η),Bir=O2(r,i,γ,η)hL,i(γ,η)+O2(r,i+1,γ,η)κihL,i+1(γ,η)    (33)         +O2(r,i+2,γ,η)λihL,i+2(γ,η),r=i+n,n1,
Cjj=μjA1(j+1,j,γ,η)hT,j(γ,η),Cjs=χ1(s,j,γ,η)hT,j(γ,η)+χ1(s,j+1,γ,η)μjhT,j+1(γ,η),    (34)         s=j+n,n1,
Djsω=(A^ω(s,j,γ,η)+μsA^ω(s+1,j,γ,η))hT,j(γ,η)         +μj(A^ω(s,j+1,γ,η)+μsA^ω(s+1,j+1,γ,η))hT,j+1(γ,η),    (35)
Ejj=hT,j(γ,η)+μj2hT,j+1(γ,η),    (36)Ej+1,j=Ej,j+1=μjhT,j+1(γ,η),

where

Oσ(r,i,γ,η)=Aσ(r,i,γ,η)+κrAσ(r+1,i,γ,η)                             +λrAσ(r+2,i,γ,η),    (37)
χσ(s,j,γ,η)=Aσ(s,j,γ,η)+μsAσ(s+1,j,γ,η),    (38)

and hL,i(γ,η) is given by (8).

Proof. We shall only determine the non-zero elements of A as the proof for the non-zero entries of the other matrices can easily be obtained similarly. From (25), we have

Air=θL,i(γ,η)θL,r(γ,η)x        =(JL,i(γ,η)(x)+κiJL,i+1(γ,η)(x)        +λiJL,i+2(γ,η)(x))(JL,r(γ,η)(x)+κrJL,r+1(γ,η)(x)+λrJL,r+2(γ,η)(x))x.    (39)

Using the orthogonality relation (7), we obtain

    Aii=hL,i(γ,η)+κi2hL,i+1(γ,η)+λi2hL,i+2(γ,η),Ai+1,i=Ai,i+1=κihL,i+1(γ,η)+λiκi+1hL,i+2(γ,η),    (40)Ai+2,i=Ai,i+2=λihL,i+2(γ,η).

In particular, the special cases for the shifted Legendre basis can be obtained directly by taking γ = η = 0, and for the shifted Chebyshev basis of the first and second kinds can be obtained directly by taking γ=η=-12 and γ=η=12, respectively.

Using a proper transformation the problems with non-homogeneous initial-boundary conditions can be transformed into problems with homogeneous initial-boundary conditions. Let

U(x,t)=Ue(x,t)+Ũ(x,t),    (41)

where Ũ is an unknown function satisfying the modified problem

tŨ(x,t)-(1+0Dtw(ν))x2Ũ(x,t)=H*(x,t), (x,t)Ω,    (42)

with the homogeneous initial and boundary conditions

Ũ(x,0)=0, x[0,L],Ũ(0,t)=Ũ(L,t)=0, t[0,T],    (43)

where

H*(x,t)=H(x,t)-tUe(x,t)+(1+0Dtw(ν))x2Ue(x,t),    (44)

while Ue(x, t) is an arbitrary function satisfying the original non-homogeneous boundary conditions.

4. Two-Dimensional Case

In this section, we consider the following two-dimensional distributed-order fractional Rayleigh–Stokes problem:

tU-(1+0Dtw(ν))(x2U+y2U)=H(x,y,t), (x,y,t)Λ2×I,    (45)

with homogeneous initial and boundary conditions, where Λ2 = Λ × Λ. The two-dimensional Galerkin approximation can be written as

U(x,y,t)U^(x,y,t)=i=0N-2i=0N-2j=0M-1θL,i(γ,η)(x)θL,i(γ,η)(y)U^iijϑT,j(γ,η)(t).    (46)

Then the spectral Jacobi–Galerkin scheme (28) in the two-dimensional case can be expressed in the following form

θL,i(γ,η)θL,r(γ,η)xθL,i(γ,η)θL,r(γ,η)yU^iijdϑT,j(γ,η)dtϑT,s(γ,η)t                  θL,i(γ,η)d2θL,r(γ,η)dx2xθL,i(γ,η)θL,r(γ,η)yU^iij 0Dtw(ν)ϑT,j(γ,η)ϑT,s(γ,η)t                  θL,i(γ,η)θL,r(γ,η)xθL,i(γ,η)d2θL,r(γ,η)dy2yU^iij 0Dtw(ν)ϑT,j(γ,η)ϑT,s(γ,η)t                  θL,i(γ,η)d2θL,r(γ,η)dx2xθL,i(γ,η)θL,r(γ,η)yU^iijϑT,j(γ,η)ϑT,s(γ,η)t                  θL,i(γ,η)θL,r(γ,η)xθL,i(γ,η)d2θL,r(γ,η)dy2yU^iijϑT,j(γ,η)ϑT,s(γ,η)t                  =θL,i(γ,η)(x)θL,i(γ,η)(y)H(x,y,t)ϑT,j(γ,η)(t).    (47)

Let us denote

U^=[U¯0,U¯1,,U¯M-1],U¯i=[U¯i,0,U¯i,1,,U¯i,N-2]T,    (48)U¯i,i=[U^i,i,0,U^i,i,1,,U^i,i,N-2]T,

and

H^=[H¯0,H¯1,,H¯M-1],H¯i=[H¯i,0,H¯i,1,,H¯i,N-2]T,    (49)H¯i,i=[H^i,i,0,H^i,i,1,,H^i,i,N-2]T,

where H^ is the matrix whose entries are Hiij=θL,i(γ,η)(x)θL,i(γ,η)(y)H(x,y,t)ϑT,j(γ,η)(t) and U^ is the matrix of unknown coefficients. The Jacobi–Galerkin discretization (47) is equivalent to the following matrix equation

(AA)U^C-(BA)U^Dω-(AB)U^Dω-(BA)U^E                       -(AB)U^E=H^.    (50)

For computational convenience, we recast Equation (50) using the Kronecker product in the following matrix form

(CTAADωTBADωTABETBAETAB)vec(U^)=vec(H^).    (51)

Using a suitable iterative method the above linear system can be solved to obtain the numerical solution (46). In our implementation, the Mathematica function FindRoot with zero initial approximation has been used to solve this system.

5. Numerical Results and Comparisons

In this section, we present numerical results to verify the efficiency of the spectral Galerkin algorithms. We consider one-and two-dimensional examples with smooth and non-smooth solutions. All computations are carried out using Mathematica version 12.

Example 5.1. We test the next problem:

U(x,t)t=(1+0Dtw(ν))2U(x,t)x2+g(x,t).    (52)

The initial condition, the boundary conditions and the function g(x, t) are selected such as the continuous problem has an exact non-smooth solution in time direction U(x,t) = extκ+2.

Here, we consider the following three cases:

• Case I: ω(ν) = δ(ν − 1 + α), α ∈ (0, 1), κ = 1.

• Case II: ω(ν) = δ(ν − 1 + α), α = κ ∈ (0, 1).

• Case III: ω(ν) = Γ(2 + κ + ν), κ = 0.5, 1.5, 2.

In Tables 1, 2, we compare the L-errors of the present method with the compact finite difference approximation (CFDA) [44], implicit numerical approximation scheme (INAS) [8] and reproducing kernel method (RKM) [9]. We see in these tables that the results are accurate for even small choices of N and M. These results are in perfect agreement with what was expected for a spectral method. Also, this result indicates that the Jacobi–Galerkin method can converge reasonably well for problem (52) with non-smooth data. In Table 3, we list 1the L-errors of the present method for case III.

TABLE 1
www.frontiersin.org

Table 1. Case I: The L-error for Example 5.1.

TABLE 2
www.frontiersin.org

Table 2. Case II: The L-error for example 5.1.

TABLE 3
www.frontiersin.org

Table 3. Case III: The L- errors for Example 5.1 vs. κ with γ = η = 0.

Example 5.2. Consider the following two-dimensional problem:

U(x,y,t)t=(1+0Dtw(ν))(2U(x,y,t)x2+2U(x,y,t)y2)    (53)                     +H(x,y,t),

The initial condition, the boundary conditions and the right side function H are selected such as the continuous problem has an exact non-smooth solution in time direction U(x, y, t) = ex+ytα+1.

The space-time graphs of the absolute error functions with ω(ν) = Γ(1 + α + ν) at different values of t = 0.25, 0.5, 0.75, 1 with γ = −η = 1/2 and N = M = K = 8 are displayed in Figure 1. A comparison between the results obtained by the Jacobi–Galerkin method with the corresponding results obtained by the explicit numerical approximation scheme (ENAS) [45], the Implicit numerical approximation scheme (INAS) [45] and the compact finite difference approximation (CFDA) [10] are displayed in Tables 4, 5, respectively.

FIGURE 1
www.frontiersin.org

Figure 1. The space-time graphs of the absolute error functions for Example 0.0.2 at various choices of t with γ = −η = 1/2, N = M = K = 8 and ω(ν) = Γ(1+α+ν), α = 0.5.

TABLE 4
www.frontiersin.org

Table 4. The L- errors for Example 5.2 with ω(ν) = δ(ν−1+α).

TABLE 5
www.frontiersin.org

Table 5. The L- errors for Example 5.2 with ω(ν) = δ(ν − 1 + α).

6. Conclusion

We have presented a Galerkin technique for solving the distributed-order time-fractional Rayleigh-Stokes problem for a generalized second-grade fluid with Jacobi polynomials that is efficient, adaptable to different operators, and easily generalizes to multiple dimensions. By expanding the model solution in terms of Jacobi polynomials in both time and space, we were able to derive adaptable schemes those easily accommodate the distributed fractional-order differential operator. All the calculations can be performed numerically with reasonable accuracy and with relatively small number of degrees of freedom. It should be pointed out that the proposed method to discretize the model equation could also accommodate other numerical methods. For instance, if the model solution is not smooth in time, the order of convergence of the spectral Galerkin schemes may be deteriorated. That could be prevented by simply replacing the Jacobi basis functions in time by fractional order Jacobi functions or using smoothing transformations and deriving the corresponding mass and diffusion matrices by following the same procedure as we described in this study.

Data Availability Statement

All datasets generated for this study are included in the article/supplementary material.

Author Contributions

All authors listed have made a substantial, direct and intellectual contribution to the work, and approved it for publication.

Conflict of Interest

The authors declare that the research was conducted in the absence of any commercial or financial relationships that could be construed as a potential conflict of interest.

References

1. Hafez RM, Zaky MA. High-order continuous Galerkin methods for multi-dimensional advection–reaction–diffusion problems. Eng Comput. (2019) 1–17. doi: 10.1007/s00366-019-00797-y

CrossRef Full Text | Google Scholar

2. Zhang X, Lv M, Crawford JW, Young IM. The impact of boundary on the fractional advection–dispersion equation for solute transport in soil: Defining the fractional dispersive flux with the Caputo derivatives. Adv Water Resour. (2007) 30:1205–17. doi: 10.1016/j.advwatres.2006.11.002

CrossRef Full Text | Google Scholar

3. Fetecau C, Jamil M, Fetecau C, Vieru D. The Rayleigh–Stokes problem for an edge in a generalized Oldroyd-B fluid. Z Angew Mathematik Physik. (2009) 60:921–33. doi: 10.1007/s00033-008-8055-5

CrossRef Full Text | Google Scholar

4. Shen F, Tan W, Zhao Y, Masuoka T. The Rayleigh–Stokes problem for a heated generalized second grade fluid with fractional derivative model. Nonlinear Anal Real World Appl. (2006) 7:1072–80. doi: 10.1016/j.nonrwa.2005.09.007

CrossRef Full Text | Google Scholar

5. Girault V, Saadouni M. On a time-dependent grade-two fluid model in two dimensions. Comput Math Appl. (2007) 53:347–60. doi: 10.1016/j.camwa.2006.02.048

CrossRef Full Text | Google Scholar

6. Zhao C, Yang C. Exact solutions for electro-osmotic flow of viscoelastic fluids in rectangular micro-channels. Appl Math Comput. (2009) 211:502–9. doi: 10.1016/j.amc.2009.01.068

CrossRef Full Text | Google Scholar

7. Xue C, Nie J. Exact solutions of the Rayleigh–Stokes problem for a heated generalized second grade fluid in a porous half-space. Appl Math Modell. (2009) 33:524–31. doi: 10.1016/j.apm.2007.11.015

CrossRef Full Text | Google Scholar

8. Wu C. Numerical solution for Stokes' first problem for a heated generalized second grade fluid with fractional derivative. Appl Num Math. (2009) 59:2571–83. doi: 10.1016/j.apnum.2009.05.009

CrossRef Full Text | Google Scholar

9. Lin Y, Jiang W. Numerical method for Stokes' first problem for a heated generalized second grade fluid with fractional derivative. Num Methods Partial Diff Equ. (2011) 27:1599–609. doi: 10.1002/num.20598

CrossRef Full Text | Google Scholar

10. Mohebbi A, Abbaszadeh M, Dehghan M. Compact finite difference scheme and RBF meshless approach for solving 2D Rayleigh–Stokes problem for a heated generalized second grade fluid with fractional derivatives. Comput Methods Appl Mech Eng. (2013) 264:163–77. doi: 10.1016/j.cma.2013.05.012

CrossRef Full Text | Google Scholar

11. Bazhlekova E, Jin B, Lazarov R, Zhou Z. An analysis of the Rayleigh–Stokes problem for a generalized second-grade fluid. Numerische Mathematik. (2015) 131:1–31. doi: 10.1007/s00211-014-0685-2

PubMed Abstract | CrossRef Full Text | Google Scholar

12. Abdelkawy MA, Alqahtani RT. Shifted Jacobi collocation method for solving multi-dimensional fractional Stokes' first problem for a heated generalized second grade fluid. Adv Diff Equ. (2016) 2016:114. doi: 10.1186/s13662-016-0845-z

CrossRef Full Text | Google Scholar

13. Bhrawy AH, Zaky MA, Alzaidy JF. Two shifted Jacobi-Gauss collocation schemes for solving two-dimensional variable-order fractional Rayleigh-Stokes problem. Adv Diff Equ. (2016) 2016:272. doi: 10.1186/s13662-016-0998-9

CrossRef Full Text | Google Scholar

14. Dehghan M, Abbaszadeh M. A finite element method for the numerical solution of Rayleigh–Stokes problem for a heated generalized second grade fluid with fractional derivatives. Eng Comput. (2017) 33:587–605. doi: 10.1007/s00366-016-0491-9

CrossRef Full Text | Google Scholar

15. Shivanian E, Jafarabadi A. Rayleigh–Stokes problem for a heated generalized second grade fluid with fractional derivatives: a stable scheme based on spectral meshless radial point interpolation. Eng Comput. (2018) 34:77–90. doi: 10.1007/s00366-017-0522-1

CrossRef Full Text | Google Scholar

16. Zaky MA. An improved tau method for the multi-dimensional fractional Rayleigh–Stokes problem for a heated generalized second grade fluid. Comput Math Appl. (2018) 75:2243–58. doi: 10.1016/j.camwa.2017.12.004

CrossRef Full Text | Google Scholar

17. Yang X, Jiang X. Numerical algorithm for two dimensional fractional Stokes' first problem for a heated generalized second grade fluid with smooth and non-smooth solution. Comput Math Appl. (2019) 78:1562–71. doi: 10.1016/j.camwa.2019.03.029

CrossRef Full Text | Google Scholar

18. Odibat Z, Baleanu D. A linearization-based approach of homotopy analysis method for non-linear time-fractional parabolic PDEs. Math Methods Appl Sci. (2019) 42:7222–32. doi: 10.1002/mma.5829

CrossRef Full Text | Google Scholar

19. Singh J, Kumar D, Baleanu D, Rathore S. On the local fractional wave equation in fractal strings. Math Methods Appl Sci. (2019) 42:1588–95. doi: 10.1002/mma.5458

CrossRef Full Text | Google Scholar

20. Kumar D, Singh J, Tanwar K, Baleanu D. A new fractional exothermic reactions model having constant heat source in porous media with power, exponential and Mittag-Leffler laws. Int J Heat Mass Transfer. (2019) 138:1222–7. doi: 10.1016/j.ijheatmasstransfer.2019.04.094

CrossRef Full Text | Google Scholar

21. Katsikadelis JT. Numerical solution of distributed order fractional differential equations. J Comput Phys. (2014) 259:11–22. doi: 10.1016/j.jcp.2013.11.013

CrossRef Full Text | Google Scholar

22. Mashayekhi S, Razzaghi M. Numerical solution of distributed order fractional differential equations by hybrid functions. J Comput Phys. (2016) 315:169–81. doi: 10.1016/j.jcp.2016.01.041

CrossRef Full Text | Google Scholar

23. Zaky M, Doha E, Machado JT. A spectral numerical method for solving distributed-order fractional initial value problems. J Comput Nonlinear Dyn. (2018) 13:101007. doi: 10.1115/1.4041030

CrossRef Full Text | Google Scholar

24. Morgado ML, Rebelo M. Numerical approximation of distributed order reaction–diffusion equations. J Comput Appl Math. (2015) 275:216–27. doi: 10.1016/j.cam.2014.07.029

CrossRef Full Text | Google Scholar

25. Abdelkawy M, Lopes AM, Zaky M. Shifted fractional Jacobi spectral algorithm for solving distributed order time-fractional reaction–diffusion equations. Comput Appl Math. (2019) 38:81. doi: 10.1007/s40314-019-0845-1

CrossRef Full Text | Google Scholar

26. Zaky MA, Machado JT. Multi-dimensional spectral tau methods for distributed-order fractional diffusion equations. Comput Appl Math. (2019) 79:476–88. doi: 10.1016/j.camwa.2019.07.008

CrossRef Full Text | Google Scholar

27. Abbaszadeh M. Error estimate of second-order finite difference scheme for solving the Riesz space distributed-order diffusion equation. Appl Math Lett. (2019) 88:179–85. doi: 10.1016/j.aml.2018.08.024

CrossRef Full Text | Google Scholar

28. Kazmi K, Khaliq AQ. An efficient split-step method for distributed-order space-fractional reaction-diffusion equations with time-dependent boundary conditions. Appl Num Math. (2019) 147:142–60. doi: 10.1016/j.apnum.2019.08.019

CrossRef Full Text | Google Scholar

29. Fan W, Liu F. A numerical method for solving the two-dimensional distributed order space-fractional diffusion equation on an irregular convex domain. Appl Math Lett. (2018) 77:114–21. doi: 10.1016/j.aml.2017.10.005

CrossRef Full Text | Google Scholar

30. Bhrawy A, Zaky M. Numerical simulation of multi-dimensional distributed-order generalized Schrödinger equations. Nonlinear Dyn. (2017) 89:1415–32. doi: 10.1007/s11071-017-3525-y

CrossRef Full Text | Google Scholar

31. Zaky M, Machado JT. On the formulation and numerical simulation of distributed-order fractional optimal control problems. Commun Nonlinear Sci Num Simul. (2017) 52:177–89. doi: 10.1016/j.cnsns.2017.04.026

CrossRef Full Text | Google Scholar

32. Zaky MA. A Legendre collocation method for distributed-order fractional optimal control problems. Nonlinear Dyn. (2018) 91:2667–81. doi: 10.1007/s11071-017-4038-4

CrossRef Full Text | Google Scholar

33. Zaky MA. Recovery of high order accuracy in Jacobi spectral collocation methods for fractional terminal value problems with non-smooth solutions. J Comput Appl Math. (2019) 357:103–22. doi: 10.1016/j.cam.2019.01.046

CrossRef Full Text | Google Scholar

34. Zaky MA, Ameen IG. On the rate of convergence of spectral collocation methods for nonlinear multi-order fractional initial value problems. Comput Appl Math. (2019) 38:144. doi: 10.1007/s40314-019-0922-5

CrossRef Full Text | Google Scholar

35. Zaky MA, Ameen IG. A priori error estimates of a Jacobi spectral method for nonlinear systems of fractional boundary value problems and related Volterra-Fredholm integral equations with smooth solutions. Num Algor. (2019). doi: 10.1007/s11075-019-00743-5. [Epub ahead of print].

CrossRef Full Text | Google Scholar

36. Doha E, Hafez R, Youssri Y. Shifted Jacobi spectral-Galerkin method for solving hyperbolic partial differential equations. Comput Math Appl. (2019) 78:889–904. doi: 10.1016/j.camwa.2019.03.011

CrossRef Full Text | Google Scholar

37. Bhrawy A, Doha EH, Baleanu D, Ezz-Eldien SS. A spectral tau algorithm based on Jacobi operational matrix for numerical solution of time fractional diffusion-wave equations. J Comput Phys. (2015) 293:142–56. doi: 10.1016/j.jcp.2014.03.039

CrossRef Full Text | Google Scholar

38. Alsuyuti MM, Doha EH, Ezz-Eldien SS, Bayoumi BI, Baleanu D. Modified Galerkin algorithm for solving multitype fractional differential equations. Math Methods Appl Sci. (2019) 42:1389–412. doi: 10.1002/mma.5431

CrossRef Full Text | Google Scholar

39. Huang LL, Liu BQ, Baleanu D, Wu GC. Numerical solutions of interval-valued fractional nonlinear differential equations. Eur Phys J Plus. (2019) 134:220. doi: 10.1140/epjp/i2019-12746-3

CrossRef Full Text | Google Scholar

40. Baleanu D, Shiri B, Srivastava H, Al Qurashi M. A Chebyshev spectral method based on operational matrix for fractional differential equations involving non-singular Mittag-Leffler kernel. Adv Diff Equ. (2018) 2018:353. doi: 10.1186/s13662-018-1822-5

CrossRef Full Text | Google Scholar

41. Baleanu D, Shiri B. Collocation methods for fractional differential equations involving non-singular kernel. Chaos Solitons Fractals. (2018) 116:136–45. doi: 10.1016/j.chaos.2018.09.020

CrossRef Full Text | Google Scholar

42. Doha E. On the construction of recurrence relations for the expansion and connection coefficients in series of Jacobi polynomials. J Phys A Math Gen. (2004) 37:657. doi: 10.1088/0305-4470/37/3/010

CrossRef Full Text | Google Scholar

43. Bhrawy A, Zaky MA. A method based on the Jacobi tau approximation for solving multi-term time–space fractional partial differential equations. J Comput Phys. (2015) 281:876–95. doi: 10.1016/j.jcp.2014.10.060

CrossRef Full Text | Google Scholar

44. Chen Y, Chen CM. Numerical algorithm for solving the Stokes' first problem for a heated generalized second grade fluid with fractional derivative. Num Algor. (2018) 77:939–53. doi: 10.1007/s11075-017-0348-3

CrossRef Full Text | Google Scholar

45. Chen CM, Liu F, Anh V. Numerical analysis of the Rayleigh–Stokes problem for a heated generalized second grade fluid with fractional derivatives. Appl Math Comput. (2008) 204:340–51. doi: 10.1016/j.amc.2008.06.052

CrossRef Full Text | Google Scholar

Keywords: distributed order fractional derivative, Rayleigh-Stokes problem, Galerkin spectral method, operational matrix, multidimensions

Citation: Hafez RM, Zaky MA and Abdelkawy MA (2020) Jacobi Spectral Galerkin Method for Distributed-Order Fractional Rayleigh–Stokes Problem for a Generalized Second Grade Fluid. Front. Phys. 7:240. doi: 10.3389/fphy.2019.00240

Received: 10 October 2019; Accepted: 18 December 2019;
Published: 23 January 2020.

Edited by:

Dumitru Baleanu, University of Craiova, Romania

Reviewed by:

Babak Shiri, Neijiang Normal University, China
Jagdev Singh, JECRC University, India

Copyright © 2020 Hafez, Zaky and Abdelkawy. This is an open-access article distributed under the terms of the Creative Commons Attribution License (CC BY). The use, distribution or reproduction in other forums is permitted, provided the original author(s) and the copyright owner(s) are credited and that the original publication in this journal is cited, in accordance with accepted academic practice. No use, distribution or reproduction is permitted which does not comply with these terms.

*Correspondence: Mahmoud A. Zaky, ma.zaky@yahoo.com

Download