Question: The pressure drop p in Pa for a fluid flowing in a pipe with a sudden increase in diameter is given by: Where p is
The pressure drop Δp in Pa for a fluid flowing in a pipe with a sudden increase in diameter is given by:
.png)
Where p is the density of the fluid, v, the velocity of the flow, and d and D are defined in the figure. Write a program in a script file that calculates the pressure drop Δp. When the script file is executed it requests the user to input the density in kg/m3, the velocity in m/s, and values of the non-dimensional ratio d/D as a vector. The program displays the inputted values of p and v followed by a table with the values of d/D in the first column and the corresponding values of Δp in the second column. Execute the program assuming flow of gasoline (p = 737 kg/m3) at v = 5 m/s and the following ratios of diameters d/D = 0.9, 0.8, 0.7, 0.6, 0.5, 0.4, 0.2.
. [ 3G3 - Ap P12
Step by Step Solution
3.27 Rating (171 Votes )
There are 3 Steps involved in it
Script file clear clc rhoinputPlease input the fluid density in kgm3 vinp... View full answer
Get step-by-step solutions from verified subject matter experts
Document Format (1 attachment)
652-B-F-F-M (633).docx
120 KBs Word File
