Processing math: 100%

« Previous
Next »

Crank-Nicolson scheme

The PDE is sampled at points (xi,tn+12) (at the spatial mesh points, but in between two temporal mesh points). tu(xi,tn+12)=α2x2u(xi,tn+12) for i=1,,Nx1 and n=0,,Nt1.

Centered differences in space and time: [Dtu=αDxDxu]n+12i

« Previous
Next »