-
-
Notifications
You must be signed in to change notification settings - Fork 360
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
Refactor electrochemical reactions #1216
Refactor electrochemical reactions #1216
Conversation
Codecov Report
@@ Coverage Diff @@
## main #1216 +/- ##
==========================================
+ Coverage 65.42% 65.44% +0.01%
==========================================
Files 320 320
Lines 46247 46321 +74
Branches 19655 19688 +33
==========================================
+ Hits 30259 30315 +56
- Misses 13460 13475 +15
- Partials 2528 2531 +3
📣 Codecov can now indicate which changes are the most critical in Pull Requests. Learn more |
f791a4d
to
b26d397
Compare
b26d397
to
78470a6
Compare
2119ba3
to
a00e4bb
Compare
59f9dd2
to
093af64
Compare
093af64
to
4807abb
Compare
PS: also referencing Cantera/enhancements#38. FWIW, if we can rule out electrochemical 'sticking' formulations (which I currently left in), it would be very easy to introduce a third |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, @ischoegl! This looks really good. I'm encouraged by seeing all of the deprecated methods in InterfaceKinetics
, as a sign of how much simplification all of this refactoring will eventually bring there.
Beyond the few minor comments below, I had one other thought which is that CoverageData
and CoverageBase
have grown to encompass quite a bit more than coverage dependence for the rate. If there's a good reason for not breaking the electrochemical specialization out into a derived class, I'm wondering if there are at least more descriptive names for these classes that we could use.
@speth .. thank you for the prompt review! Before going over the PR, I wanted to respond to your larger question.
I was struggling with this also. The single-most important reason for not creating a separate specialization was that I didn't want to block electrochemical 'sticking' reactions. If we can rule this out, then a I agree that |
What about |
@speth ... done!
It was actually surprising to see that the implementation is actually not that complex - it was just scattered all over and hard to follow. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks again, @ischoegl - this all looks good to me.
Changes proposed in this pull request
InterfaceRate<>
andStickingRate<>
templatestest_kinetics.py::TestSofcKinetics
) covers all changes in detailIf applicable, fill in the issue number this pull request is fixing
Closes Cantera/enhancements#139, addresses Cantera/enhancements#142
If applicable, provide an example illustrating new features this pull request is introducing
Checklist
scons build
&scons test
) and unit tests address code coverage