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. Here, an agent maximizes a cumulative reward by 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, a control plant. The setup of a numerical simulation plant with DRL is challenging and time-consuming. In this work, a novel Python platform, namely DRLinFluids, is developed for this purpose, with DRL for flow control and optimization problems in fluid mechanics. The simulations employ OpenFOAM as a 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 it is expected to greatly accelerate academic and industrial applications.
Skip Nav Destination
Article navigation
August 2022
Tutorial|
August 18 2022
DRLinFluids: An open-source Python platform of coupling deep reinforcement learning and OpenFOAM
Qiulei Wang (王秋垒)
;
Qiulei Wang (王秋垒)
(Conceptualization, Data curation, Formal analysis, Methodology, Visualization, Writing – original draft)
1
School of Civil and Environmental Engineering, Harbin Institute of Technology
, Shenzhen 518055, China
Search for other works by this author on:
Lei Yan (严雷)
;
Lei Yan (严雷)
(Data curation, Formal analysis, Investigation, Validation, Visualization, Writing – original draft)
1
School of Civil and Environmental Engineering, Harbin Institute of Technology
, Shenzhen 518055, China
Search for other works by this author on:
Gang Hu (胡钢)
;
Gang Hu (胡钢)
a)
(Conceptualization, Funding acquisition, Project administration, Resources, Supervision, Writing – review & editing)
1
School of Civil and Environmental Engineering, Harbin Institute of Technology
, Shenzhen 518055, China
2
Shenzhen Key Laboratory of Intelligent Structure System in Civil Engineering, Harbin Institute of Technology
, Shenzhen 518055, China
3
Guangdong-Hong Kong-Macao Joint Laboratory for Data-Driven Fluid Mechanics and Engineering Applications, Harbin Institute of Technology
, Shenzhen 518055, China
a)Author to whom correspondence should be addressed: hugang@hit.edu.cn
Search for other works by this author on:
Chao Li (李朝);
Chao Li (李朝)
(Funding acquisition, Project administration, Supervision)
1
School of Civil and Environmental Engineering, Harbin Institute of Technology
, Shenzhen 518055, China
Search for other works by this author on:
Yiqing Xiao (肖仪清);
Yiqing Xiao (肖仪清)
(Funding acquisition, Project administration, Supervision)
1
School of Civil and Environmental Engineering, Harbin Institute of Technology
, Shenzhen 518055, China
Search for other works by this author on:
Hao Xiong (熊昊);
Hao Xiong (熊昊)
(Methodology, Writing – review & editing)
4
School of Mechanical Engineering and Automation, Harbin Institute of Technology
, Shenzhen 518055, China
Search for other works by this author on:
Jean Rabault;
Jean Rabault
(Methodology, Validation, Visualization, Writing – review & editing)
5
Information Technology Department, Norwegian Meteorological Institute
, Oslo, Norway
Search for other works by this author on:
Bernd R. Noack
Bernd R. Noack
(Methodology, Resources, Supervision, Writing – review & editing)
4
School of Mechanical Engineering and Automation, Harbin Institute of Technology
, Shenzhen 518055, China
Search for other works by this author on:
a)Author to whom correspondence should be addressed: hugang@hit.edu.cn
Physics of Fluids 34, 081801 (2022)
Article history
Received:
June 14 2022
Accepted:
July 26 2022
Citation
Qiulei Wang, Lei Yan, Gang Hu, Chao Li, Yiqing Xiao, Hao Xiong, Jean Rabault, Bernd R. Noack; DRLinFluids: An open-source Python platform of coupling deep reinforcement learning and OpenFOAM. Physics of Fluids 1 August 2022; 34 (8): 081801. https://doi.org/10.1063/5.0103113
Download citation file:
Sign in
Don't already have an account? Register
Sign In
You could not be signed in. Please check your credentials and make sure you have an active account and try again.
Pay-Per-View Access
$40.00
Citing articles via
On Oreology, the fracture and flow of “milk's favorite cookie®”
Crystal E. Owens, Max R. Fan (范瑞), et al.
Fluid–structure interaction on vibrating square prisms considering interference effects
Zengshun Chen (陈增顺), 陈增顺, et al.
Physics-informed neural networks for solving Reynolds-averaged Navier–Stokes equations
Hamidreza Eivazi, Mojtaba Tahani, et al.