Question: Using MATLAB The continuity equation in fluid dynamics for steady fluid flow through a stream tube equates the product of the density, velocity, and area
Using MATLAB
The continuity equation in fluid dynamics for steady fluid flow through a stream tube equates the product of the density, velocity, and area at two points that have varying cross-sectional areas. For incompressible flow, the densities are constant so the equation is Alh-A2 If the areas and V1 are known, V2 can be found. Whether the velocity at the second point increases or decreases depends on the areas at the two points. Write an m-file that will prompt the user to input the two areas and will print whether the velocity at the second point will increase, decrease, or remain the same as the first point. Include error checking in your code to display an error message if the user enters a value for A1 or A2 that is zero or negative
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
