Skip to content

Commit

Permalink
Add set_reference_potential for SurfaceChargeTransfer
Browse files Browse the repository at this point in the history
in to_rms
  • Loading branch information
ssun30 committed Apr 17, 2024
1 parent df4b776 commit 0c5630b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions rmgpy/rmg/reactors.py
Expand Up @@ -783,6 +783,8 @@ def to_rms(obj, species_names=None, rms_species_list=None, rmg_species=None):
productinds = [species_names.index(spc.label) for spc in obj.products]
reactants = [rms_species_list[i] for i in reactantinds]
products = [rms_species_list[i] for i in productinds]
if isinstance(obj.kinetics, SurfaceChargeTransfer):
obj.set_reference_potential(obj.kinetics._T0.value_si)

This comment has been minimized.

Copy link
@rwest

rwest Apr 17, 2024

Member

Are you sure that's what _T0 is? I thought it was usually for the modified Arrhenius temperature term

kinetics = to_rms(obj.kinetics, species_names=species_names, rms_species_list=rms_species_list, rmg_species=rmg_species)
radchange = sum([spc.molecule[0].multiplicity-1 for spc in obj.products]) - sum([spc.molecule[0].multiplicity-1 for spc in obj.reactants])
electronchange = -sum([spc.molecule[0].get_net_charge() for spc in obj.products]) + sum([spc.molecule[0].get_net_charge() for spc in obj.reactants])
Expand Down

0 comments on commit 0c5630b

Please sign in to comment.