-
Notifications
You must be signed in to change notification settings - Fork 229
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
RMG-Cat!!! #1537
RMG-Cat!!! #1537
Conversation
I think the current problem is cfgoldsmith#42 which is still a bit mysterious. |
030761c
to
7dec096
Compare
Codecov Report
@@ Coverage Diff @@
## master #1537 +/- ##
=========================================
- Coverage 41.65% 41.6% -0.06%
=========================================
Files 166 176 +10
Lines 28452 29138 +686
Branches 5855 5991 +136
=========================================
+ Hits 11853 12122 +269
- Misses 15777 16176 +399
- Partials 822 840 +18
Continue to review full report at Codecov.
|
5499040
to
4ce93a8
Compare
28d9f7f
to
4671bb1
Compare
Can't seem to get the I think the code is ready for a first review; documentation will be coming shortly (there's a PR at cfgoldsmith#56 ) |
rmgpy/reaction.py
Outdated
if r.containsSurfaceSite(): | ||
rateCoefficient /= surfaceSiteDensity | ||
else: | ||
adsorbate = r |
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.
I am adding a check here to make sure to throw an error if there is more than one adsorbate
assert not species.isSurfaceSite(), "Can't estimate thermo of vacant site. Should be in library (and should be 0)" | ||
|
||
logging.debug(("Trying to generate thermo for surface species" | ||
" with these {} resonance isomer(s):").format(len(species.molecule))) |
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.
This doesn't really seem like a useful debug message. Was the intention to log the adjlists as well?
raise | ||
|
||
# (groupAdditivity=True means it appends the comments) | ||
addThermoData(thermo, adsorptionThermo, groupAdditivity=True) |
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.
Was there a reason for adding the adsorption correction separately instead of providing thermo
directly to __addGroupThermoData
?
X is a surface site. Xv is a vacant surface site. Xo is an occupied surface site. They have 0 covalent radius. They are represented by Ni in RDKit (and hence SMILES strings) Add surface site 'X' to allElements list in atomtype.py Xo atomtype can form bonds (making Xo) A vdW adsorbate includes an Xo site with no bonds, which could then become bonded via a reaction recipe, meaning the Xo atom type needs to have a valid formBond setting, which is also Xo. Surface site X group atom by default has 0 lone pairs
Just asks the first molecule.
Replaces isSurfaceSpecies()
This is like a RateCoefficient but with more flexible units. To allow for: A + * -> A* A* -> B* A* + B* -> C* 2A + * + * -> A* + A*
…d reaction families to RMG-Cat documentation.
This includes a description of adding binding energies in the input file and a linear scaling relations section. Added references. Added some minor fixes/clarifications.
A list of the current surface reaction libraries. More about adsorption corrections.
I think perhaps a sphinx plugin to MS VS Code created this. Usually things end up in the build folder, not source/_build. But if they do end up here, lets ignore them.
This should allow linear scaling relations to work for N atoms.
…lies Add termolecular and surface termolecular families to testing database
This now stores the surfaceSiteDensity, once per RMG run instead of once per reactor. It's also where you specify the binding energies. The surfaceSiteDensity is now preserved and output in the CHEMKIN files. Closes cfgoldsmith#68
Mostly just the example.
Atom: isSilicon, isNitrogen, isFluorine, isClorine, isIodine, isSulfur, isNOS, isSurfaceSite Molecule: tests for isSurfaceSite
suggestion by @mliu49 I left a type check in there, which may just slow things down. Worth it for the extra safety???
Here is RMG for Heterogeneous Catalysis.
This replaces #1536 which came from my own fork (something that can't be changed once a PR is open).
I'm hopefully going to continue trying to tidy up this pull request via some rebasing to make it easier to review in chunks, but however this is sliced up in terms of commits, I think this PR contains all the actual changes that will be included in merging RMG-Cat, so if anyone brave wants to start reviewing, here at least is something we can start to discuss...
(Oh, it needs the
catmerge
version of the RMG-database too, which should be taken care of for Travis with the temporary commit at the end)