Processing math: 100%

 

 

 

Jacobi's algorithm extended to the diffusion equation in two dimensions

We assume that we have a square lattice of length L with equally many mesh points in the x and y directions. Setting the diffusion constant D=1 and using the shorthand notation uxx=2u/x2 etc for the second derivatives and ut=u/t for the time derivative, we have, with a given set of boundary and initial conditions, ut=uxx+uyyx,y(0,L),t>0u(x,y,0)=g(x,y)x,y(0,L)u(0,y,t)=u(L,y,t)=u(x,0,t)=u(x,L,t)0t>0