arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2210.07094physics.flu-dyn
收藏

DeepFlame:一个赋能深度学习的反应流模拟开源平台

DeepFlame: A deep learning empowered open-source platform for reacting flow simulations

Runze Mao, Minqi Lin, Yan Zhang, Tianhan Zhang, Zhi-Qin John Xu, Zhi X. Chen

AI总结:

本文提出开源 C++ 平台 DeepFlame,融合 OpenFOAM、Torch 与 Cantera,并引入深度学习化学动力学模型,在 GPU/DCU 上实现反应流模拟的显著加速。

摘要:

在本工作中,我们介绍 DeepFlame,这是一个开源 C++ 平台,具备利用机器学习算法和预训练模型求解反应流的能力。我们结合了计算流体动力学库 OpenFOAM、机器学习框架 Torch 以及化学动力学程序 Cantera 各自的优势。跨库函数与数据接口(DeepFlame 的核心)的复杂性被降至最低,从而实现简单清晰的工作流,便于代码维护、扩展和升级。作为演示,我们应用了近期关于预测化学动力学的深度学习工作(Zhang 等人,Combust. Flame,第245卷,第112319页,2022年),以凸显机器学习在加速反应流模拟方面的潜力。通过一系列广泛的典型算例开展了全面的代码验证,以评估其准确性和效率。结果表明,DeepFlame 中实现的对流-扩散-反应算法对于稳态和瞬态过程均稳健且准确。此外,还探索了多种旨在进一步提高计算效率的方法,例如动态负载均衡和自适应网格细化,并评估和报告了其性能。借助本工作实现的深度学习方法,在中端图形处理器(GPU)上运行一个简单的氢气点火算例时,实现了两个数量级的加速。对于碳氢化合物及其他复杂燃料,预计计算效率还会进一步提升。在一种人工智能专用芯片——深度计算单元(DCU)——上也获得了相近水平的加速,凸显了 DeepFlame 在利用下一代计算架构和硬件方面的潜力。

英文摘要:

In this work, we introduce DeepFlame, an open-source C++ platform with the capabilities of utilising machine learning algorithms and pre-trained models to solve for reactive flows. We combine the individual strengths of the computational fluid dynamics library OpenFOAM, machine learning framework Torch, and chemical kinetics program Cantera. The complexity of cross-library function and data interfacing (the core of DeepFlame) is minimised to achieve a simple and clear workflow for code maintenance, extension and upgrading. As a demonstration, we apply our recent work on deep learning for predicting chemical kinetics (Zhang et al. Combust. Flame vol. 245 pp. 112319, 2022) to highlight the potential of machine learning in accelerating reacting flow simulation. A thorough code validation is conducted via a broad range of canonical cases to assess its accuracy and efficiency. The results demonstrate that the convection-diffusion-reaction algorithms implemented in DeepFlame are robust and accurate for both steady-state and transient processes. In addition, a number of methods aiming to further improve the computational efficiency, e.g. dynamic load balancing and adaptive mesh refinement, are explored. Their performances are also evaluated and reported. With the deep learning method implemented in this work, a speed-up of two orders of magnitude is achieved in a simple hydrogen ignition case when performed on a medium-end graphics processing unit (GPU). Further gain in computational efficiency is expected for hydrocarbon and other complex fuels. A similar level of acceleration is obtained on an AI-specific chip - deep computing unit (DCU), highlighting the potential of DeepFlame in leveraging the next-generation computing architecture and hardware.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