14
ANZIAM J. 60 (CTAC2018) pp.C201C214, 2019 C201 A gradient recovery method based on an oblique projection for the virtual element method Balaje Kalyanaraman 1 Bishnu P. Lamichhane 2 Michael H. Meylan 3 (Received 25 February 2019; revised 2 October 2019) Abstract The virtual element method is an extension of the finite element method on polygonal meshes. The virtual element basis functions are generally unknown inside an element and suitable projections of the basis functions onto polynomial spaces are used to construct the elemental stiffness and mass matrices. We present a gradient recovery method based on an oblique projection, where the gradient of the L 2 - polynomial projection of a solution is projected onto a virtual element space. This results in a computationally efficient numerical method. We present numerical results computing the gradients on different polygonal meshes to demonstrate the flexibility of the method. doi:10.21914/anziamj.v60i0.14041 gives this article, c Austral. Mathematical Soc. 2019. Published October 12, 2019, as part of the Proceedings of the 18th Biennial Computational Techniques and Applications Conference. issn 1445-8810. (Print two pages per sheet of paper.) Copies of this article must not be made otherwise available on the internet; instead link directly to the doi for this article.

A gradient recovery method based on an oblique projection

  • Upload
    others

  • View
    5

  • Download
    0

Embed Size (px)

Citation preview

Page 1: A gradient recovery method based on an oblique projection

ANZIAM J. 60 (CTAC2018) pp.C201–C214, 2019 C201

A gradient recovery method based on anoblique projection for the virtual element

method

Balaje Kalyanaraman1 Bishnu P. Lamichhane2

Michael H. Meylan3

(Received 25 February 2019; revised 2 October 2019)

Abstract

The virtual element method is an extension of the finite elementmethod on polygonal meshes. The virtual element basis functionsare generally unknown inside an element and suitable projections ofthe basis functions onto polynomial spaces are used to construct theelemental stiffness and mass matrices. We present a gradient recoverymethod based on an oblique projection, where the gradient of the L2-polynomial projection of a solution is projected onto a virtual elementspace. This results in a computationally efficient numerical method.We present numerical results computing the gradients on differentpolygonal meshes to demonstrate the flexibility of the method.

doi:10.21914/anziamj.v60i0.14041 gives this article, c© Austral. Mathematical Soc.2019. Published October 12, 2019, as part of the Proceedings of the 18th BiennialComputational Techniques and Applications Conference. issn 1445-8810. (Print two pagesper sheet of paper.) Copies of this article must not be made otherwise available on theinternet; instead link directly to the doi for this article.

Page 2: A gradient recovery method based on an oblique projection

Contents C202

Contents1 Introduction C202

2 Formulation C2032.1 Virtual element discretization . . . . . . . . . . . . . . . . C2032.2 Scaled monomials on the polygon . . . . . . . . . . . . . . C205

3 Gradient recovery C205

4 Results C207

5 Conclusion C212

1 Introduction

Gradient recovery methods are popular numerical techniques for approximat-ing the gradient of a solution. They have the super convergence property andare used in adaptive refinement [9]. A gradient recovery method based onoblique projection was discussed by Lamichhane [3]. The method involves in-verting a diagonal matrix which results in a computationally efficient method.The virtual element method [7, 8, 4] is an extension of the finite elementmethod on polygonal meshes and offers numerous flexibilities in approximat-ing the geometry of the domain and in adaptive algorithms. In this article, weextend the gradient recovery method for virtual element solutions obtainedon polygonal meshes.

Section 2 provides a brief background on the virtual element method which isused to construct the gradient recovery operator. The procedure for computingthe projection is standard and was described in detail by Beirão da Veigaet al. [8]. Section 3 defines the gradient recovery operator Qh and discusesthe construction of an appropriate linear system which is solved to obtainthe gradient recovery. Finally, Section 4 presents some numerical results for

Page 3: A gradient recovery method based on an oblique projection

2 Formulation C203

