validate(reactions='no')reaction("NH + NO <=> N2O + H", [2.94000E+14, -0.4, 0], options=["duplicate"])reaction("NH + NO <=> N2O + H", [-2.16000E+13, -0.23, 0], options=["negative_A", "duplicate"])Hi Mark,
The way to write this is as a single reaction with multiple rate expressions at each pressure, rather than as two separate reactions. For example:
pdep_arrhenius('C2H3 + CH2O <=> C2H4 + HCO',
[(0.001, 'atm'), 1.100000e+07, 1.09, 1807.0],
[(0.001, 'atm'), -2.300000e+16, -1.269, 20617.0],
[(0.01, 'atm'), 2.500000e+07, 0.993, 1995.0],
[(0.01, 'atm'), -5.200000e+16, -1.366, 20805.0],
[(0.1, 'atm'), 2.500000e+08, 0.704, 2596.0],
[(0.1, 'atm'), -1.500000e+18, -1.769, 22524.0],
[(1.0, 'atm'), 1.400000e+10, 0.209, 3934.0],
[(1.0, 'atm'), -8.500000e+19, -2.264, 23862.0],
[(10.0, 'atm'), 3.500000e+13, -0.726, 6944.0],
[(10.0, 'atm'), -4.400000e+23, -3.278, 27795.0],
[(100.0, 'atm'), 3.300000e+14, -0.866, 10966.0],
[(100.0, 'atm'), -4.200000e+24, -3.418, 31817.0],
[(1000.0, 'atm'), 1.700000e+01, 3.17, 9400.0],
[(1000.0, 'atm'), -2.100000e+11, 0.618, 30251.0])
Regards,
Ray
Mark,
No, nothing has changed regarding the duplicate or negative_A options. That approach is still applicable to reactions that are written as a set of elementary reactions (i.e. each with just a single rate expression).
Although I have seen reactions written this way in numerous mechanisms, I believe that writing separate “plog” reactions with the different sets of rate constants does not do the interpolation in the intended way. All the rate constants at a particular pressure should be evaluated and added together, and then the interpolation in pressure should be done. However, writing the reactions as independent, duplicate reactions causes these steps to be done in the reverse order, which gives a different result, notably in the case of negative A factors where it simply can’t be done.
Regards,
Ray