you can use comsol multiphysics software to treat heat transfer problem using finite element method (FEM). Under comsol multiphysics, this library called PDE. I recommend this tutorial :
Thank you Houssem Rezgui. But, I want to study FEM from beginning and code for Matlab or programming C. If you have any idea about how to study FEM, it will help for to analyze the reaction diffusion systems in future.
I am working on nanoscale heat transport across nanostructures and i use the FEM method to treat the ballistic-diffusive heat conduction. Sorry, i dont have many idea about MATLAB and C, but you can find some information in forum and books.
Programming the Finite Element Method, Fifth Edition (Book)
Actually what to need to do is find a FEM code for elliptic equations (e.g. for -\Delta u + u f = g, with boundary conditions). You can discretise first you time-dependent problem in time (e.g. by applying an Euler implicit scheme), which transforms it to a sequence of elliptic, time discrete problems. These might be nonlinear. You can either rely on the nonlinear solver of your code, or linearise it yourself so that finally you end up with the equation written above (you may check
Article A modified L-Scheme to solve nonlinear diffusion problems
Article A study on iterative methods for solving Richards` equation
)
The linear, elliptic problems can be then solved with the FEM code.