File Exchange

image thumbnail

Finite Difference Method to solve Heat Diffusion Equation in Two Dimensions.

version 1.0 (1.88 KB) by

Heat diffusion equation of the form Ut=a(Uxx+Uyy) is solved numerically. All units are arbitrary.



View License

This code employs finite difference scheme to solve 2-D heat equation. A heated patch at the center of the computation domain of arbitrary value 1000 is the initial condition. Bottom wall is initialized at 100 arbitrary units and is the boundary condition. As the algorithm marches in time, heat diffusion is illustrated using a movie function at every 50th time step. Code also indicates, if solution reaches steady state within predetermined number of iterations. All the units are arbitrary.

Comments and Ratings (3)

Tony Martin


Are you using FTCS method or BTCS method for this code?


KC (view profile)

MATLAB Release
MATLAB 7.10 (R2010a)

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video