Numerical Methods for Engineers
Numerical Methods for Engineers
7th Edition
ISBN: 9780073397924
Author: Steven C. Chapra Dr., Raymond P. Canale
Publisher: McGraw-Hill Education
bartleby

Videos

Textbook Question
Book Icon
Chapter 8, Problem 46P

Repeat Prob. 8.45, but incorporate the fact that the friction factor can be computed with the von Karman equation,

1 f = 4 log 10 ( Re f ) 0.4

where Re = the Reynolds number

Re = ρ V D μ

where V = the velocity of the fluid in the pipe ( m/s ) and μ = dynamic viscosity ( N s/m 2 ) . Note that for a circular pipe V = 4 Q / π   D 2 . Also, assume that the fluid has a viscosity of 1.79 × 10 5 N s/m 2 .

Expert Solution & Answer
Check Mark
To determine

To calculate: The flow in every pipe length shown in Fig. P8.45 by writing a program in a mathematics software package, if the friction factor can be computed with the von Karman equation, 1f=4log10(Ref)0.4.

Answer to Problem 46P

Solution:

Therefore, the flows in each pipe length in m3/s are,

Q1=1, Q2=0.8372, Q3=0.1627, Q4=0.0892, Q5=0.0735, Q6=0.0430, Q7=0.0304, Q8=0.0720, Q9=1.3284, and Q10=2.1656.

Explanation of Solution

Given Information:

Refer to Figure P8.45.

Refer to the problem 8.45.

A fluid is pumped into the network of pipes shown in Fig. P8.45. At steady state, the following flow balances must hold,

Q1=Q2+Q3Q3=Q4+Q5Q5=Q6+Q7

Here, Qi is the flow in the pipe.

Q1=1 m3/s, D=500 mm, f=0.005 and ρ=1.23 kg/m3.

Pipe lengths are either 2 m, 8 m or 4 m.

Write the von Karman equation,

1f=4log10(Ref)0.4

Where, Re is the Reynolds Number. The formula to calculate Re is shown below,

Re=ρVDμ

Where, V is the velocity of the fluid in the pipe[m/s]

For circular pipes V is obtained as following,

V=4QπD2

The viscosity of the fluid is 1.79×105 Ns/m2.

Formula Used:

Write the expression for the pressure drop.

ΔP=16fLpπ22D5Q2

Here, ΔP is the pressure drop (Pa), f is the friction factor, L is the pipe length(m), ρ is the fluid density(kg/m3) and D is the pipe diameter (m).

For circular pipes V is obtained as following,

V=4QπD2

Calculation:

The Pipe sectional flow is available only for pipe 1 thus, to calculate the velocity of the fluid in the all pipe use sectional flow data which will help in calculating the Reynolds Number and in turn the friction factor from the Von-Karman Equation.

Here 10 different friction factor values will be available thus, the need necessary changes to the pressure calculation.

Use the Bisection Algorithm in MATLAB to decode the Von-Karman Equation and find out the root.

Hence unlike the previous sum where friction factor was constant; here 10 different friction factor values will be available and the necessary changes need to be incorporated in the pressure calculation.

Use the Bisection Algorithm in MATLAB to decode the Von-Karman Equation and find out the root.

Consider the following MATLAB code for the Bisection Algorithm,

%consider the input of the Reynolds number

Re=input('Enter the value for Reynolds number ');

%Define the Von Karman Equation

f =@(x)(1/(sqrt(x)))-4*log10(Re*sqrt(x))+0.4;

%the initial estimates Assigning

a =0.001;%Lower bracketing limit

b =0.01;%Upper bracketing limit

c =(a + b)/2;%for root location Bisecting the interval

hold=c;% calculation for absolute error

ea=1;%Initial assignment to run the while loop

iter=0;

whileea>0.000005%Setting required error condition

if( f(c)==0)% the for loop will be broken out if the root is landed upon.

break;%For pre-mature exit out of the loop.

%Or else, setting the lower limits amd new upper

elseif( f(a)*f(c)<0)

b = c;

else

a = c;

end

c =(a + b)/2;%for root location Bisect the interval

ea=abs((c-hold)/c)*100;%Absolute error calculation

