Skip to content

Commit 154e70e

Browse files
authored
Merge pull request #144 from ReactionMechanismGenerator/edge_analysis
Edge analysis
2 parents 2f4202e + 20c5656 commit 154e70e

File tree

14 files changed

+14487
-376
lines changed

14 files changed

+14487
-376
lines changed

Manifest.toml

Lines changed: 400 additions & 359 deletions
Large diffs are not rendered by default.

Project.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ ForwardDiff = "f6369f11-7733-5829-9624-2563aa707210"
1414
Images = "916415d5-f1e6-5110-898d-aaa5f9f070e0"
1515
IterTools = "c8e1da08-722c-5040-9ed9-7db0dc04731e"
1616
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
17+
Logging = "56ddb016-857b-54e1-b83d-db4d58db5568"
1718
LsqFit = "2fda8390-95c7-5789-9bda-21331edee243"
1819
ModelingToolkit = "961ee093-0014-501f-94e3-6117800e7a78"
1920
OrdinaryDiffEq = "1dea7af3-3e70-54e6-95c3-0bf5283fa5ed"

src/Calculators/Rate.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ export MultiPdepArrhenius
9191
@with_kw struct ThirdBody{N<:Integer,K<:AbstractFloat,Q<:AbstractRateUncertainty} <: AbstractFalloffRate
9292
arr::Arrhenius
9393
efficiencies::Dict{N,K} = Dict()
94+
nameefficiencies::Dict{String,K} = Dict{String,Float64}()
9495
unc::Q = EmptyRateUncertainty()
9596
end
9697

@@ -101,6 +102,7 @@ export ThirdBody
101102
arrhigh::Arrhenius
102103
arrlow::Arrhenius
103104
efficiencies::Dict{N,K} = Dict()
105+
nameefficiencies::Dict{String,K} = Dict{String,Float64}()
104106
unc::Q = EmptyRateUncertainty()
105107
end
106108

@@ -120,6 +122,7 @@ export Lindemann
120122
T1::F
121123
T2::L
122124
efficiencies::Dict{N,K} = Dict()
125+
nameefficiencies::Dict{String,K} = Dict{String,Float64}()
123126
unc::R = EmptyRateUncertainty()
124127
end
125128

src/Domain.jl

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2177,12 +2177,7 @@ end
21772177
export jacobianp!
21782178

21792179
function getreactionindices(ig::Q) where {Q<:AbstractPhase}
2180-
arr = zeros(Int64,(6,length(ig.reactions)))
2181-
for (i,rxn) in enumerate(ig.reactions)
2182-
arr[1:length(rxn.reactantinds),i] = rxn.reactantinds
2183-
arr[4:length(rxn.productinds)+3,i] = rxn.productinds
2184-
end
2185-
return arr
2180+
return deepcopy(ig.rxnarray)
21862181
end
21872182
export getreactionindices
21882183

@@ -2243,9 +2238,9 @@ export getreactionindices
22432238
@inbounds sensrxns[i] = ElementaryReaction(
22442239
index=i,
22452240
reactants=SVector(reactants...),
2246-
reactantinds=SVector(reactantinds...),
2241+
reactantinds=MVector(reactantinds...),
22472242
products=SVector(products...),
2248-
productinds=SVector(productinds...),
2243+
productinds=MVector(productinds...),
22492244
kinetics=rxn.kinetics,
22502245
radicalchange=rxn.radicalchange,
22512246
pairs=rxn.pairs

0 commit comments

Comments
 (0)