[Paper Review] Machine Learning-Based Optimal Mesh Generation in Computational Fluid Dynamics
The paper trains a convolutional neural network to predict optimal mesh density distributions for CFD, using a data pipeline built from thousands of adjoint-guided refinements, enabling rapid, high-quality mesh initialization for CFD tools.
Computational Fluid Dynamics (CFD) is a major sub-field of engineering. Corresponding flow simulations are typically characterized by heavy computational resource requirements. Often, very fine and complex meshes are required to resolve physical effects in an appropriate manner. Since all CFD algorithms scale at least linearly with the size of the underlying mesh discretization, finding an optimal mesh is key for computational efficiency. One methodology used to find optimal meshes is goal-oriented adaptive mesh refinement. However, this is typically computationally demanding and only available in a limited number of tools. Within this contribution, we adopt a machine learning approach to identify optimal mesh densities. We generate optimized meshes using classical methodologies and propose to train a convolutional network predicting optimal mesh densities given arbitrary geometries. The proposed concept is validated along 2d wind tunnel simulations with more than 60,000 simulations. Using a training set of 20,000 simulations we achieve accuracies of more than 98.7%. Corresponding predictions of optimal meshes can be used as input for any mesh generation and CFD tool. Thus without complex computations, any CFD engineer can start his predictions from a high quality mesh.
Motivation & Objective
- Reduce computational cost in CFD by predicting near-optimal mesh densities rather than performing expensive goal-oriented adaptive refinements.
- Create a data-driven mesh generation approach that generalizes across arbitrary 2D geometries in wind-tunnel-like flows.
- Provide predictions that can be used as input for any CFD meshing/simulation tool without requiring adjoint-based workflows in the user's toolchain.
- Demonstrate the accuracy and robustness of the learned mesh densities through extensive 2D CFD experiments and a large-scale data generation pipeline.
Proposed method
- Generate a large dataset of CFD runs using adjoint-based mesh refinement to obtain high-quality meshes for diverse 2D geometries in a wind-tunnel-like setup.
- Represent mesh density via region-averaged cell sizes exported as 128x128 images to feed a CNN.
- Train a Staircase UNet (with skip connections) to map geometry-derived inputs to predicted mesh-density images.
- Apply Gaussian smoothing and downsampling to create consistent, trainable input-output pairs (128x128) for the network.
- Mask loss computation to exclude geometry interior and prism layers to focus learning on region-wide mesh refinement patterns.
- Experiment with architectural variants (scalar vs tensor skip connections, unconstrained vs constrained skips) and hyperparameters (Adam betas) to optimize prediction quality.
Experimental results
Research questions
- RQ1Can a CNN learn to predict optimal local mesh densities from arbitrary 2D geometries in wind-tunnel-like CFD setups?
- RQ2How well does a data-driven mesh-density predictor generalize to geometries not seen during training?
- RQ3What is the impact of network architecture choices (skip connections, loss masking) on the accuracy of predicted mesh distributions?
- RQ4Can the predicted meshes serve as high-quality starting points for conventional mesh generation and CFD solvers across tools?
Key findings
- The study reports accuracies of more than 98.7% on predicting optimal mesh densities.
- A large-scale data generation pipeline produced 65,000 simulations and 280,000 different meshes for training and evaluation.
- Predicted meshes are designed to be usable as inputs to any mesh generation/CFD tool without requiring adjoint-based workflows in the target tool.
- The approach focuses on 2D channel/wind-tunnel-like flows with arbitrary geometries, with generalization stated as straightforward to other cases.
- The data representation uses 128x128 downsampled, Gaussian-smoothed images of region-averaged cell sizes, enabling effective CNN learning.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.