Overview¶
pyJac creates the C or CUDA source code files necessary to evaluate the analytical Jacobian matrix for a constant-pressure reacting system.
State Vector¶
Briefly, a thermochemical state is described using a composition vector:
where T is the temperature, \(Y_i\) are the mass fractions, and \(N_{\text{sp}}\) is the number of species in the model. The mass fraction of the final species is determined through conservation of mass:
Jacobian Formulation¶
The governing equations of chemical kinetics include ordinary differential equations for the rate of change of temperature and the species’ mass fractions:
where
where \(c_p\) is the mass-averaged constant-pressure specific heat, \(h_k\) is the specific enthalpy of species k, and \(\dot{\omega}_k\) is the overall production rate of species k.
The Jacobian matrix is then filled by the partial derivaties \(\partial f / \partial \Phi\), such that
More details can be found in the paper fully describing version 1.0.3 of pyJac: https://Niemeyer-Research-Group.github.io/pyJac-paper/