 The Earth is cooling, and the resulting heat flow generates the Earth's magnetic field through the geodynamo and plate tectonics through mantle convection.The main sources of heat are the primordial heat and radioactivity, although there are also contributions from phase transitions.Heat is mostly carried to the surface by thermal convection, although there are two thermal boundary layers – the core-mantle boundary and the lithosphere – in which heat is transported by conduction.