In this paper, we propose a stabilizer free spatial weak Galerkin (SFSWG) finite element method for solving time-dependent convection diffusion equations based on weak form Eq. (4). SFSWG method in spatial direction and Euler difference operator Eq. (37) in temporal direction are used. The main reason for using the SFSWG method is because of its simple formulation that makes this algorithm more efficient and its implementation easier. The optimal rates of convergence of and in a discrete and norms, respectively, are obtained under certain conditions if polynomial spaces are used in the SFSWG finite element method. Numerical experiments are performed to verify the effectiveness and accuracy of the SFSWG method.
In this paper, we are concerned with the development of numerical methods for the following partial differential equation with initial-boundary conditions using a stabilizer free spatial weak Galerkin (SFSWG) finite element method
where is a polygonal domain in with Lipschitz-continuous boundary, , is the diffusion coefficient matrix, is the convection coefficient and is the reaction coefficient in relevant applications. We suppose that , , and for some constant and there exist positive constants such that
.
[1] Let be a Hillbert space with inner product and . Define
The standard weak form of the Eqs (1)–(3) is to find such that
The convection-diffusion equation appears in broad engineering and science applications such as materials sciences, fluid flows, and image processing. There are many efforts devoted to detecting accurate and efficient approximation solutions for solving the convection-diffusion equation (see [2, 3]) and time-dependent convection-diffusion equation (see [4]). In [4], Shenglan Xie et al. proposed a fully discrete scheme, based on weak Galerkin method in space and Crank-Nicolson method in time, for time-dependent convection-dominated diffusion equation. The major idea of the weak Galerkin finite element method is to substitute the classical differential operators with weak differential operators on functions with discontinuity plus a stabilizer part that ensures a sufficient weak continuity for the approximating function. Recently, the weak Galerkin method has been developed to solve the elliptic equations [5, 6, 7], the nonlinear convection-diffusion problems in 1D and 2D [8, 9], singularly perturbed reaction-diffusion problems [10], the biharmonic problems [11], the Helmholtz equation [12], the coupled Burgers’ equations [13], p-Laplacian Problem [14] and the Maxwell equations [15].
The stabilizer free weak Galerkin (SFWG) finite element method, recently introduced by Ye and Zhang in [16], refers to the numerical techniques for solving Poisson equation on polytopal meshes in 2D or 3D, where there is a so that as long as the degree of the weak gradient satisfies , the SFWG scheme will work and the optimal rate of convergence can be obtained. In [17], Al-Taweel and Wang proved the optimal degree of weak gradient of the SFWG method to improve the efficiency of SFWG and to avoid the numerical difficulties associated with using high degree weak gradients. The benefits of utilizing the stabilizer free weak Galerkin method compared to the existing standard weak Galerkin method are two-part: firstly, it has a simple formulation which is closer to the weak form Eq. (4) and thus the implementation of the SFWG finite element method is easier than that of the standard weak Galerkin method; secondly and more importantly, it is more efficient than the standard WG method. The goal of this article is to study a stabilizer free spatial weak Galerkin finite element method (SFSWG) for solving convection-diffusion equations with time-dependent Eqs (1)–(3) on uniform triangular partitions and then establish the stability and error analysis in a discrete norm and norm.
This paper is organized as follows: In Section 2, the weak gradient, weak divergence, and a semi discretized SFSWG finite element scheme for the convection-diffusion equation are presented. In Section 3, we introduce a fully discretized SFSWG scheme for the Eqs (1)–(3). Numerical experiment results are presented in Section 4 to verify the theoretical results. Finally, concluding remarks are summarized in Section 5.
Weak Galerkin finite element schemes
Let be a partition of the domain consisting of convex polygons in 2D. Suppose that is shaped regular in the sense defined by Eqs (15) and (16). Let be the set of all edges in , and let be the set of all interior edges. For each element , denote by the diameter of , and the mesh size of .
On each , let be the space of all polynomials with degree or less. Let be the weak Galerkin finite element space associated with defined as follows:
where is a given integer. In this instance, the component symbolizes the interior value of , and the component symbolizes the edge value of on each and , respectively. Let be the subspace of defined as:
Now, we define the weak gradient and weak divergence operators as follows:
.
(Weak gradient) For any , the weak gradient where , is defined on as the unique polynomial satisfying
where is the unit outward normal vector of .
.
(Weak divergence) For any , the weak divergence is defined on as the unique polynomial satisfying
Next, we define four global projections , , , and as follows.
.
For each element ,
are the projections onto the associated local polynomial spaces. Finally, we define a projection operator , for .
For simplicity, we adopt the following notations,
For any and in , we define the bilinear form as
The semi discrete SFSWG finite element scheme for the Eqs (1)–(3) is to seek , such that the following equation holds
.
Let elements and have as a common edge, we define jump for a scalar function on as
where and are the unit outward normal vectors on common edge for elements and , respectively.
.
Discrete Poinccaré inequality [18]. Let . There is , independent of , such that ,
.
If satisfies the shape regular conditions of Lemma 4, then there exists , so that ,
Proof..
By the assumptions of Lemma 4, there exists a constant so that, for each , where ,
It is easy to see that
The proof then follows from the fact that if , then . ∎
Now, we define an energy norm on as:
An semi-norm on is defined as:
.
(Coercivity) Let be shape regular as defined in Lemma 4. Then, There exists a constant , such that
Proof..
Let . From the Eq. (9) and the definition of the in Eq. (13), we get
which complets the proof. ∎
The following lemma shows that is equivalent to defined in Eq. (13).
.
(see [17, 1]) Suppose that , is convex with at most edges and satisfies the following regularity conditions: for all edges and of
for any two adjacent edges and the angle between them satisfies
where and are independent of and . Let or when each edge of is parallel to another edge of . Denote be the degree of weak gradient when , then there exist two constants , , such that for each , the following hold true
where and depend only on and .
.
Let . Then there exists two constants , such that for any , we have
Subtracting Eq. (10) from Eq. (31) generates Eq. (30), which completes the proof. ∎
.
Let . If is a piecewise constant matrix, then for any and , the following estimates hold
Proof..
For the first estimate Eq. (32), it follows from Cauchy-Schwarz inequality and Lemma 9, that
By using the trace inequality Eq. (19) and Lemma 8, we obtain
The estimate for can be obtained from Lemma 5 in [4]. The last estimate Eq. (34) follows from the Cauchy-Schwarz inequality, and the Lemma 8
which completes the proof. ∎
Now, we will provide an error estimate for the semi discretized SFSWG scheme Eq. (10).
.
Let be the solution to the Eq. (10) and be the solution to the Eqs (1)–(3). Assume that , . If is a piecewise constant matrix, then the following estimate holds
Integrating Eq. (36) with respect to and noticing that , yields Eq. (35). ∎
Fully discretized SFSWG scheme
Let be a positive integer and be the time-step size, we define , to get a fully discretization of Eq. (10). With regard to the temporal direction, we define the numerical derivative as follows:
at the th time step with step size by using the backward Euler difference operator, where . Suppose that and using the backward Euler difference quotient defined above to the semi discrtized Eq. (10), we have the fully discretized SFSWG finite element scheme for the Eqs (1)–(3): seek such that
or, we can rewrite it as
Next, we prove an error estimate for any fixed . Let be an error, which will be utilized in the following error analysis.
Subtracting Eq. (39) from Eq. (42) yields Eq. (40). ∎
Now, we will present an error estimate for the fully discretized SFSWG finite element schemes Eq. (38) or Eq. (39).
.
Let be the solution to the fully discretized formulation and be the solution to the Eqs (1)–(3). For a fixed , let . If is a piecewise constant matrix, then there exists a constant such that
Since , for any fixed index , by summing up the inequalities in Eq. (47) from to , we find
where . ∎
Numerical experiments
In this section, we will present the results of some numerical experiments to verify the theoretical results derived in previous sections and illustrate the efficiency of the SFSWG method by comparing it with the standard WG method on a square domain and an L-shaped domain with uniform triangular partitions. We will start with examples on square domain. The first two levels of meshes are plotted in Fig. 1.
.
In this example, we consider the Eqs (1)–(3) posed on the domain with the following data: , and . The initial boundary condition and the source term are computed accordingly. Let be the mesh size for triangular grids. We use the polynomial pair for space Eq. (5) and set in the weak gradient Eq. (7) to find the SFSWG solution in the spatial direction and backward Euler method in temporal direction. Table 1 lists errors and convergence rates in -norm and -norm at the final time.
Errors and convergence rates for elements with weak gradient and
When
When
Rate
Rate
Rate
Rate
1
2
4.1772E-01
–
2.9577E-02
–
4.7949E-01
–
3.6141E-02
–
4
3.5505E-01
0.23
1.6952E-02
0.80
4.0402E-01
0.25
2.0026E-02
0.85
8
2.0487E-01
0.79
5.4297E-03
1.64
2.31251E-01
0.80
6.3011E-03
1.67
16
1.0601E-01
0.95
1.4470E-03
1.91
1.1916E-01
0.96
1.6674E-03
1.92
32
5.3513E-02
0.99
3.6766E-04
1.98
5.9935E-02
0.99
4.2237E-04
1.99
2
2
1.7926E-01
–
9.4441E-03
–
1.9825E-01
–
9.2873E-03
–
4
6.2453E-02
1.52
1.6318E-03
2.53
6.9071E-02
1.52
1.6718E-03
2.47
8
1.6175E-02
1.94
2.3153E-04
2.81
1.7801E-02
1.96
2.3902E-04
2.81
16
4.0524E-03
2.00
3.0664E-04
2.92
4.4463E-03
2.00
3.1718E-05
2.91
A triangulation meshes in computation.
Figure 2 shows the computational time (in seconds) comparison between SFSWG finite element method and weak Galerkin finite element method. As we can see in Fig. 2 that the SFSWG algorithm is running faster than the standard weak Galerkin algorithm. We can also see in Fig. 2 that the computation time with 2048 elements and time steps by using the SFSWG is , which is much less than , needed by using the standard weak Galerkin algorithm. Therefore, when a large number of elements are used the computation time becomes a significant factor. The SFSWG method is more efficient in accuracy and computation time.
Errors and convergence rates for elements with weak gradient
When
When
Rate
Rate
Rate
Rate
1
2
1.2535E-02
–
4.4207E-03
–
4.8481E-04
–
8.3798E-05
–
4
6.2159E-03
1.01
1.9982E-03
1.15
2.3808E-04
1.03
2.1742E-05
1.94
8
2.3337E-03
1.41
5.7518E-04
1.80
1.1645E-04
1.03
5.1005E-06
2.09
16
1.0131E-03
1.20
1.5097E-04
1.93
5.8682E-05
0.99
1.2892E-06
1.98
32
4.8384E-04
1.07
3.8295E-05
1.98
2.9471E-05
0.99
3.2471E-07
1.99
2
2
8.7835E-03
–
3.7630E-03
–
2.8773E-04
–
6.2074E-05
–
4
1.4937E-03
2.56
6.3891E-04
2.56
3.3212E-05
3.11
7.1133E-06
3.13
8
2.1831E-40
2.77
8.2225E-05
2.96
4.3021E-06
2.95
8.9704E-07
2.98
16
3.7969E-05
2.52
1.0349E-05
2.99
5.9435E-07
2.85
1.1261E-07
2.99
Comparison of computation times (in seconds) by using the elements on a uniform grids.
.
Rotating Gaussian pulse. This example is adopted from [4]. Let the Eqs (1)–(3) be posed on the domain with the following data: , and . The initial boundary condition is given by
and the source term . We set , and in the numerical test. The exact solution is given by
where and . The results obtained in Table 2 shows the errors of the SFSWG schemes and the convergence rates in the norm and norm at final time for and . The numerical calculations are done on triangular meshes with and time step size . The results show that the SFWG scheme with elements has convergence rate of and in -norm and norm, respectively. Let be the mesh size for triangular meshes.
Error analysis and convergence rates for elements with weak gradient and
When
When
Rate
Rate
Rate
Rate
1
2
1.7071E-01
–
3.6779E-02
–
1.5094E-01
–
7.3556E-02
–
4
1.0931E-01
0.64
1.0977E-02
1.74
5.8769E-02
1.36
1.8390E-02
1.99
8
5.7971E-02
0.92
2.8701E-03
1.94
2.2973E-02
1.36
4.2138E-30
2.12
16
2.9409E-02
0.98
7.2506E-04
1.98
9.9614E-03
1.20
9.8442E-04
2.01
2
2
3.5322E-02
–
1.6191E-02
–
7.5893E-02
–
3.8393E-02
–
4
7.6857E-03
2.20
2.6338E-03
2.62
7.9017E-03
3.26
5.0591E-03
2.92
8
1.6953E-03
2.18
3.4421E-04
2.94
9.7336E-04
3.02
6.3962E-04
2.98
16
4.0601E-04
2.06
4.3631E-05
2.98
1.6125E-04
2.59
8.0811E-05
2.98
Error analysis and convergence rates for the SFSWG scheme Eqs (10) and (38) on L-shaped domain
Rate
Rate
1
2
2.6938E-01
–
1.5937E-02
–
4
1.6357E-01
0.72
4.9222E-03
1.70
8
8.5845E-02
0.93
1.2982E-03
1.92
16
4.3447E-02
0.98
3.2896E-04
1.98
2
2
3.3114E-02
–
1.1655E-03
–
4
3.3114E-02
1.85
1.5756E-04
2.89
8
2.3323E-03
1.98
1.9805E-05
2.99
16
5.8422E-04
2.00
2.4722E-06
3.00
A triangulation of a L-shape domain.
.
L-shaped domain. In this example, we use a L-shaped domain with the following data: , and the exact solution is
The results reported in Table 3 shows the errors and the numerical convergence rates in the norm and norm. The numerical calculations are done on basis of degrees and the polynomial degree for the weak gradient Eq. (7). The results show that for both and , the SFWG scheme with elements has convergence rate of and in -norm and norm, respectively. The first two levels of L-shaped domain are shown in Fig. 3.
.
As the final example, we use a L-shaped domain with the following data: , and the exact solution is
Table 4 shows the performance of the SFSWG schemes for the Eq. (48) on polynomial of degrees and time step size . The results indicate that the SFSWG method with elements has convergence rate of and in -norm and norm, respectively. The numerical solution, the exact solution and their error are shown in Fig. 4.
WG solution (Left), exact solutions (Middle) and the error (Right) at final time for element on L-shaped domain with .
Conclusion
A fully discretized scheme using SFSWG finite element method with backward Euler difference operator Eq. (37) in temporal direction is proposed in this paper. The error estimates and convergence of semi discretized and fully discretized SFSWG schemes are derived. Numerical results show that while the same rate of convergence can be obtained using standard weak Galerkin algorithm and SFSWG algorithm Eqs (10) and (38), the SFSWG algorithm is more efficient and easier to implement for time dependent convection-diffusion equation.
References
1.
Al-TaweelAHussainSWangX. A stabilizer free weak Galerkin finite element method for parabolic equation. Journal of Computational and Applied Mathematics. 2021; 392: 113373.
2.
KimMYShinDW. A high order discontinuous Galerkin method with skeletal multipliers for convection-diffusion-reaction problems. Computer Methods in Applied Mechanics and Engineering. 2019; 343: 207–233.
3.
StynesM. Finite volume methods for convection-diffusion problems. Journal of Computational and Applied Mathematics. 1995; 63(1-3): 83–90.
4.
XieSZhuPWangX. Error analysis of weak Galerkin finite element methods for time-dependent convection-diffusion equations. Applied Numerical Mathematics. 2019; 137: 19–33.
5.
HussainSMalluwawaduNZhuP. A weak Galerkin finite element method for the second order elliptic problem with mixed boundary condition. J Appl Anal Comput. 2018; 8(5): 1452–1463.
6.
MuLWangJWangYYeX. A computational study of the weak Galerkin method for second-order elliptic equations. Numerical Algorithms. 2013; 63(4): 753–777.
7.
MalluwawaduNHussainS. A weak Galerkin method for second order elliptic problems with polynomial reduction. Journal of Applied Analysis & Computation. 2019; 9(2): 655–670.
8.
CheichanMSKashkoolHAGaoF. A weak galerkin finite element method for solving nonlinear convection-diffusion problems in one dimension. International Journal of Applied and Computational Mathematics. 2019; 5(2): 1–15.
9.
CheichanMSKashkoolHAGaoF. A weak Galerkin finite element method for solving nonlinear convection-diffusion problems in two dimensions. Applied Mathematics and Computation. 2019; 354: 149–163.
10.
Al-TaweelAHussainSWangXJonesB. A P0–P0 weak Galerkin finite element method for solving singularly perturbed reaction-diffusion problems. Numerical Methods for Partial Differential Equations. 2020; 36(2): 213–227.
11.
MuLWangJYeX. Weak Galerkin finite element methods for the biharmonic equation on polytopal meshes. Numerical Methods for Partial Differential Equations. 2014; 30(3): 1003–1029.
12.
MuLWangJYeX. weak Galerkin finite element method for the Helmholtz equation with large wave number on polytopal meshes. Numerical Methods for Partial Differential Equations. 2015; 35(3): 1228–1255.
13.
HusseinAJKashkoolHA. Weak Galerkin finite element method for solving one-dimensional coupled Burgers’ equations. Journal of Applied Mathematics and Computing. 2020; 63(1): 265–293.
14.
YeXZhangS. A weak Galerkin finite element method for p-laplacian problem. East Asian Journal On Applied Mathematics. 2021; 11(2): 219–233.
15.
MuLWangJYeXZhangS. A weak Galerkin finite element method for the Maxwell equations. Journal of Scientific Computing. 2015; 65(1): 363–386.
16.
YeXZhangS. A stabilizer-free weak Galerkin finite element method on polytopal meshes. Journal of Computational and Applied Mathematics. 2020; 371: 112699.
17.
Al-TaweelAWangX. A note on the optimal degree of the weak gradient of the stabilizer free weak Galerkin finite element method. Applied Numerical Mathematics. 2020; 150: 444–451.
18.
Di PietroDAErnA. Mathematical aspects of discontinuous Galerkin methods. vol. 69. Springer Science & Business Media; 2011.
19.
WangJYeX. A weak Galerkin mixed finite element method for second order elliptic problems. Mathematics of Computation. 2014; 83(289): 2101–2126.
20.
WangJYeX. A weak Galerkin finite element method for second-order elliptic problems. Journal of Computational and Applied Mathematics. 2013; 241: 103–115.