Closed TJaravel closed 7 years ago
Thanks for the bug report, the current version is definitely incorrect. I will test out your fix / incorporate ASAP
Strange that we didn't encounter this when testing the model with SRI reactions—does this only occur when one of the optional parameters is used (or not used)?
@kyleniemeyer It appears that the SRI reaction in the Sarathy i-pentanol model does not have any non-default third-body efficiencies, hence the containing if statement on line 234 is not triggered
@TJaravel would you mind sharing the model you were using when this error occurred (or really, just the SRI reaction in question)? It would help test that the fix is correct (as compared to the automatic differentiation soln.)
The SRI reaction (chemkin):
H+CH3(+M)=CH4(+M) 1.2000e+15 -0.400 0.00 LOW/ 6.40e+23 -1.800 0.0/ SRI/ 0.4500 797.0000 979.0000 1.0000 0.0000/ H2/ 2.00/ CO/ 2.00/ CO2/ 3.00/ H2O/ 5.00/
Ok, running the functional tester using one of the GRI PaSR outputs with this reaction inserted in place of the similar Troe reaction in GRIMech 3.0 results in a max error of 0.436%
I think this fix is good.
Thanks again for the report @TJaravel
An error occurs in create_jacobian.py when treating a reaction with SRI Falloff function.
The following fix may work l249 of create_jacobian.py Current:
Suggested fix: