Skip to content

Commit 0c5630b

Browse files
committed
Add set_reference_potential for SurfaceChargeTransfer
in to_rms
1 parent df4b776 commit 0c5630b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

rmgpy/rmg/reactors.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -783,6 +783,8 @@ def to_rms(obj, species_names=None, rms_species_list=None, rmg_species=None):
783783
productinds = [species_names.index(spc.label) for spc in obj.products]
784784
reactants = [rms_species_list[i] for i in reactantinds]
785785
products = [rms_species_list[i] for i in productinds]
786+
if isinstance(obj.kinetics, SurfaceChargeTransfer):
787+
obj.set_reference_potential(obj.kinetics._T0.value_si)
786788
kinetics = to_rms(obj.kinetics, species_names=species_names, rms_species_list=rms_species_list, rmg_species=rmg_species)
787789
radchange = sum([spc.molecule[0].multiplicity-1 for spc in obj.products]) - sum([spc.molecule[0].multiplicity-1 for spc in obj.reactants])
788790
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])

0 commit comments

Comments
 (0)