Runze Mao, Min Zhang, Yingrui Wang, Han Li, Jiayang Xu, Xinyu Dong, Yan Zhang, Zhi X. Chen
{"title":"An integrated framework for accelerating reactive flow simulation using GPU and machine learning models","authors":"Runze Mao, Min Zhang, Yingrui Wang, Han Li, Jiayang Xu, Xinyu Dong, Yan Zhang, Zhi X. Chen","doi":"10.1016/j.proci.2024.105512","DOIUrl":null,"url":null,"abstract":"Recent progress in machine learning (ML) and high-performance computing (HPC) have brought potentially game-changing opportunities in accelerating reactive flow simulations. In this study, we introduce an open-source computational fluid dynamics (CFD) framework that integrates the strengths of ML and graphics processing unit (GPU) to demonstrate their combined capability. Within this framework, all computational operations are solely executed on GPU, including ML-accelerated chemistry integration, fully-implicit solving of fluid transport PDEs, and computation of thermal and transport properties, thereby eliminating the CPU–GPU memory copy overhead. Optimisations both within the kernel functions and during the kernel launch process are conducted to enhance computational performance. Strategies such as static data reorganisation and dynamic data allocation are adopted to reduce the GPU memory footprint. The computational performance is evaluated in two turbulent flame benchmarks using quasi-DNS and LES modelling, respectively. Remarkably, while maintaining a similar level of accuracy to the conventional CPU/implicit ODE-based solver, the GPU/ML-accelerated approach shows an overall speedup of over two orders of magnitude for both cases. This result highlights that high-fidelity turbulent combustion simulation with finite-rate chemistry that requires normally hundreds of CPUs can now be performed on portable devices such as laptops with a medium-end GPU.","PeriodicalId":408,"journal":{"name":"Proceedings of the Combustion Institute","volume":"31 1","pages":""},"PeriodicalIF":5.3000,"publicationDate":"2024-07-31","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Proceedings of the Combustion Institute","FirstCategoryId":"5","ListUrlMain":"https://doi.org/10.1016/j.proci.2024.105512","RegionNum":2,"RegionCategory":"工程技术","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q2","JCRName":"ENERGY & FUELS","Score":null,"Total":0}
引用次数: 0
Abstract
Recent progress in machine learning (ML) and high-performance computing (HPC) have brought potentially game-changing opportunities in accelerating reactive flow simulations. In this study, we introduce an open-source computational fluid dynamics (CFD) framework that integrates the strengths of ML and graphics processing unit (GPU) to demonstrate their combined capability. Within this framework, all computational operations are solely executed on GPU, including ML-accelerated chemistry integration, fully-implicit solving of fluid transport PDEs, and computation of thermal and transport properties, thereby eliminating the CPU–GPU memory copy overhead. Optimisations both within the kernel functions and during the kernel launch process are conducted to enhance computational performance. Strategies such as static data reorganisation and dynamic data allocation are adopted to reduce the GPU memory footprint. The computational performance is evaluated in two turbulent flame benchmarks using quasi-DNS and LES modelling, respectively. Remarkably, while maintaining a similar level of accuracy to the conventional CPU/implicit ODE-based solver, the GPU/ML-accelerated approach shows an overall speedup of over two orders of magnitude for both cases. This result highlights that high-fidelity turbulent combustion simulation with finite-rate chemistry that requires normally hundreds of CPUs can now be performed on portable devices such as laptops with a medium-end GPU.
机器学习(ML)和高性能计算(HPC)的最新进展为加速反应流模拟带来了可能改变游戏规则的机会。在本研究中,我们介绍了一个开源计算流体动力学(CFD)框架,该框架整合了 ML 和图形处理器(GPU)的优势,展示了它们的综合能力。在这一框架内,所有计算操作都完全在 GPU 上执行,包括 ML 加速的化学集成、流体传输 PDE 的全隐式求解以及热和传输属性的计算,从而消除了 CPU-GPU 内存拷贝的开销。在内核函数内部和内核启动过程中都进行了优化,以提高计算性能。采用静态数据重组和动态数据分配等策略来减少 GPU 内存占用。在两个湍流火焰基准中分别使用准 DNS 和 LES 模型对计算性能进行了评估。值得注意的是,在保持与传统的基于 CPU/implicit ODE 的求解器相似的精度水平的同时,GPU/ML 加速方法在两种情况下都显示出超过两个数量级的整体速度提升。这一结果表明,通常需要数百个 CPU 才能完成的高保真湍流燃烧有限速率化学模拟,现在只需一台中端 GPU 就能在笔记本电脑等便携设备上完成。
期刊介绍:
The Proceedings of the Combustion Institute contains forefront contributions in fundamentals and applications of combustion science. For more than 50 years, the Combustion Institute has served as the peak international society for dissemination of scientific and technical research in the combustion field. In addition to author submissions, the Proceedings of the Combustion Institute includes the Institute''s prestigious invited strategic and topical reviews that represent indispensable resources for emergent research in the field. All papers are subjected to rigorous peer review.
Research papers and invited topical reviews; Reaction Kinetics; Soot, PAH, and other large molecules; Diagnostics; Laminar Flames; Turbulent Flames; Heterogeneous Combustion; Spray and Droplet Combustion; Detonations, Explosions & Supersonic Combustion; Fire Research; Stationary Combustion Systems; IC Engine and Gas Turbine Combustion; New Technology Concepts
The electronic version of Proceedings of the Combustion Institute contains supplemental material such as reaction mechanisms, illustrating movies, and other data.