Question: m)+351 1.850x10-3Ref =-2010g( Amodifiedversionofthe Colebrook equations: 30 points) 1) Write a MATLAB code to compute the friction factor using the Colebrook equation. Your compute and
m)+351 1.850x10-3Ref =-2010g( Amodifiedversionofthe Colebrook equations: 30 points) 1) Write a MATLAB code to compute the friction factor using the Colebrook equation. Your compute and store ffor at least 1000 values of the Reynolds number covering the range from Re-10t to 10, for the relative roughness value e/D 0.0005. In order to let you check the values you calculate, you may refer to the Moody diagram on the next page uasi is calcalate fover lange range of Re for one specific value of e/D. The code should EXTRA CREDIT (10 points) , Re for the value of e/D evaluated in part (1). If you have not completed part (1), then use five data points from the Moody chart to plot a line. a) Your plot should use a log-log scale, and show a grid of lines. bi Your plot should contain one line for the given value of e/D. The line you show on plot should be RED and dashed. c) Your aves should have a numerical scale d) Include a legend that identifies the e/D value. and be labeled, with f on the ordinate (vertical) scale, and Re on the abscissa (horizontal scale). Save your MATLAB code then copy the code (only) into an MS Word document. Save the MS Word document using the following name: For example, my filename would be: Acker Tom MATLAB.docx Go to the "MATLAB Exam Question" folder and select"MATLAB Question for B LastName FirstName MATLAB.docx upload you document Exam 3" then
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
