Skip to content
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

Fix library reaction barrier heights for linear scaling #2729

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions rmgpy/rmg/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -548,6 +548,10 @@ def make_new_reaction(self, forward, check_existing=True, generate_thermo=True,
# correct barrier heights of estimated kinetics
if isinstance(forward, (TemplateReaction, DepositoryReaction)): # i.e. not LibraryReaction
forward.fix_barrier_height() # also converts ArrheniusEP to Arrhenius.
elif isinstance(forward, LibraryReaction) and forward.is_surface_reaction():
# do fix the library reaction barrier if this is scaled from another metal
if any(['Binding energy corrected by LSR' in x.thermo.comment for x in forward.reactants + forward.products]):
forward.fix_barrier_height()

if self.pressure_dependence and forward.is_unimolecular():
# If this is going to be run through pressure dependence code,
Expand Down
Loading