According to Joule’s law of heating