hold=c;%error calculation

iter=iter+1;

end

%Display the results

fprintf('The root occurs at x = %d\n',c);

fprintf('Number of iterations needed is %d\n',iter);

Solve for Pipe 1,

Consider the following formula for V,

V=4Q1πD2

Substitute the values,

V=4×1π×0.52=5.0929m/s

Consider the following formula for Reynolds Number,

Re=ρVDμ

Substitute the values,

Re=1.23×5.0929×0.51.79×105=174979

Hence, Re=174979

Consider the following MATLAB session to obtain the output,

>> VonKarman8_45P

Enter the value for Reynolds number 174979

The root occurs at x = 4.016151e-003

Number of iterations needed is 25

Hence: f1=0.004

Solve for Pipe 2,

Consider the following formula for V,

V=4Q2πD2

Substitute the values,

V=4×0.9368π×0.52=4.7710m/s

Consider the following formula for Reynolds Number,

Re=ρVDμ

Substitute the values,

Re=1.23×4.7710×0.51.79×105=163919

Hence, Re=163919.

Consider the following MATLAB session to obtain the output,

>> VonKarman8_45P

Enter the value for Reynolds number 163919

The root occurs at x = 4.068655e-003

Number of iterations needed is 25

Hence: f2=0.004

For Pipe 3:

Consider the following formula for V,

V=4Q3πD2

Substitute the values,

V=4×0.0631π×0.52=0.3213m/s

Consider the following formula for Reynolds Number,

Re=ρVDμ

Substitute the values,

Re=1.23×0.3213×0.51.79×105=11039

Hence, Re =110039.

Consider the following MATLAB session to obtain the output,

>> VonKarman8_45P

Enter the value for Reynolds number 110039

The root occurs at x = 4.411787e-003

Number of iterations needed is 25

Hence: f3=0.007

For Pipe 4:

Consider the following formula for V,

V=4Q4πD2

Substitute the values,

V=4×0.0492π×0.52=0.2505m/s

Consider the following formula for Reynolds Number,

Re=ρVDμ

Substitute the values,

Re=1.23×0.2505×0.51.79×105=8606

Hence, Re=8606

Consider the following MATLAB session to obtain the output,

>> VonKarman8_45P

Enter the value for Reynolds number 8606

The root occurs at x = 8.043464e-003

Number of iterations needed is 24

Hence: f4=0.008

For Pipe 5:

Consider the following formula for V,

V=4Q5πD2

Substitute the values,

V=4×0.0139π×0.52=0.0707m/s

Consider the following formula for Reynolds Number,

Re=ρVDμ

Substitute the values,

Re=1.23×0.0707×0.51.79×105=2429

Hence, Re=2429

Consider the following MATLAB session to obtain the output,

>> VonKarman8_45P

Enter the value for Reynolds number 2429

The root occurs at x = 1.000000e-002

Number of iterations needed is 24

Hence: f5=0.01

For Pipe 6:

Consider the following formula for V,

V=4Q6πD2

Substitute the values,

V=4×0.0081π×0.52=0.0412m/s

Consider the following formula for Reynolds Number,

Re=ρVDμ

Substitute the values,

Re=1.23×0.0412×0.51.79×105=1415

Hence, Re=1415

Consider the following MATLAB session to obtain the output,

>> VonKarman8_45P

Enter the value for Reynolds number 1415

The root occurs at x = 1.000000e-002

Number of iterations needed is 24

Hence: f6=0.01

For Pipe 7:

Consider the following formula for V,

V=4Q7πD2

Substitute the values,

V=4×0.0057π×0.52=0.0290m/s

Consider the following formula for Reynolds Number,

Re=ρVDμ

Substitute the values,

Re=1.23×0.0290×0.51.79×105=996

Hence Re=996

Consider the following MATLAB session to obtain the output,

>> VonKarman8_45P

Enter the value for Reynolds number 996

The root occurs at x = 1.000000e-002

Number of iterations needed is 24

Hence: f7=0.01

For Pipe 8:

Consider the following formula for V,

V=4Q8πD2

Substitute the values,

V=4×0.0672π×0.52=0.3422m/s

Consider the following formula for Reynolds Number,

