The principals of thermoelectricity were first discovered during the first half of the 19th century, but no practical applications of the principles have been applied until in the second half of the twentieth century. Two major classes of application of thermoelectric devices are heat pumps and power generators. In the former, electrical energy is supplied to transport thermal energy from one location to other locations; while in the latter, thermal energy is converted into electrical energy.