From Structured to Unstructured: A Comparative Analysis of Computer Vision and Graph Models in Solving Mesh-Based PDEs

Jens Decke, Olaf Wünsch, Bernhard Sick, Christian Gruhl

Abstract

Solving Partial Differential Equations (PDEs) is a cornerstone of modern engineering, traditionally requiring significant computational resources. Deep learning surrogate models have emerged as a promising alternative, yet the choice between Computer Vision (CV) architectures and Graph Neural Networks (GNNs) remains a subject of debate, particularly across different mesh topologies. This paper presents a comparative analysis of these paradigms, demonstrating that CV-based models—specifically U-Net—consistently outperform specialized graph models in both accuracy and training efficiency on structured and graded meshes. While GNNs maintain an edge in highly unstructured environments, the computational speedup and competitive accuracy of CV models suggest a shift in how we approach mesh-based physical simulations.

Introduction

From simulating aerodynamic flow over a wing to modeling electromagnetic fields within an electric motor, PDEs are essential for engineering design. Historically, these equations are solved using High-Performance Computing (HPC) methods like Finite Element Analysis (FEA). While accurate, these methods are often too slow for real-time optimization or rapid design iterations.

Deep learning surrogates offer a path toward near-instantaneous physical simulations. However, the data for these simulations is typically represented as meshes. These meshes vary in complexity:

  • Structured meshes resemble regular grids (like pixels in an image).
  • Graded meshes are non-uniform but maintain a logical progression, often increasing resolution in critical areas.
  • Unstructured meshes are irregular webs designed to conform to complex, arbitrary geometries.

This study investigates whether these meshes should be treated as images (using CV models) or as networks (using Graph models), evaluating the trade-offs in accuracy and computational cost.

Methodology

The research evaluates six models categorized into two distinct architectural paradigms:

1. Computer Vision (CV) Models

  • U-Net: A standard architecture originally designed for medical image segmentation.
  • DINOv2 & DeiT: Modern Vision Transformers (ViTs) utilized as encoders with a custom-built decoder.

To apply these models to non-structured meshes, the authors employed a "reshaping" strategy. Mesh data was mapped into 2D arrays, with padding applied where necessary. This approach essentially treats the logical neighborhood of mesh points as spatial neighbors in an image, allowing the models to leverage standard convolutional or attention mechanisms.

2. Graph-Based Models

  • Mesh Graph Net (MGN): A standard for mesh-based learning.
  • Mesh Graph Tree Network (MGTN): A tree-based variant of MGN.
  • Bi-Stride Multi-Scale GNN (BSMS): A specialized GNN designed to handle the varying scales inherent in complex mesh topography.

Experimental Setup

The models were benchmarked across three datasets representing diverse physical phenomena:

  1. Darcy Flow: Fluid flow through porous media on a structured (128x128) mesh.
  2. U-bend Flow: Navier-Stokes equations in a curved pipe using a graded mesh with higher resolution near the walls.
  3. Electric Motor: Maxwell equations for electromagnetic fields on a highly complex unstructured mesh.

Performance was measured using Root Mean Square Error (RMSE) for accuracy and training time per epoch for efficiency.

Key Insights and Results

The Dominance of U-Net on Structured and Graded Meshes

Contrary to the assumption that graded meshes require graph-based flexibility, the U-Net emerged as the superior model. It achieved the lowest error rates for both Darcy Flow (RMSE 6.61e-3) and U-bend Flow (RMSE 7.89e-3). This suggests that the "logical neighborhood" captured by reshaping the mesh into a 2D array is often more relevant to the underlying physics than the explicit physical distances used by GNNs.

The Efficiency Gap

The most striking finding was the disparity in computational cost. On the U-bend dataset, the U-Net required only 86 seconds per epoch, whereas the best-performing graph model (BSMS) required 1,883 seconds. This 20x speedup represents a significant advantage for industrial applications where rapid iteration and energy sustainability are critical.

Performance on Unstructured Data

In the case of highly irregular unstructured meshes (Electric Motor dataset), the graph-based BSMS model performed best, as expected (RMSE 8.17e-2). However, the CV-based U-Net remained surprisingly competitive (RMSE 9.92e-2), even with a relatively naive padding and reshaping strategy. This indicates that CV models are more robust to irregular data than previously thought.

Foundation Models in Physics

Interestingly, the Vision Transformers (DINOv2 and DeiT), despite being powerful foundation models, did not outperform the U-Net. This suggests that pre-training on natural images (like those in ImageNet) does not provide a direct advantage for understanding fluid dynamics or electromagnetics. Specialized decoders or physics-specific pre-training may be required to unlock the potential of ViTs in this domain.

Conclusion and Future Work

The study provides a clear hierarchy for model selection in PDE solving: CV models should be the default choice for structured and graded meshes due to their superior accuracy and massive efficiency gains. Graph models should be reserved for the most complex, unstructured geometries where spatial irregularity is extreme.

Future research will focus on improving the mapping of irregular meshes into 2D arrays to further close the gap between CV and Graph models. Additionally, the authors advocate for the development of "Physics Foundation Models"—architectures pre-trained specifically on large-scale PDE datasets rather than natural imagery—to provide a more robust starting point for surrogate modeling.

Summary updated

BibTeX
@inproceedings{decke2024from,
  author = {Jens Decke and Olaf Wünsch and Bernhard Sick and Christian Gruhl},
  title = {{From Structured to Unstructured: A Comparative Analysis of Computer Vision and Graph Models in Solving Mesh-Based PDEs}},
  booktitle = {ARCS},
  year = {2024},
  doi = {10.1007/978-3-031-66146-4\_6},
}
Figure