the gradient recovery method on various polygonal meshes. Throughout thisarticle we consider the modified virtual element method discussed by Ahmadet al. [1].

2 Formulation

2.1 Virtual element discretization

Let Th be a sequence of non-overlapping decompositions of a polygonal domainΩ ⊂ R2 into general polygonal elements K. For all elements K ∈ Th we definethe local space

VK =v ∈ H1(K) ∩ C0(∂K) : ∆v ∈ P1(K) , v|e ∈ P1(e) ∀e ∈ EK

, (1)

where P1 denotes the space of polynomials of degree at most one and EKdenotes the set of edges of the polygon K. The function v ∈ VK is uniquelydetermined on the polygon edges by knowing the values of the function v onthe vertices of the polygon K. We denote by D the set of degrees of freedomof the functions in VK where the degrees of freedom are defined as the valuesof the function v on the vertices of K.

We define the projection operator Π∇K : VK → P1(K) by(

∇Π∇K v ,∇p

)K= (∇v ,∇p)K and P0(Π

∇K v) = P0(v) , (2)

for all p ∈ P1(K) and

P0(v) =1

Nv

Nv∑m=1

v(Vi) ,

where Vi denotes the ith vertex of the polygon and Nv is the number ofvertices in the polygon. The operator Π∇

K is well defined on the local virtualelement space VK and is computed using the degrees of freedom D.

Page 4: A gradient recovery method based on an oblique projection

2 Formulation C204

The standard L2-projection operator Π0K :WK → P1(K) is defined as(Π0Kv ,p

)K= (v,p)K for all p ∈ P1(K) , (3)

where the local virtual element space is defined as

WK =v ∈ VK : (v,p)K =

(Π∇K v,p

)K∀p ∈ P1(K)

, (4)

for all K ∈ Th . The existence of the local virtual element space WK wasdiscussed by Ahmad et al. [1]. Since v|e ∈ P1(e) , we callWK the linear virtualelement space. However, the function v may not be linear inside the polygon.Since the function v ∈ WK is unknown in the interior of the polygon, theinner-product is computed using the extra condition

(v ,p)K =(Π∇K v ,p

)K. (5)

Moreover, from (3) and (5) we observe that for the linear case consideredhere, the projection Π0Kv = Π∇

K v [8, p.1561]. Thus, the global discrete virtualelement space is obtained by assembling the local spaces and is defined as

Vh =v ∈ H1(Ω) : v|K ∈WK ∀K ∈ Th

. (6)

Let Vh = span ϕ1,ϕ2, · · · ,ϕN be the set of basis functions for the virtualelement space Vh. Then any function uh ∈ Vh can be expressed as

uh(x) =

N∑i=1

uh(xi)ϕi(x) ,

where N denotes the global degrees of freedom and the basis functions ϕisatisfy the Kronecker delta property,

ϕi(xj) = δij ,

where xjN

j=1 is the set of vertices on Th. Finally, we define dofi (uh) = uh(Vi)as the local degree of freedom of uh at the ith vertex of a polygon.

Page 5: A gradient recovery method based on an oblique projection

3 Gradient recovery C205

2.2 Scaled monomials on the polygon

Let hK be the diameter and pK = (xK,yK) be the centroid of the polygon K.We define the scaled monomials of order one as the set

M1(K) :=

m1 := 1 ,m2 :=

x− xKhK

,m3 :=y− yKhK

. (7)

The scaled monomials in (7) serve as a basis for the polynomial space P1(K).Since Π∇

K uh ∈ P1(K) for some uh ∈ Vh , we write

Π∇K uh =

Nv∑i=1

dofi(uh) Π∇K ϕi =

Nv∑i=1

dofi(uh)3∑

α=1

si,αmα , (8)

where the coefficients si,α are obtained from the definition of Π∇K in (2). For

our case, the same expression in equation (8) holds for Π0Kuh. Since theprojection Π∇

