This paper presents the results of modelling the heat transfer process in heterogeneous media with the assumption that part of the heat flux is dispersed in the air around the beam. The heat transfer process in a solid material (beam) can be described by an integer order partial differential equation. However, in heterogeneous media, it can be described by a sub- or hyperdiffusion equation which results in a fractional order partial differential equation. Taking into consideration that part of the heat flux is dispersed into the neighbouring environment we additionally modify the main relation between heat flux and the temperature, and we obtain in this case the heat transfer equation in a new form. This leads to the transfer function that describes the dependency between the heat flux at the beginning of the beam and the temperature at a given distance. This article also presents the experimental results of modelling real plant in the frequency domain based on the obtained transfer function.