No BSD License  

Highlights from
blasius solution using matlab

1.0

1.0 | 1 rating Rate this file 15 Downloads (last 30 days) File Size: 565 Bytes File ID: #23497

blasius solution using matlab

by

 

this code only prints out the plot as the sole output

| Watch this File

File Information
Description

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

Required Products Communications Blockset
MATLAB release MATLAB 6.5.1 (R13SP1)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (1)
01 Apr 2009 Duane Hanselman

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-.')

Contact us