
Mesh Generation: Algorithms & Methods
Document information
Author | Marshall Bern |
Major | Computational Geometry, Numerical Analysis |
Document type | Chapter |
Language | English |
Format | |
Size | 1.18 MB |
Summary
I.Types of Geometric Domains for Mesh Generation
This section categorizes input domains for mesh generation by dimension (2D or 3D). In 2D, it distinguishes between simple polygons, polygons with holes, multiple domains (allowing internal boundaries), and curved domains (using algebraic curves like splines). All these are broadly classified as polygonal domains. The choice of domain type significantly impacts the mesh generation algorithm and the resulting mesh quality.
1. Classification by Dimension
The initial classification of geometric domains is based on their dimensionality: two-dimensional (2D) or three-dimensional (3D). This fundamental distinction significantly influences the choice of mesh generation techniques and algorithms. Two-dimensional domains are further categorized into several specific types, each presenting unique challenges and opportunities for meshing. Understanding this initial dimensional classification is a critical first step in the mesh generation process, determining the type of algorithms and data structures most suitable for the task. The complexity of the meshing process increases with the dimensionality of the domain and the complexity of the shapes involved.
2. Two Dimensional Domain Types
Four types of planar (2D) domains are defined. A simple polygon encompasses both its boundary and interior. A polygon with holes is a simple polygon excluding the interiors of other simple polygons, resulting in a boundary with multiple connected components. Multiple domains are more complex, featuring internal boundaries; effectively, they can be any planar straight-line graph where the infinite face is bounded by a simple cycle. These are useful for modeling objects composed of various materials. Finally, curved domains allow for boundaries defined by algebraic curves like splines, again potentially incorporating holes and internal boundaries. The first three categories are collectively referred to as polygonal domains, highlighting the fundamental geometric shapes involved in their representation. These distinctions are crucial for selecting appropriate mesh generation algorithms that can effectively handle the unique topological characteristics of each type of domain, particularly concerning boundary conditions and internal structures.
3. Modeling Complex Objects and Material Properties
The categorization of geometric domains is directly relevant to the modeling of real-world objects and materials. Multiple domains, for example, are expressly designed to represent objects made from more than one material. Each material might require a different meshing strategy or refinement level, due to variations in material properties or behaviors. The accurate representation of these domains is essential for the successful simulation of physical phenomena within the object. The complexity of the domain, in terms of holes, internal boundaries, and curved surfaces, poses significant challenges in terms of the efficiency and accuracy of the mesh generation algorithms. The choice of an appropriate algorithm will be influenced not just by the complexity of the geometry, but also by the need to maintain fidelity in representing the material properties and their spatial distribution within the modeled object.
4. Implications for Mesh Generation Algorithms
The choice of mesh generation algorithm is directly influenced by the type of geometric domain. For instance, simple polygons might lend themselves to straightforward triangulation methods, while dealing with polygons containing holes or multiple domains requires more sophisticated algorithms capable of managing complex topological information. Similarly, curved domains necessitate techniques that can approximate curves effectively to produce a mesh that faithfully represents the curved boundaries and their interactions with adjacent elements. Algorithms tailored to specific domain types can improve mesh quality (measured through aspect ratios, angles, etc.) and computation efficiency. Selecting the right algorithm is critical to obtaining accurate and reliable simulation results, as mesh quality is directly linked to the accuracy and computational cost of the simulation itself. Different algorithms have varying computational complexities, and the optimal choice depends on the complexity of the geometry and the desired level of accuracy. The initial classification of the geometric domain provides a crucial foundation for choosing and implementing a suitable mesh generation algorithm.
II. Mesh Generation Methods and Solution Techniques
This section outlines the process of mesh generation, focusing on the challenges and solutions involved. It covers various mesh generation approaches: finite element method (FEM) and finite difference method (FDM), highlighting their use of structured vs. unstructured meshes. Domain decomposition is also discussed as a hybrid approach. The section emphasizes that the choice of mesh generation method is crucial in influencing the efficiency of the subsequent step: solving the resulting sparse linear system. Solving these systems often employs direct factorization or preconditioned iterative methods. The efficiency and robustness of these methods depend heavily on the mesh structure and element shapes.
1. Finite Element and Finite Difference Methods
The core of mesh generation lies in its application to solving partial differential equations, commonly using finite element (FEM) or finite difference (FDM) methods. FEM typically employs unstructured meshes, offering flexibility in handling complex geometries. In contrast, FDM often utilizes structured meshes due to their simplicity and efficiency in computation, particularly when using finite difference stencils. The choice between structured and unstructured meshes depends significantly on the specific problem and the desired balance between computational efficiency and geometric complexity. The inherent characteristics of each method and the suitability of various mesh types (e.g., triangular, quadrilateral, tetrahedral, hexahedral) to different types of problems must be carefully considered. Structured meshes, for example, while easier to implement, might require significantly more elements than unstructured meshes for the same problem, particularly when dealing with rapidly changing element sizes. The selection of the optimal mesh type and method is highly problem-dependent.
2. Domain Decomposition and Hybrid Approaches
Domain decomposition presents a hybrid approach, dividing the problem domain into smaller, potentially overlapping subdomains. Subproblems are solved directly within these smaller domains, then iteratively combined to reach a global solution where neighboring subdomain solutions agree. This technique combines the advantages of direct solvers within smaller regions with the superior convergence properties of iterative solvers over the entire domain. It is particularly valuable for complex geometries where a global structured mesh might be impractical or computationally expensive. This approach offers a compromise, leveraging the strengths of structured meshes for subdomains while reducing the overall burden on the mesh generator. The partitioning of the domain allows for the use of efficient structured mesh generation techniques for each subproblem, simplifying the generation process while still allowing for an accurate and robust solution of the overall problem, mitigating some of the computational difficulties associated with larger, complex domains.
3. Solving the Sparse Linear System
Solving the sparse linear system arising from either FEM or FDM is computationally the most demanding step in the mesh generation process. Direct factorization methods, such as sparse Cholesky or LU factorization, are robust but can be slow, especially for large systems. Their computational cost can be amortized if the factorization is reused for multiple right-hand sides. Iterative methods, although potentially faster, often require preconditioning to improve convergence, and their efficacy is heavily influenced by the mesh generation process and discrete formulation choices. A popular preconditioning technique uses an incomplete factorization, balancing computational cost against accuracy. The choice between direct and iterative methods involves a trade-off between speed and robustness, influenced by factors such as the size of the system, the mesh structure, and the desired accuracy of the solution. Higher-order basis functions in FEM can lead to smaller but denser linear systems, impacting the computational cost and the effectiveness of different solution methods.
4. Mesh Generation s Influence on Solution Methods
The mesh generation step significantly impacts the effectiveness of solution methods. For instance, using higher-order basis functions in FEM allows for coarser meshes, resulting in smaller, denser linear systems that may be solved more efficiently by direct methods. Conversely, the finite difference method often relies on structured meshes for better accuracy approximation with orthogonal edges. The characteristics of the mesh—such as element shape, aspect ratio, and structure—directly influence the condition number of the linear system, affecting both the speed and stability of the solver. For example, poorly shaped elements can lead to slow convergence or even instability in iterative methods. Therefore, optimizing the mesh generation process for the chosen numerical method is crucial for overall efficiency and solution accuracy. Careful consideration must be given to the interplay between the chosen numerical method (FEM or FDM) and the mesh properties to minimize computational time and maximize the accuracy of the final solution.
III. Mesh Quality and Element Shape
This section analyzes the impact of element shape and aspect ratio on the accuracy and efficiency of numerical solutions. Poor aspect ratios, leading to small or large angles in 2D (and small dihedral or solid angles in 3D), can introduce significant errors. High aspect ratio elements can be beneficial when dealing with anisotropic solutions, provided that their alignment is optimized. The section highlights various mesh quality metrics, including the influence of M-matrices in ensuring numerical stability. Specific challenges related to tetrahedral mesh generation and the occurrence of slivers are discussed. The importance of maintaining angles bounded away from 0° and 180° (in 2D) and avoiding various types of poorly shaped tetrahedra (needles, wedges, slivers, caps) in 3D is stressed.
1. Aspect Ratio and Interpolation Error
Mesh quality is intrinsically linked to the aspect ratio of mesh elements. Large aspect ratios, where elements are excessively elongated or flattened, can lead to unacceptable interpolation errors, compromising the accuracy of numerical solutions. Early research demonstrated convergence as triangular elements shrink, provided angles remain bounded away from 0°. Later analysis relaxed this constraint, showing convergence if angles are bounded away from 180°. This concept extends to 3D, where dihedral angles must be bounded away from 0°. Bank and Smith's triangle quality measure, defined as the triangle's area divided by the sum of squared edge lengths, offers a practical metric, slightly favoring sharp over obtuse triangles. The influence of aspect ratio on interpolation error is a crucial factor determining the accuracy of the numerical solution. Large aspect ratios can lead to significant inaccuracies, while well-shaped elements with controlled aspect ratios are essential for obtaining reliable results.
2. Anisotropic Solutions and Optimal Aspect Ratios
While typically undesirable, high aspect ratio elements can be beneficial for anisotropic solutions, where the second derivative of the solution varies greatly with direction. Properly aligned high-aspect-ratio elements provide a highly efficient mesh in these cases. The ideal aspect ratio of a triangle is the square root of the ratio of the largest to smallest eigenvalues of the Hessian. For triangular meshes, the presence of large angles is more problematic than small angles when aspect ratios exceed the ideal. The alignment and aspect ratio of elements must be carefully considered in relation to the characteristics of the problem's solution. The optimal shape depends on the direction of the highest variation in the solution's derivatives, necessitating optimized element alignment for best results. The choice of element shape is not just about avoiding poor quality, but also about leveraging element properties to best represent the physical phenomenon being modeled.
3. Element Shape and Linear System Properties
Element shape influences the properties of the resulting linear system, beyond just its condition number. A triangular mesh with well-shaped elements yields a symmetric M-matrix—positive definite with negative off-diagonal entries—for a finite element formulation involving a Laplacian operator. M-matrices satisfy a discrete maximum principle, preventing numerical oscillations in the solution. Fluid flow problems, especially Navier-Stokes simulations, are strongly anisotropic; ideal aspect ratios in aerodynamics can reach 10,000. Quadrilateral and hexahedral meshes offer accuracy advantages over triangular and tetrahedral meshes for control-volume formulations of such problems, allowing element faces in boundary layers to be nearly parallel or orthogonal to the surface. The mathematical properties of the linear system arising from the mesh discretization are directly linked to the element shapes. Well-shaped elements lead to favorable properties in the linear system, improving the stability and efficiency of numerical solution techniques. In contrast, poorly shaped elements can negatively affect the solution's stability and lead to inaccuracies.
4. Challenges in Three Dimensions
Tetrahedra can be poorly shaped in more ways than triangles. In 2D, problems arise from angles near 0° or 180°, but in 3D, classifications consider both dihedral and solid angles, resulting in five types of poorly shaped tetrahedra: needles, wedges, slivers, caps, and spires. A sliver, for instance, can have all face angles bounded away from 0° and 180°, yet still have arbitrarily small solid angles and volume. The same domain can be tetrahedralized with varying numbers of tetrahedra, leading to complexities in mesh optimization. Edge flipping, a technique used to improve mesh quality, has a more complicated generalization to 3D, making mesh improvement and refinement significantly more challenging in three dimensions than in two. The more complex geometric relationships in 3D require more sophisticated algorithms and techniques to achieve and maintain the desired mesh quality and avoid inaccuracies. The identification and removal of these poorly shaped elements are critical for achieving a robust and accurate numerical solution.
IV.Two Dimensional Mesh Generation Techniques
This section focuses on 2D mesh generation techniques, particularly emphasizing structured meshes and their advantages in terms of memory efficiency and computational speed due to implicit neighbor connectivity. The use of conformal mapping to generate structured meshes with near-orthogonal elements is explained. The section further explores the use of unstructured mesh generation via methods like Delaunay triangulation. This includes techniques such as advancing front methods, random point scattering with filtering, and algorithms that iteratively improve mesh quality by techniques like edge flipping and edge insertion to achieve optimal mesh quality, minimizing maximum angles or maximizing minimum angles.
1. Structured Meshes Simplicity and Efficiency
Structured meshes offer significant advantages in terms of simplicity and efficiency. They require considerably less memory than unstructured meshes with the same number of elements because neighbor connectivity is implicitly defined through array storage. This implicit definition allows for faster access to neighboring cells during computations, leading to optimized code and efficient execution, particularly on vector machines. The simpler data structure and inherent regularity of structured meshes translate into faster computation times and reduced memory requirements, making them highly attractive for certain applications. However, the inherent regularity can limit their applicability to complex geometries, as it can become difficult or impossible to create a structured mesh for domains with intricate shapes. This limitation often necessitates the use of unstructured meshes or hybrid approaches.
2. Conformal Mapping and Structured Meshes
A conformal mapping, which preserves angles, provides a powerful approach for generating structured meshes. The Riemann mapping theorem guarantees the existence of a conformal mapping between any topological disk and another, such as a unit disk or a square. Mapping a region onto a square grid induces a structured mesh where element angles tend towards 90° with increasing discretization refinement. While offering advantages like near-orthogonal elements, true conformal mappings are not widely used in mesh generation due to the computational cost of obtaining such mappings and the lack of local control over point spacing. While this method offers highly desirable mesh characteristics such as near-orthogonal elements, the computational cost associated with calculating true conformal mappings and the limitations on local control over point spacing have restricted its widespread use. Other methods have been developed to approximate the benefits of conformal mappings, offering a balance between computational cost and mesh quality.
3. Unstructured Mesh Generation Delaunay Triangulation
Delaunay triangulation is a cornerstone of unstructured mesh generation. Several approaches exist for generating unstructured meshes based on Delaunay triangulation. One involves combining vertices from multiple structured meshes. Another adds Steiner points layer by layer, working inward from the domain boundary – a technique similar to advancing front mesh generation. Random point scattering with filtering represents a third approach, where points are scattered randomly according to some distribution, followed by filtering to remove closely spaced points and improve the overall quality. Deterministic methods achieve a similar effect to random sampling with filtering by applying birth and death rules that depend on the density of neighboring points. These diverse methods highlight the versatility of Delaunay triangulation for meshing complex shapes, offering various trade-offs between control over element shape, ease of fitting complex geometries, and computational cost.
4. Conforming Delaunay Triangulation and Mesh Refinement
The generation of a conforming Delaunay triangulation, where the triangulation conforms to the boundary of the domain, is a crucial step in many 2D meshing algorithms. Achieving conformity may require adding Steiner points to the boundary. Efficient algorithms like Saalfeld's algorithm add uniformly spaced Steiner points (except near endpoints) along edges, ensuring that edges of the domain are represented as unions of edges in the Delaunay triangulation. Subsequent steps improve the mesh by adding Steiner points based on angle criteria, aiming to produce a mesh with fewer, rounder triangles. Algorithms like Ruppert's algorithm combine constrained Delaunay triangulation with Steiner point insertion to achieve a balance between mesh quality and efficiency, minimizing the total number of triangles while maintaining a specified minimum angle. These approaches ensure that the resulting mesh accurately captures the domain's boundary and has acceptable element shapes, paving the way for accurate numerical solutions.
V.Three Dimensional Mesh Generation Techniques
This section extends the discussion to 3D mesh generation, highlighting the challenges of creating high-quality tetrahedral meshes and hexahedral meshes. It details the use of Delaunay triangulation in 3D, emphasizing point placement strategies such as combining structured meshes, advancing front methods, and random scattering with filtering. The complexities of dealing with sliver tetrahedra are addressed, and post-processing techniques for their removal are mentioned. The section also explores octree-based mesh generation and refinement strategies, including longest-edge bisection and Laplacian smoothing. The section additionally mentions the difficulties associated with hexahedral mesh generation, highlighting methods like whisker weaving and medial axis transform based approaches. The section also mentions the challenge of non-tetrahedralizable polyhedra and its implications for meshing.
1. Delaunay Triangulation in 3D Point Placement and Conforming Meshes
Three-dimensional mesh generation often employs Delaunay triangulation, similar to the 2D case. Point placement methods, including combining structured meshes, advancing front techniques, and random scattering with filtering, are used. A crucial aspect is ensuring that the Delaunay triangulation conforms to the domain boundary, requiring sufficient points on the boundary. While the 3D conforming Delaunay triangulation problem is manageable for most practical domains, published solutions remain less common than in 2D. The same challenges of improper point spacing at junctures between fronts or patches persist from the 2D case. Additionally, even well-spaced point sets may contain sliver tetrahedra in their Delaunay triangulation because a sliver's circumsphere is not unusually large compared to its edge lengths. Therefore, post-processing steps are frequently included to detect and remove these problematic elements. The ANSYS Inc. advancing front mesh generator is mentioned as an example of a system that places elements directly, rather than using a point placement followed by Delaunay triangulation approach.
2. Advancing Front Methods and Mesh Improvement in 3D
An algorithm by Marcum and Weatherill combines advancing front methods with Delaunay triangulation and iterative improvement. It starts with a coarse mesh and adds Steiner points using advancing front, subdividing tetrahedra to maintain triangulation. The mesh is then improved using Delaunay flips followed by minmax-solid-angle flips, a strategy found to be more effective than either type of flip alone. Pure advancing front methods iteratively choose a face from the initial boundary faces and build a tetrahedron over it. New vertices, when needed, are strategically placed to minimize collisions and to account for aspect ratio considerations. The algorithm also prioritizes filling clefts to ensure overall mesh integrity, showcasing how mesh generation strategies in 3D demand a delicate balance between topology and geometry. The need for careful consideration of element shapes and the use of iterative improvement techniques such as flipping and smoothing are highlighted in this section.
3. Octrees and Refinement Algorithms in 3D
Octrees, the 3D generalization of quadtrees, provide a hierarchical approach to mesh generation. An initial bounding cube is recursively subdivided into eight congruent cubes until each minimal cube intersects the domain in a simple way. A balance condition prevents adjacent cubes from having vastly different sizes. Refinement in 3D is discussed through the generalization of bisection to tetrahedra. Bisecting a tetrahedron across an edge creates two child tetrahedra. Maintaining mesh validity requires consistent bisection of shared faces between adjacent tetrahedra. A bisection algorithm by Bänsch generates a finite number of similarity classes by mapping tetrahedra to a canonical tetrahedron for which longest-edge bisection has a finite number of similarity classes. The algorithm ensures that the resulting tetrahedra belong to a limited set of similarity classes, reducing complexity. Consistent bisection of shared faces between adjacent tetrahedra is essential to prevent the creation of invalid meshes, emphasizing the topological constraints in 3D mesh refinement.
4. Mesh Improvement and Refinement Techniques in 3D
Three-dimensional mesh improvement often employs edge flipping, generalized from the 2D case. Flipping is performed first based on Delaunay's empty sphere criterion and then by minimizing the maximum solid angle. Laplacian smoothing, another common technique, is also applicable in 3D, but it doesn't guarantee improved element quality and may require explicit checks to prevent element inversion. The discussion highlights the challenges in 3D mesh refinement, noting that fewer proven techniques exist compared to 2D. Bänsch's bisection algorithm is presented as an example of a refinement method that generates a finite number of similarity classes, maintaining a controlled set of tetrahedral shapes throughout the refinement process. The iterative nature of these mesh improvement techniques (such as edge flipping and Laplacian smoothing), combined with the topological constraints present in 3D, makes the generation of high-quality meshes significantly more complex in three dimensions than in two.