Facing problem about plot the velocity profile

조회 수: 1 (최근 30일)
Debasis Roy
Debasis Roy 2018년 11월 11일
댓글: Souvick roy 2018년 12월 4일
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)))
% 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
  댓글 수: 4
Image Analyst
Image Analyst 2018년 12월 1일
OK, now, what is y?
t_o = 100;
t_e = 150
mu = 0.3
delta = 0.6
alpha = [0.1, 0.2, 0.3, 0.3, 0.4, -0.2, -0.5]
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)))
% 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')
If this is still a problem for you, give us everything we need to help you.
Souvick roy
Souvick roy 2018년 12월 4일
sir due to problem in value i have non dimensionalise my final equation. i have attached the picture. in wquation one is valid from y =0 to y=0.3 and equation two is valid for y=0.3 to 1
I want to divide y in 0.01 interval
balue of delta 0.3
value of k=100
value of beta 0.01
please help me in wriying the programme and plottingmang.png

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Scatter Plots에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by