Introduction

The fractional derivative and fractional differential equations have been used to describe many phenomena in physics and engineering, such as boundary layer effects in ducts, allometric scaling laws in biology and ecology, colored noise, dielectric polarization, electromagnetic waves, electrode–electrolyte polarization, fractional kinetics, quantitative finance, quantum evolution of complex systems, power-law phenomenon in fluid and complex network, viscoelastic mechanics, etc. [1, 2]. On the other hand, an important class of fractional differential equations which has been studied widely in recent years is the time fractional diffusion-wave equation (FDWE). The time FDWE is obtained from the classical diffusion-wave equation by replacing the second-order time derivative term by a fractional derivative of order (\(1<\alpha <2\)) [3]. Many of the universal electromagnetic, acoustic, mechanical responses can be described exactly by the FDWE [4]. It is also worth mentioning that fractional diffusion equation and diffusion wave equation have a lot in common, for example, they can behave like diffusion. To see some different kinds of fractional differential equations interest readers are referred to [57].

Strictly speaking, fractional diffusion-wave equation with damping is similar to the fractional Cattaneo equation where FDWE has more a term f(xt) rather than fractional Cattaneo equation. A considerable amount of papers have been appeared dealing with fractional diffusion-wave equation with damping (FDWE). It is well known that whereas diffusion equation describes a process, where a disturbance of the initial conditions spreads infinitely fast, the propagation velocity of the disturbance is constant for the wave equation. In a certain sense, the time-fractional diffusion-wave equation that is obtained from the diffusion equation by substituting the first derivative in time by the fractional derivative of order \(\alpha \), \(1< \alpha < 2\), interpolates between these two different behaviors.

The present paper considers the following time-fractional two-dimensional diffusion-wave equation of order (\(1<\alpha <2\)):

$$\begin{aligned} \frac{\partial ^\alpha u(\mathbf x ,t)}{\partial t^\alpha }+\gamma _1\frac{\partial u(\mathbf x ,t)}{\partial t}= \gamma _2\Delta u+f(\mathbf x ,t),\ \ \ \ \ \mathbf x \in \Omega \subseteq \mathbb {R}^2,\ t\in [0,T], \end{aligned}$$
(1)

subject to compatible initial conditions

$$\begin{aligned} u(\mathbf x ,0)=\varphi (\mathbf x ), \ \frac{\partial u }{\partial t}(\mathbf x ,0)=\psi (\mathbf x ), \ \mathbf x \in \Omega , \end{aligned}$$
(2)

and the boundary condition

$$\begin{aligned} u(\mathbf x ,t)=g(\mathbf x ,t)\ \ \text {for}\ \ \mathbf x \in \Gamma =\partial \Omega ,\ t\in [0,T], \end{aligned}$$
(3)

where \(\mathbf x =(x,y)\) is spatial variable, \(\Gamma \) the boundary of domain and, \(\gamma _1\) and \(\gamma _2\) are constants. Also, \(f(\mathbf x ,t)\) is source function with sufficient smoothness and, \(\varphi (\mathbf x )\), \(\psi (\mathbf x )\) and g(xt) are given continuous functions. Furthermore, in Eq. (1), the time-fractional derivatives are in the sense of Caputo which is defined by

