Consistency enforcement for the iterative solution of weak Galerkin finite element approximation of Stokes flow
Abstract. Finite element discretization of Stokes problems can result in singular, inconsistent saddle point linear algebraic systems. This inconsistency can cause many iterative methods to fail to converge. In this work, we consider the lowest-order weak Galerkin finite element method to discretize Stokes flow problems and study a consistency enforcement by modifying the right-hand side of the resulting linear system. It is shown that the modification of the scheme does not affect the optimal-order convergence of the numerical solution. Moreover, inexact block diagonal and triangular Schur complement preconditioners and the minimal residual method (MINRES) and the generalized minimal residual method (GMRES) are studied for the iterative solution of the modified scheme. Bounds for the eigenvalues and the residual of MINRES/GMRES are established. Those bounds show that the convergence of MINRES and GMRES is independent of the viscosity parameter and mesh size. The convergence of the modified scheme and effectiveness of the preconditioners are verified using numerical examples in two and three dimensions.
Keywords: Stokes flow, GMRES, MINRES, Weak Galerkin, Compatibility condition.
Mathematics Subject Classification (2020): 65N30, 65F08, 65F10, 76D07
1 Introduction
We consider the lowest-order weak Galerkin (WG) finite element approximation of Stokes flow problems in the form
(1) |
where is a bounded polygonal/polyhedral domain, is the fluid kinematic viscosity, is the fluid velocity, is the fluid pressure, is a body force, is a non-zero boundary datum of the velocity satisfying the compatibility condition , and is the unit outward normal to the boundary of the domain. The resulting linear algebraic system is a singular saddle point system where the singularity reflects the nonuniqueness of the pressure solution. While it is well known (e.g., see [4, Remark 6.12] and [16, Section 10.2]) that Krylov subspace methods, such as the minimal residual method (MINRES) and the generalized minimal residual method (GMRES), work well for consistent singular systems, the underlying system is nonconsistent in general when is not identically zero (cf. Section 2). This inconsistency can cause MINRES and GMRES to fail to converge.
The objective of this work is to study a simple consistency enforcement strategy by modifying the right-hand side of the linear system that results from the WG discretization of (1). We shall prove that the optimal-order convergence is not affected by the modification. Moreover, we consider inexact block diagonal and triangular Schur complement preconditioners for the efficient iterative solution of the singular but consistent saddle point system resulting from the modified scheme. Bounds for the eigenvalues and the residual of MINRES and GMRES for the corresponding preconditioned systems are established. These bounds show that the convergence of MINRES and GMRES with the inexact block diagonal and triangular Schur complement preconditioning is independent of the fluid kinematic viscosity and mesh size. It is worth mentioning that the preconditioned system associated a block diagonal Schur complement preconditioner is diagonalizable and this MINRES can be used for system solving and spectral analysis can be used to analyze the convergence of MINRES. On the other hand, the preconditioned system with a block triangular Schur complement preconditioner is not diagonalizable and we need to use GMRES for the iterative solution of the system. Moreover, the spectral analysis cannot be used directly to analyze the convergence of GMRES. Instead, it needs to be combined with Lemmas A.1 and A.2 of [7] that provide a bound for the residual of GMRES in terms of the norm of the off-diagonal blocks in the preconditioned system and the performance of GMRES to the preconditioned Schur complement.
Numerical solution of Stokes flow problems has continuously gained attention from researchers. Particularly, a variety of finite element methods have been studied for those problems; e.g., see [1] (mixed finite element methods), [3, 17] (virtual element methods), [8, 15] (hybrid discontinuous Galerkin methods), and [11, 14, 18] (weak Galerkin (WG) finite element methods). We use here the lowest-order WG method for the discretization of Stokes flow problems. It is known (cf. Lemma 2.1 or [19]) that the lowest-order WG method, without using stabilization terms, satisfies the inf-sup condition (for stability) and has the optimal-order convergence. Moreover, the error in the velocity is independent of the error in the pressure (pressure-robustness) and the error in the pressure is independent of the viscosity (-semi-robustness). On the other hand, little work has been done so far for the efficient iterative solution of the saddle point system arising from the WG approximation of Stokes problems. Recently, the authors considered in [7] the iterative solution of the lowest-order WG approximation of Stokes problems through regularization and provided a convergence analysis for MINRES and GMRES with inexact block diagonal and triangular Schur complement preconditioners, respectively.
The rest of this paper is organized as follows. In Section 2, the weak formulation for Stokes flow and its discretization by the lowest-order WG method are described. Consistency enforcement and related error analysis are discussed in Section 3. In Section 4, the block diagonal and block triangular Schur complement preconditioning and convergence of MINRES and GMRES for the modified system are studied. Section 5 presents two- and three dimensional numerical experiments to verify the theoretical findings and showcase the effectiveness of the preconditioners. Finally, the conclusions are drawn in Section 6.
2 Weak Galerkin discretization for Stokes flow
In this section we describe the lowest-order weak Galerkin approximation of the Stokes flow problem (1).
The weak formulation of (1) is to find and such that (in the weak sense) and
(2) |
Consider a connected quasi-uniform simplicial mesh on . A mesh is called to be connected if any pair of its elements is linked by a chain of elements that share an interior facet with each other. We introduce the following discrete weak function spaces on :
(3) | ||||
(4) |
where and denote the set of constant polynomials defined on element and facet , respectively. Note that is approximated on both interiors and facets of mesh elements while is approximated only on element interiors. Then, we can define the lowest-order WG approximation of the Stokes problem (1) as: finding and such that and
(5) |
where is a -projection operator onto restricted on each facet and the lifting operator is defined [10, 19] as
(6) |
Here, is the lowest-order Raviart-Thomas space, viz.,
Notice that depends on but not on .
The discrete weak gradient and divergence operators in (5) are defined as follows. For a scalar function or a component of a vector-valued function, , the discrete weak gradient operator is defined as follows
(7) |
where is the unit outward normal to and and are the inner product on and , respectively. For a vector-valued function , is viewed as a matrix with each row representing the weak gradient of a component. By choosing properly in (7) and using the fact that , we can obtain (e.g., see [6])
(8) | |||
(9) |
where and denote the basis functions of and , respectively, denotes the -th facet of , is the unit outward normal to ,
and , denote the vertices of .
The discrete weak divergence operator is defined independently through
(10) |
Note that . Moreover, by taking we have
(11) |
where denotes the average of on facet and is the -dimensional measure of .
The scheme (5) achieves the optimal-order convergence as shown in the following lemma.
Lemma 2.1.
To cast (5) into a matrix-vector form, hereafter we use interchangeably for the WG approximation of in and the vector formed by its values for and , excluding those on . Similarly, is used to denote both the WG approximation of and the vector formed by for all . Then, we can write (5) into
(16) |
where the matrices and and vectors and are defined as
(17) | ||||
(18) | ||||
(19) | ||||
(20) |
Notice that (16) is a singular saddle point system where the pressure solution is unique up to a constant. Moreover, the system is inconsistent in general when is not identically zero. To explain this, from (20) we have
(21) |
This gives rise to
(22) | ||||
where we have used the fact that consists of element facets because is assumed to be a polygon or a polyhedron. If we choose , , from the compatibility condition we have
Unfortunately, in general the averages need to be approximated numerically. The approximation error can cause a non-zero and thus the inconsistency of the system. This can also happen if is defined differently, for instance, is defined as the value of at the barycenter of . Krylov subspace methods, like MINRES and GMRES, may fail to converge when applied to this inconsistent singular system although they are known to work well for consistent singular systems, at least when the initial guess is taken as zero; e.g., see [4, Remark 6.12] and [16, Section 10.2].
3 Consistency enforcement and its effects on the optimal-order convergence
In this section we consider an approach of enforcing the consistency/compatibility condition by modifying the right-hand term and study the effects of this modification on the optimal-order convergence of the numerical solution.
We propose to modify to enforce the consistency. Specifically, we define
(23) |
where is the number of elements in and
By definition, we have . Moreover, from the compatibility condition , we can rewrite as
(24) |
The modified scheme reads as
(25) |
where , , and are given in (17), (18), and (19), respectively. Note that (25) is still singular but consistent.
An immediate question about the modified scheme is how much the accuracy of the numerical solution is affected by the modification. To answer this, we provide an error analysis for the modified scheme (25) in the following.
Let and be the solutions of the Stokes problem (1) and and be the numerical solutions of (25). We split the error into the projection and discrete error as
(26) |
where the projection operator is defined as . The operator is considered to be componentwise when applied to vector-valued functions. The projection error and are determined by the approximation capacity of the finite element spaces. Our primary focus is on and .
Lemma 3.1.
There hold
(27) | ||||
(28) | ||||
(29) | ||||
(30) |
where .
Proof.
Lemma 3.2.
There exists a constant independent of such that
(31) |
Proof.
Proof can be found in [19, Lemma 7]. ∎
Lemma 3.3.
The error equations for the modified scheme (25) read as
(32) |
where
(33) |
and is projection from onto space.
Proof.
Using the discrete errors defined in (26), we substitute
into the modified scheme (25) and obtain
(34) |
Next, we estimate the terms on the right-hand sides. For the first term on the right-hand side of the first equation of (34), by testing the first equation of (1) by we obtain
(35) |
For the second term on the right-hand side of the above equation, using the divergence theorem and we have
(36) |
For the last term on the right-hand side of (35), using the divergence theorem, the definitions of the lifting and discrete divergence operators, and the fact for , we have
or
(37) |
From this and the divergence theorem, definition of projection , and normal continuity of , we obtain
(38) |
Inserting (36) and (38) into (35), we obtain
(39) |
For the second term on the right-hand side of the first equation of (32) using the WG commuting identity
the definition of the discrete weak gradient operator, the divergence theorem, and the fact , we have
(40) |
Lemma 3.4.
Let and be the solutions of the Stokes problem and and be the numerical solutions of the modified scheme (25). Then,
(41) | |||
(42) |
where is a constant independent of and .
Proof.
By the Cauchy-Schwarz inequality and trace inequalities ((27), (29), and (30) in Lemma 3.1), we have
(43) |
and
(44) |
Taking and in the error equations (32), we have
(45) |
where we have used the assumption that the mesh is quasi-uniform. From the inf-sup condition Lemma 3.2, we get
(46) |
Combining (45) and (46), we have
Applying the quadratic formula to the above inequality we obtain
which gives (41). The inequality (42) follows from (41) and (46). ∎
Theorem 3.1.
Let and be the solutions of Stokes problem and and be the numerical solutions of the modified scheme (25). Assume . Then,
(47) | |||
(48) | |||
(49) | |||
(50) |
where is a constant independent of and .
Proof.
It is known that the solutions of the Stokes problem have the regularity
Using this, Lemma 3.4, and the triangle inequality, we obtain (47).
Let be a -projection operator from onto broken space. From the commuting identity of WG, Lemma 3.4, and projection properties, we have
which gives (48).
Consider the dual problem
(51) |
where is the velocity discrete error. It is known and . Taking as the test function in the first equation of the dual problem, we have
(52) |
We estimate the terms on the right-hand side separately.
For the second term in (52), using the divergence theorem and the definition of and discrete weak divergence, we have
Summing over and using , we get
From the Cauchy-Schwarz inequality, (27) and (29) of Lemma 3.1, the projection properties, Lemma 3.4, and
we have
(53) |
Next, we focus on the first term of (52), . By the divergence theorem and (from the continuity of ), there holds
(54) |
For the first term in (54), by the property of , divergence theorem, definition of , and property of , we have
(55) |
Plugging (55) into (54), we get
(56) |
Combining (52), (53), and (56) gives
(57) |
Taking in the first equation of error equation (32) yields
By the property of projection and , we have
which gives
Using this, from (3) we obtain
(58) |
Next, we estimate the last three terms in the above inequality.
Comparing the above theorem with Lemma 2.1, we can see that the effects of the consistency enforcement (23) are reflected by the factor in the error bounds (47)–(50). In particular, if , the bounds in Theorem 3.1 are the same as those in Lemma 2.1. Moreover, from (24) we can see that the magnitude of depends on how closely is approximated by . Such approximation can be made in , for instance, by choosing as the value of at the barycenter of . It can also be made at higher order using a Gaussian quadrature rule for computing . When the approximation is at second order or higher, Theorem 3.1 shows that the optimal convergence order of the WG scheme is not affected by the consistency enforcement (23).
4 Convergence analysis of MINRES/GMRES with block Schur complement preconditioning
In this section we study the MINRES/GMRES iterative solution for the modified scheme (25) (that is singular but consistent) with block diagonal/triangular Schur complement preconditioning. We establish bounds for the eigenvalues of the preconditioned systems and for the residual of MINRES/GMRES.
We start with rescaling the unknown variables and rewriting (25) into
(62) |
The following lemma provide a bound for the Schur complement of the above system.
Lemma 4.1.
The Schur complement for (62) satisfies
(63) |
where is the mass matrix of interior pressure, the sign “” is in the sense of negative semi-definite.
Proof.
Lemma 4.2.
The eigenvalues of , where and , are bounded by and for .
Proof.
4.1 Block diagonal Schur complement preconditioning
We first consider a block diagonal Schur complement preconditioner. Based on Lemma 4.1, we take as an approximation to the Schur complement and choose the block diagonal preconditioner as
(65) |
Since is SPD, the preconditioned system is similar to which can be expressed as
(66) |
The symmetry of the preconditioned system indicates that MINRES can be used for its iterative solution, with convergence analyzed through spectral analysis and residual estimates.
Lemma 4.3.
The eigenvalues of are bounded by
(67) |
Proof.
Proposition 4.1.
The residual of MINRES applied to the preconditioned system is bounded by
(69) |
Proof.
It is known [13] that the residual of MINRES is given by
where is the set of polynomials of degree up to . Denote the eigenvalues of by , . It is known (e.g., see [4, Section 8.3.4] or [16, Chapter 10]) that the convergence of MINRES with zero initial guess is not affected by the singular eigenvalues when applied to consistent systems. Based on the bounds for the eigenvalues of (cf. Lemma 4.3) and [4, Theorem 6.13] (for convergence of MINRES), we have
∎
Note that holds due to the minimization property of MINRES [4]. An important consequence of Proposition 4.1 is that the number of MINRES required to reach a prescribed level of the residual, when preconditioned by , is independent of size of the discrete problem and the parameter . Hence, is an effective preconditioner for (62).
4.2 Block triangular Schur complement preconditioning
We now consider block triangular Schur complement preconditioners and the convergence of GMRES.
We start by pointing out that several inexact block triangular Schur complement preconditioners have been studied in [7, Appendix A] for general saddle point systems and are shown to perform very similarly. As such, we focus here only on the following block lower triangular preconditioner,
(70) |
This preconditioner is nonsingular. Moreover, it corresponds to the choice (the pressure mass matrix) for the approximation of the Schur complement .
Proposition 4.2.
The residual of GMRES applied to the preconditioned system is bounded by
(71) |
Proof.
Applying [7, Lemma A.1] to (62) with preconditioner (70), we obtain the bound for the GMRES residual as
(72) |
From Lemma 4.1, we have . In the following, we estimate and .
For , using (64) and the fact that and are SPD, we have
(73) |
Next, we look into the factor . Notice that both and are symmetric for the current situation. Moreover, is singular with its null space given by . Since the modified scheme is consistent, the corresponding system with is consistent as well. It is known (e.g., see [4, Section 8.3.4] or [16, Chapter 10]) that the convergence of GMRES with zero initial guess is not affected by the singular eigenvalues when applied to consistent systems. Thus, denoting the eigenvalues of by , we have
From Lemma 4.2 and using shifted Chebyshev polynomials for the above minmax problem (e.g., see [5, Pages 50-52]), we get
Combining the above results, we obtain (71). ∎
Recall that is the stiffness matrix of the WG approximation of the Laplacian operator. It is known that for quasi-uniform meshes, both and are in the order of and is bounded above by a constant independent of and . Then, (71) implies that the convergence of GMRES, applied to the modified scheme (62), with the block triangular Schur complement conditioner (70), is independent of and .
5 Numerical experiments
In this section we present some two- and three-dimensional numerical results to demonstrate the performance of MINRES/GMRES with the block Schur complement preconditioners for the modified system (62). We use MATLAB’s function minres with for 2D examples and for 3D example, with a maximum of 1000 iterations and the zero vector as the initial guess. Similarly, we use MATLAB’s function gmres with for 2D examples and for 3D examples, , and the zero vector as the initial guess. The implementation of the block preconditioners requires the exact inversion of the diagonal blocks. The inversion of the diagonal mass matrix is straightforward. The leading block represents the WG approximation of the Laplacian operator, and linear systems associated with are solved using the conjugate gradient method preconditioned with incomplete Cholesky decomposition. The incomplete Cholesky decomposition is carried out using MATLAB’s function ichol with threshold dropping and the drop tolerance is . Numerical experiments are conducted on triangular and tetrahedral meshes as shown in Fig. 1.


