DRLinFluids -- An open-source python platform of coupling Deep Reinforcement Learning and OpenFOAM

Qiulei Wang, Lei Yan, Gang Hu, Chao Li, Yiqing Xiao +3 more
5/25/2022
physics.flu-dyn
rl

Official code: venturi123/DRLinFluids (194 stars, Python, last commit 2025-03-08).

Abstract

We propose an open-source python platform for applications of Deep Reinforcement Learning (DRL) in fluid mechanics. DRL has been widely used in optimizing decision-making in nonlinear and high-dimensional problems.

Show full abstract

Here, an agent maximizes a cumulative reward with learning a feedback policy by acting in an environment. In control theory terms, the cumulative reward would correspond to the cost function, the agent to the actuator, the environment to the measured signals and the learned policy to the feedback law. Thus, DRL assumes an interactive environment or, equivalently, control plant. The setup of a numerical simulation plant with DRL is challenging and time-consuming. In this work, a novel python platform, named DRLinFluids is developed for this purpose, with DRL for flow control and optimization problems in fluid mechanics. The simulations employ OpenFOAM as popular, flexible Navier-Stokes solver in industry and academia, and Tensorforce or Tianshou as widely used versatile DRL packages. The reliability and efficiency of DRLinFluids are demonstrated for two wake stabilization benchmark problems. DRLinFluids significantly reduces the application effort of DRL in fluid mechanics and is expected to greatly accelerates academic and industrial applications.

View on arXivView PDF

Code Implementations(1)

An open-source Python platform of coupling deep reinforcement learning and OpenFOAM

19441Python, ShellMay 19, 20221 years agoNOASSERTION

Similar Papers

Cite this paper

@article{wang2022drlinfluids,
  title  = {DRLinFluids -- An open-source python platform of coupling Deep Reinforcement Learning and OpenFOAM},
  author = {Qiulei Wang and Lei Yan and Gang Hu and Chao Li and Yiqing Xiao and Hao Xiong and Jean Rabault and Bernd R. Noack},
  year   = {2022},
  eprint = {2205.12699},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2205.12699}
}

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

Discussion