I have built a chemkin file using Reaction Mechanism Generator (RMG) version 2.3.0.
On cantera 2.3.0a3 (from the RMG conda channel) my chemkin file validates OK:
(rmg230) Richards-iMac:temp rwest$ python -c "import cantera; print(cantera.__version__)"
2.3.0a3
(rmg230) Richards-iMac:temp rwest$ ck2cti --input=chem_annotated.inp --permissive
Wrote CTI mechanism file to 'chem_annotated.cti'.
Mechanism contains 113 species and 3519 reactions.
Validating mechanism...PASSED.
but on cantera 2.4.0 (from the cantera channel) it gives a duplicate reaction error:
(cantera) Richards-iMac:temp rwest$ python -c "import cantera; print(cantera.__version__)"
2.4.0
(cantera) Richards-iMac:temp rwest$ ck2cti --input=chem_annotated.inp --permissive
Wrote CTI mechanism file to 'chem_annotated.cti'.
Mechanism contains 113 species and 3519 reactions.
Validating mechanism...FAILED.
***********************************************************************
CanteraError thrown by Kinetics::checkDuplicates:
Undeclared duplicate reactions detected:
Reaction 1256: 2 CO2(18) <=> 2 CO2(320)
Reaction 1173: CO2(320) <=> CO2(18)
***********************************************************************
These are both pressure dependent reactions with chebyshev form (the error message is not printing the `(+M)` which is in the input file).
! Reaction index: Chemkin #1256; RMG #26807
! PDep reaction: PDepNetwork #3926
! Flux pairs: CO2(320), CO2(18);
CO2(320)(+M)=CO2(18)(+M) 1.000e+00 0.000 0.000
TCHEB/ 300.000 3000.000 /
PCHEB/ 0.010 98.692 /
CHEB/ 6 4/
CHEB/ 9.211e+00 1.104e+00 -3.353e-01 -1.749e-02 /
CHEB/ -1.851e-01 1.953e-01 1.752e-02 -3.300e-02 /
CHEB/ -4.336e-02 3.856e-02 1.067e-02 -5.482e-03 /
CHEB/ -1.522e-02 1.275e-02 3.942e-03 -1.453e-03 /
CHEB/ -6.170e-03 4.974e-03 1.626e-03 -4.805e-04 /
CHEB/ -2.679e-03 2.096e-03 7.154e-04 -1.745e-04 /
! Reaction index: Chemkin #1173; RMG #1877
! PDep reaction: PDepNetwork #276
! Flux pairs: CO2(18), CO2(320); CO2(18), CO2(320);
CO2(18)+CO2(18)(+M)=CO2(320)+CO2(320)(+M) 1.000e+00 0.000 0.000
TCHEB/ 300.000 3000.000 /
PCHEB/ 0.010 98.692 /
CHEB/ 6 4/
CHEB/ -6.582e+01 -1.842e-02 -1.269e-02 -6.920e-03 /
CHEB/ 6.831e+01 1.309e-02 8.958e-03 4.836e-03 /
CHEB/ -2.004e-02 4.074e-04 3.072e-04 1.920e-04 /
CHEB/ 8.858e-03 1.754e-04 1.215e-04 6.701e-05 /
CHEB/ -3.797e-03 3.275e-05 2.301e-05 1.298e-05 /
CHEB/ -3.432e-04 -4.239e-06 -2.823e-06 -1.450e-06 /
As they’re different reaction orders I’d think they’d not be duplicates.
RMG thinks they shouldn't be marked as duplicates.
I don't actually have Chemkin available to check what it thinks.
I think this means there is either a bug in
1) RMG 2.3.0 and Cantera 2.3.0a3
or
2) Cantera 2.4.0