A thin rod occupies with its ends held at temperature deviation
PHYSICS · Multi-part · Fermi University Physics · Mathematical Methods for Physics · Numerical and computational mathematics · Numerical and computational mathematics
Error, Chance and the Machine, Ch Approximating a function: interpolation and differentiation
Problem
A thin rod occupies x∈[0,1] with its ends held at temperature deviation θ=0. The steady-state deviation satisfies θ′′(x)=s(x) with s(x)=−π2sin(πx)Km−2, and θ(0)=θ(1)=0. Take four equal intervals of width h=0.25m, giving interior nodes x1=0.25, x2=0.5, x3=0.75m.
((a)) Using the standard three-point central second-difference stencil for θ′′(xi), write the linear system for θ1,θ2,θ3 in terms of h and s(xi).
((b)) Solve the resulting tridiagonal system by elimination (the Thomas algorithm) for θ1,θ2,θ3.
((c)) Compare with the exact solution θ(x)=sin(πx)K and comment on the size of the discrepancy given that the stencil's truncation error is O(h2).