-
-
Notifications
You must be signed in to change notification settings - Fork 346
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Yaml duplicate reaction issue #1278
Comments
See #1251 - as of Cantera 2.6, both reactions are of the same type, and |
In the first reaction, M is total concentration. Second one's third body is only OH. If I declare DUP, is each reaction going to calculate a distinct third body? That's my confusion. |
Looking at the source code, there is a check that ensures that collision efficiency definitions should be mutually exclusive. In this case, this check fails based on the way it is implemented. While the logic is unchanged from earlier versions, it now flags duplicates where there wasn't a conflict before as the reaction type was different. The code section in question is cantera/src/kinetics/Kinetics.cpp Lines 186 to 198 in 2bc0263
The reason here is that the default efficiency for M is unity, and thus the check fails for OH .
The workaround is to declare DUP which will work as expected. As an aside, there is a discussion that goes beyond, see Cantera/enhancements#132. PS: There's also this discussion #1193 |
Per discussion in #1193, the recommended resolution is to mark these reactions as duplicates. Please feel free to comment on Cantera/enhancements#132. Closing. |
As I reported in 1092, some reactions are needed to be declared as duplicates in the latest stable release (2.6.0) to make mechanism work, though they are not.
Example reactions:
ELEMENTS
H O C N
END
SPECIES
CH3CO CH3 CO OH
END
REACTIONS
CH3CO + M = CH3 + CO + M 4.37E+15 0.0 10500.0
CH3CO + OH = CH3 + CO + OH 3.000E+13 0.0 0.
END
The text was updated successfully, but these errors were encountered: