Plug-and-Play Benchmarking of Reinforcement Learning Algorithms for Large-Scale Flow Control
Jannis Becktepe, Aleksandra Franz, Nils Thuerey, Sebastian Peitz
TL;DR
FluidGym addresses fragmentation in reinforcement learning for active flow control by providing the first standalone, fully differentiable benchmark suite built in PyTorch on GPU-accelerated solvers. It unifies CFD simulation and RL through the FluidEnv interface, enabling SARL, MARL, and gradient-based control across diverse 2D/3D environments with standardized train/val/test protocols. The paper demonstrates baseline performance using PPO and SAC (and a differentiable MPC) across four environments (Cylinder, RBC, Airfoil, and Turbulent Channel) at multiple difficulty levels, highlighting SAC’s robustness and the potential for transfer learning across dimensionalities and domain sizes. By releasing all environments, data, and models, FluidGym aims to accelerate reproducibility, fair comparison, and progress toward scalable, learning-based flow control in real-world applications.
Abstract
Reinforcement learning (RL) has shown promising results in active flow control (AFC), yet progress in the field remains difficult to assess as existing studies rely on heterogeneous observation and actuation schemes, numerical setups, and evaluation protocols. Current AFC benchmarks attempt to address these issues but heavily rely on external computational fluid dynamics (CFD) solvers, are not fully differentiable, and provide limited 3D and multi-agent support. To overcome these limitations, we introduce FluidGym, the first standalone, fully differentiable benchmark suite for RL in AFC. Built entirely in PyTorch on top of the GPU-accelerated PICT solver, FluidGym runs in a single Python stack, requires no external CFD software, and provides standardized evaluation protocols. We present baseline results with PPO and SAC and release all environments, datasets, and trained models as public resources. FluidGym enables systematic comparison of control methods, establishes a scalable foundation for future research in learning-based flow control, and is available at https://github.com/safe-autonomous-systems/fluidgym.
