View Single Post
edge333
#3
Feb28-12, 04:16 PM
P: 12
Yeah, it said the error was on line 47 which is the second line of this equation (internal finite difference equation):

conc (i, n + 1) = conc (i, n) - u * (dt / dx) * (conc (i, n) - conc (i - 1, n)) &
+ Dl * (dt / (dx**2)) * (conc (i + 1, n) - 2 * conc (i, n) + conc (i - 1, n)) - k * dt * conc (i, n)