...
3. At the exit of the pipe where the flow is fully-developed, we can define the error in the centerline velocity as
where uc is the centerline value from FLUENT and uexact is the corresponding exact (analytical) value. We expect the error to take the form
where the coefficient K and power p depend upon the order of accuracy of the discretization. Using MATLAB, perform a linear least squares fit of
to obtain the coefficients p and K. Plot ϵ vs. ∆r (using symbols) on a log-log plot. Add a line corresponding to the least-squares fit to this plot.
...