Question: Please use python!!! For fluid flow in pipes, friction is described by a dimensionless number, the Fanning friction factor f. This factor is dependent on

Please use python!!!Please use python!!! For fluid flow in pipes, friction is described by

For fluid flow in pipes, friction is described by a dimensionless number, the Fanning friction factor f. This factor is dependent on a number of parameters related to the size of the pipe and to the fluid, which can all be represented by another dimensionless quantity, the Reynolds number Re. A formula that predicts f given Re is the von Krmn equation: f1=4log10(Ref)0.4 Typical values for the Reynolds number for turbulent flow are 10,000 to 500,000 and for the Fanning friction factor are 0.001 to 0.01. Using the bisection code discussed in class, write a script to solve for f given a user-supplied value of Re between 2,500 and 1,000,000. Design the function so that it ensures the absolute error in the result is Ea,d=0.000005=5106. Turn in your script and the zero of f. Also, write how many iterations it took for the method to find the root

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!