HydroGym: A Reinforcement Learning Platform for Fluid Dynamics

Christian Lagemann, Sajeda Mokbel, Miro Gondrum, Mario Rüttgers, Jared Callaham +10 more
12/19/2025
physics.flu-dyncs.AIcs.LG

No confident code implementation found for this paper. 1 possible match can be shown below.

Abstract

Modeling and controlling fluid flows is critical for several fields of science and engineering, including transportation, energy, and medicine. Effective flow control can lead to, e.g., lift increase, drag reduction, mixing enhancement, and noise reduction. However, controlling a fluid faces several significant challenges, including high-dimensional, nonlinear, and multiscale interactions in space and time. Reinforcement learning (RL) has recently shown great success in complex domains, such as robotics and protein folding, but its application to flow control is hindered by a lack of standardized benchmark platforms and the computational demands of fluid simulations. To address these challenges, we introduce HydroGym, a solver-independent RL platform for flow control research. HydroGym integrates sophisticated flow control benchmarks, scalable runtime infrastructure, and state-of-the-art RL algorithms. Our platform includes 42 validated environments spanning from canonical laminar flows to complex three-dimensional turbulent scenarios, validated over a wide range of Reynolds numbers. We provide non-differentiable solvers for traditional RL and differentiable solvers that dramatically improve sample efficiency through gradient-enhanced optimization. Comprehensive evaluation reveals that RL agents consistently discover robust control principles across configurations, such as boundary layer manipulation, acoustic feedback disruption, and wake reorganization. Transfer learning studies demonstrate that controllers learned at one Reynolds number or geometry adapt efficiently to new conditions, requiring approximately 50% fewer training episodes. The HydroGym platform is highly extensible and scalable, providing a framework for researchers in fluid dynamics, machine learning, and control to add environments, surrogate models, and control algorithms to advance science and technology.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 1 weaker match is hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{lagemann2025hydrogym,
  title  = {HydroGym: A Reinforcement Learning Platform for Fluid Dynamics},
  author = {Christian Lagemann and Sajeda Mokbel and Miro Gondrum and Mario Rüttgers and Jared Callaham and Ludger Paehler and Samuel Ahnert and Nicholas Zolman and Kai Lagemann and Nikolaus Adams and Matthias Meinke and Wolfgang Schröder and Jean-Christophe Loiseau and Esther Lagemann and Steven L. Brunton},
  year   = {2025},
  eprint = {2512.17534},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2512.17534v1}
}

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/2512.17534.svg)](https://codeofpaper.com/paper/2512.17534)

Discussion