A dye diffuses in still water with diffusion coefficient
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 dye diffuses in still water with diffusion coefficient D=1.0×10−9m2s−1. Its concentration c(x,t) is discretised on a grid with spacing Δx=0.50mm and advanced with the explicit scheme cjn+1=αcj−1n+(1−2α)cjn+αcj+1n using a time step Δt=100s.
(a) Compute α and confirm the run is stable.
(b) At some instant three neighbouring nodes read cj−1n=0.20molm−3, cjn=0.50molm−3, cj+1n=0.10molm−3. Find cjn+1.