1.0

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

blasius solution using matlab

by lotsa fahad

 

31 Mar 2009

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  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
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-.')

Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
data import lotsa fahad 01 Apr 2009 10:07:11
still not helpedplease lend some mind to this one toooosolve my lotsa fahad 02 Apr 2009 14:31:32

Contact us at files@mathworks.com