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 at for the pipe system below containing ID
PVC pipes expands up to then reduces down to a 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 is atmospheric pressure and you may use the large tank approximation to
estimate You are asked to calculate and then plot the pressure m at the exit as a function
of flow rate Diagram not to scale
Calculate the following:
the flow rate at the entrance as a vector from to in increments of
Lmin QLmin
convert the above flow rate to SI units,
the fluid velocity as vectors in for the first, second and third section of pipe, v v
and
Reynolds number for the first, second and third section of pipe as vectors,
and
friction factor for the first, second and third section of pipe as vectors, and
the total pressure drop for the pipes in for the first, second and third section of pipe
as vectors, hpipe hpipe and hpipe
the total pressure drop for the pipes as a vector in hpipe
the Kvalue of reducer as a vector, Kred
the Kvalue of expander as a vector, Kexp
the total pressure drop for the fittings as a vector in fittings
the absolute pressure at the outlet in out note: in METERS
plot the absolute pressure drop, Pout, in as a function of flow rate, in On the plot,
label the xaxis Flow Rate
label the yaxis Pressure m
add a title Graph of pressure versus flow rate
You need to use ifelse statement to check the flow regime and you must us a for loops
to calcualte the vectors for f f f Kred and Kexp with the ifelse 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 eg pi instead of
You must use the variable names specified in the question.
Parameters:
X
Y
Z
Laminar flow, fRe
Turbulent flow, flogReepsilonD
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
