-
Notifications
You must be signed in to change notification settings - Fork 227
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
Cantera version 2.6 #2288
Cantera version 2.6 #2288
Conversation
currently generated a chem_annotated.yaml and a chem.yaml. chem.yaml looks fine but the chem_annotated.yaml does not store the comments under "notes" for the reactions. |
c344037
to
8e46040
Compare
8e46040
to
7c37a56
Compare
Codecov Report
@@ Coverage Diff @@
## main #2288 +/- ##
==========================================
- Coverage 48.15% 48.12% -0.04%
==========================================
Files 110 110
Lines 30654 30653 -1
Branches 7994 7995 +1
==========================================
- Hits 14762 14751 -11
- Misses 14357 14372 +15
+ Partials 1535 1530 -5
... and 1 file with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
This passes all tests and fixes the issue of not getting the coverage dependent parameters into the Cantera output file. I believe this needs to be merged before we can merge #2321. |
One other thing to note is the test for generating an output file with the ck2yaml parser behaves a little differently. If we do not specify all of the elements used (e.g. we forget to add "C" for our carbon atom in the elements list) it will not throw an error. The error only appears when the output file is validated, which is not something cantera coded into the parser (you can do it with the command line ck2yaml parser however). I just changed the test case so it fails for another reason, since the point is not to exhaustively test every error possible when generating a yaml file. see this thread for more info: https://groups.google.com/g/cantera-users/c/eiTX-2O5zfQ |
upgrading to version 2.6 in environment.yml |
Hey @ChrisBNEU, with this branch, are you experiencing an issue with installing PyCall in Julia (or add/installing new packages in Julia) |
A fix for that issue is we need to make it use the For my env, I had to do this
|
@mjohnson541 - Return of the LD_LIBRARY_PATH issue |
I am rebasing this branch to try and push this feature through now that the CI has been fixed. |
b9ea3df
to
0517178
Compare
58fba74
to
dc73217
Compare
So there are a number of new issues with cantera 2.6 and beyond that have done my best to address: Older versions of cantera used different
For versions <=3.0, we will not need to worry about third body reactions and falloff reactions. however, past version 3.0, we will need to recode so all reactions are type All cti output file references are removed, since cti references are deprecated in v2.6, and will not work in later versions. additionally, cti files will not correctly write coverage dependencies, but yaml files will. I have not updated the surface reaction |
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 for the PR, implementation looks great! I have a couple minor comments on documentation and clarity.
One larger thing is that this does break compatibility with previous versions of RMG since we can no longer interface with the 'cti' format from Cantera. We should bundle this into a minor release of RMG-Py, like 3.3.0 or the like.
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 Chris. Lots of work here.
I agree with @JacksonBurns that forcing change to 2.6 and yaml from 2.3 and cti is likely a major change for some users, but I can't see a way for both options to co-exist. (or at least not a way that is simple enough to be worth pursuing).
Note regarding my review: I just read the code on github and haven't actually tried running any of it.
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.
LGTM. Thanks for making this important PR happen.
Motivation or Problem
addresses issue #2270.
Cantera is deprecating the ".cti" output file type that RMG currently uses. for nicer features like coverage dependant thermo and kinetics, we need to upgrade cantera to v2.5 and switch to the yaml output file type.
Description of Changes
Changed the input parser from ck2cti to ck2yaml. there were some syntax changes for the parser from v2.3 to 2.5.
Testing
update all of the unit tests that involve writing or reading a cantera output file
ensure that a ct.Solution and ct.interface object load correctly externally.
Reviewer Tips
Any suggestions for what should be tested would be appreciated, I have not put any in.