Re=ρVDμ

Substitute the values,

Re=1.23×0.3422×0.51.79×105=11757

Hence Re=11757.

Consider the following MATLAB session to obtain the output,

>> VonKarman8_45P

Enter the value for Reynolds number 11757

The root occurs at x = 7.405668e-003

Number of iterations needed is 24

Hence: f8=0.007

For Pipe 9:

Consider the following formula for V,

V=4Q9πD2

Substitute the values,

V=4×1.3215π×0.52=6.7303m/s

Consider the following formula for Reynolds Number,

Re=ρVDμ

Substitute the values,

Re=1.23×6.7303×0.51.79×105=231236

Hence, Re=231236

Consider the following MATLAB session to obtain the output,

>> VonKarman8_45P

Enter the value for Reynolds number 231236

The root occurs at x = 3.802690e-003

Number of iterations needed is 25

Hence: f9=0.003

Now the friction factor will not play any role for section 10 of the pipe because the flow in section 10 of the pipe is depended upon section 2 and section 9.

After calculating the friction factor for different section of the pipe, the Excel will be used to solve the existing Equations.

Starting with Excel Solver,

Step 1:

First define the variables that need to be found out: Flow rate Q2 to Q9 and assign them with any arbitrary value. Q1=1 m3/s is mentioned in the problem and the value of Q10 is calculated as: Q10=Q2+Q9

The variable definition is shown below:

Numerical Methods for Engineers, Chapter 8, Problem 46P , additional homework tip  1

Next define the friction factors: f1f9 as shown below,

Numerical Methods for Engineers, Chapter 8, Problem 46P , additional homework tip  2

Step 2:

In each circular pipe length calculate the sectional pressure drop.

Consider the following formula for the pressure drop,

ΔP=16fLρπ22D5Q2

Here ΔP is the pressure drop in Pa, f is the dimensionless friction factor and L is the pipe length in m.

Also,

L1=L3=L5=L8=L9=2m

L2=L4=L6=4m

And

L7=8m

With Q is the flow rate in m3/s and D=0.5 m is pipe’s diameter in meter.

Numerical Methods for Engineers, Chapter 8, Problem 46P , additional homework tip  3

Note: The formula in the formula bar shows the Pressure calculation for Q1 section of the pipe. Here 0.005 has been replaced with B14.

Now the pressure in other section of the pipes are calculated and shown in consequent cells with friction factor of 0.005 replaced with cell number in the friction factor table.

Step 3:

Constraint Setting:

Following are the required constraints or in other words the Equations to be solved:

Q1=Q2+Q3–In Excel: B3 = B4+B5

Q3=Q4+Q5–In Excel: B5 = B6+B7

Q5=Q6+Q7–In Excel: B7 = B8+B9

And for pressure drops,

ΔP3+ΔP4+ΔP9ΔP2=0–In Excel: B16+B17+B22-B15 =0

ΔP5+ΔP6+ΔP8ΔP4=0– In Excel: B18+B19+B21-B17 =0

ΔP6ΔP7=0– In Excel: B19-B20 =0

Also,

Q2 to Q100– In Excel: B4 to B12 0

Since there is nothing to maximize or minimize, the pressure drop is the summation of three right hand loops, that is summation of cells: C28+C29+C30 is set to zero. In doing so, not only is the driving condition being set, but also no additional conditions are being added to alter the fate of the equations.

Once the arrangements are made, call Solver as shown below:

Numerical Methods for Engineers, Chapter 8, Problem 46P , additional homework tip  4

Continued after scroll down is shown below,

Numerical Methods for Engineers, Chapter 8, Problem 46P , additional homework tip  5

Next, click on Solve. The results are displayed below,

Numerical Methods for Engineers, Chapter 8, Problem 46P , additional homework tip  6

Therefore, the flows in each pipe length in m3/s are Q1=1,Q2=0.8372,Q3=0.1627, Q4=0.0892,Q5=0.0735,Q6=0.0430,Q7=0.0304, Q8=0.0720,Q9=1.3284,Q10=2.1656.

Want to see more full solutions like this?

Subscribe now to access step-by-step solutions to millions of textbook problems written by subject matter experts!

