Hi Ray,
The “experimental” warning about the derivatives, as with other functions labeled as “experimental” in Cantera, is really about the stability of the API. We add this caution in cases where we haven’t necessarily settled on function names / signatures. These derivative calculations are evaluated pretty thoroughly as part of Cantera’s test suite, and I don’t believe there are any reported errors relating to these quantities.
Regarding discrepancies, I would expect the derivatives returned by netProductionRates_ddX to be more accurate than anything you can get by finite difference. Besides things like cancellation errors, it is important to note that you can’t quite compute the same partial derivative returned by this method using finite differences. As described in the docstring, netProductionRates_ddX provides derivatives with T, P, molar concentration, and other mole fractions held constant. But if you’re taking finite differences, you can’t quite do this because of the constraints imposed by the equation of state. You would need to combine a couple of the available derivatives to get a quantity that’s equivalent to what you get from a finite difference approach. You can get a lot closer with a finite difference approach by setting the state using “unnormalized” mole fractions.
Regards,
Ray