Closed uliw closed 1 year ago
never mind, I had a look at the source, and now understand that the above only provides the rates, but that the actual chemisrty is handled afterwards by
y = np.insert(np.diff(yy[:,0]), 0, 0)
for i in range(len(time)):
t = time[i]
self.add(element, y[i])
yield(t, self)
I am trying to model pyrite dissolution and set up a rate function that does increase the total Fe, however, the S-concentration does not change. Using the odeint approach, it is evident that I only return the rate for Fe, but I am unclear on how to map a second return value so that it affects the S-concentration. I use the following code