@@ -13,8 +13,8 @@ export AbstractFalloffRate
1313 Ea:: Q
1414 unc:: P = EmptyRateUncertainty ()
1515end
16- @inline (arr:: Arrhenius )(;T:: Q ,P:: N = 0.0 ,C:: S = 0.0 ) where {Q<: Real ,N<: Real ,S<: Real } = @fastmath arr. A* T^ arr. n* exp (- arr. Ea/ (R* T)):: Q
17- @inline (arr:: Arrhenius )(T:: Q ;P:: N = 0.0 ,C:: S = 0.0 ) where {Q<: Real ,N<: Real ,S<: Real } = @fastmath arr. A* T^ arr. n* exp (- arr. Ea/ (R* T)):: Q
16+ @inline (arr:: Arrhenius )(;T:: Q ,P:: N = 0.0 ,C:: S = 0.0 ) where {Q<: Real ,N<: Real ,S<: Real } = @fastmath arr. A* T^ arr. n* exp (- arr. Ea/ (R* T))
17+ @inline (arr:: Arrhenius )(T:: Q ;P:: N = 0.0 ,C:: S = 0.0 ) where {Q<: Real ,N<: Real ,S<: Real } = @fastmath arr. A* T^ arr. n* exp (- arr. Ea/ (R* T))
1818export Arrhenius
1919
2020@with_kw struct PdepArrhenius{T<: Real ,Q<: AbstractRateUncertainty ,Z<: AbstractRate } <: AbstractRate
@@ -28,10 +28,10 @@ PdepArrhenius(Ps::Array{Q,1},arrs::Array{Z,1}) where {Q<:Real,Z<:AbstractRate} =
2828 inds = getBoundingIndsSorted (P,parr. Ps):: Tuple{Int64,Int64}
2929
3030 if inds[2 ] == - 1
31- return @inbounds parr. arrs[inds[1 ]](T= T):: Q
31+ return @inbounds parr. arrs[inds[1 ]](T= T)
3232 else
33- @inbounds highk = parr. arrs[inds[2 ]](T= T):: Q
34- @inbounds lowk = parr. arrs[inds[1 ]](T= T):: Q
33+ @inbounds highk = parr. arrs[inds[2 ]](T= T)
34+ @inbounds lowk = parr. arrs[inds[1 ]](T= T)
3535 @inbounds Plow = parr. Ps[inds[1 ]]
3636 @inbounds Phigh = parr. Ps[inds[2 ]]
3737 return @inbounds @fastmath lowk* 10 ^ (log10 (P/ Plow)/ log10 (Phigh/ Plow)* log10 (highk/ lowk))
@@ -44,10 +44,10 @@ export PdepArrhenius
4444 unc:: Q = EmptyRateUncertainty ()
4545end
4646
47- @inline function (marr:: MultiArrhenius )(;T:: Q = nothing ,P:: R = 0.0 ,C:: S = 0.0 ) where {Q<: Real ,R<: Real ,S<: Real }
47+ @inline function (marr:: MultiArrhenius )(;T:: Q ,P:: R = 0.0 ,C:: S = 0.0 ) where {Q<: Real ,R<: Real ,S<: Real }
4848 out = 0.0
4949 for arr in marr. arrs
50- @fastmath out += arr (T):: Q
50+ @fastmath out += arr (T)
5151 end
5252 return out
5353end
@@ -58,10 +58,10 @@ export MultiArrhenius
5858 unc:: Q = EmptyRateUncertainty ()
5959end
6060
61- @inline function (parr:: MultiPdepArrhenius )(;T:: Q = nothing ,P:: R = 0.0 ,C:: S = 0.0 ) where {Q<: Real ,R<: Real ,S<: Real }
61+ @inline function (parr:: MultiPdepArrhenius )(;T:: Q ,P:: R = 0.0 ,C:: S = 0.0 ) where {Q<: Real ,R<: Real ,S<: Real }
6262 out = 0.0
6363 for pdar in parr. parrs
64- @fastmath out += pdar (T= T,P= P):: Q
64+ @fastmath out += pdar (T= T,P= P)
6565 end
6666 return out
6767end
@@ -73,7 +73,7 @@ export MultiPdepArrhenius
7373 unc:: Q = EmptyRateUncertainty ()
7474end
7575
76- (tbarr:: ThirdBody )(;T:: Q = nothing ,P:: R = 0.0 ,C:: S = nothing ) where {Q<: Real ,R<: Real ,S<: Real } = C* (tbarr. arr (T):: Q )
76+ (tbarr:: ThirdBody )(;T:: Q = nothing ,P:: R = 0.0 ,C:: S = nothing ) where {Q<: Real ,R<: Real ,S<: Real } = C* (tbarr. arr (T))
7777export ThirdBody
7878
7979@with_kw struct Lindemann{N<: Integer ,K<: AbstractFloat ,Q<: AbstractRateUncertainty } <: AbstractFalloffRate
@@ -84,8 +84,8 @@ export ThirdBody
8484end
8585
8686@inline function (lnd:: Lindemann )(;T:: Q = nothing ,P:: R = 0.0 ,C:: S = nothing ) where {Q<: Real ,R<: Real ,S<: Real }
87- k0 = lnd. arrlow (T= T):: Q
88- kinf = lnd. arrhigh (T= T):: Q
87+ k0 = lnd. arrlow (T= T)
88+ kinf = lnd. arrhigh (T= T)
8989 @fastmath Pr = k0* C/ kinf
9090 return @fastmath kinf* Pr/ (1.0 + Pr)
9191end
@@ -102,9 +102,9 @@ export Lindemann
102102 unc:: R = EmptyRateUncertainty ()
103103end
104104
105- @inline function (tr:: Troe )(;T:: Q = nothing ,P:: R = 0.0 ,C:: S = nothing ) where {Q<: Real ,R<: Real ,S<: Real }
106- k0 = tr. arrlow (T= T):: Q
107- kinf = tr. arrhigh (T= T):: Q
105+ @inline function (tr:: Troe )(;T:: Q ,P:: R = 0.0 ,C:: S = nothing ) where {Q<: Real ,R<: Real ,S<: Real }
106+ k0 = tr. arrlow (T= T)
107+ kinf = tr. arrhigh (T= T)
108108 @fastmath Pr = k0* C/ kinf
109109
110110 if tr. T1 == 0.0 && tr. T3 == 0.0
119119 @fastmath c = - 0.4 - 0.67 * log10 (Fcent)
120120 @fastmath F = 10 ^ (log10 (Fcent)/ (1 + ((log10 (Pr)+ c)/ (n- d* (log10 (Pr))))^ 2 ))
121121 end
122- return @fastmath kinf* (Pr/ (1 + Pr))* F:: S
122+ return @fastmath kinf* (Pr/ (1 + Pr))* F
123123end
124124export Troe
125125
200200@inline function getkineticstype (kin:: Chebyshev )
201201 return (string (typeof (kin). name),kin. Tmin,kin. Tmax,kin. Pmin,kin. Pmax,size (kin. coefs)) # different opt functions, but always can do
202202end
203- export getkineticstype
203+ export getkineticstype
0 commit comments