File Exchange

image thumbnail

blasius solution using matlab

version 1.0 (565 Bytes) by

this code only prints out the plot as the sole output

6 Downloads

Updated

No License

the tabular form as displayed in heat transfer and fluid mechanics books..thank you..please indicate where to write in the code and what line..thank you..a long-pending assigment

Comments and Ratings (2)

Roberto

I doesn't work.

Here is what is in this file:
clear
figure(1)
clf
% blasius equation
% f''' + 1/2 f f'' = 0
% b.c. f(0)=f'(0)=0 and f'(inf)=1
% g = f'
% g' = f'' = h
% g'' = f''' = h' = -1/2 f f'' = -1/2 f h
etavec(1)=0;
deta=0.001;
total=10;
fvec(1)=0;
gvec(1)=0;
% vary initial value of h
hvec(1)=0.3319;
for i=1:total/deta;
etavec(i+1)=etavec(i)+deta;
fvec(i+1)=fvec(i)+gvec(i)*deta;
gvec(i+1)=gvec(i)+hvec(i)*deta;
hvec(i+1)=hvec(i)-1/2*fvec(i)*hvec(i)*deta;
end
gvec(total/deta)
figure(1)
tabulate(etavec,fvec)
hold on
tabulate(etavec,gvec,'r--')
tabulate(etavec,hvec,'g-.')

MATLAB Release
MATLAB 6.5.1 (R13SP1)

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video