pyJac:化学动力学分析雅可比矩阵generator
pyJac: analytical Jacobian generator for chemical kinetics
摘要:
燃烧现象的精确模拟需要使用详细的化学动力学,以捕捉极限现象,如点火和熄灭,以及预测污染物的形成。然而,实际感兴趣的烃燃料的化学动力学模型通常具有大量的物种和反应,并且在控制微分方程中表现出高水平的数学刚性,特别是对于较大的燃料分子。为了整合控制化学动力学的刚性方程,通常反应流模拟依赖于需要频繁计算雅可比矩阵的隐式算法。一些原位和后验计算诊断方法也需要精确的雅可比矩阵,包括计算奇异摄动和化学爆炸模式分析。通常情况下,有限差分数值近似这些,但对于较大的化学动力学模型,这造成了显着的计算需求,因为化学源项评估的数量与物种计数的平方成比例。此外,现有的分析雅可比工具不优化评估或支持新兴的SIMD处理器,如GPU。在这里,我们介绍pyJac,一个基于Python的开源程序,它可以生成用于化学动力学建模和分析的分析雅可比矩阵。作为演示,我们首先建立了氢气,甲烷,乙烯和异戊醇氧化动力学模型的雅可比矩阵的正确性,然后通过矩阵评估时序比较展示了使用pyJac在CPU和GPU上可实现的性能。
英文摘要:
Accurate simulations of combustion phenomena require the use of detailed chemical kinetics in order to capture limit phenomena such as ignition and extinction as well as predict pollutant formation. However, the chemical kinetic models for hydrocarbon fuels of practical interest typically have large numbers of species and reactions and exhibit high levels of mathematical stiffness in the governing differential equations, particularly for larger fuel molecules. In order to integrate the stiff equations governing chemical kinetics, generally reactive-flow simulations rely on implicit algorithms that require frequent Jacobian matrix evaluations. Some in situ and a posteriori computational diagnostics methods also require accurate Jacobian matrices, including computational singular perturbation and chemical explosive mode analysis. Typically, finite differences numerically approximate these, but for larger chemical kinetic models this poses significant computational demands since the number of chemical source term evaluations scales with the square of species count. Furthermore, existing analytical Jacobian tools do not optimize evaluations or support emerging SIMD processors such as GPUs. Here we introduce pyJac, a Python-based open-source program that generates analytical Jacobian matrices for use in chemical kinetics modeling and analysis. As a demonstration, we first establish the correctness of the Jacobian matrices for kinetic models of hydrogen, methane, ethylene, and isopentanol oxidation, then demonstrate the performance achievable on CPUs and GPUs using pyJac via matrix evaluation timing comparisons.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。