I determined the area weighted average pressure drop between inlet and outlet and used ((2*dell_p*D)/(L*rho*velocity ^2)) to determine friction factor. But the results do not match the expected results for a turbulent pipe flow. Any suggestion is appreciated.