Dynamics of the phase inversion process