A rod has both ends held at ambient temperature and is discretised with four interior…
PHYSICS · Multi-part · Fermi University Physics · Mathematical Methods for Physics · Numerical and computational mathematics · Numerical and computational mathematics
Error, Chance and the Machine, Ch Partial differential equations: stability, convergence and solvers
Problem
A rod has both ends held at ambient temperature and is discretised with four interior grid points, numbered 1,…,4. Let ujn be the temperature above ambient at point j after n steps, with u0n=u5n=0. Take the diffusion number α=DΔt/Δx2=1 and the initial temperatures u0=(0,1,1,0)K.
((a)) Write out the Crank-Nicolson step (1−2αT)u1=(1+2αT)u0 in full for these data. Solve it by the tridiagonal elimination of Chapter 2, and give the four pivots and u1.
((b)) Take one explicit step, u1=(1+αT)u0, from the same data at the same α.
((c)) The grid-scale mode of this rod is sin(jθ4) with θ4=4π/5. Find the factor by which each scheme multiplies it in one step, and say which of your two results for u1 can be believed.