Finite element analysis for heat transfer