A generalized framework for integrating machine learning into computational fluid dynamics

IF 3.1 3区 计算机科学 Q2 COMPUTER SCIENCE, INTERDISCIPLINARY APPLICATIONS
{"title":"A generalized framework for integrating machine learning into computational fluid dynamics","authors":"","doi":"10.1016/j.jocs.2024.102404","DOIUrl":null,"url":null,"abstract":"<div><p>The amalgamation of machine learning algorithms (ML) with computational fluid dynamics (CFD) represents a promising frontier for the advancement of fluid dynamics research. However, the practical integration of CFD with ML algorithms frequently faces challenges related to data transfer and computational efficiency. While CFD programs are conventionally scripted in Fortran or C/C++, the prevalence of Python in the machine learning domain complicates their seamless integration. To tackle these obstacles, this paper proposes a comprehensive solution. Our devised framework primarily leverages Python modules CFFI and dynamic linking library technology to seamlessly integrate ML algorithms with CFD programs, facilitating efficient data interchange between them. Distinguished by its simplicity, efficiency, flexibility, and scalability, our framework is adaptable across various CFD programs, scalable to multi-node parallelism, and compatible with heterogeneous computing systems. In this paper, we showcase a spectrum of CFD+ML algorithms based on this framework, including stability analysis of ML Reynolds stress models, bidirectional coupling between ML turbulence models and CFD programs, and online dimension reduction optimization techniques tailored for resolving unstable steady flow solutions. In addition, our framework has been successfully tested on supercomputer clusters, demonstrating its compatibility with distributed computing architectures and its ability to leverage heterogeneous computing resources for efficient computational tasks.</p></div>","PeriodicalId":48907,"journal":{"name":"Journal of Computational Science","volume":null,"pages":null},"PeriodicalIF":3.1000,"publicationDate":"2024-08-02","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Journal of Computational Science","FirstCategoryId":"94","ListUrlMain":"https://www.sciencedirect.com/science/article/pii/S1877750324001972","RegionNum":3,"RegionCategory":"计算机科学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q2","JCRName":"COMPUTER SCIENCE, INTERDISCIPLINARY APPLICATIONS","Score":null,"Total":0}
引用次数: 0

Abstract

The amalgamation of machine learning algorithms (ML) with computational fluid dynamics (CFD) represents a promising frontier for the advancement of fluid dynamics research. However, the practical integration of CFD with ML algorithms frequently faces challenges related to data transfer and computational efficiency. While CFD programs are conventionally scripted in Fortran or C/C++, the prevalence of Python in the machine learning domain complicates their seamless integration. To tackle these obstacles, this paper proposes a comprehensive solution. Our devised framework primarily leverages Python modules CFFI and dynamic linking library technology to seamlessly integrate ML algorithms with CFD programs, facilitating efficient data interchange between them. Distinguished by its simplicity, efficiency, flexibility, and scalability, our framework is adaptable across various CFD programs, scalable to multi-node parallelism, and compatible with heterogeneous computing systems. In this paper, we showcase a spectrum of CFD+ML algorithms based on this framework, including stability analysis of ML Reynolds stress models, bidirectional coupling between ML turbulence models and CFD programs, and online dimension reduction optimization techniques tailored for resolving unstable steady flow solutions. In addition, our framework has been successfully tested on supercomputer clusters, demonstrating its compatibility with distributed computing architectures and its ability to leverage heterogeneous computing resources for efficient computational tasks.

将机器学习融入计算流体力学的通用框架
机器学习算法(ML)与计算流体动力学(CFD)的结合代表了流体动力学研究发展的一个前景广阔的前沿领域。然而,CFD 与 ML 算法的实际整合经常面临数据传输和计算效率方面的挑战。CFD 程序通常使用 Fortran 或 C/C++ 编写脚本,而 Python 在机器学习领域的盛行使其无缝集成变得更加复杂。为了解决这些障碍,本文提出了一个全面的解决方案。我们设计的框架主要利用 Python 模块 CFFI 和动态链接库技术,将 ML 算法与 CFD 程序无缝集成,促进它们之间的高效数据交换。我们的框架具有简单、高效、灵活和可扩展性等特点,可适用于各种 CFD 程序,可扩展到多节点并行,并与异构计算系统兼容。在本文中,我们展示了基于该框架的一系列 CFD+ML 算法,包括 ML 雷诺应力模型的稳定性分析、ML 湍流模型与 CFD 程序之间的双向耦合,以及为解决不稳定的稳定流解而量身定制的在线降维优化技术。此外,我们的框架还在超级计算机集群上进行了成功测试,证明了它与分布式计算架构的兼容性以及利用异构计算资源完成高效计算任务的能力。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
Journal of Computational Science
Journal of Computational Science COMPUTER SCIENCE, INTERDISCIPLINARY APPLICATIONS-COMPUTER SCIENCE, THEORY & METHODS
CiteScore
5.50
自引率
3.00%
发文量
227
审稿时长
41 days
期刊介绍: Computational Science is a rapidly growing multi- and interdisciplinary field that uses advanced computing and data analysis to understand and solve complex problems. It has reached a level of predictive capability that now firmly complements the traditional pillars of experimentation and theory. The recent advances in experimental techniques such as detectors, on-line sensor networks and high-resolution imaging techniques, have opened up new windows into physical and biological processes at many levels of detail. The resulting data explosion allows for detailed data driven modeling and simulation. This new discipline in science combines computational thinking, modern computational methods, devices and collateral technologies to address problems far beyond the scope of traditional numerical methods. Computational science typically unifies three distinct elements: • Modeling, Algorithms and Simulations (e.g. numerical and non-numerical, discrete and continuous); • Software developed to solve science (e.g., biological, physical, and social), engineering, medicine, and humanities problems; • Computer and information science that develops and optimizes the advanced system hardware, software, networking, and data management components (e.g. problem solving environments).
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术官方微信