Skip to content

Commit 4ba8887

Browse files
committed
include electronchange in reaction reconstruction in phase
1 parent a3b22d5 commit 4ba8887

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/Interface.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ function upgradekinetics(rxns,domain1,domain2)
209209
@assert length(spc) == 1
210210
kin = stickingcoefficient2arrhenius(rxn.kinetics,surfdomain.phase.sitedensity,length(rxn.reactants)-1,spc[1].molecularweight)
211211
newrxns[i] = ElementaryReaction(index=rxn.index,reactants=rxn.reactants,reactantinds=rxn.reactantinds,products=rxn.products,
212-
productinds=rxn.productinds,kinetics=kin,radicalchange=rxn.radicalchange,reversible=rxn.reversible,forwardable=rxn.forwardable,pairs=rxn.pairs)
212+
productinds=rxn.productinds,kinetics=kin,electronchange=rxn.electronchange,radicalchange=rxn.radicalchange,reversible=rxn.reversible,forwardable=rxn.forwardable,pairs=rxn.pairs)
213213
else
214214
newrxns[i] = rxn
215215
end

src/Phase.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ function IdealGas(species,reactions; name="",diffusionlimited=false)
4141
vectuple,vecinds,otherrxns,otherrxninds,posinds = getveckinetics(reactions)
4242
rxns = vcat(reactions[vecinds],reactions[otherrxninds])
4343
rxns = [ElementaryReaction(index=i,reactants=rxn.reactants,reactantinds=rxn.reactantinds,
44-
products=rxn.products,productinds=rxn.productinds,kinetics=rxn.kinetics,
44+
products=rxn.products,productinds=rxn.productinds,kinetics=rxn.kinetics,electronchange=rxn.electronchange,
4545
radicalchange=rxn.radicalchange,reversible=rxn.reversible,forwardable=rxn.forwardable,pairs=rxn.pairs,comment=rxn.comment) for (i,rxn) in enumerate(rxns)]
4646
therm = getvecthermo(species)
4747
rxnarray = getreactionindices(species,rxns)
@@ -80,7 +80,7 @@ function IdealDiluteSolution(species,reactions,solvent; name="",diffusionlimited
8080
vectuple,vecinds,otherrxns,otherrxninds,posinds = getveckinetics(reactions)
8181
rxns = vcat(reactions[vecinds],reactions[otherrxninds])
8282
rxns = [ElementaryReaction(index=i,reactants=rxn.reactants,reactantinds=rxn.reactantinds,
83-
products=rxn.products,productinds=rxn.productinds,kinetics=rxn.kinetics,
83+
products=rxn.products,productinds=rxn.productinds,kinetics=rxn.kinetics,electronchange=rxn.electronchange,
8484
radicalchange=rxn.radicalchange,reversible=rxn.reversible,forwardable=rxn.forwardable,pairs=rxn.pairs,comment=rxn.comment) for (i,rxn) in enumerate(rxns)]
8585
therm = getvecthermo(species)
8686
rxnarray = getreactionindices(species,rxns)
@@ -120,7 +120,7 @@ function IdealSurface(species,reactions,sitedensity;name="",diffusionlimited=fal
120120
vectuple,vecinds,otherrxns,otherrxninds,posinds = getveckinetics(reactions)
121121
rxns = vcat(reactions[vecinds],reactions[otherrxninds])
122122
rxns = [ElementaryReaction(index=i,reactants=rxn.reactants,reactantinds=rxn.reactantinds,
123-
products=rxn.products,productinds=rxn.productinds,kinetics=rxn.kinetics,
123+
products=rxn.products,productinds=rxn.productinds,kinetics=rxn.kinetics,electronchange=rxn.electronchange,
124124
radicalchange=rxn.radicalchange,reversible=rxn.reversible,forwardable=rxn.forwardable,pairs=rxn.pairs,comment=rxn.comment) for (i,rxn) in enumerate(rxns)]
125125
therm = getvecthermo(species)
126126
rxnarray = getreactionindices(species,rxns)
@@ -161,7 +161,7 @@ function FragmentBasedIdealFilm(species, reactions; name="", diffusionlimited=fa
161161
vectuple,vecinds,otherrxns,otherrxninds,posinds = getveckinetics(reactions)
162162
rxns = vcat(reactions[vecinds],reactions[otherrxninds])
163163
rxns = [ElementaryReaction(index=i,reactants=rxn.reactants,reactantinds=rxn.reactantinds,
164-
products=rxn.products,productinds=rxn.productinds,kinetics=rxn.kinetics,
164+
products=rxn.products,productinds=rxn.productinds,kinetics=rxn.kinetics,electronchange=rxn.electronchange,
165165
radicalchange=rxn.radicalchange,reversible=rxn.reversible,forwardable=rxn.forwardable,pairs=rxn.pairs,
166166
fragmentbasedreactants=rxn.fragmentbasedreactants,fragmentbasedreactantinds=rxn.fragmentbasedreactantinds,
167167
fragmentbasedproducts=rxn.fragmentbasedproducts,fragmentbasedproductinds=rxn.fragmentbasedproductinds,

0 commit comments

Comments
 (0)