Fixed that for you. For a round pipe inlet, a rule of thumb is that the velocity at one inlet diameter from from the inlet is 0.1 times the velocity in the inlet. That includes a volume three times the diameter of the inlet, and one inlet diameter think. The velocity through that volume varies by a full order of magnitude, which makes the problem computationally challenging. But it gives you a starting point. Just make a guess at the volume of fluid moving at peak velocity with kinetic energy equal to that of the actual volume, which is moving at a wide range of velocities. It's a negligibly small source of error for such a long pipe, so your estimate needs to be only good enough to make a numerically stable solution.