There is one to one analogy between heat and current as explained below.
1) Heat transfer (H) takes place from a system A at temperature TA, to system B at temperature TB, as there is a temperature gradient (TB - TA). Similarly Current (I) flows from a point A to B if there is a potential gradient i.e. potential difference say (VB - VA).
2) Heat flow/transfer takes place until the temperature of the two systems is equal i.e. thermal equilibrium is reached, whereas current flows until there is zero potential difference.
3) H is proportional to (TB - TA), and I is proportional to (VB - VA)
4) If there is a rod with AB of length 'L' with cross sectional area 'S' and temperature gradient of (TB - TA) between the ends and thermal conductivity being 'K' then
5) H = KS (TB - TA)/L which is a famous heat transfer equation. Similarly
I =
S (VB - VA) / L, where
is electrical conductivity. 6) Further, there is a nice analogy between heat transfer equation and the familiar Ohm's law for electric current. Electric current is charge flow per unit time and is driven by voltage difference. Analogously, heat current H is energy flow per unit time and is driven by temperature difference. We can express RH = L/KS as thermal resistance, then H = (TB - TA)/RH which is Analogous to ohm's law which is I = (VB - VA)/R, where R is electrical resistance.