Submitted:
23 August 2024
Posted:
27 August 2024
You are already at the latest version
Abstract
Keywords:
1. Introduction
- Meshnet is trained to predict mesh parameters of a given geometry (CAD file) later used to generate an initial mesh.
- Graphnet is trained to predict a metric field, either directly or indirectly by predicting the velocity field, later used to generate an anisotropic adapted mesh.
- Section 2: Materials and Methods - This section presents the problem statement, describes the dataset used, elaborates on the model architecture, and details the training configuration.
- Section 3: Results - Here, we provide the results of our experiments, focusing on the performance of the proposed models Meshnet, Graphnet, and Adaptnet.
- Section 4: Discussion - This section discusses the implications of our findings, in particular the generalization of our approach to unseen data and configurations.
- Section 5: Conclusion - Finally, we summarize the key contributions of our work and suggest directions for future research.
2. Materials and Methods
2.1. Problem Statement
2.1.1. Stokes Problem
2.1.2. Linear Elasticity Problem
2.2. Dataset
2.3. Mesh Parameters
2.4. Mesh-Based Simulations
2.5. Graph Representation
- Geometry: 3D coordinates
- Topology: node connections
- Boundary Conditions (BC): inlet, outlet, walls, obstacles or fluid
- Initial Conditions (IC): velocity and pressure field (mesh-based simulations only)
2.6. Model
2.6.1. Encoder
2.6.2. Processor
2.6.3. Decoder
2.6.4. Local and Global Features
2.7. Loss Function and Optimiser
3. Results
3.1. Meshnet
3.1.1. Fine Tuning Input Data for Message-Passing GNN
3.1.2. Evaluating Meshes Similarity and Quality
3.2. Graphnet
3.2.1. Direct Predictions: Velocity and Anisotropic Metric Fields
3.2.2. Mesh Adaptation
3.3. Adaptnet
4. Discussion
4.1. Meshnet Generalisation
4.2. Graphnet Generalisation
4.3. Linear Elasticity Problem
5. Conclusions
Author Contributions
Funding
Data Availability Statement
Acknowledgments
Conflicts of Interest
Abbreviations
| AMR | Adaptive Mesh Refinement |
| ADAM | Adaptive Moment Estimation |
| BC | Boundary Conditions |
| CAD | Computer Aid Design |
| CFD | Computational Fluid Dynamics |
| CSM | Computational Solid Mechanics |
| CNN | Convolutional neural network |
| DL | Deep Learning |
| FE | Finite Element |
| GN | Graph Network |
| IC | Initial Conditions |
| ML | Machine Learning |
| NN | Neural Network |
| PINN | Physics-Informed Neural Networks |
| RMSE | Root Mean Square Error |
Appendix A.
Appendix A.1. Linear elasticity problem