K is defined locally inside the element, the basis functions ϕiare considered in the local sense in (8). Here ϕi|e ∈ P1(e) and it satisfies theKronecker delta property on the vertices of the polygon [8] and hence theprojection Π∇

K ϕi can be computed inside the polygon.

3 Gradient recovery

To compute the gradient recovery, the gradient of the virtual element so-lution ∇uh needs to be projected onto the virtual element space Vh. Anoblique projection using a bi-orthogonal basis yields a diagonal matrix whichis inverted to obtain the gradient recovery.

The gradient recovery operatorQh projects∇uh by finding gkh = Qh (∂uh/∂xk)∈ Vh for k = 1, 2 such that∑

K

(Π0Kg

kh ,Π

0Kµj)K=∑K

(∂(Π0Kuh)

∂xk,Π0Kµj

)K

, (9)

Page 6: A gradient recovery method based on an oblique projection

3 Gradient recovery C206

with (x1, x2) = (x,y) and where the functions µj ∈Mh := spanµ1,µ2, · · · ,µNsatisfy the bi-orthogonal relation(

Π0Kϕi ,Π0Kµj)K= cjδij for all K ∈ Th , (10)

where the scaling factors cj are obtained using mass lumping. Let DK denotethe local diagonal matrix defined by the bi-orthogonality relation (10) andD denote the global matrix arising from the finite element assembling of thelocal matrices DK. From the definition of Qh in (9), the gradient recovery isperformed using (10) without explicitly computing the bi-orthogonal basisµj and Π0Kµj. Since the L2-projection Π0Kuh is close to the virtual elementsolution uh on the polygon K, ∇uh is approximated by ∇Π0Kuh. Expandingin terms of the basis,

gkh =

N∑i=1

gkh(xi)ϕi and uh =

N∑i=1

uh(xi)ϕi . (11)

Let gki = dofi(gkh) and (uh)i = dofi(uh) . Equations (9), (10) and (11) yield

∑K

Nv∑i=1

gki(Π0Kϕi ,Π

0Kµj)K=∑K

Nv∑i=1

(uh)i

(∂(Π0Kϕi)

∂xk,Π0Kµj

)K

, (12)

which in matrix form is equivalent to the system of linear equations D~gk = ~fk .The basis functions in equation (12) are equivalent to local basis functionson the virtual element K and finite element assembly must be performed toobtain the global system. The right hand side of equation (12) is constructedas follows.

On each element K ∈ Th , since M1(K) ⊂ P1(K) ⊂ Vh|K , we use the ansatz

p(x) =

Nv∑i=1

dofi(p)ϕi(x) for p ∈ P1(K) , (13)

Page 7: A gradient recovery method based on an oblique projection

4 Results C207

where the degrees of freedom and the basis functions are considered in thelocal sense. Using (8), the right-hand side in equation (12) becomes,(

∂(Π0Kϕi)

∂xk,Π0Kµj

)K

=

3∑α=1

si,α

(∂mα

∂xk,Π0Kµj

)K

=

3∑α=1

si,α

Nv∑p=1

dofp(∂mα

∂xk

)(ϕp ,Π0Kµj

)K

=

3∑α=1

si,α

Nv∑p=1

dofp(∂mα

∂xk

)(Π0Kϕp ,Π

0Kµj)K

=

3∑α=1

si,α

Nv∑p=1

dofp(∂mα

∂xk

)DKpj .

Written in matrix-form, we have si,α = (S)αi and dofp (∂mα/∂xk) = (Mk)pα .Thus we have (

∂(Π0Kϕi)

∂xk,Π0Kµj

)K

= [DKMk S]ji := [QKk ]ji .

Thus the recovered gradient is a solution to the system of linear equations

D~gk = Qk~uh = ~fk ,

where ~uh is the solution obtained from the virtual element method andQk is the global matrix obtained by the finite element assembly of the localmatrices QK

k .

4 Results

We provide numerical examples to solve the standard Poisson equation

