← Skill profile
Private projectOpen source · AGPL-3.02026

CrashDefNet

Graph neural network surrogates for crash simulation. CrashDefNet learns from finite element runs and predicts, step by step on the simulation mesh, how a structure deforms. A complete, lean PyTorch research framework, from raw simulation data to evaluation against published results.

Schematic of an autoregressive rollout: a bumper beam hits a rigid pole, as in the crash case CrashDefNet is evaluated on. At every step the model predicts the next state from the current one, and the contact edges (orange) are rebuilt from the predicted geometry. Colour indicates strain. An illustration, not a model result.
2architectures in one pipeline: MeshGraphNets and MGN-T
2datasets: a public benchmark and a first real crash case
3raw formats: TFRecord, d3plot (LS-DYNA, OpenRadioss), VTK
~5,600lines of core Python, readable end to end

What it does

CrashDefNet (Crash Deformation Network) is a deep learning research tool for predicting structural deformation: how each node of the simulation mesh moves and which stress it carries. It treats the finite element mesh as a graph and works autoregressively: the model predicts one time step from the current state, and each prediction becomes the input of the next, through the whole load case.

Learned models like this aim to give engineers deformation results much faster than a full crash simulation. CrashDefNet provides the complete workflow around such models and keeps it lean, so that new architectures from research can be integrated quickly and compared under identical conditions.

Why step by step

A crash is a process in time. Plastic deformation is permanent, folds form one after another, and contact opens and closes as parts meet and separate. An explicit finite element solver follows this in small time steps, and CrashDefNet's prediction has the same structure.

Because every step starts from a known geometry, contact is found anew at every step: an edge appears where two bodies come close or a structure folds onto itself, and disappears when they separate. The impactor acts on the structure only through these contact edges. Training, model selection and metrics are all built around one task: carrying a whole load case on the model's own predictions.

How it works

  1. 1Raw dataFE runs as TFRecord, d3plot or VTK
  2. 2Datasetmesh, states and statistics in one compact file
  3. 3Modelpredicts the next time step on the graph
  4. 4Rolloutown predictions fed back, contact rebuilt each step
  5. 5Evaluationmetrics as in the papers, reports, ParaView files

Files on disk connect the stages, so each one can be run and checked on its own. A new architecture replaces step 3 with one file and a few lines of config. Data, training, rollout and metrics stay the same, which keeps comparisons fair.

Two architectures, one pipeline

Both models see the same graph (mesh nodes, mesh edges and contact edges) and predict the velocity and stress of every node for the next step.

MeshGraphNetsPfaff et al., ICLR 2021

Encoder15 × message passingDecoder

The original architecture for mesh-based simulation. Information travels one edge per message passing step, so large meshes need a deep stack.

3.85 M parameters7 h 34 min training~8 GB GPU memory

MeshGraphNet-TransformerIparraguirre et al., 2026

Enc.2 × MP2 × trans­former2 × MPDec.

Replaces most message passing with physics attention over 16 tokens, which exchanges information across the whole structure at linear cost. Implemented from the paper, with every assumption documented.

0.51 M parameters2 h 54 min training~2 GB GPU memory

Training on the deforming plate benchmark, 60 epochs on one NVIDIA RTX A4000, same data, seed and recipe for both.

Results so far

Deliberately small runs on one GPU, documented with their setup and limits. They show that the chain works end to end and how the architectures behave; a scientific evaluation is planned and will be published separately.

Deforming plateDeepMind's public benchmark: an actuator presses into plates of varying geometry, a simplified crash case with contact and large deformation. 20 test geometries not seen in training.

ModelParamsPosition error
all · median [mm]
Stress error
all · median [kPa]
MGN-T0.51 M12.2 · 5.6217.8 · 15.3
MeshGraphNets3.85 M26.4 · 4.6416.1 · 11.0
  • No overall winner. MGN-T keeps the position error lower on the geometries that deform most; MeshGraphNets is more accurate on the others and in stress.
  • Much cheaper. MGN-T needs 7.5× fewer parameters, 2.6× less training time and about a quarter of the GPU memory.
  • Not a reproduction of the papers. 100 training trajectories and coarser time steps, so the values are not directly comparable with the published ones.

