Three-dimensional needle network model for dendritic growth with fluid flow