An efficient intrusive deep reinforcement learning framework for OpenFOAM

IF 2.1 3区 工程技术 Q3 MECHANICS Meccanica Pub Date : 2024-06-06 DOI:10.1007/s11012-024-01830-1
Saeed Salehi
{"title":"An efficient intrusive deep reinforcement learning framework for OpenFOAM","authors":"Saeed Salehi","doi":"10.1007/s11012-024-01830-1","DOIUrl":null,"url":null,"abstract":"<div><p>Recent advancements in artificial intelligence and deep learning offer tremendous opportunities to tackle high-dimensional and challenging problems. Particularly, deep reinforcement learning (DRL) has been shown to be able to address optimal decision-making problems and control complex dynamical systems. DRL has received increased attention in the realm of computational fluid dynamics (CFD) due to its demonstrated ability to optimize complex flow control strategies. However, DRL algorithms often suffer from low sampling efficiency and require numerous interactions between the agent and the environment, necessitating frequent data exchanges. One significant bottleneck in coupled DRL–CFD algorithms is the extensive data communication between DRL and CFD codes. Non-intrusive algorithms where the DRL agent treats the CFD environment as a black box may come with the deficiency of increased computational cost due to overhead associated with the information exchange between the two DRL and CFD modules. In this article, a TensorFlow-based intrusive DRL–CFD framework is introduced where the agent model is integrated within the open-source CFD solver OpenFOAM. The integration eliminates the need for any external information exchange during DRL episodes. The framework is parallelized using the message passing interface to manage parallel environments for computationally intensive CFD cases through distributed computing. The performance and effectiveness of the framework are verified by controlling the vortex shedding behind two and three-dimensional cylinders, achieved as a result of minimizing drag and lift forces through an active flow control mechanism. The simulation results indicate that the trained controller can stabilize the flow and effectively mitigate the vortex shedding.</p></div>","PeriodicalId":695,"journal":{"name":"Meccanica","volume":"60 6","pages":"1673 - 1693"},"PeriodicalIF":2.1000,"publicationDate":"2024-06-06","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"https://link.springer.com/content/pdf/10.1007/s11012-024-01830-1.pdf","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Meccanica","FirstCategoryId":"5","ListUrlMain":"https://link.springer.com/article/10.1007/s11012-024-01830-1","RegionNum":3,"RegionCategory":"工程技术","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q3","JCRName":"MECHANICS","Score":null,"Total":0}
引用次数: 0

Abstract

Recent advancements in artificial intelligence and deep learning offer tremendous opportunities to tackle high-dimensional and challenging problems. Particularly, deep reinforcement learning (DRL) has been shown to be able to address optimal decision-making problems and control complex dynamical systems. DRL has received increased attention in the realm of computational fluid dynamics (CFD) due to its demonstrated ability to optimize complex flow control strategies. However, DRL algorithms often suffer from low sampling efficiency and require numerous interactions between the agent and the environment, necessitating frequent data exchanges. One significant bottleneck in coupled DRL–CFD algorithms is the extensive data communication between DRL and CFD codes. Non-intrusive algorithms where the DRL agent treats the CFD environment as a black box may come with the deficiency of increased computational cost due to overhead associated with the information exchange between the two DRL and CFD modules. In this article, a TensorFlow-based intrusive DRL–CFD framework is introduced where the agent model is integrated within the open-source CFD solver OpenFOAM. The integration eliminates the need for any external information exchange during DRL episodes. The framework is parallelized using the message passing interface to manage parallel environments for computationally intensive CFD cases through distributed computing. The performance and effectiveness of the framework are verified by controlling the vortex shedding behind two and three-dimensional cylinders, achieved as a result of minimizing drag and lift forces through an active flow control mechanism. The simulation results indicate that the trained controller can stabilize the flow and effectively mitigate the vortex shedding.

Abstract Image

查看原文
分享 分享
微信好友 朋友圈 QQ好友 复制链接
本刊更多论文
适用于 OpenFOAM 的高效侵入式深度强化学习框架
人工智能和深度学习的最新进展为解决高维和具有挑战性的问题提供了巨大的机会。特别是,深度强化学习(DRL)已被证明能够解决最优决策问题和控制复杂的动态系统。DRL在计算流体动力学(CFD)领域受到越来越多的关注,因为它具有优化复杂流动控制策略的能力。然而,DRL算法通常存在采样效率低的问题,并且需要agent与环境之间进行大量交互,需要频繁的数据交换。耦合DRL - CFD算法的一个重要瓶颈是DRL和CFD代码之间大量的数据通信。在非侵入式算法中,DRL代理将CFD环境视为一个黑匣子,由于DRL和CFD模块之间的信息交换带来的开销,这种算法可能会增加计算成本。在本文中,介绍了一个基于tensorflow的侵入式DRL-CFD框架,其中代理模型集成在开源CFD求解器OpenFOAM中。这种集成消除了在DRL事件期间进行任何外部信息交换的需要。该框架采用消息传递接口并行化,通过分布式计算管理计算密集型CFD案例的并行环境。该框架的性能和有效性通过控制两个和三维圆柱体后面的涡流脱落得到验证,这是通过主动流动控制机制最小化阻力和升力的结果。仿真结果表明,训练后的控制器能够稳定流动,有效地抑制涡流脱落。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 去求助
来源期刊
Meccanica
Meccanica 物理-力学
CiteScore
4.70
自引率
3.70%
发文量
151
审稿时长
7 months
期刊介绍: Meccanica focuses on the methodological framework shared by mechanical scientists when addressing theoretical or applied problems. Original papers address various aspects of mechanical and mathematical modeling, of solution, as well as of analysis of system behavior. The journal explores fundamental and applications issues in established areas of mechanics research as well as in emerging fields; contemporary research on general mechanics, solid and structural mechanics, fluid mechanics, and mechanics of machines; interdisciplinary fields between mechanics and other mathematical and engineering sciences; interaction of mechanics with dynamical systems, advanced materials, control and computation; electromechanics; biomechanics. Articles include full length papers; topical overviews; brief notes; discussions and comments on published papers; book reviews; and an international calendar of conferences. Meccanica, the official journal of the Italian Association of Theoretical and Applied Mechanics, was established in 1966.
期刊最新文献
An analytical approach to predict static and dynamic bi-stable behavior of variable stiffness fiber metal laminated plates Hydro-Mechanical analysis and modeling of a bent-axis unit Dynamic modeling and response analysis of the pneumatic flexible airbag buffer system considering compliant contact Mechanics-Guided Machine Learning for Predicting Penetration and Energy Dissipation in Terminal Ballistics Thermo-mechanical creep with a theta projection model under steep thermal gradients: a scaled pilot steel ladle validation
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
现在去查看 取消
×
提示
确定
0
微信
客服QQ
Book学术公众号 扫码关注我们
反馈
×
意见反馈
请填写您的意见或建议
请填写您的手机或邮箱
已复制链接
已复制链接
快去分享给好友吧!
我知道了
×
扫码分享
扫码分享
Book学术官方微信
Book学术官方微信
Book学术文献互助
Book学术文献互助群
群 号:604180095
Book学术
文献互助 智能选刊 最新文献 互助须知 联系我们:info@booksci.cn
Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。
Copyright © 2023 Book学术 All rights reserved.
ghs 京公网安备 11010802042870号 京ICP备2023020795号-1