For fluid flow in pipes, friction is described by a dimensionless number, the Fanning friction factor (f). The Fanning friction factor is dependent on a number of parameters related to the size of the pipe and 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 Karman equation: 7= 4 log10 (Re/7) – 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. a) Develop a function that uses bisection to solve for f given a user-supplied value of Re between 2,500 and 1,000,000. b) Design the function so that it ensures that the absolute error in the result is less than 0.000005 c) What is the value (or closest value) of absolute error (unto 4 decimal points) after the 3rd iterations at

Structural Analysis
6th Edition
ISBN:9781337630931
Author:KASSIMALI, Aslam.
Publisher:KASSIMALI, Aslam.
Chapter2: Loads On Structures
Section: Chapter Questions
Problem 1P
icon
Related questions
Question
100%

2

For fluid flow in pipes, friction is described by a dimensionless number, the Fanning friction factor (f). The Fanning friction factor is dependent on a number of parameters related to the size of the pipe and 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 Karman equation:

\[
\frac{1}{\sqrt{f}} = 4 \log_{10} \left( \frac{Re}{\sqrt{f}} \right) - 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.

a) Develop a function that uses **bisection** to solve for f given a user-supplied value of Re between 2,500 and 1,000,000.

b) Design the function so that it ensures that the absolute error in the result is less than 0.000005.

c) What is the value (or closest value) of absolute error (up to 4 decimal points) after the 3rd iteration at Re = 10,000. Use the typical values of the Fanning factor as the initial guesses for the bisection methods.
Transcribed Image Text:For fluid flow in pipes, friction is described by a dimensionless number, the Fanning friction factor (f). The Fanning friction factor is dependent on a number of parameters related to the size of the pipe and 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 Karman equation: \[ \frac{1}{\sqrt{f}} = 4 \log_{10} \left( \frac{Re}{\sqrt{f}} \right) - 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. a) Develop a function that uses **bisection** to solve for f given a user-supplied value of Re between 2,500 and 1,000,000. b) Design the function so that it ensures that the absolute error in the result is less than 0.000005. c) What is the value (or closest value) of absolute error (up to 4 decimal points) after the 3rd iteration at Re = 10,000. Use the typical values of the Fanning factor as the initial guesses for the bisection methods.
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps

Blurred answer
Knowledge Booster
Sectioning basics
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, civil-engineering and related others by exploring similar questions and additional content below.
Similar questions
Recommended textbooks for you
Structural Analysis
Structural Analysis
Civil Engineering
ISBN:
9781337630931
Author:
KASSIMALI, Aslam.
Publisher:
Cengage,
Structural Analysis (10th Edition)
Structural Analysis (10th Edition)
Civil Engineering
ISBN:
9780134610672
Author:
Russell C. Hibbeler
Publisher:
PEARSON
Principles of Foundation Engineering (MindTap Cou…
Principles of Foundation Engineering (MindTap Cou…
Civil Engineering
ISBN:
9781337705028
Author:
Braja M. Das, Nagaratnam Sivakugan
Publisher:
Cengage Learning
Fundamentals of Structural Analysis
Fundamentals of Structural Analysis
Civil Engineering
ISBN:
9780073398006
Author:
Kenneth M. Leet Emeritus, Chia-Ming Uang, Joel Lanning
Publisher:
McGraw-Hill Education
Sustainable Energy
Sustainable Energy
Civil Engineering
ISBN:
9781337551663
Author:
DUNLAP, Richard A.
Publisher:
Cengage,
Traffic and Highway Engineering
Traffic and Highway Engineering
Civil Engineering
ISBN:
9781305156241
Author:
Garber, Nicholas J.
Publisher:
Cengage Learning