Chapter 8 Solutions

Numerical Methods for Engineers

Ch. 8 - 8.11 The operation of a constant density plug flow...Ch. 8 - 8.12 The Ergun equation, shown below, is used to...Ch. 8 - The pressure drop in a section of pipe can be...Ch. 8 - 8.14 In structural engineering, the secant formula...Ch. 8 - 8.15 In environmental engineering (a specialty...Ch. 8 - 8.16 The concentration of pollutant bacteria c in...Ch. 8 - A catenary cable is one that is hung between two...Ch. 8 - 8.18 Figure P8.18a shows a uniform beam subject to...Ch. 8 - 8.19 The displacement of a structure is defined by...Ch. 8 - 8.20 The Manning equation can be written for a...Ch. 8 - In ocean engineering, the equation for a reflected...Ch. 8 - 8.22 You buy a $20,000 piece of equipment for...Ch. 8 - Many fields of engineering require accurate...Ch. 8 - 8.24 A simply supported beam is loaded as shown in...Ch. 8 - 8.25 Using the simply supported beam from Prob....Ch. 8 - Using the simply supported beam from Prob. 8.24,...Ch. 8 - Using the simply supported beam from Prob. 8.24,...Ch. 8 - 8.28 Although we did not mention it in Sec. 8.2,...Ch. 8 - 8.29 Perform the same computation as in Sec. 8.3,...Ch. 8 - An oscillating current in an electric circuit is...Ch. 8 - Prob. 31PCh. 8 - 8.32 A total charge Q is uniformly distributed...Ch. 8 - 8.33 Figure P8.33 shows a circuit with a resistor,...Ch. 8 - Beyond the Colebrook equation, other...Ch. 8 - Real mechanical systems may involve the deflection...Ch. 8 - Mechanical engineers, as well as most other...Ch. 8 - Aerospace engineers sometimes compute the...Ch. 8 - The general form for a three-dimensional stress...Ch. 8 - The upward velocity of a rocket can be computed by...Ch. 8 - The phase angle between the forced vibration...Ch. 8 - Two fluids at different temperatures enter a mixer...Ch. 8 - A compressor is operating at compression ratio Rc...Ch. 8 - In the thermos shown in Fig. P8.43, the innermost...Ch. 8 - 8.44 Figure P8.44 shows three reservoirs connected...Ch. 8 - A fluid is pumped into the network of pipes...Ch. 8 - 8.46 Repeat Prob. 8.45, but incorporate the fact...Ch. 8 - The space shuttle, at lift-off from the launch...Ch. 8 - 8.48 Determining the velocity of particles...

Additional Math Textbook Solutions

Find more solutions based on key concepts
Knowledge Booster
Background pattern image
Advanced Math
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, advanced-math and related others by exploring similar questions and additional content below.
Recommended textbooks for you
Text book image
Advanced Engineering Mathematics
Advanced Math
ISBN:9780470458365
Author:Erwin Kreyszig
Publisher:Wiley, John & Sons, Incorporated
Text book image
Numerical Methods for Engineers
Advanced Math
ISBN:9780073397924
Author:Steven C. Chapra Dr., Raymond P. Canale
Publisher:McGraw-Hill Education
Text book image
Introductory Mathematics for Engineering Applicat...
Advanced Math
ISBN:9781118141809
Author:Nathan Klingbeil
Publisher:WILEY
Text book image
Mathematics For Machine Technology
Advanced Math
ISBN:9781337798310
Author:Peterson, John.
Publisher:Cengage Learning,
Text book image
Basic Technical Mathematics
Advanced Math
ISBN:9780134437705
Author:Washington
Publisher:PEARSON
Text book image
Topology
Advanced Math
ISBN:9780134689517
Author:Munkres, James R.
Publisher:Pearson,
Chain Rule dy:dx = dy:du*du:dx; Author: Robert Cappetta;https://www.youtube.com/watch?v=IUYniALwbHs;License: Standard YouTube License, CC-BY
CHAIN RULE Part 1; Author: Btech Maths Hub;https://www.youtube.com/watch?v=TIAw6AJ_5Po;License: Standard YouTube License, CC-BY