Distortion and quality measures for validating and generating high-order tetrahedral meshes Abel Gargallo-Peir´o ·Xevi Roca ·Jaime Peraire ·Josep Sarrate Abstract A procedure to quantify the distortion (quality) of a high-order mesh composed of curved tetrahedral elements is presented. The proposed technique has two main applications. First, it can be used to check the validity and quality of a high-order tetrahedral mesh. Second, it allows the generation of curved meshes composed of valid and high-quality high-order tetrahedral elements. To this end, we describe a method to smooth and untangle high-order tetrahedral meshes simultaneously by minimizing the proposed mesh distortion. Moreover, we present a p-continuation procedure to improve the initial configuration of a high-order mesh for the optimization process. Finally, we present several results to illustrate the two main applications of the proposed technique. 1 Introduction In the last two decades, high-order methods have attracted a remarkable attention from the computational methods community. This attention has been prompted by the potential of high-order methods to deliver higher accuracy with a lower computational cost than low order methods [47,5,4,26,22,19,27]. However, their adoption has been hampered by several technical issues such as the difficulty of developing robust implementations and the generation of 3D curved meshes. Note that a mesh for high-order methods is composed of straight-sided and potentially curved elements. The curved elements are required to approximate adequately the curved domain boundaries and therefore, to preserve the accuracy of highorder methods [2,7,29,49,42]. Hence, it is mandatory to develop techniques that A preliminary short version of this work appeared in the Proceedings of the 2013 International Meshing Roundtable [13]. Abel Gargallo-Peir´o and Josep Sarrate Laboratori de C`alcul Num`eric (LaC`aN), Universitat Polit`ecnica de Catalunya, Barcelona 08034, Spain E-mail: ab[email protected],
[email protected] Xevi Roca and Jaime Peraire Department of Aeronautics and Astronautics Massachusetts Institute of Technology, Cambridge, MA 02139, USA E-mail: xeviro[email protected], [email protected]
2 Abel Gargallo-Peir´o et al. allow the generation of valid 3D curved meshes to obtain full benefit of high-order methods. A curved mesh is considered to be valid if each one of the elements can be transformed to a regular and straight-sided element (master) through a mapping that is differentiable, invertible and smooth (diffeomorphism). That is, the mapping between the master element and the curved element is expressed in terms of a differentiable function, and the curved element is non-folded (positive determinant of the mapping Jacobian). Moreover, a curved mesh is considered to be of high-quality if all the elements have a shape close to regular (smooth and well-conditioned Jacobian). Specifically, if an element is invalid, the determinant of the mapping Jacobian presents non-positive values. These non-positive values invalidate the change of variables used to compute the weak formulation integrals on a master element. Moreover, if an element has low-quality the Jacobian could be non-smooth or ill-conditioned. In that case, the approximation accuracy is degraded and the solution may be polluted by the introduced error [45]. Therefore, it is required to develop measures to quantify the validity and quality of a given 3D curved mesh. Quality measures also have an alternative and significant application. They allow using optimization based techniques to repair non-valid meshes (untangle) and to improve the mesh quality (smooth) by minimizing (maximizing) the distortion (quality) of the mesh elements. Note that this technique allows the generation of high-order meshes with an a posteriori approach [7,6,30,28,43,32]. That is, it allows the generation of meshes that might contain inverted or low-quality elements, and then untangle and smooth them a posteriori to ensure and enhance the mesh quality. Specifically, a high-order mesh can be obtained by generating first a linear mesh. Second, the linear mesh is converted to a high-order mesh by adding additional nodes and by curving the boundary elements. Finally, the converted mesh is untangled and smoothed to remove the non-valid (folded) and low-quality (distorted) elements. However, the application of this approach together with a mesh quality optimization has been hampered by the absence of 3D quality measures for high-order elements with degree superior than two. Note that the capability of generating valid curved 3D meshes is of the major importance for the community of high-order unstructured methods. The main contribution of this work is to present a technique that allows extending any Jacobian based quality measure for linear 3D elements to high-order simplices of any interpolation degree. In addition, we derive how to apply the proposed technique: to quantify the validity and quality of a given 3D curved mesh; and to generate curved meshes with an a posteriori approach based on the minimization of the mesh distortion. To illustrate these two main applications, we check the validity and quantify the quality of several curved meshes. Moreover, we present several curved meshes obtained with the presented a posteriori approach. In this work, we also present a p-continuation procedure to accelerate the generation of curved high-order meshes. The main idea is to split each curved element in several linear elements determined by the high-order nodes. Then, the smoothing and untangling method is applied to this linear mesh. The resulting configuration of the nodes on this linear mesh, determines the initial configuration for the nodes on the high-order mesh. Finally, this initial configuration is smoothed and untangled to obtain the desired curved high-order mesh.
Distortion and quality measures for high-order tetrahedral meshes 3 The rest of the paper is organized as follows. In Sec. 2, we review the literature related with this work. In Sec. 3 we present the definition of distortion and quality measures for high-order simplicial elements. Next, in Sec. 4, we detail the two main applications of the proposed measures: the validation and generation of curved high-order meshes. Finally, in Sec. 5, we present several examples in order to illustrate the behavior of the defined measures and the application of the developed techniques. 2 Related work One of the main issues in mesh generation is to quantify the validity of a mesh for computational purposes. For linear elements, a wide range of quality measures have been developed [10,45]. However, this is an unresolved issue for high-order meshes. To address this issue, we develop a technique that allows extending to high-order elements the set of Jacobian-based measures for linear elements presented in [23, 24]. These measures allow determining the quality of a linear element in terms of the Jacobian of the representation mapping. Below we review the previous developed approaches to quantify the validity and quality of curved meshes. Different techniques have been proposed to determine the validity of a highorder mesh by means of checking the positivity of the Jacobian mapping from the master to the physical element. Specifically, it has been studied how to detect non-positive Jacobian determinants for B-spline based mappings [7,6,30,28, 43] and quadratic iso-parametric elements [31,9,1]. Moreover, for higher interpolation degrees, in References [20,21] it is proposed to compute accurate bounds on Jacobian determinants of 2D and 3D curvilinear polynomial finite elements. In contrast, several approaches have been developed to quantify the quality of non-linear iso-parametric elements. For elements of quadratic degree, different definitions of distortion (quality) have been proposed for the planar [50,37,38,25] and 3D [39,3,16] elements. The main difference of this work with the previous works is that we propose the definition of the distortion (quality) measure for tetrahedral elements (3D) of any interpolation degree. The proposed distortion is the L2-norm of the regularization of a given point-wise Jacobian-based measure. This definition allows the detection of non-positive values of the Jacobian determinant of the master mapping for any interpolation degree. That is, if the quality is greater than zero, the master mapping is a local diffeomorphism in the integration points. It is important to point out that this work is an extension to 3D of the distortion measures for planar and surface elements presented in [34,12]. The defined distortion measure allows both the validation of high-order tetrahedra and the generation of high-order meshes via an a posteriori optimization approach. The a posteriori approach has been previously used with success for B- spline mappings [7,6,30,28,43], and for iso-parametric elements [44,32,34,48,16, 12,33]. Next, we highlight the two main types of approaches to generate high-order tetrahedral meshes by means of an a posteriori approach. On the one hand, in [32,48] two techniques to generate curved meshes by means of a solid mechanics analogy are presented (non-linear and linear elasticity, respectively). On the other hand, the curving of the mesh in the a posteriori approach can also be achieved by the optimization of a distortion (quality) measure. In [16] a technique is presented to generate meshes composed of tetrahedra of degree two
4 Abel Gargallo-Peir´o et al. via topology regularization and optimization of two functions (scaled Jacobian measure and a ratio of the length and volume of the elements). Moreover, in [34, 12,13,14] we proposed to optimize the high-order nodes location according to an objective function based on the defined distortion measure for high-order meshes. In contrast, in [33,46] it is proposed to optimize a function that is able to avoid Jacobians that are too small or too high. One of the main features of the optimization approach that we propose for high-order meshes is that it allows untangling (recovering from an inverted configuration) as well as smoothing meshes of any interpolation degree. Among the reviewed optimization formulations, there are two consistent untangling techniques specialized in curving high-order meshes. Note that untangling high-order meshes is strictly necessary, since tangled elements appear in the a posteriori approach. A technique to define a regularized distortion and quality measure for high-order planar and surface elements applied to generate curved meshes is proposed in [34, 12]. The untangling capability is introduced explicitly in the formulation by means of the regularization of the Jacobian-based measure presented in [8,12]. This regularization leads to an automatic and robust smoothing-untangling optimization approach that enforces that unfeasible configurations (tangled) become valid (untangle). In contrast, in [33,46] it is proposed to optimize a function that penalizes small values of the Jacobian determinants based on the parameter-dependent logbarrier method presented in [40,41]. In this work, we use the approach proposed in [34,12]. It is important to point out that the optimization process proposed here consists of a minimization of the defined high-order mesh distortion. Therefore, the resulting untangled mesh is valid, but it also maximizes the defined quality measure. 3 Distortion and quality measures for high-order tetrahedral elements In this section, we first review the definition of Jacobian-based distortion measures for linear tetrahedral elements. In addition, we introduce the notation required for high-order elements. Finally, we propose a definition for a distortion and a quality measure for high-order tetrahedra in terms of the Jacobian-based distortion measures for linear elements. 3.1 Preliminaries In this work, we propose to define the quality of a high-order tetrahedral element by means of a generalization of the Jacobian-based quality measures for linear elements presented in [23,24]. To define a Jacobian-based measure for linear tetrahedra, three elements are required: the master, the ideal, and the physical. The master element (EM) is the element from which the iso-parametric mapping is defined. The ideal tetrahedron (EI) represents the target configuration. The physical (EP) is the element to be measured. First, the mappings between the ideal and the physical elements through the master element are obtained. By means of these applications, a mapping between the ideal and physical elements is determined by the composition (see Figure 1) φE:EIφ−1 I −→ EMφP −→ EP.
Distortion and quality measures for high-order tetrahedral meshes 5 Fig. 1 Mappings between the master, ideal and physical linear elements. Fig. 2 Mappings between the master, ideal and physical high-order elements. The Jacobian of this affine mapping, herein denoted by DφE, encodes the deviation of the physical element with respect to the ideal one. Hence, the distortion measure of the physical element is defined in terms of DφE. These distortion measures, herein denoted by η, quantify the deviation of one or several features (shape, size, skewness, degeneracy,...) of the physical element with respect to the ideal element in a range scale [1,∞). The corresponding quality measure is defined as q:= 1/η ∈[0,1]. For the remainder of this work, we use the shape distortion measure [23]: η(DφE) = kDφEk2 F 3|σ|2/3,(1) where k·kFis the Frobenius norm, and σ= det(DφE). This distortion measure quantifies the deviation of the shape of the physical tetrahedron with respect to the ideal shape. To assign quality zero for degenerated elements (negative σ), σ in Eq. (1) is replaced by σ0= (σ+|σ|)/2. In this way, for negative values of σ, η=∞and therefore, q= 0. To untangle meshes in the optimization procedure, we use the modification of the determinant σproposed in [8]. This modification can be applied to Jacobianbased distortion measures where the determinant of the Jacobian appears in the denominator. Specifically, we replace σin (1) by σδ(σ) = 1 2σ+pσ2+ 4δ2,(2)
6 Abel Gargallo-Peir´o et al. where δis a numerical parameter that is determined element-wise. In our implementation, we set δ= 0 for valid configurations and δ= 0.01 ·σ∗for tangled configurations, being σ∗the determinant of the corresponding straight-sided ideal element, as proposed in [15,14,11]. Therefore, we consider a modified shape distortion measure, ηδ(DφE) = kDφEk2 F 3|σδ|2/3.(3) It is important to point out that without the proposed modification, ηhas an asymptote when σ= 0 (where an element becomes non-valid). Thus, it is required to modify σto remove this asymptote and therefore, allow the optimization procedure to recover from the non-valid configuration (tangled). For δ > 0, σδ(σ) is a strictly increasing function, such that σδ(0) = δand that tends to 0 when σtends to −∞ . Therefore, ηδis a smooth function with no asymptotes. Moreover, for small values of δ, the minimum of ηδis close to the valid minimum of η0. 3.2 Notation for iso-parametric high-order tetrahedra Let EPbe a nodal high-order tetrahedron of interpolation degree pdetermined by np= (p+ 1) ·(p+ 2) ·(p+ 3)/6 nodes with coordinates xi∈R3, for i= 1,...,np. We select a node distribution that provides a quasi-optimal Lebesgue constant [17]. Given a master element EMwith nodes ξi∈R3, being i= 1,...,np, we consider the basis {Ni}i=1,...,npof nodal shape functions (Lagrange interpolation) of degree p. Then, the high-order isoparametric mapping from EMto EPcan be expressed as: φP:EM⊂R3−→ EP⊂R3 ξ7−→ x=φP(ξ) = np X i=1 xiNi(ξ).(4) The Jacobian of the isoparametric mapping (4) is the matrix DφP(ξ) = np X i=1 xi∇Ni(ξ)∈R3×R3.(5) 3.3 Definition of distortion and quality In this section, we define the distortion and quality measure for a high-order element in terms of a Jacobian-based distortion measure for linear elements. To this end, analogously to the linear case, we consider three elements: the master EM, the ideal EI, and the physical EP. The master element allows the characterization of the ideal and physical elements in terms of a master mapping. In particular, it is required to determine a distribution of points on the master element and the corresponding coordinates of the nodes in the ideal and physical elements. On the one hand, the coordinates of the nodes of the ideal element (see Sec. 4.1 for more details) are chosen to determine a straight-sided high-order tetrahedron. Therefore, φIis an affine mapping. On the other hand, the coordinates of the nodes
Distortion and quality measures for high-order tetrahedral meshes 7 of the physical element determine, in general terms, a curved element. Hence, the mapping φPpresented in Eq. (4), is not affine in general, see Figure 2. Moreover, φE=φP◦φ−1 Iis also not affine, and the Jacobian matrix is not constant. Specifically, for a point yon the ideal element, the expression of the Jacobian is: DφE(y) = DφP(φ−1 I(y)) ·Dφ−1 I(y).(6) Similar to the linear case, we want to define a distortion measure based on the Jacobian matrix of φE. However, the Jacobian of a high-order element is not constant. Nevertheless, the Jacobian on a point allows measuring the local deviation between the ideal and the physical element. Thus, we can obtain an elemental distortion measure by considering the L2-norm of the Jacobian-based distortion measure on the ideal element. We define the ideal mesh MIof a mesh Mas the set of ideal elements that correspond to each physical element. Next, we define the scalar product of two scalar functions on MIas hf, giMI:= nE X i=1 hf, giEI i,(7) expressed in terms of their inner product on the ideal element, hf, giEI:= ZEI f(y)g(y)dy,(8) where EI iis the ideal of element EP i, and nEis the number of elements of the mesh. The norms corresponding to these scalar products are kfkMI:= phf, fiMI,(9) kfkEI:= qhf, fiEI,(10) Remark 1 We choose EIas a valid straight-sided tetrahedron. That is, φIis an affine mapping and therefore, a global diffeomorphism. In this way, we can use the change of variable determined by φIto compute the scalar product as: hf, giE:= ZEM f(φI(ξ)) g(φI(ξ)) |det DφI(ξ)|dξ.(11) To compute this integral, we use a numerical quadrature scheme that ensures that polynomials of degree (d+ 3)p−dand dvariables are integrated exactly, where d= 3 is the number of spatial dimensions. Specifically, the quadrature use ((d+ 3)p−d−1) /2 integration points as specified in [18]. Next, we define the distortion at a point y∈EIfor a high-order element with nodes x1,...,xnp∈R3, as: MφE:= ηδ(DφE).(12) We point out that MφEis a function of y, and that it also depends on x1,...,xnp, since φEdoes. Note that the point-wise distortion, Eq. (12), can be defined using any distortion measure for linear elements that is expressed explicitly in terms of
8 Abel Gargallo-Peir´o et al. of the Jacobian (Jacobian-based) or that can be casted to an expression in terms of the Jacobian. Now, we can define the corresponding distortion and quality measures for a high-order element: Definition 1 The distortion measure for a high-order 3D element is ηE:= kMφEkEI k1kEI ,(13) where ηEis a function of the element nodes x1,...,xnp, since MφEis. Note that k1kEIis the area of the ideal element. Remark 2 Selecting δ= 0 in the point-wise distortion measure for high-order elements Eq. (12), implies that the regularization introduced in Eq. (2) is null, and the point-wise distortion is divergent. Therefore, if an element is inverted in a region of non-null measure, the L2-norm of the point-wise distortion in Eq. (12) will be infinite. Definition 2 The quality measure for a high-order planar element is qE:= 1/ηE. 4 Application to meshing In this section, we analyse the two main applications of the defined distortion and quality measures. First, we overview the main features that allow using these measures to validate a given high-order tetrahedral mesh. Second, we set an optimization framework in order to generate high-order tetrahedral meshes in an a posteriori procedure. 4.1 Validation of high-order tetrahedral meshes One of the main applications of distortion (quality) measures is to check that the mesh is valid to perform a numerical simulation. Specifically, a quality measure has to properly detect if an element it is non-valid (and assign 0 value). Moreover, the measure has to penalize the deviation of the element with respect to the target ideal (and assign value 1 to the ideal). To measure the validity of elements, δis set to 0 in (12). Therefore, if there is a point ywhere the Jacobian is non-positive (σ≤0), then MφE(y) = ∞. Hence, ηE=∞. Conversely, if the physical element is the ideal, φEis the identity. Then, the point-wise distortion MφE(y) is 1 for all y∈EI. Thus, by Definition 1, the element distortion ηEis also 1. Summarizing, we state the following remark: Remark 3 The distortion measure ηEfor high-order tetrahedral elements has image [1,∞), where 1 corresponds to the ideal configuration and ∞to a non-valid one. Hence, by Definition 2, qEhas image [0,1], where 0 corresponds to an inverted element, and 1 to the ideal one.
Distortion and quality measures for high-order tetrahedral meshes 9 The measures defined in Sec. 3.3 can accommodate different ideal elements. We select two different type of ideals depending on the framework of the computation. On the one hand, for absolute quality measurement, we select the equilateral tetrahedron as ideal (standard ideal for isotropic meshes [23]). The equilateral tetrahedron is used to obtain an absolute value of the quality, where all the elements are measured with respect the same target tetrahedron. On the other hand, for optimization purposes we use a relative quality measurement. That is, we assume that we have an initial linear mesh, and for each high-order curved element we select the corresponding initial straight-sided element as ideal. It is important to point out that we assume that the initial linear mesh verifies the geometrical constraints for the numerical simulation, see Sec. 1. Therefore, in the a posteriori mesh generation procedure, our final goal is to optimize the location of the inner nodes to obtain a valid (without tangled elements) high-order mesh composed of elements with a shape similar to the one in the initial linear mesh. 4.2 Generation of curved and high-order tetrahedral meshes The second application for the defined distortion measures is the generation of high-order meshes via an a posteriori approach [32]. First, we present the main steps of the a posteriori approach. Specifically, we derive an optimization method based on the minimization of the presented distortion measure. This procedure will be used to curve the high-order mesh so that the invalid boundary elements become valid. Second, we detail a p-continuation method to determine an initial configuration of the high-order mesh that improves the initial high-order distribution and therefore, reduces the iterations required in the optimization of the high-order mesh. 4.2.1 A posteriori mesh generation The a posteriori mesh generation approach is composed of several steps. First, we generate a linear tetrahedral mesh (MI). The elements of this mesh have the shape and the size that hold the requirements for the desired numerical computation. Second, we increase the degree of the elements and curve the boundary faces to fit the CAD geometry. For each high-order element, we set as ideal the corresponding straight-sided element in the linear mesh MI. Note that the boundary elements can be inverted or present low quality. Finally, we smooth and untangle the highorder curved mesh by minimizing the distortion of the curved mesh with respect to the straight-sided ideal. It is important to point out that the surface mesh itself can be tangled when the faces are curved to fit the geometry. If there is a non-valid surface element, the 3D tetrahedron cannot recover from the inversion. Therefore, the a posteriori approach that we use for 3D high-order meshes is composed of two optimization steps. First, we smooth and untangle the surface mesh [12]. Second, once the surface mesh is valid, we fix the nodes of the boundary surfaces and then we optimize the volume mesh. In this section, we present an algorithm to optimize the distortion of high-order tetrahedral meshes in order to obtain valid final meshes.
16 Abel Gargallo-Peir´o et al. (a) (b) (c) (d) Fig. 7 Tetrahedral meshes of interpolation degree 4 colored according to the shape quality (equilateral ideal) measure for the exterior domain of a Falcon aircraft: (a) initial straight-sided mesh, (b) initial curved mesh, and (c) smoothed mesh. work, we only impose that the shape of the initial linear mesh is preserved. In practice, this approach leads to meshes that resemble the element size of the initial linear mesh. Therefore, the element size can be imposed in practice by generating a linear mesh with the proper size distribution. To impose explicitly that the element size is preserved, it is required to use a distortion that combines at the same time a shape and size measure as we detailed in [12]. To preserve additional geometrical features of the elements other Jacobian-based distortion measures can be considered [23]. Next, the boundary faces are curved to fit the CAD representation. In Figures 6(b) and 7(b) we present the initial curved meshes. This process leads to several
Distortion and quality measures for high-order tetrahedral meshes 17 (a) (b) Fig. 8 Tetrahedral meshes of degree 4 colored according to the shape quality measure (equilateral ideal) for the exterior domain of a Falcon aircraft. Detail of the mesh where inverted elements can be observed: (a) initial curved mesh, and (b) smoothed mesh. non-valid and low-quality elements, see Tables 3 and 4. In Figure 8(a), we illustrate some inverted elements that originate after curving the boundary faces on the wing of a Falcon aircraft. Finally, we optimize the meshes. To this end, we relocate the nodes on the CAD surfaces [12], and afterwards we optimize the 3D meshes by means of the approach presented in Sec. 4. In Figures 6(c) and 7(c) we present the optimized meshes. Note that all the non-valid elements of the mesh have been repaired. Specifically for the Falcon aircraft, in Figure 8(b) we show the smoothed set of elements that correspond to the originally inverted ones in Figure 8(a). It is important to point out that we evaluate the quality of the meshes with respect to two different ideals: the equilateral tetrahedron, and the initial straightsided high-order tetrahedra. The optimization is developed taking as ideal the initial straight-sided high-order mesh, since we assume that this mesh has the necessary computational requirements. However, the equilateral tetrahedron is used in isotropic meshes to allow the comparison of the qualities between different elements. In Figure 9, we show a detail of the mesh around the left wing of the Falcon aircraft with the elements colored according to the element quality computed using two different ideal elements. On the one hand, in Figures 9(a) and 9(b) the elements are colored taking as ideal the equilateral tetrahedron. On the other hand, Figures 9(c) and 9(d) are colored with the quality taking as ideal the initial straight-sided high-order mesh. In Figure 9(c), we observe that almost all the elements have initial quality one, since except the elements on the boundary, the rest are still straight-sided. On the contrary, the curved elements have lower quality and they can even be non-valid. In Figure 9(d), the inverted elements have been untangled, obtaining a high-quality final mesh. Tables 3 and 4 present the quality statistics of the generated meshes. The minimum quality with respect to the straight-sided high-order mesh has been improved from 0 to 0.778 for the propeller, and from 0 to 0.32 for the Falcon
18 Abel Gargallo-Peir´o et al. (a) (b) (c) (d) Fig. 9 Detail of the tetrahedral meshes of interpolation degree 4 for the exterior domain of a Falcon aircraft. (a,c) Initial meshes colored with respect to the equilateral and initial straight-sided ideals. (b,d) Smoothed meshes colored with respect to the equilateral and initial straight-sided ideals. aircraft. That is, the proposed procedure has generated a high-order curved mesh composed of valid and high-quality elements that preserve the main geometrical features prescribed in the linear mesh. 6 Concluding remarks In this work, we present a new technique to define distortion (quality) measures for high-order tetrahedral meshes. The proposed definition is valid for any interpolation degree and allows detecting the validity of a high-order tetrahedron. Moreover, the defined distortion measure can be used to generate 3D curved high-
Distortion and quality measures for high-order tetrahedral meshes 19 Table 4 Shape quality statistics of a mesh of interpolation degree 4 for a Falcon aircraft. The mesh is composed of 27511 elements and 317854 nodes. Mesh Quality Figure Min. Q. Max. Q. Mean Q. Std. Dev. Tang. el. Initial Absolute 7(b),9(a) 0.00 1.00 0.77 0.11 9 Relative 9(c) 0.00 1.00 0.99 0.02 9 Smoothed Absolute 7(d),9(b) 0.21 1.00 0.78 0.11 0 Relative 9(d) 0.32 1.00 0.99 0.04 0 order meshes. Specifically, the distortion is capable of smoothing and untangling high-order meshes by means of an optimization procedure. Note that this is the final step of a curved meshing a posteriori approach. Moreover, we propose a pcontinuation technique to accelerate the generation of curved high-order meshes. Finally, we show that the combination of the presented techniques allows the generation of valid curved high-order meshes from real CAD geometries. Acknowledgements Work partially sponsored by the Spanish Ministerio de Ciencia e Innovaci´on (grant DPI2011-23058), by the Ferran Sunyer i Balaguer Foundation (grant FSB 2013), and by CUR from DIUE of the Generalitat de Catalunya and the European Social Fund (grant FI-DGR). References 1. Baart, M., Mulder, E.: A note on invertible two-dimensional quadratic finite element transformations. Commun. Appl. Numer. M. 3(6), 535–539 (1987) 2. Bassi, F., Rebay, S.: High-order accurate discontinuous finite element solution of the 2D Euler equations. J. Comput. Phys. 138(2), 251–285 (1997) 3. Branets, L., Carey, G.: Extension of a mesh quality metric for elements with a curved boundary edge or surface. J. Comput. Inf. Sci. Engrg. 5(4), 302–308 (2005) 4. Cantwell, C., Sherwin, S., Kirby, R., Kelly, P.: From hto pefficiently: selecting the optimal spectral/hp discretisation in three dimensions. Math. Model. Nat. Phenom. 6(3), 84–96 (2011) 5. Cantwell, C., Sherwin, S., Kirby, R., Kelly, P.: From hto pefficiently: strategy selection for operator evaluation on hexahedral and tetrahedral elements. Comput. Fluids 43(1), 23–28 (2011) 6. Dey, S., O’Bara, R., Shephard, M.S.: Curvilinear mesh generation in 3D. Computer-Aided Design 33, 199–209 (2001) 7. Dey, S., Shephard, M.S., Flaherty, J.E.: Geometry representation issues associated with p-version finite element computations. Comput. Meth. Appl. M. 150(1–4), 39–55 (1997) 8. Escobar, J.M., Rodr´ıguez, E., Montenegro, R., Montero, G., Gonz´alez-Yuste, J.M.: Simultaneous untangling and smoothing of tetrahedral meshes. Comput. Meth. Appl. Mech. Engrg. 192(25), 2775–2787 (2003) 9. Field, D.: Algorithms for determining invertible two-and three-dimensional quadratic isoparametric finite element transformations. Int. J. Numer. Meth. Engrg. 19(6), 789– 802 (1983) 10. Field, D.: Qualitative measures for initial meshes. Int. J. Numer. Meth. Engrg. 47(4), 887–906 (2000) 11. Gargallo-Peir´o, A.: Validation and generation of curved meshes for high-order unstructured methods. Ph.D. thesis, Universitat Polit`ecnica de Catalunya (2014) 12. Gargallo-Peir´o, A., Roca, X., Peraire, J., Sarrate, J.: Defining quality measures for mesh optimization on parameterized CAD surfaces. In: Proc. 21st Int. Meshing Roundtable, pp. 85–102. Springer International Publishing (2013) 13. Gargallo-Peir´o, A., Roca, X., Peraire, J., Sarrate, J.: Defining quality measures for validation and generation of high-order tetrahedral meshes. In: Proc. 22nd Int. Meshing Roundtable, pp. 109–126. Springer International Publishing (2014)
20 Abel Gargallo-Peir´o et al. 14. Gargallo-Peir´o, A., Roca, X., Peraire, J., Sarrate, J.: Optimization of a regularized distortion measure to generate curved high-order unstructured tetrahedral meshes. Preprint (2014) 15. Gargallo-Peir´o, A., Roca, X., Sarrate, J.: A surface mesh smoothing and untangling method independent of the CAD parameterization. Comput. Mech. 53(4), 587–609 (2014). DOI 10.1007/s00466-013-0920-1. URL http://dx.doi.org/10.1007/s00466-013-0920-1 16. George, P.L., Borouchaki, H.: Construction of tetrahedral meshes of degree two. Int J Numer Meth Eng 90(9), 1156–1182 (2012) 17. Hesthaven, J., Warburton, T.: Nodal Discontinuous Galerkin Methods: Algorithms, Analysis, and Applications. Texts in Applied Mathematics. Springer (2007). URL http: //books.google.es/books?id=APQkDOmwyksC 18. Huerta, A., Angeloski, A., Roca, X., Peraire, J.: Efficiency of high-order elements for continuous and discontinuous Galerkin methods. Int. J. Numer. Meth. Engrg. 96, 529– 560 (2013). DOI 10.1002/nme.4547 19. Huerta, A., Roca, X., Angeloski, A., Peraire, J.: Are high-order and hybridizable discontinuous Galerkin methods competitive? Oberwolfach Reports 9(1), 485 – 487 (2012) 20. Johnen, A., Remacle, J.F., Geuzaine, C.: Geometrical validity of curvilinear finite elements. In: Proc. 20th Int. Meshing Roundtable, pp. 255–271. Springer International Publishing (2012) 21. Johnen, A., Remacle, J.F., Geuzaine, C.: Geometrical validity of curvilinear finite elements. J. Comput. Phys. 233, 359 – 372 (2013) 22. Kirby, R., Sherwin, S., Cockburn, B.: To CG or to HDG: a comparative study. J. Sci. Comput. 51(1), 183–212 (2012) 23. Knupp, P.M.: Algebraic mesh quality metrics. SIAM J. Numer. Anal. 23(1), 193–218 (2001) 24. Knupp, P.M.: Algebraic mesh quality metrics for unstructured initial meshes. Finite Elem. Anal. Des. 39(3), 217–241 (2003) 25. Knupp, P.M.: Label-invariant mesh quality metrics. In: Proc. 18th Int. Meshing Roundtable, pp. 139–155. Springer Berlin Heidelberg, Salt Lake City (2009) 26. L¨ohner, R.: Error and work estimates for high-order elements. Int. J. Numer. Meth. Fluids 67(12), 2184–2188 (2011) 27. L¨ohner, R.: Improved error and work estimates for high-order elements. Int. J. Numer. Meth. Fluids 72, 1207–1218 (2013) 28. Luo, X., Shephard, M.S., O’Bara, R., Nastasia, R., Beall, M.: Automatic p-version mesh generation for curved domains. Engrg. Comput. 20(3), 273–285 (2004) 29. Luo, X., Shephard, M.S., Remacle, J.F.: The influence of geometric approximation on the accuracy of higher order methods. In: 8th Int. Conf. Numerical Grid Generation in Computational Field Simulations (2002) 30. Luo, X., Shephard, M.S., Remacle, J.F., O’Bara, R., Beall, M., Szab´o, B., Actis, R.: P- version mesh generation issues. In: Proc. 11th Int. Meshing Roundtable, pp. 343–354. Springer Berlin Heidelberg (2002) 31. Mitchell, A., Phillips, G., Wachspress, E.: Forbidden shapes in the finite element method. IMA J. Appl. Math. 8(2), 260 (1971) 32. Persson, P.O., Peraire, J.: Curved mesh generation and mesh refinement using lagrangian solid mechanics. In: Proc. 47th AIAA (2009) 33. Remacle, J.F., Toulorge, T., Lambrechts, J.: Robust untangling of curvilinear meshes. In: Proc. 21st Int. Meshing Roundtable, pp. 71–83. Springer International Publishing (2013) 34. Roca, X., Gargallo-Peir´o, A., Sarrate, J.: Defining quality measures for high-order planar triangles and curved mesh generation. In: Proc. 20th Int. Meshing Roundtable, pp. 365– 383. Springer International Publishing (2012) 35. Roca, X., Ruiz-Giron´es, E., Sarrate, J.: EZ4U: Mesh generation environment. www-lacan. upc.edu/ez4u.htm (2010) 36. Roca, X., Sarrate, J., Ruiz-Giron´es, E.: A graphical modeling and mesh generation environment for simulations based on boundary representation data. In: Communications in Num. Meth. Engrg. Porto (2007) 37. Salem, A., Canann, S., Saigal, S.: Robust distortion metric for quadratic triangular 2D finite elements. Appl. Mech. Div. ASME. 220, 73–80 (1997) 38. Salem, A., Canann, S., Saigal, S.: Mid-node admissible spaces for quadratic triangular arbitrarily curved 2D finite elements. Int. J. Numer. Meth. Engrg. 50(2), 253–272 (2001) 39. Salem, A., Saigal, S., Canann, S.: Mid-node admissible space for 3D quadratic tetrahedral finite elements. Engrg. Comput. 17(1), 39–54 (2001)
Distortion and quality measures for high-order tetrahedral meshes 21 40. Sastry, S., Shontz, S., Vavasis, S.: A log-barrier method for mesh quality improvement. In: Proc. 20th Int. Meshing Roundtable, pp. 329–346. Springer International Publishing (2012) 41. Sastry, S., Shontz, S., Vavasis, S.: A log-barrier method for mesh quality improvement and untangling. Engrg. Comput. (Published online ahead of print) (2012). DOI 10.1007/s00366-012-0294-6. URL http://dx.doi.org/10.1007/s00366-012-0294-6 42. Sevilla, R., Fern´andez-M´endez, S., Huerta, A.: NURBS–Enhanced Finite Element Method (NEFEM): a seamless bridge between CAD and FEM. Arch. Comput. Meth. Engrg. 18(4), 441–484 (2011) 43. Shephard, M.S., Flaherty, J.E., Jansen, K., Li, X., Luo, X., Chevaugeon, N., Remacle, J.F., Beall, M., O’Bara, R.: Adaptive mesh generation for curved domains. Appl. Numer. Math. 52(2-3), 251–271 (2005) 44. Sherwin, S., Peir´o, J.: Mesh generation in curvilinear domains using high-order elements. Int. J. Numer. Meth. Engrg. 53(1), 207–223 (2002) 45. Shewchuk, J.: What is a good linear finite element? interpolation, conditioning, anisotropy, and quality measures. Preprint (2002) 46. Toulorge, T., Geuzaine, C., Remacle, J.F., Lambrechts, J.: Robust untangling of curvilinear meshes. J. Comput. Phys. 254, 8 – 26 (2013) 47. Vos, P.E., Sherwin, S., Kirby, R.: From hto pefficiently: implementing finite and spectral/hp element methods to achieve optimal performance for low- and high-order discretisations. J. Comput. Phys. 229(13), 5161–5181 (2010) 48. Xie, Z., Sevilla, R., Hassan, O., Morgan, K.: The generation of arbitrary order curved meshes for 3D finite element analysis. Comput. Mech. 51, 361–374 (2012) 49. Xue, D., Demkowicz, L.: Control of geometry induced error in hp finite element (FE) simulations. I. Evaluation of FE error for curvilinear geometries. Internat. J. Numer. Anal. Model. 2(3), 283–300 (2005) 50. Yuan, K., Huang, Y., Pian, T.: Inverse mapping and distortion measures for quadrilaterals with curved boundaries. Int. J. Numer. Meth. Engrg. 37(5), 861–875 (1994)