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

被引:14
作者
Mao, Runze [1 ,2 ]
Lin, Minqi [1 ]
Zhang, Yan [3 ,4 ]
Zhang, Tianhan [2 ,5 ]
Xu, Zhi-Qin John [6 ,7 ,8 ]
Chen, Zhi X. [1 ,2 ]
机构
[1] Peking Univ, Coll Engn, State Key Lab Turbulence & Complex Syst, Beijing 100871, Peoples R China
[2] AI Sci Inst AISI, Beijing 100080, Peoples R China
[3] CAEP Software Ctr High Performance Numer Simulat, Beijing 100088, Peoples R China
[4] Inst Appl Phys & Computat Math, Beijing 100088, Peoples R China
[5] SUSTech, Dept Mech & Aerosp Engn, Shenzhen 518055, Peoples R China
[6] Shanghai Jiao Tong Univ, Inst Nat Sci, Sch Math Sci, Shanghai 200240, Peoples R China
[7] Shanghai Jiao Tong Univ, MOE LSC, Shanghai 200240, Peoples R China
[8] Shanghai Jiao Tong Univ, Qing Yuan Res Inst, Shanghai 200240, Peoples R China
基金
美国国家科学基金会;
关键词
Computational fluid dynamic; Compressible reacting flow; Machine learning; Chemical kinetics; High performance computing; CHEMISTRY; IGNITION; FLAME;
D O I
10.1016/j.cpc.2023.108842
中图分类号
TP39 [计算机的应用];
学科分类号
081203 ; 0835 ;
摘要
Recent developments in deep learning have brought many inspirations for the scientific computing community and it is perceived as a promising method in accelerating the computationally demanding reacting flow simulations. In this work, we introduce DeepFlame, an open-source C++ platform with the capabilities of utilising machine learning algorithms and offline-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., 2022 [8]) 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.Program summaryProgram Title: DeepFlame CPC Library link to program files: https://doi .org /10 .17632 /3pg9xmypp3 .1 Developer's repository link: https://github .com /deepmodeling /deepflame-dev Licensing provisions: GPLv3 Programming language: C++ Nature of problem: Solving chemically reacting flows with direct (quasi-direct) simulation methods is usually troubled by the following problems: 1. as the widely-used computational fluid dynamics (CFD) toolbox, OpenFOAM features limited ODE solvers for chemistry and oversimplified transport models, yielding non-negligible errors in simulation results; 2. the chemical source term evaluation is the most computationally expensive and usually accounts for more than 80% of total computing time. Solution method: An open-source platform bringing together the individual strengths of OpenFOAM, Cantera and PyTorch libraries is built in this study. In the present implementation, CVODE solvers, detailed transport models and deep learning algorithms are all adopted to assist the simulation of reacting flow. Note that here machine learning is introduced in combination with heterogeneous computing to accelerate the most demanding solving procedure for chemical source term evaluation.& COPY; 2023 Elsevier B.V. All rights reserved.
引用
收藏
页数:18
相关论文
共 38 条
  • [1] Abadi M, 2016, PROCEEDINGS OF OSDI'16: 12TH USENIX SYMPOSIUM ON OPERATING SYSTEMS DESIGN AND IMPLEMENTATION, P265
  • [2] The Taylor-Green vortex as a benchmark for high-fidelity combustion simulations using low-Mach solvers
    Abdelsamie, Abouelmagd
    Lartigue, Ghislain
    Frouzakis, Christos E.
    Thevenin, Dominique
    [J]. COMPUTERS & FLUIDS, 2021, 223
  • [3] [Anonymous], 2005, Chemically reacting flow: theory and practice
  • [4] Baniabedalruhman A., 2015, THESIS MICHIGAN TECH
  • [5] Modelling the temporal evolution of a reduced combustion chemical system with an artificial neural network
    Blasco, JA
    Fueyo, N
    Dopazo, C
    Ballester, J
    [J]. COMBUSTION AND FLAME, 1998, 113 (1-2) : 38 - 52
  • [6] An explicit reduced mechanism for H2-air combustion
    Boivin, P.
    Jimenez, C.
    Sanchez, A. L.
    Williams, F. A.
    [J]. PROCEEDINGS OF THE COMBUSTION INSTITUTE, 2011, 33 : 517 - 523
  • [7] AN ANALYSIS OF TRANSFORMATIONS
    BOX, GEP
    COX, DR
    [J]. JOURNAL OF THE ROYAL STATISTICAL SOCIETY SERIES B-STATISTICAL METHODOLOGY, 1964, 26 (02) : 211 - 252
  • [8] Application of machine learning for filtered density function closure in MILD combustion
    Chen, Zhi X.
    Iavarone, Salvatore
    Ghiasi, Golnoush
    Kannan, Veeraraghavan
    D'Alessio, Giuseppe
    Parente, Alessandro
    Swaminathan, Nedunchezhian
    [J]. COMBUSTION AND FLAME, 2021, 225 : 160 - 179
  • [9] Efficient premixed turbulent combustion simulations using flamelet manifold neural networks: A priori and a posteriori assessment
    Chi, Cheng
    Xu, Xiaopeng
    Thevenin, Dominique
    [J]. COMBUSTION AND FLAME, 2022, 245
  • [10] Artificial neural network implementation of chemistry with pdf simulation of H-2/CO2 flames
    Christo, FC
    Masri, AR
    Nebot, EM
    [J]. COMBUSTION AND FLAME, 1996, 106 (04) : 406 - 427