We present a new multiphase model of core-mantle ifferentiation in growing planetary embryos, we develop a numerical method to resolve the equations, and we analyze simulations of impact-trigerred global metal-silicate segregation