Bumper beam against a poleA first real crash case: OpenRadioss runs of a bumper beam with two crash boxes hitting a rigid pole at 5 m/s, with varying beam thickness and pole position. 13,832 nodes per run, 7 test runs not seen in training.

MGN-T, whole impactAll runsMedian runBest – worst
Position error [mm]6.196.253.87 – 7.29
Position error / displacement [%]10.09.786.75 – 12.8
Relative stress error [%]8.558.347.74 – 9.51
  • Carries the whole impact. From 10 to 100 ms on its own predictions, with contact to the pole and self-contact rebuilt at every step.
  • Stable over all test runs. The position error stays at about a tenth of the displacement, the stress error at 8 to 10 %, with little spread.
  • Early stage. Trained in 3 h 18 min on one RTX A4000. The processing of crash solver data is still at an early stage of development.

Try it

What's included

  • Complete workflow from raw simulation data through training and rollout to evaluation against published results.
  • Physics in the graph. Contact and self-contact are linked only where bodies actually touch, not between neighbours inside the same material.
  • Crash solver data (early stage): LS-DYNA and OpenRadioss runs with their decks, and VTK time series. Parts with contact rules, run parameters, material properties and free rigid bodies go into the graph where they act.
  • Built for large data. Memory stays independent of the dataset size, up to a few hundred GB; the contact search handles 300,000-node meshes in about two seconds on a desktop CPU.
  • Fair comparison under a fixed protocol: same data, seed, budget and recipe, only the model changes.
  • Lean, open and local. Plain PyTorch and PyTorch Geometric, on CPU or GPU, with Docker, on Linux and Windows.

Background

CrashDefNet builds on my experience with deep learning for crash simulation. It began with a practical question: what does it take to change and try out such a pipeline yourself? Research on learned crash simulation is still young, so what counts is a framework in which changes can be made quickly and flexibly.

I built it from scratch as a private project, collecting step by step the parts such a pipeline needs and examining them for method and feasibility. In mid-2026 I decided to finalize it and share it with the community. MGN-T, published in 2026, was the first architecture taken from the paper to a trained and evaluated model within the pipeline. Since November 2026 the whole chain from raw data to evaluated predictions is in place, released under the AGPL-3.0 and archived on Zenodo.

Status and limits

  • Research software. Made to be tested on industrial data by users with expertise in simulation and machine learning. Every application needs its own verification; predictions complement crash simulation and physical tests rather than replace them.
  • Verification. End to end on the deforming plate benchmark; the chain from OpenRadioss runs on the bumper beam. LS-DYNA runs, VTK time series and the general data structures are tested on synthetic and converted data so far.

Next steps

  • Integrate and test further recent architectures as they are published.
  • More complex crash scenarios, with all architectures side by side.
  • Training on the full deforming plate training split, as in the papers.
  • Verification on further real crash datasets, and scaling to full-vehicle meshes as the data require it.
  • A finer contact search and a more capable app.

Citation

Stocker, F. (2026). CrashDefNet: Graph Neural Network Surrogates for Crash Simulation. https://doi.org/10.5281/zenodo.23575635

References

  • T. Pfaff, M. Fortunato, A. Sanchez-Gonzalez, P. W. Battaglia. Learning Mesh-Based Simulation with Graph Networks. ICLR 2021. arXiv:2010.03409
  • M. M. Iparraguirre, I. Alfaro, D. González, E. Cueto. MeshGraphNet-Transformer: Scalable Mesh-Based Learned Simulation for Solid Mechanics. 2026. arXiv:2601.23177
  • H. Wu, H. Luo, H. Wang, J. Wang, M. Long. Transolver: A Fast Transformer Solver for PDEs on General Geometries. ICML 2024. arXiv:2402.02366
More open-source projects arTIco → CBR-augmented R&D-Agent →