$$\begin{aligned} D_t^\alpha F(t)=\left\{ \begin{array}{ll} \frac{1}{\Gamma (k-\alpha )}\displaystyle \int _0^t (t-\xi )^{k-\alpha -1}F^{(k)}(\xi )\text {d}\xi , &{} \quad k-1<\alpha <k,\ \ t>0,\\ F^{(k)}(t), &{} \quad \alpha =k. \end{array}\right. \end{aligned}$$
(4)

In the case \(\alpha =2\), this equation is the telegraph equation, which governs electrical transmission in a telegraph cable [4]. This equation could also be characterized as a wave equation, governing wave motion in a string, with a damping effect due to the term \(\frac{\partial u(\mathbf x ,t)}{\partial t}\).

In the literature, several meshless weak form methods have been reported such as: Meshless methods based on weak forms such as the element free Galerkin (EFG) method [8, 9], meshless methods based on collocation techniques (strong forms) such as the meshless collocation method based on radial basis functions(RBFs) [1023] and meshless methods based on the combination of weak forms and collocation technique [2435].

The weak forms are used to derive a set of algebraic equations through a numerical integration process using a set of quadrature domain that may be constructed globally or locally in the domain of the problem. In the global weak form methods, global background cells are needed for numerical integration in computing the algebraic equations. To avoid the use of global background cells, a so-called local weak form is adopted to develop the meshless local Petrov–Galerkin (MLPG) method [3646].

In the last few years, several numerical methods have been proposed for solving FDWE, see [4] and Refs. therein. In Ref. [4], the authors have applied a collocation method based on the Legendre wavelets (LWs) to solve the 1-D form of the problem (1)–(3) and obtained good results. In this paper, we focus on the numerical solution of the Eqs. (1)–(3) (which is two-dimensional) using a kind of MLPG method which is based on the Galerkin weak form and moving least squares (MLS) approximation and achieve still satisfactory results. Two illustrative examples are given so that the one of them possesses regular domain and the other one enjoys non-regular domain.

The MLS Approximation Procedure

A meshless method uses a local approximation to represent the trial function with the values of the unknown variable at some nodal points. In the current paper, the moving least squares (MLS) approximation is used. Consider a sub-domain \(\Omega _{s}\), the neighborhood of a point \(\mathbf x \) and denoted as the support domain of the MLS approximation for the trial function at \(\mathbf x \), which is located in the problem domain \(\Omega \) (see Fig. 1). To approximate the function u in \(\Omega _s\), over a number of randomly located nodes \(\mathbf{x _i},i=1,2,\ldots ,n,\) the Moving Least Squares approximant \(u^h(\mathbf x )\) of \(u,~\forall \mathbf x \in \Omega _s\), could be defined by

$$\begin{aligned} u^h(\mathbf x )= \mathbf p ^T(\mathbf x )\mathbf a (\mathbf x )~~~~\forall \mathbf x \in \Omega _s, \end{aligned}$$
(5)

where \(\mathbf p ^T(\mathbf x )=[p_1(\mathbf x ),p_2(\mathbf x ),\ldots ,p_m(\mathbf x )]\) is a complete monomial basis of order m, and \(a(\mathbf x )\) is a vector containing coefficients \(a_j(\mathbf x ), j=1,2,\ldots ,m\) which are functions of the space coordinates \(\mathbf x \). \(p_j(\mathbf x )\) is monomial in the space coordinate \(x^T=[x,y]\), and m is the number of polynomial basis functions. The coefficient vector \(\mathbf a (\mathbf x )\) is discovered by minimizing a weighted discrete \(L_2\) norm, defined as:

$$\begin{aligned} J(x)= & {} \sum _{i=1}^{n}w_i( \mathbf x )[p^T( \mathbf x _i) \mathbf a ( \mathbf x )- {\hat{u}}_i] ^2\nonumber \\= & {} [ \mathbf P . \mathbf a ( \mathbf x )- {\hat{\mathbf{u }}}]^T.W.[ \mathbf P . \mathbf a ( \mathbf x )-{\hat{\mathbf{u }}}], \end{aligned}$$
(6)

where \(w_i(\mathbf x )\) is the weight function associated with the node i, with \(w_i(\mathbf x )>0\) for all \(\mathbf x \) in the support of \(w_i(\mathbf x )\), \(\mathbf x _i\) denotes the value of \(\mathbf x \) at node i, n is the number of nodes in \(\Omega _s\) for which the weight functions \(w_i(\mathbf x )>0\), the matrices \(\mathbf P \) and \(\mathbf W \) are given as

$$\begin{aligned} \mathbf P = \begin{pmatrix} \mathbf p ^T(\mathbf x _1) \\ \mathbf p ^T(\mathbf x _2) \\ \ldots \\ \mathbf p ^T(\mathbf x _n) \ \end{pmatrix}_{n\times m}, \ \ \ \mathbf W = \begin{pmatrix} w_1(\mathbf x ) &{}\quad \ldots &{}\quad 0 \\ \ldots &{}\quad \ldots &{}\quad \ldots \\ 0 &{}\quad \ldots &{}\quad w_n(\mathbf x ), \end{pmatrix} \end{aligned}$$

and \({\hat{\mathbf{u }}}^T = [{\hat{u}}_1,{\hat{u}}_2,\ldots ,{\hat{u}}_n].\) Here, it should be noted that \({\hat{u}}_i,~i=1,2,\ldots ,n\) in Eq. (6) are the fictitious nodal values, and not the nodal values of the unknown trial function \(u^h(\mathbf x )\) in general. The stationarity of J in Eq. (6) with respect to \(\mathbf a (\mathbf x )\) leads to the following linear system of equations between \(\mathbf a (\mathbf x )\) and \({\hat{\mathbf{u }}}\):

$$\begin{aligned} \mathbf A (\mathbf x )\mathbf a (\mathbf x )=\mathbf B (\mathbf x ){\hat{\mathbf{u }}}, \end{aligned}$$
(7)

where the matrices \(\mathbf A (\mathbf x )\) and \(\mathbf B (\mathbf x )\) are given by

$$\begin{aligned} \mathbf A (\mathbf x )= & {} \mathbf P ^T \mathbf W \mathbf P = \mathbf B (\mathbf x )\mathbf P = \sum _{i=1}^{n}w_i(\mathbf x )\mathbf p (\mathbf x _i) \mathbf p ^T(\mathbf x _i), \end{aligned}$$
(8)
$$\begin{aligned} \mathbf B (\mathbf x )= & {} \mathbf P ^T \mathbf W =[w_1(\mathbf x )\mathbf p (\mathbf x _1),w_2(\mathbf x )\mathbf p (\mathbf x _2) ,\ldots ,w_n(\mathbf x )\mathbf p (\mathbf x _n)]. \end{aligned}$$
(9)

The MLS approximation is well defined only when the matrix \(\mathbf A \) in Eq. (7) is non-singular. It can be seen that this is the case if and only if the rank of \(\mathbf P \) equals m. A necessary condition for a well-defined MLS approximation is that at least m weight functions are non-zero (i.e. \(n > m\)) for each sample point \(\mathbf x \in \Omega \) and that the nodes in \(\Omega _s\) should not be arranged in a special pattern such as on a straight line. Here a sample point may be a nodal point under consideration or a quadrature point.

Fig. 1
figure 1

\(\Omega _s\) and \(\Omega _q\) are local support and local quadrature domains, respectively

Solving for \(\mathbf a (\mathbf x )\) from Eq. (7) and substituting it into Eq. (5) yields a relation which may be written as the form of an interpolation function similar to that used in FEM, as

$$\begin{aligned} u^h(\mathbf x )= \Phi ^T(\mathbf x ) . {\hat{\mathbf{u }}}= \sum _{i=1}^n \phi _i(\mathbf x ){\hat{u}}_i, \ \ \mathbf x \in \Omega _s, \end{aligned}$$
(10)

where \(u^h(\mathbf x _i)\equiv u_i\) is not essentially equal to \({\hat{u}}_i\) and,

$$\begin{aligned} \Phi ^T(\mathbf x )=\mathbf p ^T(\mathbf x ) \mathbf A ^{-1}(\mathbf x ) \mathbf B (\mathbf x ) \end{aligned}$$
(11)

or

$$\begin{aligned} \phi _i(\mathbf x )=\sum _{j=1}^m p_j(\mathbf x )[ \mathbf A ^{-1}(\mathbf x ) \mathbf B (\mathbf x )]_{ji}. \end{aligned}$$
(12)

Here, \(\phi _i(\mathbf x )\) is usually called the shape function of the MLS approximation corresponding to nodal point \(\mathbf x _i\). From Eqs.  (9) and (11), it is easily seen that \(\phi _i(\mathbf x )=0\) when \(w_i(\mathbf x ).\) In practical applications, \(w_i(\mathbf x )\) is generally chosen such that it is non-zero over the support of nodal points \(\mathbf x _i.\) The support of the nodal points \(\mathbf x _i\) is usually taken to be a circle of radius \(r_s\), centered at \(\mathbf x _i\) (see Fig. 1). The fact that \(\phi _i(\mathbf x )=0\), for \(\mathbf x \) not in the support of nodal point \(\mathbf x _i\) preserves the local character of the Moving Least Squares approximation.

Let \(C^q(\Omega )\) be the space of qth continuously differentiable functions on \(\Omega \). If \(w_i(\mathbf x ) \in C^q(\Omega )\) and \(p_j(\mathbf x ) \in C^s(\Omega ),~~ i = 1, 2,\ldots ,n,~~ j=1,2,\ldots ,m,\) then \(\phi _i(\mathbf x ) \in C^r(\Omega )\) with \(r=\) min(qs). The partial derivatives of \(\phi _i(\mathbf x )\) are obtained as

$$\begin{aligned} \phi _{i,k} = \sum _{j=1}^{m}[ p_{j,k}(\mathbf A ^{-1} \mathbf B )_{ji}+ p_{j}(\mathbf A ^{-1} \mathbf B _{,k}+ \mathbf A _{,k}^{-1} \mathbf B )_{ji}] \end{aligned}$$
(13)

in which \(\mathbf A _{,k}^{-1}= (\mathbf A ^{-1})_{,k}\) represents the derivative of the inverse of A with respect to \(x^k\), which is given by \(\mathbf A _{,k}^{-1}= -\mathbf A ^{-1}{} \mathbf A _{,k} \mathbf A ^{-1},\) where\((~~ )_{,i}\) denotes \(\partial (~~ )/ \partial x_i.\)

In this paper, the Gaussian weight function is applied as

$$\begin{aligned} w_i(\mathbf x )=\left\{ \begin{array}{ll} \frac{ exp\left[ -\left( \frac{d_i}{c_i}\right) ^2\right] -exp\left[ -\left( \frac{r_s}{c_i}\right) ^2\right] }{1-exp\left[ -\left( \frac{r_s}{c_i}^2\right) \right] } ,~~~~~~0 \le d_i \le r_s, &{} \\ &{} \\ 0, \quad ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ d_i \ge r_s,&{} \end{array}\right. \end{aligned}$$
(14)

where \(d_i=\parallel x-x_i\parallel \), \(c_i\) is a constant controlling the shape of the weight function \(w_i\) and \(r_s\) is the size of the support domain.

The size of support, \(r_s\), of the weight function \(w_i\) associated with node i should be chosen such that \(r_s\) should be large enough to have sufficient number of nodes covered in the domain of definition of every sample point \((n \ge m)\) to ensure the regularity of \(\mathbf A \). A very small \(r_s\) may result in a relatively large numerical error in using Gauss numerical quadrature to calculate the entries in the system matrix. On the other hand, \(r_s\) should also be small enough to maintain the local character of the MLS approximation.

The Time Fractional Discretization of the Problem

According to Eq. (4), \(\frac{\partial ^\alpha u(\mathbf x ,t)}{\partial t^\alpha }\) could be written as follows:

$$\begin{aligned} \frac{\partial ^\alpha u(\mathbf x ,t)}{\partial t^\alpha }=\left\{ \begin{array}{ll} \frac{1}{\Gamma (2-\alpha )}\displaystyle \int _0^t \frac{\partial ^2 u(\mathbf x ,\xi )}{\partial \xi ^2}(t-\xi )^{1-\alpha }\text {d}\xi , &{}\quad 1<\alpha <2,\\ \frac{\partial ^2 u(\mathbf x ,t)}{\partial t^2}, &{}\quad \alpha =2. \end{array}\right. \end{aligned}$$
(15)

In order to discretize the problem in the time direction for \(1<\alpha <2\), we substitute \(t^{(n+1)}\) into Eq. (15), then the integral can be partitioned as

$$\begin{aligned} \frac{\partial ^\alpha u(\mathbf x ,t^{(n+1)})}{\partial t^\alpha }= & {} \frac{1}{\Gamma (2-\alpha )}\int _0^{t^{(n+1)}} \frac{\partial ^2 u(\mathbf x ,\xi )}{\partial \xi ^2}(t^{(n+1)}-\xi )^{1-\alpha }\text {d}\xi \nonumber \\= & {} \frac{1}{\Gamma (2-\alpha )}\sum _{k=0}^n\int _{t^{(k)}}^{t^{(k+1)}} \frac{\partial ^2 u(\mathbf x ,\xi )}{\partial \xi ^2}(t^{(n+1)}-\xi )^{1-\alpha }\text {d}\xi , \end{aligned}$$
(16)

where \(t^{(0)}=0\), \(t^{(n+1)}=t^{(n)}+\triangle t\), \(n=0,1,2,\ldots ,M\), and \(M\triangle t=T\). Approximations of the first and second order derivatives due to the finite difference formulae are defined as

$$\begin{aligned} \frac{\partial ^{2} u(\mathbf x ,\sigma )}{\partial t^2}= & {} \frac{u(\mathbf x ,t^{(n+1)})-2u(\mathbf x ,t^{(n)}) +u(\mathbf x ,t^{(n-1)})}{\triangle t^2}\nonumber \\&+\,o(\triangle _\sigma t+\triangle t^2), \end{aligned}$$
(17)
$$\begin{aligned} \frac{\partial u(\mathbf x ,t^{(n+1)})}{\partial t}= & {} \frac{3u(\mathbf x ,t^{(n+1)})-4u(\mathbf x ,t^{(n)})+u(\mathbf x ,t^{(n-1)})}{2\triangle t}+o(\triangle t^2), \end{aligned}$$
(18)

where \(\sigma \in [t^{(n)},t^{(n+1)}]\) and \(\triangle _\sigma t=\sigma -t^{(n)}\). Replacing Eq. (17) into Eq. (16), gives

$$\begin{aligned} \frac{\partial ^\alpha u(\mathbf x ,t^{(n+1)})}{\partial t^\alpha }= & {} \frac{1}{\Gamma (2-\alpha )} \int _0^{t^{(n+1)}} \frac{\partial ^2 u(\mathbf x ,\xi )}{\partial \xi ^2}(t^{(n+1)}-\xi )^{1-\alpha }\text {d}\xi \nonumber \\\cong & {} \frac{1}{\Gamma (2-\alpha )}\sum _{k=0}^n\frac{u^{(k+1)}-2u^{(k)}+u^{(k-1)}}{\triangle t^2}\int _{t^{(k)}}^{t^{(k+1)}} (t^{(n+1)}-\xi )^{1-\alpha }\text {d}\xi ,\nonumber \\ \end{aligned}$$
(19)

where \(u^{(k)}=u(\mathbf x ,t^{(k)})\), \(k=0,1,2,\ldots ,M\). In the above equation, the integral is easily obtained as

$$\begin{aligned} \int _{t^{(k)}}^{t^{(k+1)}}(t^{(n+1)}-\xi )^{1-\alpha }\text {d}\xi =\frac{1}{(2-\alpha )}\triangle t^{2-\alpha }[(n-k+1)^{2-\alpha }-(n-k)^{2-\alpha }]. \end{aligned}$$
(20)

Rearrangement of Eqs. (19) and (18) by notation \(b_k=(k+1)^{2-\alpha }-(k)^{2-\alpha }\) lead to

$$\begin{aligned} \frac{\partial ^\alpha u(\mathbf x ,t^{(n+1)})}{\partial t^\alpha }= & {} \frac{\triangle t^{-\alpha }}{\Gamma (3-\alpha )}\sum _{k=0}^nb_k[u^{(n-k+1)}-2u^{(n-k)}+u^{(n-k-1)}]\nonumber \\\cong & {} a_0\left\{ u^{(n+1)}-2u^{(n)}+u^{(n-1)}\!+\!\sum _{k=1}^nb_k[u^{(n-k+1)}-2u^{(n-k)}+u^{(n-k-1)}]\right\} ,\nonumber \\ \end{aligned}$$
(21)

and

$$\begin{aligned} \frac{\partial u(\mathbf x ,t^{(n+1)})}{\partial t}\cong & {} a_0^\prime \left( 3u^{(n+1)}-4u^{(n)}+u^{(n-1)}\right) , \end{aligned}$$
(22)

where \(a_0=\frac{\triangle t^{-\alpha }}{\Gamma (3-\alpha )}\), \(a_0^\prime =\frac{1}{2\triangle t}\) and \(n=0,1,2,\ldots ,M\). We note that Eq. (1) at \(t=t^{(n+1)}\) due to \(\theta \)-weighted finite difference formulation is as follows:

$$\begin{aligned} \frac{\partial ^\alpha u(\mathbf x ,t^{(n+1)})}{\partial t^\alpha }+\gamma _1\frac{\partial u(\mathbf x ,t^{(n+1)})}{\partial t}= \gamma _2[\theta \Delta u^{(n+1)}+(1-\theta )\Delta u^{(n)}]+f^{(n+1)}, \end{aligned}$$
(23)

where, \(0<\theta <1\) is a constant, \(\Delta u^{(n)}=\Delta u(\mathbf x ,t^{(n)})\) and \(f^{(n)}=f(\mathbf x ,t^{(n)})\). We set \(\theta =\frac{1}{2}\) for simplicity, and substitute Eqs. (21) and (22) into Eq. (23), then we obtain

$$\begin{aligned}&a_0\left\{ u^{(n+1)}-2u^{(n)}+u^{(n-1)}+\sum _{k=1}^nb_k[u^{(n-k+1)}-2u^{(n-k)}+u^{(n-k-1)}]\right\} \\&\qquad +\,\gamma _1a_0^\prime \left( 3u^{(n+1)}-4u^{(n)}+u^{(n-1)}\right) =\frac{1}{2}\gamma _2[\Delta u^{(n+1)}+\Delta u^{(n)}]+f^{(n+1)}, \end{aligned}$$

or equivalently

$$\begin{aligned} \frac{1}{2}\gamma _2\Delta u^{(n+1)}-(a_0+3\gamma _1a_0^\prime ) u^{(n+1)}= & {} -\frac{1}{2}\gamma _2\Delta u^{(n)}-(2a_0+4\gamma _1a_0^\prime )u^{(n)}\nonumber \\&+\,\sum _{k=1}^na_0b_k[u^{(n-k+1)}-2u^{(n-k)}+u^{(n-k-1)}]\nonumber \\&+\,(a_0+\gamma _1a_0^\prime )u^{(n-1)}-f^{(n+1)}. \end{aligned}$$
(24)

The Local Weak Form of the MLPG

Instead of giving the global weak form, the meshless local Galerkin weak form method constructs the weak form over local quadrature cell such as \(\Omega _q\), which is a small region taken for each node in the global domain \(\Omega \) (see Fig. 1). The local quadrature cells over lap each other and cover the whole global domain \(\Omega \). The local quadrature cells could be of any geometric shape and size. In this paper they are taken to be of circular shape. The local weak form of Eq. (24) for \(\mathbf x _i=(x_i,y_i)\in \Omega _q^i\) can be written as

$$\begin{aligned}&\int _{\Omega _q^i}\left[ \frac{1}{2}\gamma _2\Delta u^{(n+1)}-(a_0+3\gamma _1a_0^\prime ) u^{(n+1)}\right] v(\mathbf x )\text {d}\Omega \nonumber \\&=\int _{\Omega _q^i} \left[ -\frac{1}{2}\gamma _2\Delta u^{(n)}-(2a_0+4\gamma _1a_0^\prime )u^{(n)}+(a_0+\gamma _1a_0^\prime )u^{(n-1)}\right] v(\mathbf x )\text {d}\Omega \nonumber \\&\quad +\,\int _{\Omega _q^i}\left( \sum _{k=1}^na_0b_k[u^{(n-k+1)}-2u^{(n-k)}+u^{(n-k-1)}]\right) v(\mathbf x )\text {d}\Omega -\int _{\Omega _q^i}f^{(n+1)}v(\mathbf x )\text {d}\Omega ,\nonumber \\ \end{aligned}$$
(25)

where \(\Omega _q^i\) is the local quadrature domain associated with the point i, i.e., it is a circle centered at \(\mathbf x _i\) of radius \(r_q\) and, \(v(\mathbf x )\) is the Heaviside step function [47, 48],

$$\begin{aligned} v(\mathbf x )=\left\{ \begin{array}{ll} 1,\ \ \ &{} \mathbf x \in \Omega _q, \\ 0,\ \ \ &{} \mathbf x \notin \Omega _q, \end{array}\right. \end{aligned}$$
(26)

as the test function in each local quadrature domain. Using the divergence theorem, Eq. (25) yields the following expression:

$$\begin{aligned}&-(a_0+3\gamma _1a_0^\prime )\int _{\Omega _q^i}u^{(n+1)}v(\mathbf x )\text {d}\Omega -\frac{1}{2}\gamma _2\int _{\Omega _q^i}\nabla u^{(n+1)}\nabla v\text {d}\Omega +\frac{1}{2}\gamma _2\int _{\partial \Omega _q^i}v\frac{\partial u^{(n+1)} }{\partial n}\text {d}\Gamma \nonumber \\&\quad =\frac{1}{2}\gamma _2\int _{\Omega _q^i}\nabla u^{(n)}\nabla v\text {d}\Omega -\frac{1}{2}\gamma _2\int _{\partial \Omega _q^i}v\frac{\partial u^{(n)} }{\partial n}\text {d}\Gamma -(2a_0+4\gamma _1a_0^\prime )\int _{\Omega _q^i}u^{(n)} v(\mathbf x )\text {d}\Omega \nonumber \\&\qquad +\,\sum _{k=1}^na_0b_k\left[ \int _{\Omega _q^i}u^{(n-k+1)}v(\mathbf x )\text {d}\Omega -2 \int _{\Omega _q^i}u^{(n-k)}v(\mathbf x )\text {d}\Omega +\int _{\Omega _q^i}u^{(n-k-1)}v(\mathbf x )\text {d}\Omega \right] \nonumber \\&\qquad +\,(a_0+\gamma _1a_0^\prime )\int _{\Omega _q^i}u^{(n-1)}v(\mathbf x )\text {d}\Omega -\int _{\Omega _q^i}f^{(n+1)}v(\mathbf x )\text {d}\Omega , \end{aligned}$$
(27)

where \(\partial \Omega _q^i\) is the boundary of \(\Omega _q^i\), \(n=(n_1,n_2)\) is the outward unit normal to the boundary \(\partial \Omega _q^i\), and

$$\begin{aligned} \frac{\partial u}{\partial n}= \frac{\partial u}{\partial x} n_1+ \frac{\partial u}{\partial y} n_2 \end{aligned}$$

is the normal derivative, i.e., the derivative in the outward normal direction to the boundary \(\partial \Omega _q^i\). Because the derivative of the Heaviside step function \(v(\mathbf x )\) is equal to zero, then the local weak form Eq. (27) is changed into the following simple integral equation:

$$\begin{aligned}&-(a_0+3\gamma _1a_0^\prime )\int _{\Omega _q^i}u^{(n+1)}\text {d}\Omega +\frac{1}{2}\gamma _2\int _{\partial \Omega _q^i}\frac{\partial u^{(n+1)} }{\partial n}\text {d}\Gamma =-\frac{1}{2}\gamma _2\int _{\partial \Omega _q^i}\frac{\partial u^{(n)} }{\partial n}\text {d}\Gamma \nonumber \\&\quad -\,(2a_0+4\gamma _1a_0^\prime )\int _{\Omega _q^i}u^{(n)}\text {d}\Omega +(a_0+\gamma _1a_0^\prime )\int _{\Omega _q^i}u^{(n-1)}\text {d}\Omega \nonumber \\&\quad +\,\sum _{k=1}^na_0b_k\left[ \int _{\Omega _q^i}u^{(n-k+1)}\text {d}\Omega -2\int _{\Omega _q^i}u^{(n-k)}\text {d}\Omega +\quad \int _{\Omega _q^i}u^{(n-k-1)}\text {d}\Omega \right] \nonumber \\&\quad -\,\int _{\Omega _q^i}f^{(n+1)}\text {d}\Omega . \end{aligned}$$
(28)

Applying the moving least squares (MLS) approximation for the unknown functions, the local integral Eq. (28) is transformed into a system of algebraic equations with used unknown quantities, as described in the next section.

Numerical Implementation of MLPG: Reducing to Linear Algebraic System

In this section, we consider Eq. (28) to see how to obtain discrete equations. Consider N regularly located points on the boundary and the domain of the problem (i.e. \(\Omega \subseteq \mathbb {R}^2\)) so that the distance between to consecutive nodes in each direction is constant and equal to h. Assuming that \(u(\mathbf x _i,k\triangle t)\) for all \(k= 1,2,\ldots ,n\) and \(i= 1,2,\ldots ,N\) are known, our aim is to compute \(u(\mathbf x _i,(n+1)\triangle t),\ i= 1,2,\ldots ,N\). So, we have N unknowns and to compute these unknowns we need N equations. As it will be described, corresponding to each node we obtain one equation. For nodes which are located in the interior of the domain, i.e., for \(\mathbf x _i \in \) interior \(\Omega \), to obtain the discrete equations from the locally weak forms (28), substituting approximation formula (10) into local integral equations (28) yields:

$$\begin{aligned}&-(a_0+3\gamma _1a_0^\prime )\sum _{j=1}^N\left( \int _{\Omega _q^i}\phi _j\text {d}\Omega \right) u_j^{(n+1)}+\frac{1}{2} \gamma _2\sum _{j=1}^N\left( \int _{\partial \Omega _q^i}\frac{\partial \phi _j}{\partial n}\text {d}\Gamma \right) u_j^{(n+1)}\nonumber \\&\quad =-\,\frac{1}{2}\gamma _2\sum _{j=1}^N\left( \int _{\partial \Omega _q^i}\frac{\partial \phi _j}{\partial n}\text {d}\Gamma \right) u_j^{(n)} -(2a_0+4\gamma _1a_0^\prime )\sum _{j=1}^N\left( \int _{\Omega _q^i}\phi _j\text {d}\Omega \right) u_j^{(n)} \nonumber \\&\qquad +\,\sum _{k=1}^na_0b_k\left[ \sum _{j=1}^N\left( \int _{\Omega _q^i}\phi _j\text {d}\Omega \right) u_j^{(n-k+1)}\right. \nonumber \\&\left. \qquad -\,2\sum _{j=1}^N\left( \int _{\Omega _q^i}\phi _j\text {d}\Omega \right) u_j^{(n-k)} +\sum _{j=1}^N\left( \int _{\Omega _q^i}\phi _j\text {d}\Omega \right) u_j^{(n-k-1)}\right] \nonumber \\&\qquad +\,(a_0+\gamma _1a_0^\prime )\sum _{j=1}^N\left( \int _{\Omega _q^i}\phi _j\text {d}\Omega \right) u_j^{(n-1)} -\int _{\Omega _q^i}f^{(n+1)}\text {d}\Omega . \end{aligned}$$
(29)

We had supposed \(b_k=(k+1)^{2-\alpha }-(k)^{2-\alpha }\), \(k=1,2,\ldots ,n\) in the section 3, in addition assume \(b_{-1}=0\) and \(b_0=1\). By these assumptions Eq. (29) is converted to the following equation

$$\begin{aligned}&\left[ -(a_0+3\gamma _1a_0^\prime )\sum _{j=1}^N\left( \int _{\Omega _q^i}\phi _j\text {d}\Omega \right) +\frac{1}{2} \gamma _2\sum _{j=1}^N\left( \int _{\partial \Omega _q^i}\frac{\partial \phi _j}{\partial n}\text {d}\Gamma \right) \right] u_j^{(n+1)}\nonumber \\&\quad =\sum _{s=1}^n\left\{ \left[ a_0(b_{n-s-1}-2b_{n-s}+b_{n-s+1})\right] \sum _{j=1}^N\left( \int _{\Omega _q^i}\phi _j\text {d}\Omega \right) u_j^{(s)}\right\} \nonumber \\&\qquad -\,4\gamma _1a_0^\prime \sum _{j=1}^N\left( \int _{\Omega _q^i}\phi _j\text {d}\Omega \right) u_j^{(n)}\nonumber \\&\qquad -\,2a_0b_{n}\sum _{j=1}^N\left( \int _{\Omega _q^i}\phi _j\text {d}\Omega \right) u_j^{(0)} +a_0b_n\sum _{j=1}^N\left( \int _{\Omega _q^i}\phi _j\text {d}\Omega \right) u_j^{(-1)}\nonumber \\&\qquad -\,\frac{1}{2}\gamma _2\sum _{j=1}^N\left( \int _{\partial \Omega _q^i}\frac{\partial \phi _j}{\partial n}\text {d}\Gamma \right) u_j^{(n)}+\gamma _1a_0^\prime \sum _{j=1}^N\left( \int _{\Omega _q^i}\phi _j\text {d}\Omega \right) u_j^{(n-1)} -\int _{\Omega _q^i}f^{(n+1)}\text {d}\Omega .\nonumber \\ \end{aligned}$$
(30)

According to the initial conditions that were introduced in Eq. (2), we apply the following assumptions:

$$\begin{aligned} u_j^{(0)}=\varphi (\mathbf x _j),\ \ \ u_j^{(-1)}=u_j^{(1)}-2\triangle t\psi (\mathbf x _j), \end{aligned}$$
(31)

where, the second relation is the result of central finite difference formula, then we conclude the following

$$\begin{aligned}&\sum _{j=1}^N\left( \int _{\Omega _q^i}\phi _j\text {d}\Omega \right) u_j^{(0)}= \int _{\Omega _q^i}\varphi (\mathbf x )\text {d}\Omega , \end{aligned}$$
(32)
$$\begin{aligned}&\sum _{j=1}^N\left( \int _{\Omega _q^i}\phi _j\text {d}\Omega \right) u_j^{(-1)}=\sum _{j=1}^N \left( \int _{\Omega _q^i}\phi _j\text {d}\Omega \right) u_j^{(1)}-2\triangle t\int _{\Omega _q^i}\psi (\mathbf x )\text {d}\Omega . \end{aligned}$$
(33)

Therefore, applying Eqs. (32) and (33) into (30) yields

$$\begin{aligned}&\left[ -(a_0+3\gamma _1a_0^\prime )\sum _{j=1}^N\left( \int _{\Omega _q^i}\phi _j\text {d}\Omega \right) +\frac{1}{2} \gamma _2\sum _{j=1}^N\left( \int _{\partial \Omega _q^i}\frac{\partial \phi _j}{\partial n}\text {d}\Gamma \right) \right] u_j^{(n+1)}\nonumber \\&\quad =\sum _{s=1}^n\left\{ \left[ a_0(b_{n-s-1}-2b_{n-s}+b_{n-s+1})\right] \sum _{j=1}^N\left( \int _{\Omega _q^i}\phi _j\text {d}\Omega \right) u_j^{(s)}\right\} \nonumber \\&\qquad -\,4\gamma _1a_0^\prime \sum _{j=1}^N\left( \int _{\Omega _q^i}\phi _j\text {d}\Omega \right) u_j^{(n)}\nonumber \\&\qquad +\,a_0b_n\sum _{j=1}^N\left( \int _{\Omega _q^i}\phi _j\text {d}\Omega \right) u_j^{(1)} -\frac{1}{2}\gamma _2\sum _{j=1}^N\left( \int _{\partial \Omega _q^i}\frac{\partial \phi _j}{\partial n}\text {d}\Gamma \right) u_j^{(n)}\nonumber \\&\qquad +\,\gamma _1a_0^\prime \sum _{j=1}^N\left( \int _{\Omega _q^i}\phi _j\text {d}\Omega \right) u_j^{(n-1)}\nonumber \\&\qquad -\,\int _{\Omega _q^i}f^{(n+1)}\text {d}\Omega -2a_0b_{n}\int _{\Omega _q^i}\varphi (\mathbf x )\text {d}\Omega -2a_0b_n\triangle t\int _{\Omega _q^i}\psi (\mathbf x )\text {d}\Omega . \end{aligned}$$
(34)

For nodes which are located on the boundary, we set

$$\begin{aligned} u^{(n+1)}(\mathbf x _i)=g(\mathbf x _i,(n+1)\triangle t),\ \ \ \mathbf x _i\in \Gamma . \end{aligned}$$
(35)

The matrix forms of Eqs. (34)–(35) for all N nodal points in the domain and the boundary of the problem are given below:

$$\begin{aligned}&\left[ -(a_0+3\gamma _1a_0^\prime )\sum _{j=1}^NA_{ij}+\frac{1}{2} \gamma _2\sum _{j=1}^NB_{ij}\right] u_j^{(n+1)}=-4\gamma _1a_0^\prime \sum _{j=1}^NA_{ij}u_j^{(n)}\nonumber \\&\quad \sum _{s=1}^n\left\{ \left[ a_0(b_{n-s-1}-2b_{n-s}+b_{n-s+1})\right] \sum _{j=1}^NA_{ij}u_j^{(s)}\right\} +a_0b_n\sum _{j=1}^NA_{ij}u_j^{(1)}\nonumber \\&\qquad +\,\gamma _1a_0^\prime \sum _{j=1}^NA_{ij}u_j^{(n-1)}-\frac{1}{2}\gamma _2\sum _{j=1}^NB_{ij}u_j^{(n)} -F_i^{(n+1)}-2a_0b_{n}\Phi _i -2a_0b_n\triangle t\Psi _i,\quad \end{aligned}$$
(36)

where

$$\begin{aligned} A_{ij}= & {} \int _{\Omega _q^i}\phi _j\text {d}\Omega , \ \ \ B_{ij}=\int _{\partial \Omega _q^i}\frac{\partial \phi _j}{\partial n}\text {d}\Gamma ,\ \ \ F_i^{(n+1)}=\int _{\Omega _q^i} F(\mathbf x ,(n+1)\triangle t)\text {d}\Omega , \end{aligned}$$
(37)
$$\begin{aligned} \Phi _i= & {} \int _{\Omega _q^i}\varphi (\mathbf x )\text {d}\Omega , \Psi _i=\int _{\Omega _q^i}\psi (\mathbf x )\text {d}\Omega . \end{aligned}$$
(38)

By considering the following notations

$$\begin{aligned} \mathbf {A}_{ij}= & {} -(a_0+3\gamma _1a_0^\prime )\sum _{j=1}^NA_{ij}+\frac{1}{2} \gamma _2\sum _{j=1}^NB_{ij},\\ \alpha _{n,s}= & {} a_0(b_{n-s-1}-2b_{n-s}+b_{n-s+1}),\\ \beta _n= & {} a_0b_n,\\ \lambda _1= & {} -\frac{1}{2}\gamma _2,\\ \lambda _2= & {} -\gamma _1a_0^\prime ,\\ \delta _{n}= & {} -2a_0b_{n},\\ \mu _n= & {} -2a_0b_n\triangle t,\\ \mathbf {F}^{n+1}= & {} \left[ F_1^{(n+1)},F_2^{(n+1)},\ldots ,F_N^{(n+1)}\right] ^T,\\ \Phi= & {} \left[ \Phi _1,\Phi _2,\ldots ,\Phi _N\right] ^T,\\ \Psi= & {} \left[ \Psi _1,\Psi _2,\ldots ,\Psi _N\right] ^T,\\ U^{n+1}= & {} \left[ u_1^{(n+1)},u_2^{(n+1)},\ldots ,u_N^{(n+1)}\right] ^T, \end{aligned}$$

Equation (36) changes to the following matrix form

$$\begin{aligned} \mathbf {A}U^{(n+1)}= & {} [\lambda _1 B+4\lambda _2A]U^{(n)}-\lambda _2AU^{(n-1)}+\sum _{s=1}^n\left\{ \alpha _{n,s}AU^{(s)}\right\} \nonumber \\&+\,\beta _nAU^{(1)} +\delta _{n}\Phi +\mu _n\Psi -\mathbf {F}^{n+1}. \end{aligned}$$
(39)

Furthermore, to satisfy Eq. (35), for all nodes belong to the boundary, i.e. \(\mathbf x _i\in \Gamma \), we set

$$\begin{aligned} \Phi _{i}=\Psi _{i}=0, \ \ \forall j: A_{ij}=B_{ij}=0,\ \ \ \mathbf {F}_i^{(n+1)}=-g(\mathbf x _i,(n+1)\triangle t), \ \ \mathbf {A}_{ij}=\left\{ \begin{array}{ll} 1, &{} j=i \\ 0, &{} j\ne i \end{array}\right. \end{aligned}$$
(40)

for each step. We notice here that, when \(n=0\), we use directly (29) and then for \(n>0\) it is straightforward to use Eq. (39).

Error Analysis

Given positive N, let \(\tau =T/N\), \(t_{n}=n\tau (0\le n \le N)\). The time domain [0, T] is covered by \(\{t_{n}|0\le n \le N\}\). Given grid function \(\mathbb {v}=\{ \mathbb {v}^{n}|0\le n \le N \}\), we denote:

$$\begin{aligned} \mathbb {v}^{n-1/2}=\frac{1}{2}(\mathbb {v}^{n}+\mathbb {v}^{n-1}),\quad \partial _{t}\mathbb {v}^{n-1/2}=\frac{\mathbb {v}^{n}-\mathbb {v}^{n-1}}{\tau } \end{aligned}$$
(41)

Lemma 1

Suppose \(1<\alpha <2\), \(\mathbbm {g}\in \mathcal {C}^{2}[0,T]\). It holds

$$\begin{aligned}&\left| \frac{1}{\Gamma (2-\alpha )}\int ^{t_{n}} _{0}\frac{\mathscr {G}'(\xi )}{(t_{n}-\xi )^{\alpha -1}}d\xi \right. \nonumber \\&\left. \quad -\frac{\tau ^{1-\alpha }}{\Gamma (3-\alpha )} \left[ a_{0} \mathscr {G}(t_{n})-\sum ^{n-1}_{k=1} (a_{n-k-1}-a_{n-k})\mathscr {G}(t_{k})-a_{n-1}\mathscr {G}(0)\right] \right| \nonumber \\&\quad \le \frac{1}{\Gamma (3-\alpha )}\left[ \frac{2-\alpha }{12}+\frac{2^{3-\alpha }}{3-\alpha }-(1+2^{1-\alpha })\right] \max _{0\le t\le t_{n}}|\mathscr {G}''(t)|\tau ^{3-\alpha } \end{aligned}$$
(42)

where

$$\begin{aligned} a_{k}=(k+1)^{2-\alpha }-k^{2-\alpha }. \end{aligned}$$
(43)

Proof

See [35] for more details.

Theorem 1

The scheme (24) is unconditionally stable in the sense that for all \(\tau >0\), it holds

$$\begin{aligned} \Vert \mathcal {U}^{n}\Vert ^{2}\le \mathbb {C}\left( \Vert \nabla \mathcal {U}^{0}\Vert ^{2}+\frac{t_{n}^{2-\alpha }}{\Gamma (3-\alpha )}\Vert U^{0}_{t}\Vert ^{2}+2\frac{t_{n} }{\gamma _{1}}\max _{1\le k\le n}\Vert f^{k-1/2}\Vert ^{2}\right) . \end{aligned}$$
(44)

Proof

Choosing \(\mathbb {v}=\partial _{t}\mathcal {U}^{n-1/2}\) in (42) and noticing \(a_{0}=1\) and \(\mathbb {v}_{1}=\Gamma (3-\alpha )\tau ^{\alpha -1}\) then we have the following equation for \(1 \le n \le N\) :

$$\begin{aligned}&\frac{1}{\mathbb {v}_{1}}\Vert \partial _{t}\mathcal {U} ^{n-1/2}\Vert ^{2}+(\nabla \mathcal {U} ^{n-1/2},\nabla \partial _{t}\mathcal {U} ^{n-1/2})+\gamma _{1}(\partial _{t}\mathcal {U} ^{n-1/2},\partial _{t}\mathcal {U} ^{n-1/2})\nonumber \\&\quad =\frac{1}{\mathbb {v}_{1}}\left[ \sum ^{n-1}_{k=1}(a_{n-k-1}-a_{n-k})(\partial \mathcal {U} _{t}^{k-1/2},\partial _{t}\mathcal {U} ^{n-1/2})-a_{n-1}(U_{t}^{0},\partial _{t}\mathcal {U} ^{n-1/2}))\right] \nonumber \\&\qquad +\,(f^{n-1/2},\partial _{t}\mathcal {U} ^{n-1/2}),\quad 1\le n\le N, \end{aligned}$$
(45)

Since

$$\begin{aligned} (\nabla \mathcal {U} ^{n-1/2},\nabla \partial _{t}\mathcal {U} ^{n-1/2})= & {} \left( \frac{ \nabla \mathcal {U} ^{n}-\nabla \mathcal {U} ^{n-1}}{2},\frac{\nabla \mathcal {U} ^{n}+\nabla \mathcal {U} ^{n-1}}{\tau }\right) \nonumber \\= & {} \frac{1}{2\tau }(\Vert \nabla \mathcal {U} ^{n}\Vert ^{2}-\Vert \nabla \mathcal {U} ^{n-1}\Vert ^{2}). \end{aligned}$$
(46)

and noticing \(a_{k-1}\) and \((a_{n-k-1}-a_{n-k})\) are positive, hence

$$\begin{aligned}&\frac{1}{\mathbb {v}_{1}}\Vert \partial _{t}\mathcal {U}^{n-1/2}\Vert ^{2}+\frac{1}{2\tau }(\Vert \nabla \mathcal {U}^{n}\Vert ^{2}-\Vert \nabla \mathcal {U}^{n-1}\Vert ^{2})+\gamma _{1}(\partial _{t}\mathcal {U} ^{n-1/2},\partial _{t}\mathcal {U} ^{n-1/2})\nonumber \\&\quad =\frac{1}{\mathbb {v}_{1}}\left[ \sum ^{n-1}_{k=1}(a_{n-k-1}-a_{n-k})|(\partial _{t}\mathcal {U}^{k-1/2},\partial _{t}\mathcal {U} ^{n-1/2})|-a_{n-1}|(U_{t}^{0},\partial _{t}\mathcal {U} ^{n-1/2})|\right] \nonumber \\&\qquad +\,|(f^{n-1/2},\partial _{t}\mathcal {U} ^{n-1/2})|,\quad 1\le n\le N, \end{aligned}$$
(47)

Then we can rewrite:

$$\begin{aligned}&\frac{2\tau }{\mathbb {v}_{1}}\Vert \partial _{t}\mathcal {U}^{n-1/2}\Vert ^{2}+(\Vert \nabla \mathcal {U}^{n}\Vert ^{2}-\Vert \nabla \mathcal {U}^{n-1}\Vert ^{2})+2\gamma _{1}\tau \Vert \partial _{t}\mathcal {U} ^{n-1/2}\Vert ^{2}\nonumber \\&\quad \le \frac{\tau }{\mathbb {v}_{1}}\left[ \sum ^{n-1}_{k=1}(a_{n-k-1}-a_{n-k})(\Vert \partial _{t}\mathcal {U}^{k-1/2}\Vert ^{2}\!+\!\Vert \partial _{t}\mathcal {U} ^{n-1/2}\Vert ^{2})-a_{n-1}(\Vert U_{t}^{0}\Vert ^{2}+\Vert \partial _{t}\mathcal {U} ^{n-1/2}\Vert ^{2})\right] \nonumber \\&\qquad +2\tau |(f^{n-1/2},\partial _{t}\mathcal {U} ^{n-1/2})|,\quad 1\le n\le N. \end{aligned}$$
(48)

On the other hand

$$\begin{aligned}&\frac{\tau }{\mathbb {v}_{1}}\Vert \partial _{t}\mathcal {U} ^{n-1/2}\Vert ^{2}+\Vert \nabla \mathcal {U} ^{n}\Vert ^{2}-\Vert \nabla \mathcal {U} ^{n-1}\Vert ^{2}+2\gamma _{1}\tau \Vert \mathcal {U} ^{n-1/2}\Vert ^{2}\nonumber \\&\quad =\frac{\tau }{\mathbb {v}_{1}}\left[ \sum ^{n-1}_{k=1}(a_{n-k-1}-a_{n-k})\Vert \partial _{t}\mathcal {U} ^{k-1/2}\Vert ^{2}-a_{n-1}\Vert U_{t}^{0}\Vert ^{2}\right] \nonumber \\&\qquad +\,2\tau |(f^{n-1/2},\partial _{t}\mathcal {U} ^{n-1/2})|,\quad 1\le n\le N. \end{aligned}$$
(49)

We may consider without loss of generality \(0<2\gamma _{1}\tau <1\), then we obtain

$$\begin{aligned}&\frac{\tau }{\mathbb {v}_{1}}\sum ^{n}_{k=1}a_{n-k}\Vert \partial _{t}\mathcal {U} ^{k-1/2}\Vert ^{2}+\Vert \nabla \mathcal {U} ^{n}\Vert ^{2}\\&\quad =\frac{\tau }{\mathbb {v}_{1}}\sum ^{n-1}_{k=1}a_{n-k-1}\Vert \partial _{t}\mathcal {U} ^{k-1/2}\Vert ^{2}+\Vert \nabla \mathcal {U} ^{n-1}\Vert ^{2}-a_{n-1}\Vert U_{t}^{0}\Vert ^{2}+\tau \frac{\Vert f^{n-1/2}\Vert }{2\gamma _{1}},\quad 1\le n\le N, \end{aligned}$$

where

$$\begin{aligned} 2\tau |\left( f^{n-1/2},\partial _{t}\mathcal {U} ^{n-1/2}\right) |\le 2\tau \frac{\Vert f^{n-1/2}\Vert ^{2}}{\gamma _{1}}+2\gamma _{1}\tau \Vert \partial _{t}\mathcal {U} ^{n-1/2}\Vert ^{2}. \end{aligned}$$
(50)

Denoting

$$\begin{aligned} \mathbb {E}^{n}=\Vert \nabla \mathcal {U} ^{n}\Vert ^{2}+\frac{\tau }{\mathbb {v}_{1}}\sum ^{n}_{k=1}a_{n-k}\Vert \partial _{t}\mathcal {U}^{k-1/2}\Vert ^{2},\quad n\ge 1, \end{aligned}$$
(51)

consequently, we reach to the following inequality

$$\begin{aligned} \mathbb {E}^{n}&\le \mathbb {E}^{n-1}+\frac{\tau a_{n-1}}{\mathbb {v}_{1}}\Vert U^{0}_{t}\Vert ^{2}+\frac{2\tau }{\gamma _{1}}\Vert f^{n-1/2}\Vert ^{2}\\&\le \mathbb {E}^{0}+\frac{\tau }{\mathbb {v}_{1}}\sum _{k=1}^{n}a_{k-1}\Vert U^{0}_{t}\Vert ^{2}+ \frac{2\tau }{\gamma _{1}}\sum _{k=1}^{n}\Vert f^{k-1/2}\Vert ^{2}\\&\le \mathbb {E}^{0}+\frac{\tau }{\mathbb {v}_{1}}\sum _{k=1}^{n}a_{k-1}\Vert U^{0}_{t}\Vert ^{2}+\frac{2\tau n}{\gamma _{1}}\max _{1\le k\le n}\Vert f^{k-1/2}\Vert ^{2} \end{aligned}$$

It is easy to verify that \(\sum ^{n}_{k=1}a_{k-1}=n^{2-\alpha }\), therefore, we have

$$\begin{aligned} \frac{\tau }{\mathbb {v}_{1}}\sum ^{n}_{k=1}a_{k-1}\Vert U^{0}_{t}\Vert ^{2}=\frac{t_{n}^{2-\alpha }}{\Gamma (3-\alpha )}\Vert U^{0}_{t}\Vert ^{2}. \end{aligned}$$
(52)

It could be rewritten

$$\begin{aligned} \Vert \mathcal {U}^{n}\Vert ^{2}\le \mathbb {C}\left( \Vert \nabla \mathcal {U}^{0}\Vert ^{2}+\frac{\tau }{\mathbb {v}_{1}}\sum _{k=1}^{n}a_{k-1}\Vert U^{0}_{t}\Vert ^{2}+2\frac{n\tau }{\gamma _{1}}\max _{1\le k\le n}\Vert f^{k-1/2}\Vert ^{2}.\right) \end{aligned}$$
(53)

Hence the proof is complete. \(\square \)

Fig. 2
figure 2

Absolute error of MLPG solutions with \(\triangle t=0.001\), \(N=441\) and \(\alpha =\frac{3}{2}\) for Example 1

Fig. 3
figure 3

Diagram of MLPG solutions u(x, 0.5, t) at \(t=0,0.1,0.2,\ldots ,2\) with \(\triangle t=0.001\) and \(N=441\) for Example 1

Fig. 4
figure 4

Diagram of exact solutions u(x, 0.5, t) at \(t=0,0.1,0.2,\ldots ,2\) for Example 1

Table 1 The \(L_{\infty }\) error with fixed \(N=441\), \(\alpha =1.5\) and different time-steps for Example 1
Fig. 5
figure 5

The approximation of the domain of Example 2 by different number of nodal points

Two Numerical Experiments

In this section, we show the results obtained for two examples using the meshless method described above. In both examples, the domain integrals are evaluated with 16 points Gaussian quadrature rule while the boundary integrals are evaluated with 7 points Gaussian quadrature rule. To show the behavior of the solution and the efficiency of the proposed method, the following absolute error is applied to make comparison

$$\begin{aligned} Error=\max _{1\le i\le N}\Big |U_{exact}(\mathbf x _i)-U_{approx}(\mathbf x _i)\Big | \end{aligned}$$

where \(U_{exact}(\mathbf x _i)\) and \(U_{approx}(\mathbf x _i)\) are achieved by exact and approximate solution and N is number of nodal points. In both problems the regular node distribution is used. Also in order to implement the meshless local weak form, the radius of the local quadrature domain \(r_q=0.7h\) is selected, where h is the distance between the nodes in x or y direction. The size of \(r_q\) is such that the union of these sub-domains must cover the whole global domain. The radius of support domain to moving least squares approximation is \(r_s=4r_q\) and all shape parameters in (14) are chosen \(c_i=c=1.2h\). This size is significant enough to have sufficient number of nodes (n) and gives an appropriate shape functions. Also, the quadratic basis functions is used i.e. \(m=6\) is taken.

Fig. 6
figure 6

Absolute error of MLPG solutions with \(\triangle t=0.05\), \(N=247\) and \(\alpha =1.2\) for Example 2

Fig. 7
figure 7

Diagram of MLPG solutions u(x, 0.5, t) at \(t=0,0.1,0.2,\ldots ,2\) with \(\triangle t=0.05\) and \(N=247\) for Example 2

Fig. 8
figure 8

Diagram of exact solutions u(x, 0.5, t) at \(t=0,0.1,0.2,\ldots ,2\) for Example 2

Example 1

(Regular domain) We set \(\gamma _1=\gamma _2=1\), the exact solution of problem (1)–(3) is taken as

$$\begin{aligned} u(x,y,t)=t^2 (2-x-y)(x+y), \end{aligned}$$

and the domain of the problem is \(\Omega =[0,1]\times [0,1]\). The functions \(\varphi (x,y)\), \(\psi (x,y)\) and g(xyt) are defined accordingly, and also f(xyt) is given by

$$\begin{aligned} f(x,y,t)=\frac{2 t^{2-\alpha } (x+y-2) (x+y)}{(\alpha -2) \Gamma (2-\alpha )}+4 t^2+2 t (-x-y+2) (x+y), \end{aligned}$$

where

$$\begin{aligned} \Gamma (z)=\int _0^\infty t^{z-1}\exp (-t)\text {d}t. \end{aligned}$$
(54)

Figure 2 presents the absolute error of approximate MLPG solutions at different time levels with \(\triangle t=0.001\) and \(N=441(h=0.05)\) for \(\alpha =1.5\). Also, the approximate MLPG solutions u(x, 0.5, t) at many different time levels and different values of time fractional order i.e. \(\alpha \) have been plotted in Fig. 3, while the corresponding exact solutions have been shown in Fig. 4. Furthermore, Table 1 shows the convergence with respect to time discretization.

Example 2

(Non-regular domain) In this example, we take again \(\gamma _1=\gamma _2=1\) and assume that

$$\begin{aligned} u(x,y,t)=t^3\exp (x+y), \end{aligned}$$

is the exact solution of the problem (1)–(3). Moreover, the domain of the problem is considered as

$$\begin{aligned} \Omega =\left\{ (x,y): (x-\frac{1}{2})^2+4(y-\frac{1}{2})^2\le \frac{1}{4}\right\} , \end{aligned}$$

the approximation of this domain by different number of nodal points, while the regular distributed nodes are used for interior of the domain, are shown in Fig. 5.

The functions \(\varphi (x,y)\), \(\psi (x,y)\), and g(xyt) are defined accordingly and also f(xyt) is given by

$$\begin{aligned} f(x,y,t)=\frac{6 t^{3-\alpha } e^{x+y}}{\left( \alpha ^2-5 \alpha +6\right) \Gamma (2-\alpha )}-2 t^3 e^{x+y}+3 t^2 e^{x+y}. \end{aligned}$$
(55)

As previous example, Fig. 6 presents the absolute error of approximate MLPG solutions at different time levels with \(\triangle t=0.05\) and \(N=247\) for \(\alpha =1.2\). Also, the approximate MLPG solutions u(x, 0.5, t) at many different time levels and different values of time fractional order i.e. \(\alpha \) have been plotted in Fig. 7, while the corresponding exact solutions have been shown in Fig. 8. Moreover, Table 2 shows the convergence with respect to \(\triangle t\) .

Table 2 The \(L_{\infty }\) error with fixed \(N=441\), \(\alpha =1.2\) and different time-steps for Example 2

Conclusions

In this paper, an efficient and accurate computational method namely meshless local Petrov–Galerkin (MLPG) method, which is based on the Galerkin weak form and moving least squares (MLS) approximation, has been applied to the time fractional two-dimensional diffusion-wave equation. The time fractional derivative has been defined by Caputo sense for (\(1<\alpha <2\)). We have considered a arbitrary 2-D domain, which can be non-regular in general, while Dirichlet boundary conditions are prescribed to the boundaries of the domain. We have used meshless Galerkin weak form for the interior nodes whereas the meshless collocation technique has been applied to the nodes on the boundaries of the domain. As a consequence of imposing Dirichlet boundary conditions directly, the general domains are also applicable easily. In the proposed MLPG method, the moving least square (MLS) approximation has been used to construct shape functions which plays important rule in the convergence and stability of the method. Two numerical experiments have been presented and satisfactory agreements are obtained.