The science of heat and temperature and of the laws governing the conversion of heat into mechanical, electrical, or chemical energy.