The preliminary experimental results as well as modeling the heating of thin-foil materials during the passage of high-energy electrons with energy of 15 MeV are presented. Foils of 50 μm titanium, 50 μm aluminum and 125 μm Kapton® were chosen as the test targets. A calculation technique has been developed, which consists of automating the finite difference method applying Python programming language tools. These tools allowed solving the problem of heat distribution in the thin foil, taking into account the ionization losses of the primary electron beam and the black body radiation. The data on the surface temperature distribution of the research samples were obtained. The time for establishing thermal equilibrium was determined taking into account the distribution of the electron beam current density. It is shown that optimization of the main parameters of the high-energy electron beam beam (for example the current density) makes it possible to neglect the thermal loads on these films, which was confirmed during bench tests at 30 MeV electron accelerator of the IHEPNP NSC KIPT.