Question

Given the steady, two-dimensional velocity field and the derived equation of the streamline, recreate the streamlines...

Given the steady, two-dimensional velocity field and the derived equation of the streamline, recreate the streamlines shown in the plot using MATLAB. (Submit the plot and M-file script.)

V = ui+vj = (0.5+0.8x)i+ (1.5−0.8y)j m/s

y = 1.875+ ((c)/(0.8(0.5+0.8x)))

Analysis: The MATLAB commands plot and quiver may be useful.

Change the constant c to create a new streamline.

Please use Matlab

Homework Answers

Answer #1

clc;clear all
x=-2:0.001:2; %Taking x from -2 to 2 in 0.001 spacing
y=1.875+((5)./(0.8.*(0.5+0.8.*x))); %Value of y
subplot(2,1,1)
plot(x,y,'-r') %Plots x and y
title('Streamline')
u=0.5+0.8.*x;v=1.5-0.8.*y; %Values of u and v
subplot(2,1,2)
quiver(x,y,u,v) %Quiver plot of u and v
title('Quiver plot')

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions