Deep Learning-based Algebraic Reynolds Stress Closures for RANS Simulations of Turbulent Flows

Daniel Dehtyriov, Jonathan F. MacArt, Justin SirignanoNeurIPS 2026

TL;DR

Simulating fluid turbulence exactly is impossibly expensive for everyday engineering, while fast approximations struggle when flows get complex and swirling. This paper introduces DARSM, a method that embeds a tiny, constrained neural network deep inside physics-derived turbulence equations and trains it directly through a stiff fluid solver. Trained on just one or two examples, it generalizes across unseen shapes, speeds, and completely different physical flow regimes—without blowing up your computer's memory.

What Problem Does This Paper Address?

If you want to simulate air over a wing or water through a pipe, the Navier-Stokes equations have all the answers. Unfortunately, solving them down to every microscopic eddy—Direct Numerical Simulation (DNS)—is prohibitively expensive. Instead, engineers time-average the equations to get the RANS (Reynolds-Averaged Navier-Stokes) equations. RANS is over ten orders of magnitude cheaper, with one catch: averaging creates an unknown term called the Reynolds stress tensor, which captures how turbulent fluctuations push the mean flow around. Estimating this term is the infamous turbulence closure problem.

Standard closures pretend turbulence acts like a simple, uniform scalar viscosity—an assumption that fails miserably when flows separate from walls or swirl into corners. Recently, researchers turned to machine learning (ML) to learn better closures from scarce DNS data, but hit two walls:

  1. Pure ML surrogates (likePINNs or DeepONets) bypass the PDE solver altogether, forfeiting the mathematical guardrails of physics and struggling to generalize from limited data.
  2. Offline-trained closures fit a network to pristine DNS data, then plug it into a RANS solver. Because the solver's approximate state looks slightly different from exact DNS data, distribution shift kicks in: small errors snowball, degrading accuracy or crashing the simulation entirely.

To fix distribution shift, you must train the neural network end-to-end inside the PDE solver. However, differentiating through thousands of steps of a stiff, coupled fluid solver either exhausts memory or mathematically diverges.

Methods

The authors pair a physics-constrained model with a custom differentiation engine:

  • Deep Algebraic Reynolds Stress Model (DARSM): Rather than asking a neural network to predict turbulent stresses from scratch, the authors start with a classical Explicit Algebraic Reynolds Stress Model (EARSM)—a nonlinear equation derived from physics that naturally captures directional (anisotropic) stress. Normally, EARSM relies on seven fixed, empirical constants. DARSM uses a gated neural network to dynamically adjust those seven parameters across space based on local, frame-invariant flow features. Physics handles the heavy tensor algebra; ML just fine-tunes the dials.
  • Hybrid Discrete Adjoint: To train DARSM in-the-loop without running out of memory, the authors derive a steady-state discrete adjoint method tailored to semi-implicit PDE solvers. Standard solvers break each step into fast, structured implicit linear solves (like tridiagonal sweeps) and explicit assemblies (where the neural network lives). In the backward pass, instead of unrolling loops with automatic differentiation (AD), the hybrid method reuses the forward fast solvers in transpose for the implicit parts, and uses standard reverse-mode AD only on the explicit assembly and neural network. This yields exact gradients at constant $\mathcal{O}(N)$ memory, independent of how many thousands of iterations the solver takes.
Figure 1: Hybrid discrete adjoint. Top: forward solve, matrix-free GMRES for λ, gradient extraction. Bottom: one application of the transposed Jacobian is one pass through the M cached sub-steps in reverse; each reuses the forward implicit solver in transpose (1, 2) and one reverse-mode AD pass for the explicit assembly and network (3). The expanded version is Figure 7.

Datasets

No new datasets are introduced; instead, DARSM is trained and evaluated on established high-fidelity DNS benchmarks chosen for distinct turbulence physics:

  • Square-duct flow (from Pirozzoli et al., 2018, and Vinuesa et al., 2018): Features subtle, corner-driven secondary vortices across six bulk Reynolds numbers ($Re_b$ from $4,410$ to $40,000$) and varying duct aspect ratios ($AR \in \{1, 3, 5, 7\}$).
  • Periodic hills (from Breuer et al., 2009, and Xiao et al., 2020): Features massive flow separation and reattachment across five hill steepness geometries ($\alpha \in \{0.5, 0.75, 1.0, 1.25, 1.5\}$) at $Re_b = 5,600$.

Key Insights and Ideas

  • Cross-regime generalization from tiny data: Trained only on attached flow inside a square duct (where corner-driven secondary motion dominates), DARSM transfers zero-shot (without retraining) to separated flow over periodic hills—matching a model trained directly on the hills! Because the network tweaks underlying physical parameters via universal flow invariants rather than memorizing flow shapes, what it learns in a corner applies to a separated shear layer.
  • Neither physics structure nor solver-in-the-loop suffices alone: Training the exact same DARSM architecture offline causes the forward solver to diverge at deployment. Conversely, training an unconstrained neural body-force in-the-loop works in-distribution, but degrades by an order of magnitude when transferred from ducts to hills. You need both ingredients.
  • Why off-the-shelf implicit differentiation stalls: Standard AD-based implicit differentiation differentiates through the solver's approximate inner iterations, creating an ill-conditioned operator that causes linear solvers (GMRES) to stall on $64^2$ grids and above. Exploiting the exact transpose of the structured implicit sub-steps avoids this trap completely.

Key Results

  • Accuracy & Generalization: Across unseen Reynolds numbers, duct aspect ratios, and hill shapes, DARSM cuts out-of-sample velocity error by $2\text{--}4\times$ on average compared to the baseline EARSM, with peak reductions of $12\times$ (on the $\alpha=1.25$ hill). On the zero-shot duct-to-hills transfer, it reduces mean velocity error by $4.5\times$.
  • Outperforming ML Baselines: Benchmarked against six established methods—offline NN-EARSM, TBNN, FIML, DeepONet, data-augmented PINNs, and an adjoint-trained source-term NN—DARSM is the only method that beats the classical baseline out-of-sample on both flow types.
Figure 2: Streamwise velocity W/Ub (filled contours) and in-plane secondary flow (white streamlines) at the test case Reb=11386. DARSM recovers the symmetric eight-vortex secondary-flow topology of the DNS, whereas TBNN, PINN and DeepONet produce distorted streamlines or weaker secondary motion. The full comparison across all methods is shown in Appendix G.
  • Computational Scaling: On $64^2$ and $128^2$ grids (with a 128 GB RAM budget), unrolled AD crashes from memory limits and diverges, while autograd-based implicit differentiation stalls. The hybrid adjoint converges cleanly and runs $2\text{--}5\times$ faster on smaller grids where baselines manage to finish. And once trained, DARSM runs at the cost of a normal RANS simulation.

Limitations and Future Work

  • Steady-state & 2D scope: The constant-memory adjoint assumes the flow converges to a steady state (ruling out genuinely unsteady vortex shedding, which needs unsteady scale-resolving methods). Furthermore, while the math is dimension-agnostic, all experiments here are on 2D grids; testing on genuinely 3D flows (like 3D wingtip swirl) is left for future work.
  • Inherited physics limits: Because DARSM builds upon the weak-equilibrium assumption of EARSM, it inherits its blind spots—such as flows with extreme streamline curvature or rapid acceleration. Noticeably, on the steepest periodic hill ($\alpha = 0.5$, furthest from training), DARSM's error was $1.8\times$ higher than the baseline.
  • Future Directions: Extending the pipeline to full 3D engineering geometries, external aerodynamics, and compressible flows.

Summary updated

BibTeX
@inproceedings{dehtyriov2026deep,
  author = {Daniel Dehtyriov and Jonathan F. MacArt and Justin Sirignano},
  title = {{Deep Learning-based Algebraic Reynolds Stress Closures for RANS Simulations of Turbulent Flows}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=aDNQ6nqqKm},
}
Figure