Problem 2¶
This repeats Problem 7 from HW 11
- The Haaland equation relates the friction factor $f$ in turbulent pipe flow to the Reynolds number $Re$.
$$\frac{1}{\sqrt{f}} = -1.8\log_{10}\left[\left(\frac{\epsilon/D}{3.7}\right)^{1.11}+ \frac{6.9}{Re}\right].$$
- Write a function to compute $f(Re, \epsilon/D)$.
- Create an array of 100 $Re$ points that is uniformly spaced on a log scale, for $1000\le Re\le 1\times 10^8$
- On a single plot, compare f versus Re for $\epsilon/D=$0.01, 0.001, 0.0001, 0.0.
- Reproduce the plot shown below. (Line colors don't need to match perfectly.)