Skip to content

Commit ae59b8c

Browse files
committed
Added reference potential to Arrheniusq
1 parent f230853 commit ae59b8c

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/Calculators/Rate.jl

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,16 @@ end
2727
@inline (arr::StickingCoefficient)(T::Q;P::N=0.0,C::S=0.0,phi=0.0,dGrxn=0.0,d=0.0) where {Q<:Real,N<:Real,S<:Real} = @fastmath min(arr.A*T^arr.n*exp(-arr.Ea/(R*T)),1.0)
2828
export StickingCoefficient
2929

30-
@with_kw struct Arrheniusq{N<:Real,K<:Real,Q<:Real,P<:AbstractRateUncertainty,B} <: AbstractRate
30+
@with_kw struct Arrheniusq{N<:Real,K<:Real,Q<:Real,R<:Real,P<:AbstractRateUncertainty,B} <: AbstractRate
3131
A::N
3232
n::K
3333
Ea::Q
3434
q::B = 0.0
35+
V0::R = 0.0
3536
unc::P = EmptyRateUncertainty()
3637
end
37-
@inline (arr::Arrheniusq)(;T::Q,P::N=0.0,C::S=0.0,phi=0.0,dGrxn=0.0,d=0.0) where {Q<:Real,N<:Real,S<:Real} = @fastmath arr.A*T^arr.n*exp((-arr.Ea-arr.q*F*phi)/(R*T))
38-
@inline (arr::Arrheniusq)(T::Q;P::N=0.0,C::S=0.0,phi=0.0,dGrxn=0.0,d=0.0) where {Q<:Real,N<:Real,S<:Real} = @fastmath arr.A*T^arr.n*exp((-arr.Ea-arr.q*F*phi)/(R*T))
38+
@inline (arr::Arrheniusq)(;T::Q,P::N=0.0,C::S=0.0,phi=0.0,dGrxn=0.0,d=0.0) where {Q<:Real,N<:Real,S<:Real} = @fastmath arr.A*T^arr.n*exp((-arr.Ea-arr.q*F*(phi-arr.V0))/(R*T))
39+
@inline (arr::Arrheniusq)(T::Q;P::N=0.0,C::S=0.0,phi=0.0,dGrxn=0.0,d=0.0) where {Q<:Real,N<:Real,S<:Real} = @fastmath arr.A*T^arr.n*exp((-arr.Ea-arr.q*F*(phi-arr.V0))/(R*T))
3940
export Arrheniusq
4041

4142
@with_kw struct Marcus{N<:Real,K<:Real,Q,P<:AbstractRateUncertainty,B} <: AbstractRate
@@ -248,7 +249,7 @@ export getkineticstype
248249

249250
@inline extracttypename(typ::Symbol) = string(typ)
250251
@inline extracttypename(typ) = string(typ.name)
251-
252+
252253
@inline function _calcdkdCeff(tbarr::ThirdBody,T::Float64,Ceff::Float64)
253254
return @fastmath tbarr.arr(T)
254255
end

0 commit comments

Comments
 (0)