Abstract
Mesh generation plays a crucial role in scientific computing. Traditional mesh generation methods, such as TFI and PDE-based methods, often struggle to achieve a balance between efficiency and mesh quality. To address this challenge, physics-informed intelligent learning methods have recently emerged, significantly improving generation efficiency while maintaining high mesh quality. However, physics-informed methods fail to generalize when applied to previously unseen geometries, as even small changes in the boundary shape necessitate burdensome retraining to adapt to new geometric variations. In this paper, we introduce MeshONet, the first generalizable intelligent learning method for structured mesh generation. The method transforms the mesh generation task into an operator learning problem with multiple input and solution functions. To effectively overcome the multivariable mapping restriction of operator learning methods, we propose a dual-branch, shared-trunk architecture to approximate the mapping between function spaces based on input-output pairs. Experimental results show that MeshONet achieves a speedup of up to four orders of magnitude in generation efficiency over traditional methods. It also enables generalization to different geometries without retraining, greatly enhancing the practicality of intelligent methods.
Introduction
In computational fluid dynamics (CFD) and finite element analysis (FEA), mesh generation is a critical bottleneck. Engineers typically face a trade-off between Transfinite Interpolation (TFI), which is fast but prone to mesh "tangling" in complex geometries, and PDE-based methods, which produce high-quality smooth meshes but are computationally expensive due to their iterative nature.
While Physics-Informed Neural Networks (PINNs) have been proposed as a solution, they suffer from a lack of generalization. Any change to the boundary geometry requires retraining the entire network. MeshONet addresses this by shifting from function learning to operator learning, training the model to learn the underlying "rules" of meshing rather than just the coordinates of a specific shape.
Methods
MeshONet is designed to handle the multivariable nature of 2D meshing, where both $x$ and $y$ coordinates must be predicted simultaneously. The framework treats mesh generation as a mapping between function spaces: boundary functions are the input, and interior mesh coordinate functions are the output.
The core innovation is the Dual-Branch, Shared-Trunk Architecture:
- Branch-x and Branch-y Networks: These process sub-sampled boundary data (sensor points) to extract features specific to horizontal and vertical geometric constraints.
- Shared Trunk Network: This network processes computational domain coordinates $(\xi, \eta)$. Sharing the trunk ensures topological consistency between the $x$ and $y$ coordinate predictions.
- Lift-Layer: To capture non-linear geometric features, the trunk network uses a "Lift-Layer" that expands $(\xi, \eta)$ coordinates into a higher-dimensional space using polynomial and trigonometric expansions.
The model is trained using a composite loss function that balances interior mesh alignment with strict adherence to boundary conditions.
Datasets and Evaluation
The authors evaluated MeshONet using six synthetic test cases designed to assess both interpolation (within training range) and extrapolation (beyond training range) capabilities.
Test cases included:
- Outer Boundary Variations: Arch shapes, hexagons with varying angles, wrenches, and semicircles.
- Inner Boundary Variations: Airfoils with varying thicknesses and shapes with internal circular holes.
Ground truth data was generated using traditional PDE-based solvers to ensure the model learned high-quality meshing principles.
Key Insights
- Multivariable Operator Learning: MeshONet demonstrates that structured meshing can be solved as a multivariable operator problem by bifurcating branch networks while maintaining a unified trunk.
- Generalization via Sensors: By using a fixed set of boundary "sensors," the model becomes shape-agnostic, learning the physics of the mapping rather than specific coordinates.
- Architectural Coupling: The shared trunk network prevents mesh tearing or overlapping by ensuring $x$ and $y$ coordinates are coupled as two views of the same physical space.
Key Results
- Efficiency: MeshONet achieves a speedup of up to 10,000 times over traditional PDE-based methods. For a $3200 \times 3200$ mesh, it generated results in 0.278 seconds, whereas traditional methods were prohibitively slow.
- Quality: MeshONet produced smoother meshes in complex regions compared to TFI, matching the quality of expensive PDE methods.
- Zero-Shot Generalization: The model successfully meshed "unseen" geometries, such as airfoils thicker than those in the training set, without any retraining.
Limitations and Future Work
Current limitations include sensitivity to the number of boundary sensor points and a focus on 2D structured meshes. Future work will explore extending the architecture to 3D geometries and developing more sophisticated boundary sampling strategies to improve geometric fidelity while reducing parameter counts.
Summary updated