Homogeneous heating of cylindrical samples using Joule effect