You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
for (s_idx, (s, rates)) inenumerate(f_func.transport_rates) # Loops through all species with transportation. Here: s_idx is its index among the species with transportations. s is its index among all species (in the species(::ReactionSystem) vector). rates is its rates values (vector length 1 if uniform, else same length as the number of edges).
156
-
for vert_i in1:(f_func.num_verts) # Loops through all vertexes.
f_func.num_species)] # Finds the leaving rate of this species in this vertex. Updates the du vector at that vertex/species combination with the corresponding rate (leaving rate times concentration).
154
+
# s_idx is species index among transport species, s is index among all species
155
+
# rates are the species' transport rates
156
+
for (s_idx, (s, rates)) inenumerate(f_func.transport_rates)
f_func.num_species)] # For the destination of this edge, we want to add the influx term to du. This is ["rates" value for this edge]*[the species concentration in the source vertex].
162
+
# add rates for entering a given vertex via an incoming edge
0 commit comments