-
-
Notifications
You must be signed in to change notification settings - Fork 346
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Get effective Arrhenius parameters using SurfaceArrhenius class #297
Conversation
Hi, your efforts are certainly appreciated, but I have a few concerns about these additions: 1) Class bulk = new Cantera::LatticePhase("1.cti", "bulk"); or do away with the manual memory management and just write: Cantera::LatticePhase bulk("1.cti","bulk"); I know the interface is a bit inconsistent here among the different classes, with some having constructors from input file and phase id and others having a wrapper class to provide this, but I think I prefer the former. 2) The classes defined in 3) Access to the rate coefficient parameters is already provided through a more general interface to the |
Thank you! But I cannot see if the // user should cast to InterfaceReaction to get access to coverage_deps
Cantera::InterfaceReaction& some_reaction= dynamic_cast <Cantera::InterfaceReaction& > (*(surf->reaction(reaction_number)));
// Clean (unmodified) parameters are returned when using e.g.
std::cout << some_reaction.rate.activationEnergy_R() << std::endl; As I understand, one should iterate over |
Thanks for the clarification. I can see some utility in having access to the effective rate coefficient parameters for class |
Fixed it! Is it appropriate now? |
I think this is pretty close. A few more minor suggestions:
|
Oh, and also the new methods should have docstrings. |
d366f9c
to
1cc3ca7
Compare
…eters from SurfaceArrhenius throug InterfaceKinetics.
The field |
Yes, it can be removed. |
I've done it. Anything else? |
Effective rate parameters are used in SurfaceArrhenius reactions. Resolves Cantera#297.
The reason for getters is to give the user the ability of inspection of reaction rate parameters during surface chemistry calculations. This is convinient when user wants to output reaction rate parameters
These commits are not build-breaking: (scons test)
*** Testing Summary ***
Tests passed: 967
Up-to-date tests skipped: 0
Tests failed: 0