In the development of a terrestrial planet, the stage of *flooding* occurred when dense material settled to the core and less dense to the outer parts.
During the Layer formation or differentiation stage , In a means to minimizegravitational energy, dense material migrate from the crust to the core while fluid or molten material rises through the crust.
In this process materials are separated base on the variation in density.