文摘
A simplified generalized finite difference solution using MATLAB has been developed for steady-state heat transfer in a bar, slab, cylinder, and sphere. Solutions are given for all types of boundary conditions: temperature and flux boundary conditions. A generalized solution for 2D heat transfer in a slab is also developed. Solutions have been compared with analytical solutions and there is very good agreement between computed and analytical solutions. The solution can easily be extended to similar types of situations in fluid flow and mass transport operations.