0

I have the following equation describing frictional losses in a pipe for fluid flow. $$ \frac{1}{f} = -2 \cdot \log_{10}\bigg(\frac{\frac{r}{2 \cdot r_w}}{3.7} + \frac{2.51}{\text{Re}\cdot \sqrt{f}}\bigg) $$

In the above equation $$r, r_w$$ are constants - lets say equal to $1$. $\text{Re}$ is the Reynolds number that will be updated over time with the available information. The unknown is $f$ in the above equation and I am not sure how to simplify this expression so that I can write a C++ code.

I tried to input constants and use the desmos online plotting tool which works but in my case as $\text{Re}$ keeps changing consequently $f$ is not a constant value anymore.

miracle173
  • 11,049
SPa
  • 1

0 Answers0