scieee AI-readable full text Open interactive document viewer

Numerical approximation of Poisson problems using high-order continuous Galerkin methods with static condensation

Pérez Álvarez, Antonio

Abstract

Higher-order methods in finite elements can provide better approximations than linear methods, in some problems. This is because they can offer an exponential convergence rate of the solution. Thus, in some applications, high-order methods can be cheaper than low-order methods. Nonetheless, it is of major importance to provide good implementations in order to reduce the computational cost of solving a problem. To this end, we propose to use the classical continuous Galerkin method with static condensation procedure to reduce the memory footprint and the CPU time. The main idea consists on write the unknowns related to the inner nodes of each element in terms of the unknowns related to the boundary nodes of the elements. Thus, this method effectively suppress all the unknowns that correspond to pure interior elemental nodes. To show these properties, we apply the static condensation technique to the Poisson problem. We will particularize the proposed technique for this problem, and we will compare the obtained solution and the computational cost with a classical implementation of the high-order continuous Galerkin method. In order to formulate the method correctly, all the needed results are introduced. The results show that static condensation is a valid choice since it reduces the computational cost of solving a problem.

Full text

Title: Numerical approximation of Poisson problems using high-order continuous Galerkin methods with static condensation Author: Antonio Pérez Álvarez Advisors: Eloi Ruiz Gironés and Jose Sarrate Ramos Department: Departament de Matemàtica Aplicada III Academic year: 2014-2015 Master of Science in Advanced Mathematics and Mathematical Engineering Universitat Polit`ecnica de Catalunya Facultat de Matem`atiques i Estad´ıstica Master Thesis Numerical approximation of Poisson problems using high-order continuous Galerkin methods with static condensation Antonio P´erez ´ Alvarez Advisor: Eloi Ruiz Giron´es and Jose Sarrate Ramos Departament de Matem`atica Aplicada III Abstract Keywords: Finite element method, high-order methods, continuous Galerkin, static condensation, Poisson. Higher-order methods in finite elements can provide better approximations than linear methods, in some problems. This is because they can offer an exponential convergence rate of the solution. Thus, in some applications, high-order methods can be cheaper than loworder methods. Nonetheless, it is of major importance to provide good implementations in order to reduce the computational cost of solving a problem. To this end, we propose to use the classical continuous Galerkin method with static condensation procedure to reduce the memory footprint and the CPU time. The main idea consists on write the unknowns related to the inner nodes of each element in terms of the unknowns related to the boundary nodes of the elements. Thus, this method effectively suppress all the unknowns that correspond to pure interior elemental nodes. To show these properties, we apply the static condensation technique to the Poisson problem. We will particularize the proposed technique for this problem, and we will compare the obtained solution and the computational cost with a classical implementation of the high-order continuous Galerkin method. In order to formulate the method correctly, all the needed results are introduced. The results show that static condensation is a valid choice since it reduces the computational cost of solving a problem. Contents Chapter 1. Introduction 1 Chapter 2. The Numerical method 3 1. Mathematical formulation of the problem 3 2. Weak formulation and Galerkin approximation 4 3. Linear System 10 4. Static condensation Procedure 14 Chapter 3. Examples 17 Chapter 4. Conclusions 23 References 25 i Chapter 1 Introduction When selecting the method of solving an engineering problem formulated in partial differential equations (PDE), we take into consideration several criteria: numerical properties, implementation time, computational cost, robustness and geometric flexibility. Based on the needs of the user, it is selected the one that best meets these criteria. With this presetting, as to the results that we want to obtain, the Finite Element Method (FEM) can provide in general good approximations. This method uses piecewise polynomials to approximate the solution of such problems. The latest research in this field [2, 5, 6, 7, 8, 10, 11, 13, 15, 17, 18, 19] further indicates that high-order adaptive methods successfully respond to the growing complexity of the problems that are solved. In fact, they provide a better accuracy than lower-order methods for a smooth solution. In recent years, unstructured high-order methods have been postulated as a good technique when performing high-quality approximations. In this project it will be discussed, in the framework of the high-order FEM. It is important make good implementations of the method. For large problems there is higher resources intake in terms of time and memory, since high-order methods, with regard to the lower-order case, have a high storage cost due to the increase of the number and coupling of the degrees of freedom of the mesh. The aim will be therefore, to provide a tool that allows to reduce the computational cost and the memory requirements. To solve this issue, we propose to apply the static condensation method which involves the suppression of some degrees of freedom of the original problem. In particular, the unknowns associated with nodes that belong to the interior of the elements are written in terms of the unknowns related to the nodes that belong to the boundary of the elements, therefore, the degrees of freedom related to the inner nodes of the elements are affectively suppressed. Note that, as we increase the polynomial degree of the mesh, the number of nodes on the interior of the elements increases more rapidly than the number of nodes on the boundary of the elements. For this reason, the static condensation technique is very interesting to reduce the computational requirements when simulating a physical process. The rest of the dissertation is structured as follows. In Chapter 2, we present the problem to be solved, and how to discretize it using the continuous Galerkin 1 2 1. INTRODUCTION method. Then, we introduce the static condensation technique in order to reduce the computational requirements of the method. Chapter 3 is focused on providing to the reader two examples embedded in the context of the original problem. On these, will be applied the methodologies described in Chapter 2, to highlight the differences between both methods. The last chapter of this work provides the main conclusions that can be extracted from the results and the lines of the research that could be carried out in the future. 2. WEAK FORMULATION AND GALERKIN APPROXIMATION 9 Find ui, i = 1, . . . , N such that: (7) N X i=1 uia(φi, φj) = L(φj),∀φj∈V0 h. In Equation (7) there are more unknowns than equations and therefore, this problem is not well posed. To solve this issue we have to introduce the Dirichlet data condition into the problem. We can assume, without loss of generality, that the shape functions are ordered in such a way that the first ones vanishes at ΓD. Thus, {φ1, . . . , φnh}is a basis of V0 h. We can write uhas: uh= nh X i=1 uiφi+ N X i=nh+1 uiφi. Finally, our problem becomes: Find ui∈R, for i= 1, . . . , nhsuch that: (8) nh X i=1 uia(φi, φj) = L(φj)− N X i=nh+1 uia(φi, φj),∀φj∈V0 h. Here the second summation is known, since, ui=gD(ai) with i=nh+ 1, . . . , N. Notation 5. A∈ Mnh×nh, Aij =a(φi, φj). b∈Rnh, bj=L(φj)− N X i=nh+1 gDia(φi, φj). u∈Rnh, uhi=uh(ai). Notice that here the only unknown is the vector u. Thus, using the previous notation we have: nh X i=1 uhiAij =bj⇔Au =b. As the reader can observe, this last computations end with a linear system. Finally, with this procedure we reach a simpler problem: Find u∈Rnhsuch that: (9) Au =b. After computing the solution of the system we simply add the Dirichlet condition in the correspondent omitted nodes at the rhs. Lemma 6 (Existence and uniqueness of solution. Lax-Milgram).Let be Va Hilbert space endowed with the norm || · ||V, a(u, v) a bilinear form and L(v) a lineal form. The weak problem: Find u∈Vsuch that: a(u, v) = L(v),∀v∈V 10 2. THE NUMERICAL METHOD has unique solution if and only if a(·,·) is continuous and coercive, and L(·) is continuous. Finally ending with this section, we only need to add that thanks to the LEMMA 6 the Formulation (3) has unique solution. Furthermore, this previous result also allows to ensure that the Galerkin problem associated to it, Equation (5), admits an unique solution too. Moreover, this result allows to enunciate that the linear system wrote above in Equation (9) has its Amatrix symmetric and positive definite. Therefore it can be solved via a direct or iterative method and has an unique solution. See [3, 16] for more details about this subsection. After this introduction of the main concepts and notation we will proceed with the main formulation of the method described in this master thesis. 3. Linear System Although the previous formulation is well posed from a mathematical point of view, it does not describe an efficient implementation. Thus, in this section we describe how to assemble the stiffness matrix Aand the rhs. vector bor, which is the same, construct it as efficiently as we can. 3.1. Reference and physical elements: Transformations. This section will define central concepts before to obtain the linear system. For each physical element, T, we use a given reference element, ˆ T, in order to define the shape functions. For quadrilaterals and hexahedrals we use [−1,1]2and [−1,1]3, respectively. Note that the physical element can be defined in terms of the reference element using a diffeomorphism FTin the following manner: FT:ˆ x∈ˆ T⊂Rd−→ x∈T⊂Rn ˆ xi−→ FT(ˆ xi) = NT X i ˆ φixi, where dis the dimension of reference space and nof the physical one. It is important to clarify that this application in general is not linear. See caption of FIG. 5. Example 7 (Tri-linear polynomial basis for a hexahedral element). ˆ φi∈ˆ T⊂R3−→ R;∀i= 1,...,8. ˆ φ1(ξ, η, ζ) = (1 −ξ)(1 −η)(1 −ζ),ˆ φ5(ξ, η, ζ) = ξη(1 −ζ), ˆ φ2(ξ, η, ζ) = ξ(1 −η)(1 −ζ),ˆ φ6(ξ, η, ζ) = ξ(1 −η)ζ, ˆ φ3(ξ, η, ζ) = (1 −ξ)η(1 −ζ),ˆ φ7(ξ, η, ζ) = (1 −ξ)ηζ, ˆ φ4(ξ, η, ζ) = (1 −ξ)(1 −η)ζ, ˆ φ8(ξ, η, ζ) = ξηζ. Example 8 (Tri-linear affine transformation).We consider opportune to introduce how this type of applications can bring the reference elements into the physical ones for a simple case. We have considered here an hexahedral parallelepiped, which 3. LINEAR SYSTEM 11 Fig. 4. Relational diagram of central applications. FTis a diffeomorphism between ˆ Tand T. means parallel faces two to two, as physical element. So in this particular case, the hexahedron considered is linear and so is FT. FT:ˆ x= (ξ, η, ζ)∈R3−→ x= (x, y, z)∈R3 ˆ a0= (ξ0, η0, ζ0)−→ FT(ˆ a0) = a0= (x0, y0, z0). In particular: FT(ˆ ai) = BTˆ x+bT=ai. Since we are dealing with an hexahedron and consider here the tri-linear case, i= 1,...,8. The matrix BT∈ M3×3and it is invertible; and bT=a1∈R3.(See FIG. 5). More explicitly the formula for FTreads as follows: FT=a2−a1|a4−a1|a5−a1ˆ x+bT= =  x2−x1x4−x1x5−x1 y2−y1y4−y1y5−y1 z2−z1z4−z1z5−z1   ξ η ζ +  x1 y1 z1 = =  x1 y1 z1 (1 −ξ−η−ζ) +   x2 y2 z2 ξ+  x1 y1 z1 η+  x1 y1 z1 ζ. Remembering the space Pp Tintroduced in (4) and the diagram shown in FIG. 4, we can write: ˆ φi=φi◦FT⇔ˆ φi◦F−1 T=φi,∀i= 1, . . . , NT. This will allow to evaluate the shape functions, in the physical space, although they are defined in the reference space. Recall that, we are doing all the computations element by element and therefore, we have to join them in order to build the linear system. 3.2. Computation of local contributions of the stiffness matrix and the rhs. term. Finally, in this subsection, we will compute the elemental contributions and assemble them to obtain the linear system. Recall that we have defined the shape functions and their derivatives in the reference element. However, we have to 12 2. THE NUMERICAL METHOD Fig. 5. General invertible application, FT, from the reference element, ˆ T, to the physical one, T. Particular representation for a second degree polynomial. It is important the fact that Tcould be curved and so is recommended to take higher order polynomials if we want to approach it better. Therein lies the importance of to take high-order polynomials basis and because of that we will have more accurate in the approximations. On the one hand this is due to the approach of the elements and, on the other hand, on the approximations of shape functions. compute the bilinear form a(φi, φj) and L(φj) in the physical space. To this end, we define the elemental contribution of the form a(φi, φj) as: (10) aT(φi, φj) = ZT ∇φi∇φjk dT. Due to the chain rule we can write: ˆ ∇ˆ φi(ˆ x) = ˆ ∇(φi(FT(ˆ ai))) = Bt T((∇φi◦FT)(ˆ x))) ⇔ ⇔ ∇φi(x) = B−t T(( ˆ ∇ˆ φi◦F−1 T)(x)),∀i= 1, . . . , NT, where BT=DFTand |BT|=det(BT). Here, ∇=∂x ∂y ∂ztand ˆ ∇=∂ξ ∂η ∂ζ t.Applying this to Equation (10): aT(φi, φj) =Zˆ T (∇φi◦FT)(ˆx)·k(FT(ˆx)) ·(∇φj◦FT)(ˆx)· |BT|dˆx = =Zˆ T B−t Tˆ ∇ˆ φi(ˆx)·k(FT(ˆx)) ·B−t Tˆ ∇ˆ φj(ˆx)· |BT|dˆx,∀i, j = 1, . . . , NT. The same is true for the right hand side. In this case we divide it in two terms: LT(φj) = ZT fφjdT −ZΓN gNφjdΓ,∀j= 1, . . . , NT. •The source term: ZT f(x)·φj(x)dx=Zˆ T f(FT(ˆ x)) ·ˆ φj(ˆ x)· |BT|dˆ x, for all j= 1, . . . , NT. 3. LINEAR SYSTEM 13 •The Neumann condition: In this second integral of the linear form it is important realize that it have to be done separately to the ones of computing domain integrals for the matrices and the source terms, because it belongs to a boundary case. Note that we only need to compute this integral on the Neumann boundary, otherwise, this integral vanishes. Take into account also that if the boundary condition is an edge we will assume that FTmaps a curve γin the physical space, while if it is a face FTmaps a surface. ZΓN gN(x)·φj(x)dx=X ∂ˆ T∈ˆ ΓNZ∂ˆ T gN(FT(ˆ x)) ·ˆ φj(ˆ x)· ||BT|| dˆ x, for all φjthat do not vanishes in ΓN.Note that, in fact, we are parameterizing a boundary entity into the physical domain. Thus, the matrix BTis rectangular and ||BT|| =|γ0|for curves and ||BT|| =|n|(outwards normal vector) for surfaces. In order to compute these integrals we approximate them using a quadrature formula. •Integration rule In the method have been used high-order polynomials, for instance those called Legendre polynomials of degree n. They are defined by: Pn(x) = 1 2n! dn dxn(x2−1)n, n = 0,1,.... Or taking the recurrence formula: (n+ 1)Pn+1(x) = (2n+ 1)xPn(x)−nPn−1(x). To compute integrals of such polynomials we have to overtake that rarely may be obtained analytically, so we could use the Gauss-Legendre quadrature formula, which is able to integrate exactly polynomials of degree up to 2n−1. In general this formula has the shape: (11) Zˆ T ˆ φ(ˆ x)dˆ x≈ ng X i=1 ˆωiˆ φ(ˆ bi). Here ˆ biare the Gauss points and ˆωithe Gauss weights. Finally, we can explain how the matrix Ais. What we do, in general, is to apply the quadrature formula introduced in (11). aT(φi, φj)≈ ng X gi |BT| · B−t Tˆ ∇ˆ φi(ˆxgi)·k(FT(ˆxgi)) ·B−t Tˆ ∇ˆ φj(ˆxgi)·ˆωgi, LT(φj) = fT−gT≈ ng X gi |BT| · f(FT(ˆ xgi)) ·(φj◦FT)(ˆ xgi)·ˆωgi− − ng X gi FT|ΓN(ˆ xgi)·(φj◦FT|ΓN)(ˆ xgi)· ||BT|ΓN|| · ˆωgi, 14 2. THE NUMERICAL METHOD where ˆωgidenotes the Gauss weights and ˆ xgithe Gauss points. Through this methodology were computed the elemental contributions of the A matrix, which means that Awill be constructed by adding all the elemental contributions, aT.To this end we define an index mapping operator, denoted by OT(·), which maps the indexes of the corresponding local contributions of the element to the global indexes of the matrix A. The resulting matrix and rhs. can be expressed as: aT(φi, φj) = AT⇒A=X T∈Th OT(AT), LT(φj) = bT⇒b=X T∈Th OT(fT)−X T∈Th OT(gNT)− N X i=nh+1 gDia(φi, φj). Note that the matrix is symmetric and positive definite. In addition, the matrix A is sparse, in the sense that there is a large number of null entries. Thus, the CSR sparse matrix storage to efficiently use the memory resources is used. Only remains to say that once the assembly is done, there are good reenumeration algorithms, like the reverse Cuthill-McKee, which can minimize the band-width of the matrix, see [9]. For the interested reader, there can be found more detailed explanations about the theme exposed in this section in [8, 12, 16]. 4. Static condensation Procedure To reduce the size of the linear system to be solved we are going to use the static condensation procedure [8, 12, 14]. Notice that the solution obtained is the same and therefore, the methodology introduced here only reduces the computational costs. First, we reorder the elemental nodes, in such a way that the inner ones come first than the boundary ones. Thus, we can write also the elemental unknown solution in terms of polynomial basis as before: uT= NT X k=1 ukφk= nT X k=1 ui kφi k+ NT X k=nT+1 ub kφb k. The local solution is uT=ub k+ui k,denoting by the superscripts band iboundary and interior nodes of the element respectively. Taking from previous subsection 3.2 the local contributions and reordering them with this new numeration we can write a local system such that: ATuT=bT⇔Aii TAib T Abi TAbb T ui T ub T=bi T bb T. From which is obtained: (12) Aii Tui T+Aib Tub T=bi T⇔ui T= (Aii T)−1(bi T−Aib Tub T), 4. STATIC CONDENSATION PROCEDURE 15 which essentially means that we are putting the unknowns belonging to the interior of an element in terms of the unknowns on the boundary of the same element. For the second row: Abi Tui T+Abb Tub T=bb T. Now we substitute the expression of ui Tto get: Abi T[(Aii T)−1(bi T−Aib Tub T)] + Abb Tub T=bb T⇔ ⇔Abi T(Aii T)−1bi T−Abi T(Aii T)−1Aib Tub T+Abb Tub T=bb T⇔ ⇔[−Abi T(Aii T)−1Aib T+Abb T]ub T=bb T−Abi T(Aii T)−1bi T. Let us define now AB T:= −Abi T(Aii T)−1Aib T+Abb T,which is usually called block Schur complement. Besides it has good properties in the sense that if the original matrix is symmetric and positive definite this one is still symmetric and positive definite. At this point, the interior nodes of the element are not unknowns, the only ones remaining are those corresponding to boundary of the elements. Let us define also bB T:= bb T−Abi T(Aii T)−1bi T.With this procedure we can rewrite again the local system as: Aii TAib T 0AB T ui T ub T=bi T bB T. Finally, to complete the process of resolution, we conclude by bringing these new local contributions to the ABmatrix such as previously was done: AB=X T∈Th OB T(AB T), bB=X T∈Th OB T(bB T). Notice that the system associated involves only boundary data of the elements, and therefore we can write the system as: ABub=bB. The effort to compute the solution of this system is reduced due to the reduction in the number of unknowns. Although we have to implement a more complicated method, if we are dealing with high-order polynomials this work will be rewarded. When the degree of the polynomial basis is increased the number of nodes that we are using is directly related with the polynomial degree, and therefore with the pure interior ones. The important thing is that when the degree is increased there will be more inner-nodes per element and here is where we win with this new system. Anyway, the problem is not solved yet. To finish with the writing of the whole solution we have to go back from this system taking with us the solution obtained. We put it in Equation (12) and thus we obtain the missing components of the solution and which correspond to ui T. Notice that this last process is done element by element. However, this is not an inconvenient since these systems are very little and they are independent of each other. Using the previous methodology and 16 2. THE NUMERICAL METHOD relying on Equation (8) it could be defined the new local problem: uh∈Xh(T) :    uh=ub T,on ∂T, ZT ∇uh∇vhkdT =ZT vhfdT, ∀vh∈V∂T h. Thereby the unknown, ui T, can be written in terms of ub T. The principal idea can be achieved from FIG. 6. The purple points are the ones correspond to elemental interior unknowns and they will not be unknowns. Therefore, we only have as unknowns the red ones because the greens are known boundary data. Fig. 6. Classification of nodes considering a particular case of shape functions of second degree (3 nodes ×dimension). Right: 2Dcase. Left: 3Dcase with a detailed element clarifying the nodes. To conclude, remark that we get rid of several unknowns in the same process of assembly, since this is the same as in the previous subsection. As soon as the degree increases, the number of pure interior nodes do it too and therefore the number of variables/equations to be solved that can be suppressed increases. In comparison with the classical procedure shown in section 3, we are doing the same process but once we have the local contributions we reorder them with the purpose of supplying them in a simpler way to the global matrix A. This allows to save computational time and memory storage, while the solution obtained is the same. Chapter 3 Examples Once introduced the methods above and implemented the program which do the whole computations of this CG FEM of Higher-Order, we test it with some examples in order to obtain some numerical results. The tests were performed in a HP ENVY Intel R Core (TM), with a i5-3317U CPU (1.7 GHz) and 6 GB RAM. For both we will consider the problem: −∇ · (k∇u) = f, x ∈Ω, u=gD, x ∈ΓD. The domain will be in both cases a unity cube in R3and there will not be Neumann conditions. Example 9.For this first example we take: u(x, y, z) = x5+y5+z5, and constant permeability k= 1. We first apply the classical method, without static condensation, and we execute it for degrees 1, 3, 5 and 7. Then we proceed doing the same with static condensation method. The details of the executions results are shown in TABLE 1. A fixed number of 64 elements is taken. For first order degree polynomials, since the number of inner nodes is zero, the number of unknowns remains equal for both cases. As the polynomial degree increases, begins to be more effective to use the static condensation methodology. For instance, for a polynomial degree 7, about 2/3 of unknowns are removed and the memory usage is reduced to 1/5 with respect to the Classical methodology. Finally, the execution time is also lower. FIG. 1 represent the approximate solution provided by the method implemented. In the implementation, it is important to have a good measurer of the accuracy of the approximations. To this end, it is introduced here how the error is obtained for each case of our test problems, that is, the computation of the L2-error. E=||u−uh||L2(Ω) =sZΩ (u−uh)2dΩ. Notice that due to uis known in these examples it can be computed exactly and since they are very small we present it here in a logarithmic scale. For both cases there is an important decrease from degree 1 to degree 3. 17 18 3. EXAMPLES EXAMPLE 1 p=1 p=3 p=5 p=7 Classical approach N. of Nodes 125 2197 9261 24389 N. of Unkn. 27 1331 6859 19683 Exec. T. 0.947999 s. 6.427 s. 121.559 s. 951.16 s. Matrix size 0.0016 MB. 1.1932 MB. 19.3112 MB. 126.985 MB. Static condensation N. of Nodes 125 2197 9261 24389 N. of Unkn. 27 819 2763 5859 Exec. T. 0.805999 s. 5.875999 s. 96.97699 s. 887.322 s. Matrix size 0.0016 MB. 0.7357 MB. 6.6980 MB. 27.6203 MB. Table 1. Execution results for Example 1. A fixed number of 64 elements is taken. Fig. 1. Plots obtained with ParaView from the results computed with Python for the first example. From left to right: Representation of the solution in the edges of the whole decomposed domain and level surfaces using polynomials of degree 7. Note that the color scale is not the same. Fig. 2. Example 1.Numerical logarithmic error. There is a high decay of the error. Notice that already appears numerical error for degree greater than 5. References [1] Bahit E Python para principiantes. Autoedici´on, 2012. [2] Deville M O, Fischer P F and Mund E H. High-order methods for incompressible fluid flow, volume 9. Cambridge University Press, 2002. [3] Discacciati M. Notes of the course: “Numerical methods for Partial Differential equations”, chapters 1to 3, 2014. [4] Downey A, Elkner J and Meyers C. How to Think Like a Computer Scientist.Learning with python. Green Tea Press, 1st edition, 2002. [5] Hesthaven J S and Warburton T. Nodal Discontinuous Galerkin Methods: Algorithms, Analysis, and Applications. Texts in Applied Mathematics. Springer, 2007. [6] Huerta A, Angeloski A, Roca X, and Peraire J. Efficiency of high-order elements for continuous and discontinuous Galerkin methods. Int. J. Numer. Methods Eng., 96:529-560, 2013. [7] Karniadakis G and Sherwin S. Spectral/hp element methods for computational fluid dynamics. Oxford University Press, 2013. [8] Kirby R M, Sherwin S J and Cockburn B. To CG or to HDG: A comparative study. Springer, 2011. [9] Liu W-H and Sherman A H. Comparative analysis of the Cuthill-McKee and the reverse Cuthill-McKee ordering algorithms for sparse matrices. SIAM, 1976. [10] L¨ohner R. Error and work estimates for high-order elements. Int. J. Numer. Methods Fluids, 67(12):2184 2188, 2011. [11] L¨ohner R. Improved error and work estimates for high-order elements. Int. J. Numer. Methods Fluids, 72:1207-1218, 2013. [12] Sayas F-J. A gentle introduction to the finite Element method, 2008 [13] Schwab C. p-and hp-finite element methods: Theory and applications in solid and fluid mechanics. Clarendon Press Oxford, 1998. [14] ˇ Sol´ın P, Segeth K and Ivo D. Higher-order finite element methods. Chapman & Hall/CRC, 2004. [15] Szabo B A and Babuˇska I. Finite Element Analysis. John Wiley & Sons New York, 1991. [16] Via˜no Rey J M and Figueiredo J. Implementa¸cao do m´etodo de elementos finitos. Notas, 2000. [17] Vos P E, Sherwin S J and Kirby R M. From h to p efficiently: implementing finite and spectral/hp element methods to achieve optimal performance for low- and high-order discretizations. J. Comput. Phys., 229(13):5161-5181, 2010. [18] Wang ZJ, Fidkowski K, Abgrall R, Bassi F, Caraeni D, Cary A, Deconinck H, Hartmann R, Hillewaert K, Huynh H T, Kroll N, May G, Persson P-O, van Leer B and Visbal M. High-order CFD methods: current status and perspective. International Journal for Numerical Methods in Fluids, 72(8):811-845, 2013. [19] Yano M. An optimization framework for adaptive higher-order discretizations of partial differential equations on anisotropic simplex meshes. PhD thesis, Massachusetts Institute of Technology, 2012. 25