Skip to content

Commit

Permalink
fix FragmentBasedReactiveFilmGrowthInterfaceConstantT interface
Browse files Browse the repository at this point in the history
  • Loading branch information
mjohnson541 committed Sep 25, 2024
1 parent a871c47 commit a80848b
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/Interface.jl
Original file line number Diff line number Diff line change
Expand Up @@ -456,9 +456,12 @@ function FragmentBasedReactiveFilmGrowthInterfaceConstantT(domainfilm, domain2,

rxnarray, fragmentbasedrxnarray = getfragmentbasedinterfacereactioninds(domainfilm, domain2, reactions)

kfs = getkf.(reactions, nothing, T, 0.0, 0.0, Ref([]), 0.0, 0.0)
Kc = getKc.(reactions, domainfilm.phase, domain2.phase, Ref(domainfilm.Gs), Ref(domain2.Gs), T, 0.0)
krevs = kfs ./ Kc
M,Nrp1,Nrp2 = getstoichmatrix(domainfilm,domain2,reactions)
Gpart = ArrayPartition(domainfilm.Gs,domain2.Gs)
dGrxns = -M*Gpart
kfs = getkf.(reactions,nothing,T,0.0,0.0,Ref([]),0.0,0.0,dGrxns,0.0)
Kc = getKcs(domain1.phase,domain2.phase,T,Nrp1,Nrp2,dGrxns)
krevs = kfs./Kc

M, Nrp1, Nrp2 = getstoichmatrix(domainfilm, domain2, reactions)
reversibility = Array{Bool,1}(getfield.(reactions, :reversible))
Expand Down

0 comments on commit a80848b

Please sign in to comment.