5.1 The two-dimensional example
To examine the convergence of the modified scheme (25), we show the error of the velocity in Table 1. Theoretically, this error has the optimal first-order convergence as stated in Theorem 3.1. In Table 1, the error of velocity for both and shows the first-order convergence rate. Interestingly, the error is almost the same for and .
conv. rate | conv. rate | |||
232 | 9.428879e-02 | – | 9.428878e-02 | – |
918 | 4.719342e-02 | 1.006 | 4.719342e-02 | 1.006 |
3680 | 2.352019e-02 | 1.003 | 2.352019e-02 | 1.003 |
14728 | 1.174930e-02 | 1.000 | 1.174930e-02 | 1.000 |
58608 | 5.893651e-03 | 0.999 | 5.893651e-03 | 0.999 |
Recall from Proposition 4.1 that the residual of MINRES with the preconditioner is independent of and . Table 2 shows a consistent number of MINRES iterations as the mesh is refined. Furthermore, the iteration remains stable for small values of . Similar observations can be made for GMRES from Table 3.
The good performance of the block Schur complement preconditioners and can be explained from the number of MINRES/GMRES iterations shown in Tables 2 and 3. The number of iterations required to reach convergence remains relatively small and consistent with mesh refinement and various values of . If without preconditioning, on the other hand, MINRES and GMRES would take more than 30,000 iterations to reach convergence, which is a significant difference compared to the solvers with preconditioning. We also observe that the number of MINRES iterations is almost double that of GMRES, as shown by comparing Tables 2 and 3. This observation is consistent with the estimates in Proposition 4.1 and Proposition 4.2.
232 | 918 | 3680 | 14728 | 58608 | |
43 | 47 | 49 | 49 | 47 | |
42 | 48 | 54 | 58 | 60 |
232 | 918 | 3680 | 14728 | 58608 | |
21 | 23 | 24 | 25 | 25 | |
23 | 25 | 27 | 27 | 27 |
5.2 The three-dimensional example
This three-dimensional (3D) example is adopted from deal.II [2] step-56. Here, and
The number of MINRES/GMRES iterations for the preconditioned systems for and is listed in Tables 4 and 5, respectively. The number of iterations remains relatively small and consistent with various in and , which is consistent with the fact that the bounds of the residual in Propositions 4.1 and 4.2 are independent of and . Once again, MINRES/GMRES without preconditioning would require more than 30,000 iterations to reach convergence.
4046 | 7915 | 32724 | 112078 | 266555 | |
59 | 59 | 63 | 67 | 67 | |
62 | 62 | 70 | 76 | 78 |
4046 | 7915 | 32724 | 112078 | 266555 | |
30 | 30 | 31 | 32 | 33 | |
34 | 35 | 37 | 38 | 38 |
6 Conclusions
In the previous sections we have studied the iterative solution of the singular saddle point system arising from the lowest-order weak Galerkin discretization of Stokes flow problems. In general the system is inconsistent when the boundary datum is not identically zero. This inconsistency can cause iterative methods such as MINRES and GMRES to fail to converge. We have proposed a simple strategy to enforce the consistency by modifying the right-hand side of the second equation (cf. (23)). We have shown in Theorem 3.1 that the optimal-order convergence of the numerical solutions is not affected by the modification.
We have considered block diagonal and triangular Schur complement preconditioning for the iterative solution of the modified system. In Section 4.1, we have studied the block diagonal Schur complement preconditioner (65) and established bounds for the eigenvalues of the preconditioned system (see Lemma 4.3) as well as for the residual of MINRES applied to the preconditioned system (cf. Proposition 4.1). In Section 4.2, we have studied the block triangular Schur complement preconditioner (70) and derived the asymptotic error bound in Proposition 4.2 for GMRES applied to the preconditioned system. These bounds show that both the convergence of MINRES and GMRES for the corresponding preconditioned systems is independent of and . The optimal-order convergence of the modified scheme (62) and effectiveness of the block diagonal and triangular Schur complement preconditioners have been verified by two- and three-dimensional numerical examples in Section 5.
Acknowledgments
W. Huang was supported in part by the Air Force Office of Scientific Research (AFOSR) grant FA9550-23-1-0571 and the Simons Foundation grant MPS-TSM-00002397.
References
- [1] M. Ainsworth and C. Parker. A mass conserving mixed -FEM scheme for Stokes flow. Part III: Implementation and preconditioning. SIAM J. Numer. Anal., 60:1574–1606, 2022.
- [2] D. Arndt, W. Bangerth, B. Blais, T. C. Clevenger, M. Fehling, A. Grayver, T. Heister, L. Heltai, M. Kronbichler, M. Maier, P. Munch, J.-P. Pelteret, R. Rastak, I. Tomas, B. Turcksin, Z. Wang, and D. Wells. The deal.ii library, version 9.2. J. Numer. Math., 28(3):131–146, 2020.
- [3] T. Bevilacqua, F. Dassi, S. Zampini, and S. Scacchi. BDDC preconditioners for virtual element approximations of the three-dimensional Stokes equations. SIAM J. Sci. Comput., 46:A156–A178, 2024.
- [4] H. C. Elman, D. J. Silvester, and A. J. Wathen. Finite elements and fast iterative solvers: with applications in incompressible fluid dynamics. Numerical Mathematics and Scientific Computation. Oxford University Press, Oxford, second edition, 2014.
- [5] A. Greenbaum. Iterative methods for solving linear systems, volume 17 of Frontiers in Applied Mathematics. Society for Industrial and Applied Mathematics (SIAM), Philadelphia, PA, 1997.
- [6] W. Huang and Y. Wang. Discrete maximum principle for the weak Galerkin method for anisotropic diffusion problems. Comm. Comput. Phys., 18:65–90, 2015.
- [7] W. Huang and Z. Wang. Convergence analysis of iterative solution with inexact block preconditioning for weak Galerkin finite element approximation of Stokes flow. arXiv:2409.16477, 2024.
- [8] P. L. Lederer and C. Merdon. Gradient-robust hybrid DG discretizations for the compressible Stokes equations. J. Sci. Comput., page 54, 2024.
- [9] J. Liu, S. Tavener, and Z. Wang. Lowest-order weak Galerkin finite element method for Darcy flow on convex polygonal meshes. SIAM J. Sci. Comput., 40:B1229–B1252, 2018.
- [10] L. Mu. Pressure robust weak Galerkin finite element methods for Stokes problems. SIAM J. Sci. Comput., 42:B608–B629, 2020.
- [11] L. Mu, X. Wang, and X. Ye. A modified weak Galerkin finite element method for the Stokes equations. J. Comput. Appl. Math., 275:79–90, 2015.
- [12] L. Mu, X. Ye, and S. Zhang. A stabilizer-free, pressure-robust, and superconvergence weak Galerkin finite element method for the Stokes equations on polytopal mesh. SIAM J. Sci. Comput., 43:A2614–A2637, 2021.
- [13] C. C. Paige and M. A. Saunders. Solutions of sparse indefinite systems of linear equations. SIAM J. Numer. Anal., 12:617–629, 1975.
- [14] X. Tu and B. Wang. A BDDC algorithm for the Stokes problem with weak Galerkin discretizations. Comput. Math. Appl., 76:377–392, 2018.
- [15] X. Tu, B. Wang, and J. Zhang. Analysis of BDDC algorithms for Stokes problems with hybridizable discontinuous Galerkin discretizations. Electron. Trans. Numer. Anal., 52:553–570, 2020.
- [16] H. A. van der Vorst. Iterative Krylov Methods for Large Linear Systems. Cambridge Monographs on Applied and Computational Mathematics. Cambridge University Press, 2003.
- [17] G. Wang, L. Mu, Y. Wang, and Y. He. A pressure-robust virtual element method for the Stokes problem. Comput. Meth. Appl. Mech. Engrg., 382:113879, 2021.
- [18] J. Wang and X. Ye. A weak Galerkin finite element method for the Stokes equations. Adv. Comput. Math., 42:155–174, 2016.
- [19] Z. Wang, R. Wang, and J. Liu. Robust weak Galerkin finite element solvers for Stokes flow based on a lifting operator. Comput. Math. Appl., 125:90–100, 2022.