− ∆u = f in Ω, (14)

Page 8: A gradient recovery method based on an oblique projection

4 Results C208

subject to appropriate boundary conditions. The finite dimensional virtualelement weak formulation for the problem is to find uh ∈ Vh such that

ah(uh, vh) = lh(vh) for all vh ∈ Vh , (15)

where the construction of the approximate bilinear form ah and the linearform lh were discussed by Beirão da Veiga et al. [7] and for the special caseof p = 1 by Sutton [4, p.6]. Vacca and Beirão da Veiga [6, p.15] defined abilinear form mh for approximating the standard L2 inner-product. Utilizingthe stability properties of the approximate bilinear forms, it is useful to definethe norms

|uh|1,h =√ah(uh,uh) and ‖uh‖0,h =

√mh(uh,uh) ,

equivalent to the standard H1-seminorm and the L2-norm, respectively. Theequivalent norms are explicitly computed using the local L2-projection Π0Kand the rates of convergence for the various solutions are studied with respectto these norms.

The first example we consider is solving the Poisson equation with a smoothexact solution u = sin(πx) sin(πy) . We then solve the problem using the vir-tual element method with homogeneous Dirichlet boundary condition on twodifferent types of polygonal meshes, shown in Figures 1 and 2. All the mesheswere generated using PolyMesher [5]. The error from the standard obliqueprojection on the whole and interior domain are Eu = ‖∇u−Qh∇uh‖0,h andEIu = ‖∇u−Qh∇uh‖0,h,I , respectively. The standard H1-seminorm error onthe entire domain is EEu = |u−uh|1,h . Convergence analysis was performedon a uniform-square mesh and on a quasi-uniform Voronoi mesh. Figure 3shows the convergence plots for the two different types of meshes.

For the uniform-square meshes, the rate of convergence of the recoveredgradient error Eu is close to 1.5, which is higher than the rate observedfor EEu. For the error EIu we observe that the convergence rate is closeto two, indicating that the solution deteriorates near the boundary of thedomain for the uniform case. For the quasi-uniform Voronoi mesh, similar

Page 9: A gradient recovery method based on an oblique projection

4 Results C209

Figure 1: Solution of the Poisson equation and the recovered gradients ona virtual element mesh containing non-convex shaped elements. The errorvalues are |u − uh|1,h = 0.17631 , ‖∂u/∂x −Qh(∂uh/∂x)‖0,h = 0.10382 and‖∂u/∂y−Qh(∂uh/∂y)‖0,h = 0.10333 .

Page 10: A gradient recovery method based on an oblique projection

4 Results C210

Figure 2: Same as Figure 1 but on a smooth, quasi-uniform Voronoi mesh. Theerror values are |u− uh|1,h = 0.10095 , ‖∂u/∂x−Qh(∂uh/∂x)‖0,h = 0.10175and ‖∂u/∂y−Qh(∂uh/∂y)‖0,h = 0.10222 .

Page 11: A gradient recovery method based on an oblique projection

4 Results C211

0.02 0.04 0.06 0.08 0.110

-3

10-2

10-1

100

(a) uniform-square meshes.

0.02 0.04 0.06 0.08 0.110

-3

10-2

10-1

100

(b) Quasi-uniform Voronoi meshes.

Figure 3: Rate of convergence plots for gradient recovery where Eu = ‖∇u−Qh∇uh‖0,h , EIu = ‖∇u−Qh∇uh‖0,h,I and EEu = |u− uh|1,h .

Page 12: A gradient recovery method based on an oblique projection

5 Conclusion C212

trends are observed for the recovered gradient in Eu. However, the error inthe interior norm EIu converges with the same rate as Eu. This is because therefinement is not perfectly uniform, unlike in the square meshes. In the finiteelement setting, Ilyas et al. [2] used an appropriate boundary modificationtechnique to improve the rate of convergence on the boundary of the domainfor uniform meshes. In both cases, as the mesh becomes finer, the error Eubecomes less than EEu, indicating that Qh∇uh is a better approximationto ∇u than ∇uh.

