Phase field modelling of phase separation and dendrite growth