Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Please help. This is a problem I need to use on Matlab. The data is given below.

ID: 3780267 • Letter: P

Question

Please help. This is a problem I need to use on Matlab.

The data is given below.

You will be given a set of data to analyze. The data is velocity, in m/s (second column) as a function of position in meters (first column) for a fluid flowing through a rectangular channel that is 0.5 m high and 1 m wide. The following parts will help you determine the average velocity and the mass flowrate through the channel.

Part f)

Calculate the mass flowrate (m) using the following equation: m[kg/s]=p[kg/m^3]v[m/s]A[m^2] where v is the average velocity, and A is the cross-sectional area of the channel.

0.00 1.7155 0.01 1.6526 0.02 6.2588 0.03 6.2666 0.04 9.4649 0.05 12.7061 0.06 12.579 0.07 14.3926 0.08 19.8051 0.09 19.8765 0.10 19.352 0.11 22.4234 0.12 22.2599 0.13 25.1088 0.14 27.3238 0.15 23.8432 0.16 28.7433 0.17 30.237 0.18 28.8712 0.19 32.0694 0.20 30.2331 0.21 28.5943 0.22 27.5098 0.23 30.5499 0.24 32.2703 0.25 31.7261 0.26 31.8204 0.27 30.1844 0.28 31.016 0.29 27.992 0.30 28.8599 0.31 28.2218 0.32 29.5796 0.33 28.0288 0.34 25.4667 0.35 26.2357 0.36 24.1653 0.37 23.05 0.38 24.0962 0.39 21.6201 0.40 20.5975 0.41 19.776 0.42 17.0704 0.43 15.8763 0.44 14.2244 0.45 13.0059 0.46 9.9138 0.47 9.1683 0.48 4.8339 0.49 2.3782 0.50 2.552

Explanation / Answer

L=200;D=1;visco=.001;densi=1000;

R=1e5;

for i=1:20;

     f=0.0791*R^(-.25);

     V2=sqrt(981/(.5+400*f));

     fprintf('V2(m/s) = %8.2f ',V2)

R=densi*D*V2/visco;

     check=abs(R/Rsave-1);

     if check<.01, break, end

     Rsave=R;

end

result=densi*V2*pi*D^2/4;

fprintf('Mass flow rate (kg/s) = %g ',result)