Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

The frictional head loss h, in pipes can be determined from the equation, LV2 h = F D 2g Where Vis the mean flow velocity

image text in transcribed

The frictional head loss h, in pipes can be determined from the equation, LV2 h = F D 2g Where Vis the mean flow velocity in m/s, L is the pipe length in m, D is the pipe diameter in m and g is the acceleration of gravity = 9.81 m/s2. f is the friction coefficient and can be determined from the following explicit empirical formula by Zigrang and Sylvester (1982), f/D 5.027 5.02 /D 131112-2 f = {-2 log | 3.7 - Relog ( Re log ( 3.7 + Re)]]} Where log is the 10 base logarithm, is the pipe roughness in m, and v is the kinematic viscosity in m2/s. Re is the dimensionless Reynolds number Re = "D, log log 1. Write a program in a script file HW2P2.m to determine the frictional head loss h in m for the following data, 9.6/5 Case V L[m] D E [m] v [m2/s] hu[m] [m/s] [m] | 2.065 26.667 0.15 0.00036 1.02x10-6 9.6735e-01 b 1.567 15.5 0.10 0.00045 1.05x10-6 C 3.075 30.0 0.20 0.00025 0.95x10-6 Units are given only to verify the dimensional homogeneity of the equation. The program must assign values to the previous variables, determine Re, f, and hl and display their values to the command window. 2. Write a function file fHW2P2.m that assign value to the constant g and takes V,L,, E , and v as input arguments. The function calculates and return Re, f, and h as output arguments. 3. Use/call the function to return and display the values of Re,f, and h in the command window for all inputs of the table above. Use the first several lines of your script/functions to describe the problem you are solving in the comments. Use format short e for this problem. The frictional head loss h, in pipes can be determined from the equation, LV2 h = F D 2g Where Vis the mean flow velocity in m/s, L is the pipe length in m, D is the pipe diameter in m and g is the acceleration of gravity = 9.81 m/s2. f is the friction coefficient and can be determined from the following explicit empirical formula by Zigrang and Sylvester (1982), f/D 5.027 5.02 /D 131112-2 f = {-2 log | 3.7 - Relog ( Re log ( 3.7 + Re)]]} Where log is the 10 base logarithm, is the pipe roughness in m, and v is the kinematic viscosity in m2/s. Re is the dimensionless Reynolds number Re = "D, log log 1. Write a program in a script file HW2P2.m to determine the frictional head loss h in m for the following data, 9.6/5 Case V L[m] D E [m] v [m2/s] hu[m] [m/s] [m] | 2.065 26.667 0.15 0.00036 1.02x10-6 9.6735e-01 b 1.567 15.5 0.10 0.00045 1.05x10-6 C 3.075 30.0 0.20 0.00025 0.95x10-6 Units are given only to verify the dimensional homogeneity of the equation. The program must assign values to the previous variables, determine Re, f, and hl and display their values to the command window. 2. Write a function file fHW2P2.m that assign value to the constant g and takes V,L,, E , and v as input arguments. The function calculates and return Re, f, and h as output arguments. 3. Use/call the function to return and display the values of Re,f, and h in the command window for all inputs of the table above. Use the first several lines of your script/functions to describe the problem you are solving in the comments. Use format short e for this

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Modern Database Management

Authors: Jeffrey A. Hoffer Fred R. McFadden

4th Edition

0805360476, 978-0805360479

More Books

Students also viewed these Databases questions