Question: Matlab practice The flow rate ranges from 2 0 at 2 0 0 L m i n for the pipe system below containing 5 0

Matlab practice
The flow rate ranges from 20 at 200Lmin for the pipe system below containing 50mm ID
PVC pipes expands up to 90mm, then reduces down to a 35mm ID pipe. The figure below is
a side view. The change in height from the entrance to the exit is marked on the diagram. The
pressure at Pt is atmospheric pressure and you may use the large tank approximation to
estimate vt. You are asked to calculate and then plot the pressure (m) at the exit as a function
of flow rate (m3s). Diagram not to scale
lonPVC=2.5*10-6m,g=9.81ms2,Patn=101,325Pa
water=998kgm3,water=1.0*10-3Pa*s Calculate the following:
the flow rate at the entrance as a vector from 20 to 200Lmin in increments of 20
L/min, Q_L_min
convert the above flow rate to SI units, m3s,Q
the fluid velocity as vectors in ms for the first, second and third section of pipe, v1, v2
and v3
Reynolds number for the first, second and third section of pipe as vectors, Re1,Re2
and Re3
friction factor for the first, second and third section of pipe as vectors, f1,f2 and f3
the total pressure drop for the pipes in m for the first, second and third section of pipe
as vectors, h_pipe1, h_pipe2 and h_pipe3
the total pressure drop for the pipes as a vector in m, h_pipe
the K-value of reducer as a vector, K_red
the K-value of expander as a vector, K_exp
the total pressure drop for the fittings as a vector in m,h-fittings
the absolute pressure at the outlet in m,P? out (note: in METERS)
plot the absolute pressure drop, P_out, in as m a function of flow rate, Q, in m3s.On the plot,
label the x-axis Flow Rate
label the y-axis Pressure (m)
add a title Graph of pressure versus flow rate
You need to use if/else statement to check the flow regime and you must us a for loops
to calcualte the vectors for f1, f2, f3, K_red and K_exp with the if/else statements
Caution when performing calculations:
All calculations to be performed in Matlab. Manually calculated values that are entered
into Matlab are not accepted.
DO NOT use any 'clear' or 'clc' commands in your script.
For constants, use applied Matlab functions e.g. pi instead of 3.142.
You must use the variable names specified in the question.
Parameters:
X=12
Y=34
Z=3
Laminar flow, f=64/Re
Turbulent flow, f=1/(-1.8log10(6.9/Re+((epsilon/D)/3.7)^1.11)^2
Matlab practice The flow rate ranges from 2 0 at

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Civil Engineering Questions!