Question: Task 1 ( of 2 ) Under certain condition, the velocity distribution u ( r ) of a liquid through the annular pipe are given
Task of
Under certain condition, the velocity distribution of a liquid through the annular pipe are given by:
where is the dynamic viscosity and equal to for water, is the inner cylinder radius,
is the outer cylinder radius, and is a radial distance from the centerline axis of the pipe. For this
problem, all radii are in units of meters is the normalized gradient pressure per unit length
and is given as:
Write a MATLAB script named HWpTasklUCusername.m that will prompt the user to enter the
values of and as constants. Your script should then make sure the inputted value is valid:
and rurtanlnGrr the value valid, your script will then compute and print the values with
decimals and the corresponding units. the value invalid, your script will print error message.
You will need use the MATLAB built functions for and the Natural Log, you can type
help help see how use these functions. The tangent function the equation
radians.
Sample Test Case:
Enter meters:
Enter meters:
Enter the radial distance, meters:
the velocity
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
