A fully GPU-based workflow for building physics emulators of hypersonic flows

Fabian Paischer, Dylan Rubini, Deniz A. Bezgin, Aaron B. Buhendwa, David Hauser, Florian Sestak, Johannes Brandstetter, Sebastian Kaltenbach, Nikolaus A. AdamsarXiv 2026

TL;DR

This paper introduces a fully GPU-accelerated, end-to-end differentiable workflow for building neural physics emulators of complex hypersonic flows. By leveraging a differentiable CFD solver (JAX-Fluids), the authors combine rapid data generation with a novel "target-free" physics-informed refinement stage that enforces conservation laws without requiring expensive ground-truth simulations.

What Problem Does This Paper Address?

Designing vehicles for hypersonic flight (speeds exceeding Mach 5) requires an incredibly precise understanding of flowfields, particularly where extreme shockwaves and discontinuities occur. Traditional Computational Fluid Dynamics (CFD) simulations are highly accurate but computationally grueling, often taking hours or days per design iteration.

While machine learning surrogates (physics emulators) promise millisecond-level predictions, supersonic and hypersonic regimes remain a massive stumbling block. Standard neural networks struggle to capture steep gradients and frequently produce predictions that violate fundamental physical principles, such as the conservation of mass, momentum, and energy. This paper tackles the challenge of building neural emulators that are both lightning-fast and physically consistent, even when extrapolating beyond their training data.

Methods

The authors propose a three-stage, entirely GPU-resident pipeline:

  1. High-Fidelity Data Generation: Utilizing JAX-Fluids, a fully differentiable finite-volume solver, they automatically generate structured Cartesian multi-block meshes with a cut-cell immersed-boundary method to handle complex scramjet geometries.
  2. Data-Driven Pre-Training: They evaluate and scale two distinct neural architectures: AB-UPT (an irregular point-cloud transformer) and a Vision Transformer (ViT) adapted for block-structured grids using absolute and relative positional encodings. They also test two paradigms: deterministic regression and probabilistic Flow Matching.
  3. Physics-Informed Fine-Tuning (Refinement): After pre-training, the emulators undergo a "target-free" refinement stage. Instead of matching ground-truth data, the model minimizes the exact partial differential equation (PDE) residuals computed by backpropagating through the differentiable JAX-Fluids solver.
Figure 1: A fully GPU-accelerated and end-to-end differentiable workflow for constructing physics emulators of complex flow phenomena. The workflow consists of three stages. (a) High-Fidelity Data Generation: Starting from an STL representation of the geometry, a multi-block mesh is automatically generated. JAX-Fluids then performs high-fidelity CFD simulations until a steady-state solution is obtained, yielding the training dataset. (b) Data-Driven Pre-Training: Physics emulators are pre-trained in a supervised manner using the high-fidelity dataset generated in stage (a). (c) Physics-Informed Fine-Tuning: After pre-training, the emulators are refined in a target-free manner by minimizing the residuals of the governing equations. The residuals are computed by evaluating the differentiable JAX-Fluids solver on the model predictions, enabling end-to-end gradient-based optimization through the model and the CFD solver itself.

Datasets

The workflow was evaluated using two distinct datasets of scramjet configurations under hypersonic conditions:

  • D1 (High-Fidelity Dataset): Consists of 7,081 samples containing geometry parameters, mesh data, and full steady-state simulation field data. This dataset is used for the initial supervised pre-training phase.
  • D2 (Target-Free Dataset): Consists of 7,845 samples containing only geometry parameters and computational meshes—no ground-truth flow fields. This dataset is uniquely leveraged during the physics-aware refinement stage to cheaply expand the model's exposure to new design spaces.
Table 2: Overview of the two datasets used for model training and evaluation. D1 prioritizes numerical accuracy through minimized residuals, while D2 comprises only meshes for new scramject parameterizations.

Key Insights and Ideas

  • The Inductive Bias Trade-Off: On small datasets (e.g., 50 samples), the regular-grid structure of the ViT provides a powerful spatial inductive bias, easily outperforming the point-cloud-based AB-UPT. However, when data is abundant, the more expressive AB-UPT recovers and achieves the highest overall accuracy.
  • Generative Robustness: While the probabilistic Flow Matching model trails deterministic models in raw point-wise accuracy, it exhibits a significantly smaller performance gap between in-distribution and out-of-distribution (OOD) data, alongside providing native uncertainty quantification.
  • Target-Free Magic: The residual-based refinement stage can be executed entirely on meshes without solved flow fields (Dataset D2). It acts as a regularizer that corrects local physical inconsistencies (like conservation law violations near shocks) without degrading global field accuracy.
Table 1: Qualitative comparison of neural physics emulator instantiations. ✓= fully satisfied, ✗= not satisfied. Different methods and training paradigms exhibit different advantages.

Key Results

  • Accuracy: The pre-trained AB-UPT model achieved low relative $L_2$ errors (~2.14% for pressure, ~1.76% for density) on test sets, tightly clustering around the ground-truth identity line even for complex key performance indicators like total-pressure ratio and peak surface temperature.
  • Computational Efficiency: The ViT architecture proved incredibly lightweight, requiring only 10.07 ms for inference and 757.9 GFLOPs, compared to AB-UPT's 2089.87 ms and 506,834.2 GFLOPs.
  • Physical Consistency: Target-free refinement dramatically reduced conservation residuals across the board. On the OOD test set, the mean mass residual dropped from 0.3149 to 0.1041, and the energy residual dropped from 0.3535 to 0.1090, showcasing substantially improved thermodynamic consistency.

Limitations and Future Work

The primary limitation acknowledged by the authors is that all scramjet configurations in this study are strictly two-dimensional. While 2D models successfully capture sharp discontinuities and multi-scale flow structures, they omit crucial 3D physical phenomena such as turbulence, shock-boundary-layer interactions, and finite-rate chemistry.

Additionally, the workflow relies heavily on the availability of a fully differentiable solver (JAX-Fluids). Because the broader CFD ecosystem is still dominated by legacy, non-differentiable CPU codes, extending this methodology to traditional engineering pipelines will require developing compatible differentiable approximations of legacy solvers.

Summary updated

BibTeX
@misc{paischer2026fully,
  author = {Fabian Paischer and Dylan Rubini and Deniz A. Bezgin and Aaron B. Buhendwa and David Hauser and Florian Sestak and Johannes Brandstetter and Sebastian Kaltenbach and Nikolaus A. Adams},
  title = {{A fully GPU-based workflow for building physics emulators of hypersonic flows}},
  year = {2026},
  eprint = {2606.13742},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2606.13742},
}
Figure