Enhancing heat transfer in latent heat thermal energy storage systems is of utmost importance to facilitate the efficient absorption and release of thermal energy. The primary objective of the current study is to investigate the influence of a metal foam layer on heat transfer enhancement in both the heat transfer fluid side and the shell side. The research explores the incorporation of a fixed 30 % foam layer, which can either extend along the tube wall or penetrate deeper into the shell, moving away from the heat transfer fluid tube. A local thermal non-equilibrium two-temperature heat equation model is utilized to mathematically model the interactions within the metal foam embedded in the heat transfer fluid tube and the phase change material domain. The governing equations are solved using the finite element method. The results indicate that adjustments to the inlet pressure and the metal foam shape parameter (FL) can significantly reduce the melting time, with a variation of approximately 40 %. Specifically, at a constant inlet pressure of 750 Pa, the energy storage power at a 90 % charging increases from 32.2 W (FL = 0.75) to 48.7 W (FL = 1.37). A modification of FL shape parameter increased the power output by 34 %.