Ohm's Law and Thermal Energy Generation