Skip to content

Commit 2ffc98b

Browse files
hwpangmjohnson541
authored andcommitted
Calculate rates for fragmentbased film growth internal interface
1 parent f1fc7fb commit 2ffc98b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/Simulation.jl

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -739,7 +739,11 @@ function rates(ssys::Q,t::X) where {Q<:SystemSimulation,X<:Real}
739739
index += length(vkfs[k])
740740
end
741741
for inter in ssys.interfaces
742-
if hasproperty(inter,:reactions)
742+
if inter isa FragmentBasedReactiveFilmGrowthInterfaceConstantT
743+
kfs,krevs=getkfskrevs(inter)
744+
@views rts[index:index+length(kfs)-1] = getrates(inter.rxnarray,cstot,kfs,krevs).*vV[inter.domaininds[1]]
745+
index += length(kfs)
746+
elseif hasproperty(inter,:reactions)
743747
kfs,krevs=getkfskrevs(inter,vT[inter.domaininds[1]],vT[inter.domaininds[2]],vphi[inter.domaininds[1]],vphi[inter.domaininds[2]],vGs[inter.domaininds[1]],vGs[inter.domaininds[2]],cstot)
744748
rts[index:index+length(kfs)-1] = getrates(inter.rxnarray,cstot,kfs,krevs).*inter.A
745749
index += length(kfs)

0 commit comments

Comments
 (0)