In 1845 James Prescott Joule discovered the link between mechanical work and the generation of heat