A species diffuses and also decays by a first-order reaction
PHYSICS · Subjective · Fermi University Physics · Mathematical Methods for Physics · Numerical and computational mathematics · Numerical and computational mathematics
Computational Physics, Ch Rules on a lattice: diffusion, percolation and growth
Problem
A species diffuses and also decays by a first-order reaction, so its concentration obeys ∂t∂c=D∂x2∂2c−kc, with D in m2s−1 and decay rate k in s−1. The explicit scheme steps this forward as cjn+1=cjn+Δt[DΔx2cj+1n−2cjn+cj−1n−kcjn].
(a) Write this update in the weighted-average form cjn+1=αcj−1n+w0cjn+αcj+1n with α=DΔt/Δx2, identify w0, and use the argument that no weight in such an update may be negative to derive the resulting condition on Δt.
(b) A run uses D=5.0×10−6m2s−1, Δx=1.0mm and k=0.020s−1. Find the largest Δt that condition allows, and compare it with the largest Δt allowed on the same grid with the reaction term switched off (k=0).