Skip to content

Commit

Permalink
added to_surface_charge_transfer method
Browse files Browse the repository at this point in the history
  • Loading branch information
davidfarinajr committed Jan 20, 2021
1 parent d3130a7 commit 1a8b368
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
4 changes: 3 additions & 1 deletion rmgpy/kinetics/surface.pxd
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,9 @@ cdef class StickingCoefficientBEP(KineticsModel):

################################################################################
cdef class SurfaceArrhenius(Arrhenius):
pass

cpdef SurfaceChargeTransfer to_surface_charge_transfer(self, double V0, double ne=?)

################################################################################
cdef class SurfaceArrheniusBEP(ArrheniusEP):
pass
Expand Down
18 changes: 18 additions & 0 deletions rmgpy/kinetics/surface.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -428,6 +428,24 @@ cdef class SurfaceArrhenius(Arrhenius):
return (SurfaceArrhenius, (self.A, self.n, self.Ea, self.T0, self.Tmin, self.Tmax, self.Pmin, self.Pmax,
self.uncertainty, self.comment))

cpdef SurfaceChargeTransfer to_surface_charge_transfer(self, double V0, double ne=-1):
"""
Return an :class:`SurfaceChargeTransfer` instance of the kinetics model with reversible
potential `V0` in Volts and electron stochiometric coeff `ne`
"""
return SurfaceChargeTransfer(
A=self.A,
n=self.n,
ne=ne,
Ea=self.Ea,
V0=(V0,'V'),
T0=(1, "K"),
Tmin=self.Tmin,
Tmax=self.Tmax,
uncertainty = self.uncertainty,
comment=self.comment,
)


################################################################################

Expand Down

0 comments on commit 1a8b368

Please sign in to comment.