Answered step by step
Verified Expert Solution
Link Copied!

Question

00
1 Approved Answer

Need help with this MATLAB question. NAME: LAB SECTION: HW2P2 (25 points) The frictional head loss hy in pipes can be determined from the equation,

Need help with this MATLAB question.

image text in transcribed

NAME: LAB SECTION: HW2P2 (25 points) The frictional head loss hy in pipes can be determined from the equation, herremo 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), [/D 5.02 5.02 E/D 1311) log 3.7 Re9D Re 63.7 'Re Where log is the 10 base logarithm, e is the pipe roughness in m, and v is the kinematic viscosity in m2/s. Re is the dimensionless Reynolds number Re = log 1. Write a program in a script file HW2P2.m to determine the frictional head loss hin m for the following data, Case V L[m] D [m] v [m2/s] hu[m] [m/s] [m] a 2.065 26.667 0.15 0.00036 1.02 x 10- 6 9 .6735e-01 b 1 .567 15.5 0.10 0.00045 1.05 x 10-6 3.075 30.0 0.20 0.00025 0.95 x 10-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 hi and display their values to the command window. 2. Write a function file HW2P2_fn.m that assign value to the constant g and takes V, L, D, E, and v as input arguments. The function calculates and return Re, f, and has 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. Use format short e for this problem. NAME: LAB SECTION: HW2P2 (25 points) The frictional head loss hy in pipes can be determined from the equation, herremo 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), [/D 5.02 5.02 E/D 1311) log 3.7 Re9D Re 63.7 'Re Where log is the 10 base logarithm, e is the pipe roughness in m, and v is the kinematic viscosity in m2/s. Re is the dimensionless Reynolds number Re = log 1. Write a program in a script file HW2P2.m to determine the frictional head loss hin m for the following data, Case V L[m] D [m] v [m2/s] hu[m] [m/s] [m] a 2.065 26.667 0.15 0.00036 1.02 x 10- 6 9 .6735e-01 b 1 .567 15.5 0.10 0.00045 1.05 x 10-6 3.075 30.0 0.20 0.00025 0.95 x 10-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 hi and display their values to the command window. 2. Write a function file HW2P2_fn.m that assign value to the constant g and takes V, L, D, E, and v as input arguments. The function calculates and return Re, f, and has 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. 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 with AI-Powered Solutions

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

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

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

Get Started

Students also viewed these Databases questions