Appendix A.2. Model
| Node MLP ( | Edge MLP ( |
|---|---|
| Input: x | Input: x |
| Parameter name | Value |
|---|---|
| Number of GNN layer for the processor | 15 |
| Latent size for the processor | 128 |
| Activation | ReLu |
| Type of normalization | Layer normalization |
| Input feature size of Node MLP | 256 |
| Input feature size of Edge MLP | 384 |
References
- Zhang, Z.; Wang, Y.; Jimack, P.K.; Wang, H. MeshingNet: A New Mesh Generation Method based on Deep Learning, 2020, [arXiv:math.NA/2004.07016]. arXiv:math.NA/2004.07016].
- Economon, T.D.; Palacios, F.; Copeland, S.R.; Lukaczyk, T.W.; Alonso, J.J. SU2: An Open-Source Suite for Multiphysics Simulation and Design. AIAA Journal 2016, 54, 828–846. [Google Scholar] [CrossRef]
- Ramamurti, R.; Sandberg, W. Simulation of Flow About Flapping Airfoils Using Finite Element Incompressible Flow Solver. AIAA Journal 2001, 39, 253–260. [Google Scholar] [CrossRef]
- Panthi, S.; Ramakrishnan, N.; Pathak, K.; Chouhan, J. An analysis of springback in sheet metal bending using finite element method (FEM). Journal of Materials Processing Technology 2007, 186, 120–124. [Google Scholar] [CrossRef]
- Yazid, A.; Abdelkader, N.; Abdelmadjid, H. A state-of-the-art review of the X-FEM for computational fracture mechanics. Applied Mathematical Modelling 2009, 33, 4269–4282. [Google Scholar] [CrossRef]
- Shewchuk, J. Delaunay refinement algorithms for triangular mesh generation. Computational Geometry 2002, 22, 21–74. [Google Scholar] [CrossRef]
- Si, H.; Sadrehaghighi, I. Tetgen -A Delaunay-Based Quality Tetrahedral Mesh Generator. ACM Transactions on Mathematical Software 2022. [Google Scholar] [CrossRef]
- Lei, N.; Li, Z.; Xu, Z.; Li, Y.; Gu, X. What’s the Situation with Intelligent Mesh Generation: A Survey and Perspectives, 2023, [arXiv:cs.AI/2211.06009].
- Almeida, R.C.; Feijóo, R.A.; Galeao, A.C.; Padra, C.; Silva, R.S. Adaptive finite element computational fluid dynamics using an anisotropic error estimator. Computer Methods in Applied Mechanics and Engineering 2000, 182, 379–400. [Google Scholar] [CrossRef]
- Mesri, Y.; Zerguine, W.; Digonnet, H.; Silva, L.; Coupez, T. , Dynamic Parallel Adaption for Three Dimensional Unstructured Meshes: Application to Interface Tracking; 2008; pp. 195–212. [CrossRef]
- Mesri, Y.; Khalloufi, M.; Hachem, E. On optimal simplicial 3D meshes for minimizing the Hessian-based errors. Applied Numerical Mathematics 2016, 109, 235–249. [Google Scholar] [CrossRef]
- Loseille, A.; Alauzet, F. Continuous mesh framework part I: well-posed continuous interpolation error. SIAM Journal on Numerical Analysis 2011, 49, 38–60. [Google Scholar] [CrossRef]
- Agouzal, A.; Vassilevski, Y.V. Minimization of gradient errors of piecewise linear interpolation on simplicial meshes. Computer methods in applied mechanics and engineering 2010, 199, 2195–2203. [Google Scholar] [CrossRef]
- Labbé, P.; Dompierre, J.; Vallet, M.G.; Guibault, F. Verification of three-dimensional anisotropic adaptive processes. International journal for numerical methods in engineering 2011, 88, 350–369. [Google Scholar] [CrossRef]
- Mesri, Y.; Guillard, H.; Coupez, T. Automatic coarsening of three dimensional anisotropic unstructured meshes for multigrid applications. Applied Mathematics and Computation 2012, 218, 10500–10519. [Google Scholar] [CrossRef]
- Kamenski, L.; Huang, W. How a nonconvergent recovered Hessian works in mesh adaptation. SIAM Journal on Numerical Analysis 2014, 52, 1692–1708. [Google Scholar] [CrossRef]
- Ladický, L.; Jeong, S.; Solenthaler, B.; Pollefeys, M.; Gross, M. Data-driven fluid simulations using regression forests. 2015; 34. [Google Scholar] [CrossRef]
- Wiewel, S.; Becher, M.; Thuerey, N. Latent-space Physics: Towards Learning the Temporal Evolution of Fluid Flow, 2019, [arXiv:cs.LG/1802.10123].
- Lecun, Y.; Bengio, Y. Convolutional Networks for Images, Speech, and Time-Series. 1995.
- Guo, X.; Li, W.; Iorio, F. Convolutional Neural Networks for Steady Flow Approximation. Proceedings of the 22nd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining; Association for Computing Machinery: New York, NY, USA, 2016. [Google Scholar] [CrossRef]
- Zhu, Y.; Zabaras, N. Bayesian deep convolutional encoder–decoder networks for surrogate modeling and uncertainty quantification. Journal of Computational Physics 2018, 366, 415–447. [Google Scholar] [CrossRef]
- Jin, X.; Cheng, P.; Chen, W.L.; Li, H. Prediction model of velocity field around circular cylinder over various Reynolds numbers by fusion convolutional neural networks based on pressure on the cylinder. Physics of Fluids 2018, 30. [Google Scholar] [CrossRef]
- Lee, S.; You, D. Data-driven prediction of unsteady flow over a circular cylinder using deep learning. Journal of Fluid Mechanics 2019, 879, 217–254. [Google Scholar] [CrossRef]
- Thuerey, N.; Weißenow, K.; Prantl, L.; Hu, X. Deep Learning Methods for Reynolds-Averaged Navier–Stokes Simulations of Airfoil Flows. AIAA Journal 2020, 58, 25–36. [Google Scholar] [CrossRef]
- Patil, A.; Viquerat, J.; Larcher, A.; El Haber, G.; Hachem, E. Robust deep learning for emulating turbulent viscosities. Physics of Fluids 2021, 33. [Google Scholar] [CrossRef]
- Scarselli, F.; Gori, M.; Tsoi, A.C.; Hagenbuchner, M.; Monfardini, G. The Graph Neural Network Model. IEEE Transactions on Neural Networks 2009, 20, 61–80. [Google Scholar] [CrossRef]
- Gilmer, J.; Schoenholz, S.S.; Riley, P.F.; Vinyals, O.; Dahl, G.E. Neural Message Passing for Quantum Chemistry, 2017, [arXiv:cs.LG/1704.01212]. arXiv:cs.LG/1704.01212].
- Battaglia, P.W.; Hamrick, J.B.; Bapst, V.; Sanchez-Gonzalez, A.; Zambaldi, V.; Malinowski, M.; Tacchetti, A.; Raposo, D.; Santoro, A.; Faulkner, R.; Gulcehre, C.; Song, F.; Ballard, A.; Gilmer, J.; Dahl, G.; Vaswani, A.; Allen, K.; Nash, C.; Langston, V.; Dyer, C.; Heess, N.; Wierstra, D.; Kohli, P.; Botvinick, M.; Vinyals, O.; Li, Y.; Pascanu, R. Relational inductive biases, deep learning, and graph networks, 2018, [arXiv:cs.LG/1806.01261]. arXiv:cs.LG/1806.01261].
- Pfaff, T.; Fortunato, M.; Sanchez-Gonzalez, A.; Battaglia, P.W. Learning Mesh-Based Simulation with Graph Networks. International Conference on Learning Representations, 2021.
- Ju, X.; Hamon, F.P.; Wen, G.; Kanfar, R.; Araya-Polo, M.; Tchelepi, H.A. Learning CO2 plume migration in faulted reservoirs with Graph Neural Networks, 2023, [arXiv:cs.LG/2306.09648]. arXiv:cs.LG/2306.09648].
- Geuzaine, C.; Remacle, J.F. Gmsh: A 3-D finite element mesh generator with built-in pre- and post-processing facilities. International Journal for Numerical Methods in Engineering 2009, 79, 1309–1331. [Google Scholar] [CrossRef]
- Hecht, F. New development in FreeFem++. J. Numer. Math. 2012, 20, 251–265. [Google Scholar] [CrossRef]
- Dobrzynski, C. MMG3D: User Guide. Technical Report RT-0422, INRIA, 2012.
- Sanchez-Gonzalez, A.; Godwin, J.; Pfaff, T.; Ying, R.; Leskovec, J.; Battaglia, P.W. Learning to Simulate Complex Physics with Graph Networks, 2020, [arXiv:cs.LG/2002.09405]. arXiv:cs.LG/2002.09405].
- Harsch, L.; Riedelbauch, S. Direct Prediction of Steady-State Flow Fields in Meshed Domain with Graph Networks, 2021, [arXiv:physics.flu-dyn/2105.02575]. arXiv:physics.flu-dyn/2105.02575].
- Zhou, J.; Cui, G.; Hu, S.; Zhang, Z.; Yang, C.; Liu, Z.; Wang, L.; Li, C.; Sun, M. Graph Neural Networks: A Review of Methods and Applications, 2021, [arXiv:cs.LG/1812.08434]. A: Neural Networks; arXiv:cs.LG/1812.08434].
- Wang, Y.; Sun, Y.; Liu, Z.; Sarma, S.E.; Bronstein, M.M.; Solomon, J.M. Dynamic Graph CNN for Learning on Point Clouds, 2019, [arXiv:cs.CV/1801.07829]. arXiv:cs.CV/1801.07829].
- vom Stein, R.; Glassmeier, K.H.; Dunlop, M. A Configuration Parameter for the Cluster Satellites., 1992.
- Raissi, M.; Perdikaris, P.; Karniadakis, G.E. Physics-informed neural networks: A deep learning framework for solving forward and inverse problems involving nonlinear partial differential equations. Journal of Computational Physics 2019, 378, 686–707. [Google Scholar] [CrossRef]
























| Meaning | |
|---|---|
| The four points are colinear. | |
| The four points all lie in a plane . | |
| A regular tetrahedron is formed . |
| Component | ||||||
|---|---|---|---|---|---|---|
| Duration (h) | ||||||
| Batch size | 2 | 2 | 2 | 4 | 4 | 4 |
| Model | Meshnet | Graphnet |
|---|---|---|
| Computation | Engineer time | 50.06s |
| Prediction | 0.68s | 0.79s |
| Speed-up | ND | 63.4 |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2024 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (http://creativecommons.org/licenses/by/4.0/).