Mesh Based Simulations with Spatial and Temporal awareness

Paul Garnier, Vincent Lannelongue, Elie Hachem
5/2/2026
cs.LGcs.AIphysics.comp-ph

Official code: DonsetPG/graph-physics (52 stars, last commit 2026-04-23).

Abstract

Machine Learning surrogates for Computational Fluid Dynamics (CFD), particularly Graph Neural Networks (GNNs) and Transformers, have become a new important approach for accelerating physics simulations. However, we identify a critical bottleneck in the field: while architectures have advanced significantly, the common underlying training paradigms remain bound to naive assumptions, such as node-wise supervision and explicit Euler time-stepping. These legacy choices ignore the stiff dynamics and local flux continuity inherent to numerous partial differential equations resolution methods, such as Finite Element, Difference, or Volume (FEM). In this work, we propose a unified framework to bridge the gap between geometric deep learning and rigorous numerical analysis. We introduce three key innovations: (1) Multi Node Prediction, a stencil-level objective that predicts field values for a node's full local topology, enforcing spatial derivative consistency; (2) Temporal Correction, replacing unstable explicit schemes with a predictor-corrector via temporal Cross-Attention; and (3) Geometric Inductive Biases, leveraging 3D Rotary Positional Embeddings (RoPE) to robustly capture rotational symmetries in unstructured meshes. We evaluate this framework across three architectures (MeshGraphNet, Transolver, and a Transformer) on diverse physics datasets. Our approach yields consistent improvements in accuracy and stability, particularly in long-horizon rollouts, while producing latent representations that generalize to unseen subtasks such as Wall Shear Stress or Pressure prediction. Code is available at https://github.com/DonsetPG/graph-physics.

View on arXivView PDF

Code Implementations(1)

This repo lets you train GNN (MeshGraphNet, transformers, etc) to simulate physics on unstructured grids like meshes.

5217Shell, PythonOct 10, 20246 months ago
gnnmlphysics-simulation

Similar Papers

Cite this paper

@article{garnier2026mesh,
  title  = {Mesh Based Simulations with Spatial and Temporal awareness},
  author = {Paul Garnier and Vincent Lannelongue and Elie Hachem},
  year   = {2026},
  eprint = {2605.01542},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2605.01542v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2605.01542.svg)](https://codeofpaper.com/paper/2605.01542)

Discussion