Home / Expert Answers / Mechanical Engineering / thanks-solve-quick-basic-matlab-script-using-any-method-you-see-fit-in-water-flow-through-pipes-t-pa210

(Solved): thanks, solve quick Basic MATLAB script using ANY method you see fit! In water flow through pipes, t ...



thanks, solve quick

Basic MATLAB script using ANY method you see fit!
In water flow through pipes, theres resistance due to friction where the f
Basic MATLAB script using ANY method you see fit! In water flow through pipes, there's resistance due to friction where the fluid "rubs" along the pipe walls. If you take the fluids course later, you'll learn the non-dimensional "friction factor" depends on another non-dimensional velocity parameter called the "Reynolds number" Re. For very smooth walls, experiments determined the relationship to approximate: This looks confusing, so you want to visualize over a large range of Re using MATLAB, so ... Create a documented MATLAB function called FRICTION.m which does the following: - Make a vector Re with 51 logarithmically-spaced values between 100 and to . That means Re will be the vector where are 51 linearly-spaced numbers between 2 and 6 inclusive. - Calculate the corresponding vector (one element for each element in Re). - Plot Re) on the -axis against on the -axis, connected with lines and circles. For example, use the following command: plot ( ' Remember, when then . When then . - Titles the plot, labels the - and -axis, and makes a pdf of the plot called Fplot. pdf.


We have an Answer from Expert

View Expert Answer

Expert Answer


MATLAB function called FRICTION.m that creates a vector of logarithmically-spaced Reynolds numbers and calculates the corresponding friction factors:
We have an Answer from Expert

Buy This Answer $5

Place Order

We Provide Services Across The Globe