Phase field simulation of dendrite growth with boundary heat flux