Question

anbox (31184010sents * Microsoft Word - 1-friction facto X Downloads/midcomp.pdf In fluid flow problems, the flow velocity in
0 0
Add a comment Improve this question Transcribed image text
Answer #1
https://trinket.io/python3/88d3a020eb

import matplotlib.pyplot as plt
import numpy as np
import math
def f(x):
e=0.025;
p=701;
mu=0.51e-3;
D=14.64;
tf=e/D;
fp=0.023
return 1/np.sqrt(fp)+2*np.log(tf/3.7065-5.0452*np.log((tf**1.3098)/2.8257+5.8506*(x**(-0.8981)))/x);
def fun(x):
e=0.025;
p=701;
mu=0.51e-3;
D=14.64;
tf=e/D;
yy=-2*np.log(tf/3.7065-5.0452*np.log((tf**1.3098)/2.8257+5.8506*(x**(-0.8981)))/x);
return 1.0/(yy*yy);
def secant(x1, x2, E):
n = 0; xm = 0; x0 = 0; c = 0;
if (f(x1) * f(x2) < 0):
while True:
  
# calculate the intermediate value
x0 = ((x1 * f(x2) - x2 * f(x1)) /
(f(x2) - f(x1)));
  
# check if x0 is root of
# equation or not
c = f(x1) * f(x0);
  
# update the value of interval
x1 = x2;
x2 = x0;
  
# update number of iteration
n += 1;
  
# if x0 is the root of equation
# then break the loop
if (c == 0):
break;
xm = ((x1 * f(x2) - x2 * f(x1)) /
(f(x2) - f(x1)));
  
if(abs(xm - x0) < E):
break;
  
print("Reynolds number =",
round(x0, 6));
print("No. of iterations = ", n);
  
else:
print("Can not find a root in ",
"the given inteval");
return x0;
# Driver code
  
# initializing the values
x1 = 10;
x2 = 1000;
E = 0.001e-2;
Re=secant(x1, x2, E);
Re=np.linspace(3000,500000);
ff=fun(Re);
plt.plot(ff,Re);
plt.show();

Kindly revert for any queries

Thanks.

Add a comment
Know the answer?
Add Answer to:
anbox (31184010sents * Microsoft Word - 1-friction facto X Downloads/midcomp.pdf In fluid flow problems, the flow...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • In fluid flow problems, the flow velocity in a long horizontal pipe depends on the pipe...

    In fluid flow problems, the flow velocity in a long horizontal pipe depends on the pipe material, pipe geometry and fluid properties in addition to the pump power. For a horizontal pipe with a pump, the friction factor can be obtained from many correlations such as Colebrook-White Equation: 1.1098 :-2 log 3.7065 r) 5.0452 -log Re +5.8506 (Re) -0.8981 -) 2.8257 (1) In which, fis the friction factor and is the roughness ratio given by: given by: PDV Re Where...

  • In fluid flow problems, the flow velocity in a long horizontal pipe depends on the pipe...

    In fluid flow problems, the flow velocity in a long horizontal pipe depends on the pipe material, pipe geometry and fluid properties in addition to the pump power. For a horizontal pipe with a pump, the friction factor can be obtained from many correlations such as Colebrook-White Equation: 7--2109 (5.0452 3.7065 Re log --) +5.8506 (Re)-6.8901 (1) 2.8257 In which, fis the friction factor and mi is the roughness ratio given by: given by: Re = obv Where is the...

  • use python program In fluid flow problems, the flow velocity in a long horizontal pipe depends...

    use python program In fluid flow problems, the flow velocity in a long horizontal pipe depends on the pipe material, pipe geometry and fluid properties in addition to the pump power. For a horizontal pipe with a pump, the friction factor can be obtained from many correlations such as Colebrook-White Equation: 1.1090 7--2109 C 5.0452 3.7065 Re log +5.8506 (Re) -6.8901 (1) 2.8257 In which, f is the friction factor and r is the roughness ratio given by: given by:...

  • solve using paython In fluid flow problems, the flow velocity in a long horizontal pipe depends...

    solve using paython In fluid flow problems, the flow velocity in a long horizontal pipe depends on the pipe material, pipe geometry and fluid properties in addition to the pump power. For a horizontal pipe with a pump, the friction factor can be obtained from many correlations such as Colebrook-White Equation: 1.1998 5.0452 (6) log Re 28257 -)} (1) 3.7065 7--2 log +58506 (Re)-0.3981 In which, f is the friction factor and is the roughness ratio given by: given by:...

  • Engineering economy In fluid flow problems, the flow velocity in a long horizontal pipe depends on...

    Engineering economy In fluid flow problems, the flow velocity in a long horizontal pipe depends on the pipe material, pipe geometry and fluid properties in addition to the pump power. For a horizontal pipe with a pump, the friction factor can be obtained from many correlations such as Colebrook-White Equation: 2.100 =-2 logo 5.0452 Re log + 5.8506 (Re)-a) (1) 3.7065 2.4257 In which, fis the friction factor and ris the roughness ratio given by: given by: pDV Where is...

  • 1. Determining fluid flow through pipes and tubes has great relevance in many areas of engineerin...

    1. Determining fluid flow through pipes and tubes has great relevance in many areas of engineerin gase g and science. In engineering, typical applications include the flow of liquids and s through pipelines and cooling systems. Scientists are interested in topics ranging from flow in blood vessels to nutrient transmission through a plant's vascular system. The resistance to flow in such conduits is parameterized by a dimensionless number called the friction factor. For turbulent flow, the Colebrook Equation provides a...

  • Please solve a,b,c,d,e,f 1) A water fountain is to be installed at a remote location by attaching a cast iron pipe directly to a water main through which water is flowing. The entrance to the pipe...

    Please solve a,b,c,d,e,f 1) A water fountain is to be installed at a remote location by attaching a cast iron pipe directly to a water main through which water is flowing. The entrance to the pipe is sharp-edged 15m (K-0.5), and the 15m long piping system involves three 90 bends without vanes (K1.1), a fully open gate valve (K.-0.2), and a fully open angle valve (K-5). If the diameter of the pipe is 2 em and the system is to...

  • Question (20 marks Analysis only required Water at 15°C is discharged freely to atmosphere from a...

    Question (20 marks Analysis only required Water at 15°C is discharged freely to atmosphere from a reservoir at 18 L/s through two horizontal pipes in series and a pump-motor assembly in between as shown in figure below. First pipe-A is made of cast Iron and is 20m in length with a 60mm dia. The second pipe-B is 35 m in length, has a 40 mm diameter with friction factor 0.0331. The pipe entrance from reservoir is sharp edged. Neglect any...

  • please show clear steps solution. Prob-2 If the flow of 0.10 m/s of water is to...

    please show clear steps solution. Prob-2 If the flow of 0.10 m/s of water is to be maintained in the system shown, what power must be added to the water by the pump? The pipe is made of steel and is 20 cm in diameter. Use table 10.4 and AS for ks ? and ? Elevation = 13 m Elevation = 10 m Water T-10°C 40 m 40 m Table 104 EQUIVALENT SAND-GRAIN ROUGHNESS, FOR VARIOUS PIPE MATERIALS Boundary Material...

  • Fluid Mechanics Chapter 7 Intro QUESTION 1 If the number of parameters in a problem is...

    Fluid Mechanics Chapter 7 Intro QUESTION 1 If the number of parameters in a problem is m and the number of primary dimensions is 3, then the number of resultant Pl terms is QUESTION 2 If an object travels with a velocity V, a distance, s, in time t. The Pl term formed by using the three variables is QUESTION 3 Friction in the pipe: The shear stress on the pipe-walls (Tw) is a function of flow velocity, V, fluid...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT