Skip to content

Commit

Permalink
fix barrier on library reactions if they're surface being scaled from…
Browse files Browse the repository at this point in the history
… one metal to another
  • Loading branch information
sevyharris committed Nov 12, 2024
1 parent 43d5bf8 commit d852b7b
Showing 1 changed file with 4 additions and 0 deletions.
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

0 comments on commit d852b7b

Please sign in to comment.