Early physical processes in the mantle of terrestrial planets