Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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
ϵ = K∆rp
Image Added

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
ln ϵ = ln K + p ln ∆r
Image Added

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.

...