The finite element discretization of computational physics problems frequently involves the manual generation of an initial mesh and the application of adaptive mesh refinement (AMR). This approach is employed to selectively enhance the accuracy of resolution in regions that encompass significant features throughout the simulation process. In this paper, we introduce Adaptnet, a Graph Neural Networks (GNNs) framework for learning mesh generation and adaptation. The model is composed of two GNNs: the first one, Meshnet, learns mesh parameters commonly used in open-source mesh generators, to generate an initial mesh from a Computer Aided Design (CAD) file; while the second one, Graphnet, learns mesh-based simulations to predict the components of an Hessian-based metric to perform anisotropic mesh adaptation. Our approach is tested on structural (Deforming plate–Linear elasticity) and fluid mechanics (Flow around cylinders–steady-state Stokes) problems. Our findings demonstrate the model’s ability to precisely predict the dynamics of the system and adapt the mesh as needed. The adaptability of the model enables learning resolution-independent mesh-based simulations during training, allowing it to scale effectively to more intricate state spaces during inference.
Driven by the abundant data generated from computational fluid dynamics (CFD) simulations, machine learning (ML) methods surpass the deterministic criteria on flow phenomena identification in the way that they are independent of a case-by-case threshold by combining the flow field properties and the topological distribution of the phenomena. The current most popular and successful ML models based on convolutional neural networks are limited to structured meshes and unable to directly digest the data generated from unstructured meshes, which are more widely used in real industrial CFD simulations. We proposed a framework based on graph neural networks with the proposed fast Gaussian mixture model as the convolution kernel and U-Net architecture to detect flow phenomena based on a graph hierarchy generated by the algebraic multigrid method embedded in the open-source CFD solver, code_saturne. We demonstrate the superiority of the proposed kernel and U-Net architecture, along with the generality of the framework to unstructured mesh and unseen case, on detecting the vortices once trained on a single backward-facing step case. Our proposed framework can be trivially extended to detect more flow phenomena in three dimensional cases, which is ongoing work.
Computational fluid dynamics (CFD) is the main field of computational mechanics that has historically benefited from advances in high-performance computing. High-performance computing involves several techniques to make a simulation efficient and fast, such as distributed memory parallelism, shared memory parallelism, vectorization, memory access optimizations, etc. As an introduction, we present the anatomy of supercomputers, with special emphasis on HPC aspects relevant to CFD. Then, we develop some of the HPC concepts and numerical techniques applied to the complete CFD simulation framework: from preprocess (meshing) to postprocess (visualization) through the simulation itself (assembly and iterative solvers).
23 March 2022 in ACM Transactions on Parallel Computing
The Radial Basis Function (RBF) technique is an interpolation method that produces high-quality unstructured adaptive meshes. However, the RBF-based boundary problem necessitates solving a large dense linear system with cubic arithmetic complexity that is computationally expensive and prohibitive in terms of memory footprint. In this article, we accelerate the computations of 3D unstructured mesh deformation based on RBF interpolations by exploiting the rank structured property of the matrix operator. The main idea consists in approximating the matrix off-diagonal tiles up to an application-dependent accuracy threshold. We highlight the robustness of our multiscale solver by assessing its numerical accuracy using realistic 3D geometries. In particular, we model the 3D mesh deformation on a population of the novel coronaviruses. We report and compare performance results on various parallel systems against existing state-of-the-art matrix solvers.