Electrical to thermal energy transformation