Skip to content

Commit c5d557f

Browse files
committed
Add set_reference_potential for SurfaceChargeTransfer
in to_rms
1 parent 75ee20f commit c5d557f

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
@@ -608,6 +608,7 @@ def to_rms(obj, species_names=None, rms_species_list=None, rmg_species=None):
608608
q = obj._alpha.value_si*obj._electrons.value_si
609609
return rms.Arrheniusq(A, n, Ea, q, rms.EmptyRateUncertainty())
610610
elif isinstance(obj, SurfaceChargeTransfer):
611+
print(obj)
611612
A = obj._A.value_si
612613
if obj._T0.value_si != 1.0:
613614
A /= ((obj._T0.value_si) ** obj._n.value_si)
@@ -783,6 +784,7 @@ def to_rms(obj, species_names=None, rms_species_list=None, rmg_species=None):
783784
productinds = [species_names.index(spc.label) for spc in obj.products]
784785
reactants = [rms_species_list[i] for i in reactantinds]
785786
products = [rms_species_list[i] for i in productinds]
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)