James Prescott Joule ( 24 December 1818 â `` 11 October 1889 ) was an English physicist , born in Salford , near Manchester . James Prescott Joule FRS ( ; 24 December 1818 -- 11 October 1889 ) was an English physicist and brewer , born in Salford , Lancashire .