Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

USING Matlab Please show commands and runs The pressure drop Delta p in Pa for a fluid flowing in a pipe with a sudden increase

USING Matlab
Please show commands and runs image text in transcribed
The pressure drop Delta p in Pa for a fluid flowing in a pipe with a sudden increase in diameter is given by: Delta p = 1/2(1 - (d/D)^2)^2 rho v^2 where rho 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 Delta p when the script file is executed it request the user to input the density in kg/m^3, the velocity in m/s, and values of the non-dimensional ratio d/D as a vector. The program displays the inputted values of rho and v followed by a table with the values of d/D in the first column and the corresponding values of Delta p in the second column. Use format g in fprintf() to display the table. Execute the program assuming a flow of gasoline (rho = 737 kg/m^3) at v = 5m/s and the following ratios of diameters. d/D = 0.9, 0.8, 0.7, 0.6, 0.5, 0.4, 0.3

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Concepts of Database Management

Authors: Philip J. Pratt, Joseph J. Adamski

7th edition

978-1111825911, 1111825912, 978-1133684374, 1133684378, 978-111182591

More Books

Students also viewed these Databases questions

Question

11. Store this politicalecological data in the data sets directory.

Answered: 1 week ago