MATLAB Answers

0

Facing problem about plot the velocity profile

Asked by Debasis Roy on 11 Nov 2018 at 3:01
Latest activity Commented on by Debasis Roy on 11 Nov 2018 at 7:00
Respected sir i have attched one picture here , likethis picture i want to plot velocity(u) vs y plot
my formula for velocity profile is below whatever I have done in Matlab code I am writing below the formulae
U = 1./mu.*(t_o.*(y-delta)+4.*alpha.*sqrt(t_o.*t_e).*exp(- alpha./(2.*delta))+t_e.*alpha.*(1-exp(-y./alpha)))
if true
% t_o=106;
t_e=156;
deltavals = 0.6 ;
alphavals = [-0.3,- 0.2 ,-0.1,0, 0.1,0.2,0.3 ];
yvals = 0.3:0.1:1;
[ alpha, y] = ndgrid( alphavals, yvals);
U = 1./mu.*(t_o.*(y-delta)+4.*alpha.*sqrt(t_o.*t_e).*exp(- alpha./(2.*delta))+t_e.*alpha.*(1-exp(-y./alpha)))
plot(y,U,'-r') end

  2 Comments

Give us all the code, especially all the variable values that go into making up U. We can't run your code without it!
Respected sir value of variable t_o=100 t_e=150 mu=0.3 delta=0.6 alpha values are 0.1,0.2,0.3,0.3,0.4,-0.2,-0.5

Sign in to comment.

Tags

0 Answers