problem in plotting the velocity profile

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=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

답변 (1개)

KSSV
KSSV 2018년 11월 12일
편집: KSSV 2018년 11월 12일

1 개 추천

alpha = [0.1,0.2,0.3,0.3,0.4,-0.2,-0.5] ;
t_o=100 ;
t_e=150 ;
mu=0.3 ;
delta=0.6 ;
y = linspace(0,1) ;
figure
hold on
for i = 1:length(alpha)
U = 1/mu*(t_o.*(y-delta)+4*alpha(i)*sqrt(t_o*t_e).*exp(-alpha(i)/(2*delta))+t_e*alpha(i).*(1-exp(-y/alpha(i)))) ;
plot(y,U)
end

댓글 수: 6

Souvick roy
Souvick roy 2018년 11월 12일
편집: Souvick roy 2018년 11월 12일
graphs are not coming expoential. should i non dimensionlise the equation
KSSV
KSSV 2018년 11월 12일
Check your formula....values...
Souvick roy
Souvick roy 2018년 11월 14일
Sir sorry for wrong formula. i have editted formula
Formula
new velocity profile.png
values are
delta=0.3
gamma=0.1
lambda values 0.01, 0.02 and 0.03 for threee velocity plot
velocity plot should come
1-s2.0-S0377025713000736-gr4 - Copy.jpg
please help me sir
KSSV
KSSV 2018년 11월 14일
Dude..you have the code.....you need to edit the formula and run it. By the way the updated formula doesn't have alpha invovled.
Souvick roy
Souvick roy 2018년 11월 14일
sir i rename alpha by lamda
KSSV
KSSV 2018년 11월 14일
YOu be sure of the formula, image and values associated with it.....the image says omething..it has beta and alpha also.

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

카테고리

도움말 센터File Exchange에서 Particle & Nuclear Physics에 대해 자세히 알아보기

태그

질문:

2018년 11월 12일

댓글:

2018년 11월 14일

Community Treasure Hunt

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

Start Hunting!

Translated by