The effect of porous material position on the heat transfer inside a pipe working in a turbulent regime is studied here to obtain a detailed understanding of the heat transfer enchantment mechanisms in different porous substrate positions. To this end, an in-house Fortran code is developed to solve the governing equations using the finite volume method and SIMPLE algorithm. Turbulent flow in porous media is modeled using a modified version of k–ε model. The flow field and heat transfer inside the partially filled pipe are investigated for the two cases of central and boundary configurations. The porous and flow characteristics including Reynolds number, Darcy number, the conductivity ratios of solid to fluid and the thickness of inserted porous layer are varied and the heat transfer performance is studied in different cases. It is observed that two entirely different phenomena enhance the heat transfer in central and boundary configurations. While the channeling of fluid between the porous media and the pipe wall highly affects the heat transfer performance in the former, the thermal conductivity of porous media plays a highly critical role in the latter configuration. It is shown that, for the same filling ratio, inserting the porous layer at the core of the pipe is more effective than placing it at the wall. Investigating porous materials with different solid conductivities revealed that covering the pipe wall with a porous material is justified only for solid matrixes with high thermal conductivities.