Abstract
In this paper, we propose a new optimization-based method for high-order mesh generation. Our proposed method is based on affine combinations of nodal positions. For each interior node in the high-order straight-sided mesh, a set of weights that relates the node to its neighbors is calculated. After the high-order boundary nodes are curved to conform with the true boundary, the interior nodes are moved based on the generated weights and the new boundary positions. We present results from applying our method to several aerospace engineering geometries in 2D and 3D which demonstrate the capabilities of our method.
You have full access to this open access chapter, Download conference paper PDF
Similar content being viewed by others
1 Introduction
The advantage of high-order numerical methods for solving partial differential equations is their higher degree of accuracy compared to low-order numerical methods. A major hurdle in the usage of these methods in the presence of complex geometries is the absence of robust high-order mesh generation methods [23]. In other words, these methods need a high-order mesh that accurately captures the features of the geometry to achieve their full potential [1, 10].
The typical approach for generating high-order meshes is to transform a coarse linear mesh [2,3,4,5,6, 9, 11, 12, 14, 16, 17, 19,20,21,22, 24]. At a high-level, these transformations usually consist of the following three steps: (1) the low-order mesh is enriched with additional nodes; (2) the new nodes that lie along the boundary of the mesh are moved to the true boundary; (3) the interior nodes are moved based on the boundary deformation. The main challenge of these methods arises from step (2). In particular, the curving of the elements along the boundary can result in invalid mesh elements. With that in mind, these high-order mesh generation methods use different approaches in step (3) in an effort to obtain a valid high-order mesh. Methods for transforming the linear mesh usually fall into two groups. The first group of methods transform the mesh based on the solution to a partial differential equation [3, 12, 14, 24]. The second group of methods are based on optimization of an objective function [2, 4, 5, 9, 16,17,18,19,20,21].
In this paper, we describe an optimization-based approach for generating high-order meshes based on affine combinations of nodal positions. The remainder of this paper is organized as follows. In Sect. 2, we present our new method for high-order mesh generation. In Sect. 3, we demonstrate the performance of our proposed method on several aerospace engineering geometries. Finally, in Sect. 4, we offer some concluding remarks and possible directions for our future work.
2 High-Order Mesh Generation Based on Affine Combinations of Nodal Positions
In this section, we present our optimization-based method for high-order mesh generation. Our proposed method uses affine combinations of nodal positions to determine the movement of the interior nodes after deforming the boundary. Our method consists of three steps. First, for each interior node in the high-order straight-sided mesh, an optimization problem is solved to calculate a set of weights that relates the interior node to its neighbors. Second, the boundary nodes are moved to the true boundary. Third, the new positions of the interior nodes are calculated by solving a linear system of equations using the weights and the new boundary positions. In spirit, this method is similar to the weight-based method that we proposed in [19] with two major differences. The first difference is that we propose an affine combination of nodal positions in this work, as opposed to a convex combination. This change allows us to remove the inequality constraint and log-barrier term, leaving only the equality constraints. We also propose an alternative objective function that when combined with the equality constraints allows us to directly solve the optimization problem via a QR factorization. This change results in simplified computational complexity and faster execution time.
To frame our discussion of the method, we introduce the following notation for the 2D formulation of the problem; the 3D formulation is similar. Let the x- and y-coordinates of the ith interior node be represented as (x i, y i). In addition, define the x- and y-coordinates of the vertices adjacent to node i as {(x j, y j): j ∈ N i}, where N i is the set of neighbors of node i. For each interior node i, this information can be represented as the following linear system, where w ij are the weights:
where
There are several potential choices for the local neighboring set based on use of the low-order nodes, high-order nodes, or both. We include only the high-order nodes as neighbors, as only the high-order boundary nodes move during the boundary deformations. Using either the low-order nodes or both the low- and high-order nodes would dampen the effect the boundary deformation has on the interior nodes, which might lead to tangling near the boundary. Including additional nodes as neighbors would also result in a less sparse matrix when solving (7). Another important consideration is that while the weight calculation is based on only the local neighbors, the position of an interior node is indirectly affected by the deformation of all the interior nodes through the solution of (7).
Adding the additional constraint that the weights sum to one results in the following linear system Aw = b for finding an affine combination of the x- and y-coordinates of the vertices adjacent to node i:
where n = |N i|. Based on the set of neighbors, this linear system will be underdetermined (i.e., A = m × n with m < n) in general. If we assume that A has full rank, we can find one particular solution to our problem by requiring that w has the smallest norm of any solution. This results in the following optimization problem:
From the Karush–Kuhn–Tucker (KKT) theory [13], we know that the following conditions must hold for a solution (w ∗, λ ∗) to our problem to be optimal:
The Lagrangian of our problem is given by:
where λ are the Lagrange multipliers.
Using (3)–(5), we can find the following solution pair (w ∗, λ ∗) as follows:
Although we have verified that (w ∗, λ ∗) is a stationary point, we cannot yet claim that it is a minimum. To do so, we must investigate \(\nabla _{w}^2\mathcal {L}(w^{*},\lambda ^{*})\):
From the second-order sufficient conditions, if w ∗ satisfies (3)–(5) and the following condition is satisfied:
where C(w ∗, λ ∗) = {z | ∇w c(w ∗) T z = 0} is the critical cone and c(w) = Aw − b, then our solution is a minimum. Since \(\nabla _{w}^2\mathcal {L}(w^{*},\lambda ^{*})\) is symmetric positive definite, the inequality in (6) is satisfied for any choice of z. Thus we can conclude that our solution w ∗ is a minimum of (1)–(2).
Now that we have established that w ∗ is our solution, we will discuss calculating it via a reduced QR factorization. Suppose that A T = QR, where Q n×m, R m×m is upper triangular, and Q T Q = I m×m. Substituting in the QR factorization of A T into w ∗, we get the following:
Rearranging this into linear system form, we have:
If we let t = Q T w ∗, then R T t = b and w ∗ = Qt. Thus calculating w ∗ involves a QR decomposition of A T, solving the lower triangular system R T t = b by forward substitution, and calculating the matrix-vector product Qt.
After calculating the weights, a boundary deformation is applied. The final step is to solve for the new locations of the interior nodes \([\hat {x}_{I},\hat {y}_{I}]\) by solving the following global linear system:
where \(\hat {x}_{B}\) and \(\hat {y}_{B}\) are the new x- and y-coordinates for the boundary nodes, and A I and A B contain the weights for the interior nodes and boundary nodes, respectively. In this global linear system, each row of the weight matrix corresponds to an interior node with nonzero entries for the node’s neighbors and zero entries for the remainder of the row. The resulting global weight matrix is very sparse with irregular structure. In an effort to shift the nonzero entries closer to the diagonal, we apply the sparse reverse Cuthill–McKee ordering provided in Matlab. In Fig. 1, we show the matrix sparsity plots for the natural node ordering and the updated node ordering for the first two examples in Sect. 3. After applying the matrix reordering, the linear system is solved using a sparse LU factorization.
Sparsity plots for the first two examples in Sect. 3: (a and c) the nonzero entries using the original node ordering; (b and d) the nonzero entries after applying the sparse reverse Cuthill–McKee ordering
3 Numerical Experiments
In this section, we demonstrate the results from applying our method to generate several high-order meshes. We use Gmsh [7, 8, 15, 21] to generate the initial straight-sided high-order meshes. Our method then uses this mesh to calculate the weights (step 1). Next, we curve the boundary nodes (step 2) using Gmsh. The positions of the interior nodes in the resulting curved high-order mesh are then updated (step 3) by our method. For each example, we show the mesh which results from our method (with high-order nodes visible), the mesh element distortion for the curved boundary mesh generated using Gmsh, and the distortion for the mesh resulting from our method. When reporting the mesh distortion, we list the minimum distortion, maximum distortion, average distortion computed over all elements (referred to as Avg1 in figures), and average distortion computed over curved elements (referred to as Avg2 in figures). The ideal distortion value is 1, indicating that the element is straight. We also list the execution times needed for steps 1 and 3 of our method (excluding I/O) in Table 1. The code was run using Matlab R2018a, and the wall-clock execution times were measured on a machine with 16GB of RAM and a Ryzen 7 1700 CPU. All mesh visualizations and distortion evaluations were done using Gmsh. Our first example is a third-order mesh of a square region around a NACA0012 airfoil. In Fig. 2a, b, we show the mesh resulting from our method and a table of the mesh quality values as measured by the distortion metric. In this example, our method increased the minimum distortion from 0.744 to 0.799, while causing only minor changes in the average distortion.
In our second example, we extrude the NACA0012 airfoil and create a third-order mesh of the resulting region. In Fig. 3a, b, we show the mesh resulting from our method, and a table of the mesh quality values. For this example, our method improved the minimum distortion by 0.125, increasing it from 0.317 to 0.442.
Our third and final example is a second-order mesh of an Airbus A319 aircraft. Unlike our previous examples, this geometry resulted in tangled elements after curving the boundary. Although our method still increased the minimum quality, it was not able to untangle the mesh. To address this, we applied the high-order regularization scheme available in Gmsh as a post-processing step. Aside from changing the target Jacobian range to 0.3–2 and fixing the boundary nodes, all other parameters were left at their default values. The untangling for the original mesh took 14.14 s, while untangling the mesh resulting from our method required only 1.64 s. In Fig. 4a–c, we show the surfaces of the mesh resulting from our method, a view of a cut through the interior volume mesh, and a table of the mesh quality values. In Fig. 4c, we list the distortion for the mesh after curving the boundary, the distortion for the mesh resulting from our method, and the distortions of both meshes after applying the regularization scheme in Gmsh.
Airbus A319 example: (a) surfaces of the mesh resulting from our method; (b) a view of a cut through the interior volume mesh, and (c) the quality of the mesh with only boundary curving, the quality of the mesh resulting from our method, and the quality of both meshes after applying the regularization scheme available in Gmsh
Aside from the third test case, all of these examples were relatively straightforward. In each case, our method increased the minimum distortion when compared to only curving the nodes along the boundary. While additional testing is necessary to confirm this, our results for the third example seem to indicate that our method could be used to reduce the severity of the mesh tangling and thus simplify the work for an untangling method during post-processing.
4 Concluding Remarks and Future Work
We have presented a new optimization-based method for generating high-order meshes. Our examples have shown that the proposed method based on affine combinations of nodal positions tends to improve the quality of the most distorted elements, while causing minor changes to the least distorted elements. While our approach is optimization-based, we have demonstrated that the optimization problem can be solved directly using a QR factorization as opposed to the typical iterative optimization approach. This change results in lessened computational complexity and reduced execution time.
As part of our future work, we will consider other definitions for the set of neighbors of an interior node. We will also investigate other aspects of the linear system including other node reordering schemes and solvers. Finally, we will apply the untangling method that we proposed in [20] after extending it to 3D.
References
Bassi, F., Rebay, S.: High-order accurate discontinuous finite element solution of the 2D Euler equations. J. Comput. Phys. 138(2), 251–285 (1997)
Dey, S., Shephard, M.S.: Curvilinear mesh generation in 3D. In: Proceedings of the 8th International Meshing Roundtable (1999)
Fortunato, M., Persson, P.-O.: High-order unstructured curved mesh generation using the Winslow equations. J. Comput. Phys. 307(2016), 1–14 (2016)
Gargallo-Peiró, A., Roca, X., Peraire, J., Sarrate, J.: Distortion and quality measures for validating and generating high-order tetrahedral meshes. Eng. Comput. 31(3), 423–437 (2015)
Gargallo-Peiró, A., Roca, X., Peraire, J., Sarrate, J.: Optimization of a regularized distortion measure to generate curved high-order unstructured tetrahedral meshes. Int. J. Numer. Methods Eng. 103(5), 342–363 (2015)
George, P.L., Borouchaki., H.: Construction of tetrahedral meshes of degree two. Int. J. Numer. Methods Eng. 90(9), 1156–1182 (2012)
Geuzaine, C., Remacle, J.-F.: Gmsh: a 3-D finite element mesh generator with built-in pre-and post-processing facilities. Int. J. Numer. Methods Eng. 79(11), 1309–1331 (2009)
Johnen, A., Remacle, J.-F., Geuzaine, C.: Geometrical validity of high-order triangular finite elements. Eng. Comput. 30(3), 375–382 (2014)
Karman, S.L., Erwin, J.T., Glasby, R.S., Stefanski, D.: High-order mesh curving using WCN mesh optimization. In: 46th AIAA Fluid Dynamics Conference, p. 3178 (2016)
Luo, X., Shephard, M.S., Remacle, J.-F.: The influence of geometric approximation on the accuracy of high order methods. Rensselaer SCOREC report, 1, 2001
Moxey, D., Green, M., Sherwin, S., Peiró, J.: An isoparametric approach to high-order curvilinear boundary-layer meshing. Comput. Methods Appl. Mech. Eng. 283, 636–650 (2015)
Moxey, D., Ekelschot, D., Keskin, Ü., Sherwin, S.J., Peiró, J.: High-order curvilinear meshing using a thermo-elastic analogy. Comput. Aided Des. 72, 130–139 (2016)
Nocedal, J., Wright, S.: Numerical Optimization, 2nd edn. Springer Series in Operations Research and Financial Engineering. Springer, Berlin (2006)
Persson, P.-O., Peraire, J.: Curved mesh generation and mesh refinement using Lagrangian solid mechanics. In: Proceedings of the 47th AIAA Aerospace Sciences Meeting Including the New Horizons Forum and Aerospace Exposition, p. 949 (2009)
Remacle, J.-F., Chevaugeon, N., Marchandise, E., Geuzaine, C.: Efficient visualization of high-order finite elements. Int. J. Numer. Methods Eng. 69(4), 750–771 (2007)
Roca, X., Gargallo-Peiró, A., Sarrate, J.: Defining quality measures for high-order planar triangles and curved mesh generation. In: Proceedings of the 20th International Meshing Roundtable, pp. 365–383. Springer, Berlin (2012)
Ruiz-Gironés, E., Sarrate, J., Roca, X.: Generation of curved high-order meshes with optimal quality and geometric accuracy. In: Proceedings of the 25th International Meshing Roundtable, vol. 163, pp. 315–327. Procedia Engineering (2016)
Sherwin, S.J., Peiró, J.: Mesh generation in curvilinear domains using high-order elements. Int. J. Numer. Methods Eng. 53(1), 207–223 (2001)
Stees, M., Shontz, S.M.: A high-order log barrier-based mesh generation and warping method. In: Proceedings of the 26th International Meshing Roundtable, vol. 203, pp. 180–192. Procedia Engineering (2017)
Stees, M., Shontz, S.M.: An angular approach to untangling high-order curvilinear triangular meshes. In: Proceedings of the 27th International Meshing Roundtable (2018)
Toulorge, T., Geuzaine, C., Remacle, J.-F., Lambrechts, J.: Robust untangling of curvilinear meshes. J. Comput. Phys. 254, 8–26 (2013)
Turner, M., Moxey, D., Peiró, J., Gammon, M., Pollard, C.R., Bucklow, H.: A framework for the generation of high-order curvilinear hybrid meshes for CFD simulations. In: Proceedings of the 26th International Meshing Roundtable, vol. 203, pp. 206–218. Procedia Engineering (2017)
Wang, Z.J., Fidkowski, K., Abgrall, R., Bassi, F., Caraeni, D., Cary, A., Deconinck, H., Hartmann, R., Hillewaert, K., Huynh, H.T., et al. High-order CFD methods: current status and perspective. Int. J. Numer. Methods Fluids 72(8), 811–845 (2013)
Xie, Z.Q., Sevilla, R., Hassan, O., Morgan, K.: The generation of arbitrary order curved meshes for 3D finite element analysis. Comput. Mech. 51(3), 361–374 (2013)
Acknowledgements
The work of the first author was funded in part by the Madison and Lila Self Graduate Fellowship and NSF CCF grant 1717894. The work of the second author was supported in part by NSF grants CCF 1717894 and OAC 1808553. The authors wish to thank the anonymous referee for his or her careful reading of the paper and for the helpful suggestions which strengthened it.
Author information
Authors and Affiliations
Corresponding author
Editor information
Editors and Affiliations
Rights and permissions
Open Access This chapter is licensed under the terms of the Creative Commons Attribution 4.0 International License (http://creativecommons.org/licenses/by/4.0/), which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons license and indicate if changes were made.
The images or other third party material in this chapter are included in the chapter's Creative Commons license, unless indicated otherwise in a credit line to the material. If material is not included in the chapter's Creative Commons license and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder.
Copyright information
© 2020 The Author(s)
About this paper
Cite this paper
Stees, M., Shontz, S.M. (2020). High-Order Mesh Generation Based on Optimal Affine Combinations of Nodal Positions. In: Sherwin, S.J., Moxey, D., Peiró, J., Vincent, P.E., Schwab, C. (eds) Spectral and High Order Methods for Partial Differential Equations ICOSAHOM 2018. Lecture Notes in Computational Science and Engineering, vol 134. Springer, Cham. https://doi.org/10.1007/978-3-030-39647-3_17
Download citation
DOI: https://doi.org/10.1007/978-3-030-39647-3_17
Published:
Publisher Name: Springer, Cham
Print ISBN: 978-3-030-39646-6
Online ISBN: 978-3-030-39647-3
eBook Packages: Mathematics and StatisticsMathematics and Statistics (R0)