In 1841 and 1842, subsequent experiments showed that the amount of heat generated was proportional to the chemical energy used in the voltaic pile that generated the template. This led Joule to reject the caloric theory (at that time the dominant theory) in favor of the mechanical theory of heat (according to which heat is another form of energy).