You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 7, 2024. It is now read-only.
Checking against "pdep" reactions in ReactionLibrary reactions.txt file
This commit switches the general order of adding reactions to the ODE input
file and CHEMKIN chem.inp file from:
* Seed
* Reaction Library pdepreactions
* RMG (fame) pdepreactions
* RMG nonpdep reactions
to:
* Seed
* Reaction Library pdepreactions
* RMG nonpdep reactions
# RMG (fame) pdepreactions
Example: Suppose user started with H and O2 in the input file, and Glarborg/C3
reaction library. RMG would find H+O2=O+OH in Glarborg/C3 library and would
make HO2 (H+O2) included, thereby finding the O+OH well, making
H+O2(+m)=O+OH(+m). In the previous order, RMG would add the RMG pdepreactions
reaction to the list, and then add the Glarborg/C3 reaction to the list: this
would be an incorrect duplicate.
With the new order, RMG adds the Glarborg/C3 reaction, and then recognizes
the RMG (fame) pdepreaction to be a duplicate and will not add it to the ODE
or CHEMKIN list.
//Logger.debug(String.format("Excluding FAME-estimated PDep rate for %s from ODEs because it's in the reaction mechanism",rxn));
316
+
continue; // exclude rxns already in mechanism
317
+
}
300
318
else {
301
319
//Logger.debug(String.format("Including FAME-estimated PDep rate for %s in ODEs because it's not in the seed mechanism, nor does it have a P-dep rate from a reaction library.",rxn));
302
320
}
@@ -313,12 +331,7 @@ else if (seedList.contains(rxn) || seedList.contains(reverse)) {
313
331
}
314
332
}
315
333
316
-
for (Iteratoriter = p_reactionModel.getReactionSet().iterator(); iter.hasNext();) {
317
-
Reactionr = (Reaction) iter.next();
318
-
if (r.isForward() && !(rinstanceofThirdBodyReaction) && !(rinstanceofTROEReaction) && !(rinstanceofLindemannReaction)) {
0 commit comments