scieee AI-readable full text Open interactive document viewer

Coupling of continuous and HDG methods

Paipuri, Mahendra,Tiago, Carlos,Fernández Méndez, Sonia

Abstract

A coupling strategy between hybridizable discontinuous Galerkin (HDG) and continuous Galerkin (CG) methods is proposed in the framework of second-order elliptic operators. The coupled formulation is implemented and its convergence properties are established numerically by using manufactured solutions. The influence of the tau parameter on the coupled formulation is studied.

Full text

6th European Conference on Computational Mechanics (ECCM 6) 7th European Conference on Computational Fluid Dynamics (ECFD 7) 1115 June 2018, Glasgow, UK COUPLING OF CONTINUOUS AND HDG METHODS MAHENDRA PAIPURI1,2, CARLOS TIAGO1AND SONIA FERN ´ ANDEZ–M´ ENDEZ2 1CERIS, ICIST, Instituto Superior T´ecnico, Universidade de Lisboa, Av. Rovisco Pais, 1049-001 Lisboa, Portugal {mahendra.paipuri, carlos.tiago}@tecnico.ulisboa.pt 2Laboratori de C`alcul Num`eric (LaC`aN), Universitat Polit`ecnica de Catalunya (UPC-BarcelonaTech), 08034 Barcelona, Spain [email protected] Key words: hybridizable discontinuous Galerkin, continuous Galerkin, coupling, secondorder elliptic, convergence Abstract. A coupling strategy between hybridizable discontinuous Galerkin (HDG) and continuous Galerkin (CG) methods is proposed in the framework of second-order elliptic operators. The coupled formulation is implemented and its convergence properties are established numerically by using manufactured solutions. The influence of parameter, τ, on the coupled formulation is studied. 1 INTRODUCTION Continuous Galerkin (CG) finite element methods are widely used in computational mechanics. However, for convection dominated problems, CG methods might pose stability issues. Discontinuous Galerkin (DG) finite element methods, originally developed for hyperbolic equations [9], offer some interesting features in this context: (i) local conservation, as they are based on satisfying conservation principles element-by-element, (ii) ability to handle hanging nodes, thereby making the implementation of adaptive algorithms relatively easier and (iii) ready parallelization. In addition, DG methods can be more robust than CG in convection dominated regimes. However, DG methods for problems involving self-adjoint operators are often criticised for having a higher number of degrees of freedoms (DOFs). With the introduction of Hybridizable Discontinuous Galerkin (HDG) methods [3] in the framework of second-order elliptic problems, the mentioned drawback of the DG methods is addressed. The hybridization technique in the case of HDG methods leads to significant reduction in number of DOFs in the final system. HDG method have also been successfully applied to different governing equations with a very competitive number of DOFs when compared to CG methods [8]. Mahendra Paipuri, Sonia Fern´andez–M´endez and Carlos Tiago ΩDΩC ΓI ΓC ΓD ΩD Figure 1: Domain representation: HDG and CG discretizations are considered in ΩDand ΩC, respectively. As far as the knowledge of the authors, coupled CG-HDG scheme has not been proposed yet in any framework. Hence, the present work focuses on the coupling of HDG with CG in the context of heat equation, aiming to combine the favourable features of both CG and HDG methods. The present formulation is first step towards coupling HDG and CG discretization methods. The proposed coupled formulation can be extended for other governing equations like conjugate heat transfer problems [7]. 2 NOTATION Let the domain, Ω, be split into two sub-domains, ΩDand ΩC, such that ¯ Ω = ¯ ΩD∪¯ ΩC with an interface ΓI=¯ ΩD∩¯ ΩC, as shown in fig. 1. In this work, HDG discretization will be considered in ΩD, and CG formulation is stated in ΩC. The domain Ω is assumed to be divided into nel elements, Ωe, with the boundaries ∂Ωe. ¯ Ω = nel [ e=1 ¯ Ωe,Ωe∩Ωk=∅for e6=k, (1) The elements in ΩDand ΩCare represented as Ωe Dand Ωe C, respectively, while the exterior boundaries are denoted by ΓDand ΓC, respectively. The union of all faces in ΩDis denoted as Γ = mel [ e=1 ∂Ωe D,(2) where mel is the number of elements in ΩD. 3 CG-HDG COUPLED FORMULATION FOR THE HEAT EQUATION This section presents suitable formulations for the solution of the heat equation coupling HDG discretization in ΩDand CG discretization in ΩC. 2 Mahendra Paipuri, Sonia Fern´andez–M´endez and Carlos Tiago 3.1 Governing equations The heat equation in ΩDand ΩC, along with the transmission conditions on ΓI, are qD+ (kDgrad θD) = 0in ΩD,(3a) div qD= ¯gDin ΩD,(3b) −div (kCgrad θC) = ¯gCin ΩC,(3c) θD=¯ θDon ΓD,(3d) θC=¯ θCon ΓC,(3e) θD−θC= 0 on ΓI,(3f) qD·nD−(kCgrad θC)·nC= 0 on ΓI,(3g) where θDand θCare the temperatures in ΩDand ΩC, respectively and qDis the independently approximated flux in ΩD. Heat conductivity coefficients are denoted by kD, kC, heat generations per unit volume are given by ¯gD, ¯gC, where the subscripts Dand C denote that quantities are defined in ΩDand ΩC, respectively. Unit normal vectors on ΓI, nDand nC, are outward vectors to ΩDand ΩC, respectively, which satisfy nD=−nC. Dirichlet boundary conditions are prescribed with values ¯ θDand ¯ θCfor both sub-domains on the exterior boundaries to simplify the presentation. The extension of the formulation to problems including Neumann boundary conditions on the exterior boundary is straightforward following the usual procedure for HDG or CG formulations. Equation (3f) represents the continuity of θ, whereas (3g) states the equilibrium of the normal flux across the interface. 3.2 Weak formulation of the CG-HDG coupled problem As shown in fig. 2, in ΩCthe temperature field, θC, is approximated with a continuous space on the mesh represented in blue, while in the HDG domain, ΩD, the elemental variables θDand qDare approximated within each element represented in green and a new independently approximated trace variable, ˆ θD, is defined along the red edges (mesh skeleton). The CG weak form of the heat equation in ΩCis, (grad δθC, kCgrad θC)ΩC− hδθC, kC(grad θC·nC)iΓI−(δθC,¯gC)ΩC= 0,(4) where δθC= 0 on ΓC. Equation (4) is obtained after multiplying equation (3c) with δθC and performing integration by parts. For the HDG domain, ΩD, the discrete problem is expressed as element-by-element local problems and the so-called global problem (see [3] for more details). Note that the only difference of equations (7) with the standard HDG local problem is that the Dirichlet data, that is imposed in weak is θD=ˆ θDon ∂Ωe D\ΓI, θCon ∂Ωe D∩ΓI.(5) 3 Mahendra Paipuri, Sonia Fern´andez–M´endez and Carlos Tiago ΩDΩC ΓI Figure 2: Representation of a computational mesh for coupled discretization. Green triangles represent the HDG local elemental variables while the red edges correspond to HDG trace variable. CG mesh is represented in blue and ΓIis represented in black. For the elements along the interface, no trace variables are considered, as illustrated in fig. 2. For elements in the interior of ΩD, the local problem is the standard one, with a weak imposition of θD=ˆ θDon ∂Ωe D. The Dirichlet boundary condition (5) ensures the weak continuity of the temperature, i.e., the transmission condition (3f) on ΓI. The HDG numerical normal flux, ˆ qD·n, is defined as, ˆ qD·n=qD·n+τ(θD−ˆ θD) on ∂Ωe D\ΓI, qD·nD+τ(θD−θC) on ∂Ωe D∩ΓI.(6) Therefore, the local problem in each element can be written as, (δθD,div qD)Ωe D+DδθD, τ(θD−ˆ θD)E∂Ωe D\ΓI +hδθD, τ(θD−θC)i∂Ωe D∩ΓI−(δθD,¯gD)Ωe D= 0, δqD, k−1 DqDΩe D −(div δqD, θD)Ωe D+DδqD·n,ˆ θDE∂Ωe D\ΓI +hδqD·nD, θCi∂Ωe D∩ΓI= 0, (7) where ˆ θDis an independently approximated trace variable along the mesh skeleton, Γ, which is represented in red in fig. 2, and τis a stabilization parameter of order O(kD). Parameter τhas an important effect on stability, accuracy and convergence properties of the HDG method (see [2,6]). As usual in HDG, the local problem can be solved element-by-element to express θDand qDin terms of ˆ θDand, in the present case, θCas well. The global problem in ΩDis the usual HDG global problem, which can be presented as 4 Mahendra Paipuri, Sonia Fern´andez–M´endez and Carlos Tiago mel X e=1 Dδˆ θD,ˆ qD·nE∂Ωe D\ΓI = 0,(8a) ˆ θD=P2(¯ θD) on ΓD,(8b) where δˆ θD= 0 on ΓD,P2(¯ θD) is the L2projection of the Dirichlet data into the approximation space on ΓD. Essentially, the global problem (8a) states the so-called conservativity condition, i.e, the weak continuity of the normal flux across all the interior faces of the mesh in ΩD. The continuity of the fluxes on the interface, ΓI,i.e., equation (3g), is imposed between the numerical normal flux of HDG, ˆ qD·nD, which is defined in equation (6) and the flux on the interface from ΩC, which is −kCgrad θC·nC, leading to, − hδθC,qD·nD+τ(θD−θC)iΓI+hδθC, kCgrad θC·nCiΓI= 0.(9) By summing equation (9) to the weak form of CG in ΩC(4), and using the weak formulation of HDG, (7) and (8), in ΩD, the coupled discrete problem is obtained: find (qD, θD,ˆ θD, θC)∈Vhd× Vh×Λh× Vh csuch that ˆ θD=P2(¯ θD) on ΓD,θC= Πh(¯ θC) on ΓCand (δθD,div qD)Ωe D+DδθD, τ(θD−ˆ θD)E∂Ωe D\ΓI +hδθD, τ(θD−θC)i∂Ωe D∩ΓI−(δθD,¯gD)Ωe D= 0, δqD, k−1 DqDΩe D −(div δqD, θD)Ωe D+DδqD·n,ˆ θDE∂Ωe D\ΓI +hδqD·nD, θCi∂Ωe D∩ΓI= 0, (10a) for e= 1, . . . , mel and, mel X e=1 Dδˆ θD,qD·n+τ(θD−ˆ θD)E∂Ωe D\ΓI = 0,(10b) (grad δθC, kCgrad θC)ΩC− hδθC,qD·nD+τ(θD−θC)iΓI −(δθC,¯gC)ΩC= 0.(10c) for all (δqD, δθD, δˆ θD, δθC)∈Vhd× Vh×Λh× Vh csuch that δˆ θD= 0 on ΓDand δθC= 0 on ΓC, where the discrete spaces are defined as Vh:= v∈ L2(ΩD) : v|Ωe∈ Pk(Ωe),∀Ωe⊂ΩD, Λh:= ˆv∈ L2(Γ\ΓI) : ˆv|Γi∈ Pk(Γi),∀Γi⊂Γ, Vh c:= v∈ H1(ΩC) : v|Ωe∈ Pr(Ωe),∀Ωe⊂ΩC. (11) As usual in HDG, the spaces for approximation in ΩD,Vhand Λh, consider polynomials of the same degree kfor all variables. Numerical tests in section 3.4 show that the HDG 5 Mahendra Paipuri, Sonia Fern´andez–M´endez and Carlos Tiago super-convergence cannot be retained by the coupling with the CG approximation of same degree, r=k. However, as expected, convergence rates of order k+ 2 for the solution, and of order k+ 1 for the flux, are obtained when higher degree r=k+ 1 is considered for the CG approximation space Vh c. The discretization of the system of equations in (10) gives rise to a matrix equation of the form     Aˆ θˆ θ0 Aˆ θθ Aˆ θq 0 Kθθ BT θθ Bθq Aθˆ θBθθ Aθθ Aθq Aqˆ θBqθ Aqθ Aqq            ˆ θD θC θD qD        =       0 ¯ gC ¯ gD 0        .(12) The column vectors θD,qD,ˆ θDand θCcontain the DOFs associated to θD,qD,ˆ θDand θC, respectively. Static condensation is assumed for the CG discretization, expressing the nodal values of interior nodes of the element in terms of the nodal values on the edges. 3.3 Alternative CG-HDG coupled formulation with a projection operator on the interface The coupled formulation presented earlier considers the standard HDG local problem for the elements that do not share the interface, ∂Ωe D∩ΓI=∅, and a non-standard HDG local problem imposing (5) in weak form for elements along the interface, ∂Ωe D∩ΓI6=∅. In terms of implementation, additional matrices, Bθθ and Bθq, in the elements along the interface boundary ΓIare needed for the non-standard HDG local solver. An alternative coupling formulation is proposed in this section to keep the implementation changes to minimum in any existing HDG and CG codes. The main idea in this formulation is to use a projection to satisfy the transmission conditions. This formulation only requires the standard elemental matrices from HDG (after static condensation of local variables into trace variable) and CG domains, and a projection operation is used on the HDG elemental matrices before assembling into the global system. This requires minimal changes to the existing codes and it is noticed that, in the numerical results, this implementation gives practically the same results as the earlier one with same convergence rates. In this case, the Dirichlet boundary conditions for the local problem are defined as follows, θD=ˆ θDon ∂Ωe D\ΓI, P2(θC) on ∂Ωe D∩ΓI,(13) where in equation (13) the operator P2stands for the L2projection from the CG space Vh cto the HDG space Vh. Hence, the trace is set to the projection of the CG solution on the faces along the interface, i.e., ˆ θD=P2(θC) on ∂Ωe D∩ΓI. Consequently, the numerical normal flux is defined as, ˆ qD·n=qD·n+τ(θD−ˆ θD) on ∂Ωe D\ΓI, qD·nD+τ(θD−P2(θC)) on ∂Ωe D∩ΓI.(14) The jump of fluxes along the interface is weighted with P2(δθC) leading to, − hP2(δθC),qD·nD+τ(θD−P2(θC))iΓI+hP2(δθC), kCgrad θC·nCiΓI= 0.(15) 6 Mahendra Paipuri, Sonia Fern´andez–M´endez and Carlos Tiago Using (13) and (15), the weak formulation of the coupled discrete problem becomes: find (qD, θD,ˆ θD, θC)∈Vhd× Vh×Λh× Vh csuch that ˆ θD=P2(¯ θD) on ΓD,θC= Πh(¯ θC) on ΓCand (δθD,div qD)Ωe D+DδθD, τ(θD−ˆ θD)E∂Ωe D\ΓI +hδθD, τ(θD−P2(θC))i∂Ωe D∩ΓI−(δθD,¯gD)Ωe D= 0, δqD, k−1 DqDΩe D −(div δqD, θD)Ωe D+DδqD·n,ˆ θDE∂Ωe D\ΓI +hδqD·nD,P2(θC)i∂Ωe D∩ΓI= 0, (16a) for e= 1, . . . , mel and, mel X e=1 Dδˆ θD,qD·n+τ(θD−ˆ θD)E∂Ωe D\ΓI = 0,(16b) (grad δθC, kCgrad θC)ΩC− hP2(δθC),qD·nD+τ(θD−P2(θC))iΓI +h(P2(δθC)−δθC), kCgrad θC·nCiΓI−(δθC,¯gC)ΩC= 0.(16c) for all (δqD, δθD, δˆ θD, δθC)∈Vhd× Vh×Λh× Vh csuch that δˆ θD= 0 on ΓDand δθC= 0 on ΓC. The weak form in equations (16) is similar to one presented earlier in equations (10) except for two major differences. First, θCis now replaced by its projection, P2(θC), in the HDG local problems (16a), and an additional term h(P2(δθC)−δθC), kCgrad θC·nCiΓI appears in the last equation (16c). The implementation of this new term maybe cumbersome, because it requires the computation of the gradient of the CG elemental basis functions on the integration points on the interface. However, P2(δθC)−δθC=O(hk+1), where his the mesh size and kis degree of approximation, and therefore, this term can be safely neglected in the discrete problem without losing neither the convergence nor the accuracy of the solution. This formulation does not require the computation of the new matrices that arise in (10), namely Bθθ and Bθq. The projection operation can be done in an elementby-element basis on the HDG elemental matrices for the elements along the interface boundary. For the sake of simplifying the presentation the nodal values of the CG approximation, θC, are split into values for nodes on the interface, θI C, and the remaining CG nodal values, θi C. The global stiffness matrix can be then represented as,   KDD KDI P 0 PTKID PTKD II P+KC II KIC 0 KCI KCC     ˆ θD θI C θi C    =   fD PTfD I+fC I fC    ,(17) where in equation (17), Pis the assembly of projection matrices on all the faces along the interface. This implementation can be easily plugged into any existing HDG solver for heat equation. 7 Mahendra Paipuri, Sonia Fern´andez–M´endez and Carlos Tiago Both coupled formulations (10) and (16) have been implemented and the comparison of the numerical results inferred that both are practically identical. In some tests, the first proposed formulation (10) gave slightly smaller errors. The difference might be due to neglecting the term P2(δθC)−δθCin the last formulation (16). However, the difference in the errors — even for the coarsest mesh — is negligible and, hence, in all the results presented in this work, the formulation with projection (16) is used neglecting the term P2(δθC)−δθC. 3.4 Convergence In this section, the convergence results of the coupled CG-HDG formulation for the heat equation are presented. A square domain, Ω := [0,1]2is considered with the analytical solution, θ= 1 + cos(πx1) cos(πx2).(18) Dirichlet boundary conditions are prescribed on all the exterior boundary. The domain is divided into two halves in vertical direction. The domain corresponding to HDG is ΩD:= [0,0.5] ×[0,1], the CG domain is ΩC:= [0.5,1] ×[0,1], and the interface, ΓI, is x1= 0.5. A suitable body force is computed from the heat equation with the considered analytical solution for both domains, with the conductivity constants, kC=kD= 1. Meshes are obtained by splitting a regular n×nCartesian grid into 2n2triangles, which gives an uniform mesh element size, h= 1/n. The results presented here consider a parameter of τ= 1 on all faces of each element in HDG domain, ΩD. Figure 3shows the convergence for the coupled formulation with same degree for CG and HDG, with k= 1 −8 and element size, h= 0.5/{1,2,4,8,16}. The error in θis measured by using L2norm of errors of the post-processed solution, θ∗ D, in ΩD, and CG solution, θC, in ΩC. Similarly, error in grad θis computed using L2norm of error in qD in ΩDand error in grad θCin ΩC. When the degree of approximation kis used for both HDG and CG domains, even though HDG has superior convergence properties, errors in CG domain dominates for both θand grad θ. Hence, as shown in fig. 3a, the order of convergence of the coupled solution is k+ 1 for θ. Similarly, for grad θ, the order of convergence is k. Figure 4shows the convergence of θ∗ Dand qDin ΩDfor the coupled CG(Pk)-HDG(Pk) model. Sub-optimal convergence rates are observed in both variables: for k > 2, θ∗ D converges with only k+ 1.5 instead of k+ 2, and qDconverges with order k+ 0.5 instead of k+ 1. HDG super-convergence requires a solution of order k+ 1 for qD, and mean of θDthat converges with order k+ 2 in each element in ΩD. The elements in ΩDthat share the interface, ΓI, do not possess the mentioned convergence rates because of the coupling with CG domain, ΩC. To address this shortcoming, higher degree of approximation is considered for the CG discretization. Figure 5a shows the convergence plots for a coupled approximation with degree kfor HDG and degree k+ 1 for CG. Optimal convergence rates of both methods are retained in this case. The post-processed solution of HDG with degree khas the same 8 Mahendra Paipuri, Sonia Fern´andez–M´endez and Carlos Tiago −1.5−1−0.5 0 −10 −5 0 1.9 2 23 3 3 4.1 4.1 4 5 5 5 6 6 6 7 7 8 9 log(h) log keθkL2(Ω) k=1 k=2 k=3 k=4 k=5 k=6 k=7 k=8 (a) θ. −1.5−1−0.5 0 −10 −5 0 1 1 11.9 2 23 3 3 4 4 4 5 5 5 6 67 8 log(h) log kegrad θkL2(Ω) k=1 k=2 k=3 k=4 k=5 k=6 k=7 k=8 (b) grad θ. Figure 3: Coupled CG(Pk)-HDG(Pk): convergence plots in Ω. −1.5−1−0.5 0 −10 −5 0 2 2 23.7 3.8 3.7 4.5 4.5 4.5 5.7 5.6 5.6 6.7 6.6 6.5 7.8 7.5 8.8 7.1 log(h) log  eθ∗ D L2(ΩD) k= 1 k= 2 k= 3 k= 4 k= 5 k= 6 k= 7 k= 8 (a) θ∗ D. −1.5−1−0.5 0 −10 −5 0 1.9 2 22.6 2.6 2.6 3.6 3.5 3.5 4.7 4.6 4.6 5.6 5.6 5.4 6.7 6.5 7.5 6.5 log(h) log  eqD L2(ΩD) k= 1 k= 2 k= 3 k= 4 k= 5 k= 6 k= 7 k= 8 (b) qD. Figure 4: Coupled CG(Pk)-HDG(Pk): convergence plots in ΩD. order of convergence, which is k+ 2, as the CG solution with degree k+ 1. Similarly, the flux qDof HDG converges with same order as grad θCof CG, which is k+ 1. The same conclusions are drawn for quadrilateral elements as well and, hence, the results are omitted. 9