5 Conclusion

We have shown how to construct a gradient recovery operator based on anoblique projection for the virtual element method onto polygonal meshes. Thebasis functions are assumed to be linear on the edges of the polygons. We haveestablished that the gradient recovery can be done without the computationof the bi-orthogonal basis. We have computed the rate of convergence of thegradient-recovery method and compared the same with the convergence ofthe standard gradient.

References

[1] B. Ahmad, A. Alsaedi, F. Brezzi, L. D. Marini, and A. Russo.“Equivalent projectors for virtual element methods”. In: Comput. Math.Appl. 66.3 (2013), pp. 376–391. doi: 10.1016/j.camwa.2013.05.015(cit. on pp. C203, C204).

Page 13: A gradient recovery method based on an oblique projection

References C213

[2] Ilyas, M. and Lamichhane, B. P. and Meylan, M. H. “A gradient recoverymethod based on an oblique projection and boundary modification”. In:Proceedings of the 18th Biennial Computational Techniques andApplications Conference, CTAC-2016. Vol. 58. ANZIAM J. 2017,pp. C34–C45. doi: 10.21914/anziamj.v58i0.11730 (cit. on p. C212).

[3] B. P. Lamichhane. “A gradient recovery operator based on an obliqueprojection”. In: Electron. Trans. Numer. Anal. 37 (2010), pp. 166–172.url: http://etna.mcs.kent.edu/volumes/2001-2010/vol37/abstract.php?vol=37&pages=166-172 (cit. on p. C202).

[4] O. J. Sutton. “Virtual element methods”. PhD thesis. University ofLeicester, Department of Mathematics, 2017. url:http://hdl.handle.net/2381/39955 (cit. on pp. C202, C208).

[5] C. Talischi, G. H. Paulino, A. Pereira, and I. F. M. Menezes.“PolyMesher: a general-purpose mesh generator for polygonal elementswritten in Matlab”. In: Struct. Multidiscip. O. 45.3 (2012), pp. 309–328.doi: 10.1007/s00158-011-0706-z (cit. on p. C208).

[6] G. Vacca and L. Beirão da Veiga. “Virtual element methods forparabolic problems on polygonal meshes”. In: Numer. Meth. Part. D. E.31.6 (2015), pp. 2110–2134. doi: 10.1002/num.21982 (cit. on p. C208).

[7] L. Beirão da Veiga, F. Brezzi, A. Cangiani, G. Manzini, L. D. Marini,and A. Russo. “Basic principles of virtual element methods”. In: Math.Mod. Meth. Appl. Sci. 23.01 (2013), pp. 199–214. doi:10.1142/S0218202512500492 (cit. on pp. C202, C208).

[8] L. Beirão da Veiga, F. Brezzi, L. D. Marini, and A. Russo. “Thehitchhiker’s guide to the virtual element method”. In: Math. Mod. Meth.Appl. Sci. 24.08 (2014), pp. 1541–1573. doi:10.1142/S021820251440003X (cit. on pp. C202, C204, C205).

[9] J. Xu and Z. Zhang. “Analysis of recovery type a posteriori errorestimators for mildly structured grids”. In: Math. Comput. 73 (2004),pp. 1139–1152. doi: 10.1090/S0025-5718-03-01600-4 (cit. onp. C202).

Page 14: A gradient recovery method based on an oblique projection

References C214

Author addresses

1. Balaje Kalyanaraman, School of Mathematical and PhysicalSciences, University of Newcastle Callaghan, NSW 2308, Australia.mailto:[email protected]

2. Bishnu P. Lamichhane, School of Mathematical and PhysicalSciences, University of Newcastle Callaghan, NSW 2308, Australia.mailto:[email protected]

3. Michael H. Meylan, School of Mathematical and Physical Sciences,University of Newcastle Callaghan, NSW 2308, Australia.mailto:[email protected]