Hi,
You’ve got a lot of questions packed in here. I’ll try to address a few of them.
Regarding the calculation of net production rates and the state changing: This is very basic functionality for Cantera. If you change the temperature, pressure or composition of a Solution object, the calculation of the net production rates will reflect the new state. If you’re not seeing this, then there may be some issue with how you’re either setting the state or accessing the kinetic rates. The only way for us to help would be if you could provide at least a minimal example that shows the behavior you’re observing.
I’m somewhat unclear on what the equations you want Cantera to solve are. Is the situation you’re interested in representing a 1D steady flow? If so, you may be able to use Cantera’s reactor network model with a Lagrangian interpretation to map the integrator time onto the spatial dimension. This approach is demonstrated by the first case of this example.
Yes, the ExtensibleReactor capability allows you to add extra ODEs to the system of equations being solved. This example shows a case where this is done, using the extra equation to represent a state variable for an adjacent moving wall. Note that the ExtensibleReactor capability is not currently compatible with the FlowReactor class, so you would need to represent your system in the time domain as in the previous case.
I would not recommend using the experimental version of the Matlab toolbox just yet — it is still a work in progress.
Regards,
Ray