• Tidak ada hasil yang ditemukan

UNCERTAINTY ANALYSIS

Dalam dokumen Full Thesis .pdf - BUET Central Library (Halaman 89-126)

B. I TRANSDUCER CALIBRATION

B.3 UNCERTAINTY ANALYSIS

(B.2.1)

(B.2.2)

According to Thasher & Binder [49], for the single-sample measurement it is proposed that the tester describe the uncertainty of his measurement in terms of what he believes would happen if the measurement were repeated a large number of times. In this way one can estimate the standard error and the uncertainty interval and can give odds that the error would be less than the uncertainty interval if the measurement were repeated a large number of times.

The reliability of a result described in this manner is indicated by the size of the uncertainty interval and the magnitude of the odds.

In the present experiment the uncertainty of measurement of velocity and turbulent intensity are influenced by variation of ambient temperature, the characteristics of the hot wires, the accuracy of the angle of inclination of the hot wire to the mean flow direction and the accuracy of the calibration curve.

The sensing probes could be placed in flow field with an uncertainty of 0.005 mm (0.0001968 inch). The misalignment of the probe wire with respect to the flow direction was within :!: 30. The regression coefficients of the calibration curves were found to have an error of 0.2%. The temperature variation during the experiment was within 1°., To minimize the temperature variation, the air

,

conditioner unit was kept running for at least two hour before actual measurements. During the experimental measurements, their was a slight variation upto .5% of the exact velocity due to the variation of fan speed for transient motor core resistance characteristics. To minimi7.ethe effect, the fan was kept running for an hour before taking actual measurements.

71 The above discussed errors are cumulated in calculating the mean velocity, turbulence intensity. Reynolds number etc. It is estimated that the uncertainty of mean value U/Uec to be less than :!:O.5%and uncertainty of turbulence intensity to be :!:2%.Repeatability of the uncertainties are assumed to be 19:1 odds. It is obvious that the use of uncertainty analysis alone in the single sample experiments is far from desideratum. For this reason adequate cross checks of the measure values and the time average of the turbulence and mean velocities are pet'formed.

")\

* *

* *

*

APPENDIX C

COMPUTER PROGRAMS

program jet

this program is written by bazle anwer gama variable idetification

character yn character*75 line external fubum external fubum2 external fubum3 common /al/m,n common ax

dimension y(lOO),umv(100),a(100,101),ax(lOO) dimension ybdl 100),utmv( 100),u(100 ),ut(lOO)

dimension yz(300 ),dudy(300),ubuc( 100),utbuc( 100) dimension ubuec( 100),utbuec (100),reystrss( 300) dimension dsudy( 300),tbrv( 300),tbrt( 300),taobro( 300) dimension vstar( 300),ufl 300),uplus( 300),yplus( 300) dimension dist(n),func(n),yconbd(ll)

data a/lOlOO*O./

data nop/50/

data yconbd/ll*O.O/

input data , should be changed for individual data set uec in m/sec, extnfreq in Hz; xdata, diam, ymin, ymax in inch, y in inch; umv and utmv in millivolt

data speed/l/

data uec/20.0/

data extnfreq/O.O/

data xdata,diam/1.0e-5,1.0/

data ymin,ymax,nod/1.0e-5,1.4,1000/

data y/1.0e-5,.2,.4,.6,.8, +1.0,1.2,1.4,

+92*0.0/

data umv/2.05,2.04,2.02,1.97,1.9,1. 7,1.3,1.25, +92*0.0/

data utmv /5e-2,. 7,1.3,1.l,.6,.2,.1,5e-2, +92*0.0/

open( 10,file=' gama.ou t' ,status='unknown' ,rec1=1400) open( ll,file='u.out' ,status='unknown' ,rec1=1400) open (12,file='ut.out' ,status='unknown' ,rec1=1400) open( 13,file='bp.out' ,status='unknown' ,rec1=1400) open( l4,file='e l.out' ,status='unknown' ,recl=1400) open (15,file='e2.out' ,status='unknown' ,rec1=1400) open( 16,file='e3.out' ,status='unknown' ,rec1=1400) open( 17,file='e4.out' ,status='unknown' ,recl=1400) open( l8,file='st.out' ,status='unknown' ,recl=1400) open I19,fiJe='t1.out' ,status='unknown' ,rec1=1400) op,w (20,file='t2.ou t' ,status= 'unknown', reel= 1400) open( 21,file='t3.out' ,status='unknown' ,recJ=1400) op"n (22,file='t4.ou t' ,status='unknown' ,reel=1400)

open (23,file='bt.ou t' ,status= 'unknown' ,reel= 1400) open(24,file='dl.out' ,status='unknown' ,reel=1400) open (25,file='d2.out' ,status='unknown' ,reel=1400) ope n (26,file= 'vs.ou t' ,status= 'unknown' ,reel= 1400) open(27 ,file='ts.out' ,status='unknown' ,reel=1400) open(28,file='u u.out' ,status='unknown' ,reel=1400) open (29,file='ue.ou t', status='u nknown' ,reel= 1400) open( 30,file='ute.out' ,st.atus='lInknown' ,reel=1400 I open( 31,file='rey .out.' ,status='unknown' ,reel=1400) open( 32,file='e5.out' ,status='unknown' ,reel=1400) open( 33,file='t.5.ou t' ,st.atus='unknown' ,reel=1400)

xbd=xdata/diam

write(lO,*)'SPEED-' ,speed,' ,,'X/D=' ,xbd writer 10,*)'x=' ,xdata, 'd=' ,diam

if (extnfreq .eq. 0.0) then

write(lO,*)'WITHOUT EXCITATION!' else

write(10,*)'WITH EXCITATION!' std=extnfreq*diam/uec

write(lO,*)'Strouhal number Std=',std endif

writer 10,*)

* specify the polynomeal order

write(*,*)'input. the value of polynomeal +order,m:( <n)'

read(*,*)m

if(m .ge. n) goto 1 goto 2

1 print*,'solution not possible,m>=n' goto 100

2 continue

write(10,*)'number of data points= ',n,' order of 6 polynomeal=' ,m

* confirmation of inputs writer 10,*) do 2001 i=1,n

2001 write(*,*)y(i) ,umv(i) ,utmv(i) do 2000 i=1,n

u(i )=7.1961e-3*( 10.0**(1.657*lImv(i))) ut( i)=7.1961e-.1*(10.0**(1.657*ut.mv(i))) ue=u(l)

ubuc(i)=u(i)/ue ut bue (i) =ut(i)Iucl ubuee(i)=u(i)/uee utbuec(i)=ut(i)/uee ybd(i)=y(i)/diam

writer 11,*)ybd(i),u bue(i) writer 12,*)ybd (i),utbue(i) write(29,*)ybd(i) ,u buec(i) writer 30,*)ybd (i) ,utbuec( i)

2000 writer 10,*)'y(' ,i,')=' ,y(i),' u buc(' ,i, ')=' ,ubuc(i), 6'utbuc(' ,i,' )=',utbuc(i)

write(lO,*)

73

D

do 2100 i=l,n

2100 write( 10,*)'y(' ,i, ')=' ,y(i),' u(' ,i,' )=',u(i), 6'ut(' ,i,' )=',ut(i)

close(Il) close(l2) close(29) close(30)

utpeak=ut(l) do 2002 i=1,n-1

if(ut(i+1) .gt. ut(i»then utpeak=ut(i+1)

ybdpeak=ybd(i+ 1) else

utpeak=utpeak endif .

continue

upuec=utpeak/uec

write( 10,*)'xld=' ,xbd, 'utpeak=' ,utpeak write( 10,*)'yId_peak=' ,y bdpeak

• write( 10,*)'utpeak/uec=' ,upuec 2002

*

10

20

25

40 30

regression start . ubucb=O.O do 10 i=l,n

ubucb=u bucb+ubuc(i) ubucb=ubucb/n

st=O.O do 20 i=l,n

st=st+( ubue( i)-u bucb )**2 print*, 'ubucb=' ,u buc b, 'st=' ,st write( 10,*)'ubucb=' ,ubucb,' st=' ,st call polreg(y,ubuc,a)

write(lO,*)'polreg ok!' call gauss(a,ax)

write( 10,*)'gauss ok!' write(10,*)

write(1O,*)'ax(1) through ax(m+1)' do 25 i=l,m+1

write(10,*) 'ax(',i,')=',ax(i) write(1O,*)

sr=O.O do 30 i=l,n tsum=O.O

do 40 j=1,m+1

tsum=tsum+ax(j )*(y(i)**(j-1»

sr=sr+( ubuc(i)-tsum)**2 continue

sybx=sqrt(sr/(n-(m+ 1») r=sqrt( (st-sr list)

write( 10,*)'sr=' ,sr,'sybx=' ,sybx, '1'=',1' prinl*,'regression coefficient is,r= ',1'

print*,'do you want to run more? ("y"I"n"I' read(*,*lyn

if(yn .eq. 'n') goto 100

if(yn .eq. 'y') goto 50

50 continue

* integrating the function for delta , theta , shape factor,

* mass flux and momentum flux.

print *,'ok !, i am running' call trap(n,y,ubuc,areal,area2) areal=areal*uc/uec

area2=area2*(uc**2)/(uec**2) write(*,*) 'areal=',areal

write(*,*) 'area2=' ,area2 delta=ymax-ymin-areal theta=areal-area2 sfh=delta/theta write(lO,*)

writer 10,*)' delta=',delta,' theta=',theta,' sfh=',sfh call trap(n,y,utbuc,tareal,tarea2)

qbro=2.0*uec*areal

amxbro=2.0*uec*uec*area2 tmxbro=2.0*uec*uec*tarea2 tmbro=amxbro+tmxbro writer lO,*)'Q/rho=' ,qbro writer 10,*)'M=',amxbro write (10,*)'MF=',tmxbro writer lO,*)'MT=',tmbro

call simpsn(areal,ymin,ymax,nod ,fu bum) print *,'simpsonl ok!'

write(lO,*)

write(lO,*)'simpsonl ok"

areal=areal*uc/uec

writer 10,*)'areal=' ,areal write(*,*) 'areal=' ,areal

call simpsn(area2,ymin,ymax,nod,fubum2) print*,'simpson2 ok!'

write(10,*)'simpson2 ok!' area2=area2*(uc**2)/(uec**2) writer 10,*)'area2=' ,area2 delta=ymax-ymin-areal theta=areal-area2 sfh=delta/theta writer 10,*)

writer 10,*)' delta=',delta,' theta=' ,theta,' sfh=',sfh qbro=2.0*uec*areal

amxbro=2.0*uec*uec*area2 tmbro=amxbro+tmxbro writer lO,*)'Q/rho=' ,qbro writer 10,*)'M=',amxbro writer 10,*)'MT=',tmbro

call simpsn(area3,ymin,ymax,nod,fubum3) print*, 'simpson3 ok!'

write(1O,*)'simpson3 ok!' area3=area3*( uc**3)I( uec**3) writer 10,*)'area3=' ,area3 writer 10,*.1

75

deltae=area1-area3

writer 10,*)' deltaE=' ,deltae

* check of areal with exact value piubum (perfect integral of

* ubuc)

yyy=ymax piubum=O.O do 99 j=l,m+1

piubum=piu bum+ax(j )*(yyy**j) / j

99 continue

piubum=piubum*uc/uec

writer 10,*) 'piu bum=' ,piubum write(*,*) 'piu bum=' ,piu bum

* data generation for exit boundary layer profile of u

* blasious profile

write(lO,*)

if(xdata .gt. 1.602) goto 81 - yw=diam/2.

do 9990 i=l,n

yeblp=(yw-y(i) )/delta ybdelta=y(i) / delta

writer 13,*)u buc(i) ,yeblp,ybdelta write (2:3,*)u tb ue (i), ye blp, y bdelta 9990 continue

close(l3) close(23)

write(10,*)

81 continue

* search for y.95 ,y.50 & y.10 at ubuc=0.95,0.50,0.10 y95=0.0

id95=0 y50=0.0 id50=0 ylO=O.O id10=0 yt=1.0e-5 yinc=0.0005

97 duum=uum

uum=O.O do 98 j=l,m+1

uum=uum+(ax(j)*(yt**(j-1» )

98 continue

if(xbd .le. 7.00)then uum=uum*uc/uec else

uum=uum endif yt=yt+yinc

if(uum .gt. 0.9505) goto 95 if(uum .gt. 0.9495) goto 94

gote 93

94 y95=y95+yt

id95=id95+1

write(lO,*)'yt=' ,yt,' uum=' ,uum

93 continue

if(uum .gt. 0.5005) goto 95 if(uum .gt. 0.4995) goto 92

goto 91

92 y50=y50+yt

id50=id50+l

write(10,*)'yt=',yt,' uum=',uum

91 continue

if(uum .gt. 0.1005) goto 95 if(uum .gt. 0.0995) goto 90

goto 89

90 y10=ylO+yt

idlO=idlO+1

write(10,*) 'yt=',yt,' uum=',uum

89 continue

95 if( yt .ge. ymax) goto 96 goto 97

96 continue

if(y95 .eq. 0.0) goto 7777 y95=y95/id95

7777 y50=y50/id50

y10=y10/idlO xbd=xdata/ diam slwb=y10-y95 write( 10,*)

write(10,*) 'x/d=' ,xbd,' y95=',y95,' y50=' ,y50,' y10=' ,y10 write( *,*) 'y95=' ,y95, 'y50=' ,y50, 'y10=' ,y10

write(10,*)'shear layer width b=',slwb do 2003 i=l,n-1

if(y50 .gt. y(i) .and. y50 .It. y(i+1))then us=ut(i)+( ut( i+1)-uUi) )*(y50-y(i) )/( y(i+ l)-y(i)) go to 2004

else

write(*,*)'looking for us at y50' endif

2003 continue

2004 usbuec=us/uec

write( 10,*)'y50=',y50, 'us=',us

write( 10,*.)'y50/ d=' ,y50/ diam, 'us/uec=' ,us buec ycon=1.0e-5

7653 uum=O.O

do 7654 j=l,m+l ,

7654 uum=uum+(ax(j)*(ycon**(j-1))) if(xbd .Ie. 7.00)then uum=uum*uc/uec else

uum=uum endif

if(uum .gt. 0.9495 .and. uum .It. 0.9505)then yconbd(l)=ycon/diam

elseif(ullm .gt. 0.8995 .and. uum .It. 0.9005)then yconbd(2)=ycon/diam

elseif(lIum .gt. 0.7995 .and. uum .It. 0.8005)then

77

7655 7656

*

*

* *

yconbd(3)=ycon/diam

elseif(uum .gt. 0.6995 .and. uum .It. 0.7005)then yconbd(4)=ycon/diam

elseif(uum .gt. 0.5995 .and. uum .It. 0.6005)then yconbd(5 )=ycon/diam

elseif(uum .gt. 0.4995 .and. uum .It. 0.5005)then yconbd(6)=ycon/diam

elseif(uum .gt. 0.3995 .and. uum .It. 0.4005)then yconbd(7)=ycon/diam

elseif(uum .gt. 0.2995 .and. uum .It. 0.3005)then yconbd(8)=ycon/diam

elseif(uum .gt. 0.1995 .and. uum .It. 0.2005)then yconbd(9)=ycon/diam

elseif(uum .gt. 0.0995 .and. uum .It. 0.1005)then yconbd( 10)=ycon/diam

elseif(uum .gt. 0.0495 .and. uum .It. 0.0505)then yconbd( 11)=ycon/ diam

else

uum=uum

endif

ycon=ycon+yinc

if(ycon .ge. ymax)then goto 7655

else

goto 7653 endif

do 7656 i=l,l1

write( 10,*)'yconbd(' ,i, ')=' ,ycon bd (i) calculation of jet area

areaj=22.0*( y10*y10)/7.0 write(10,*)

write( 10,*)'xl d=' ,xbd,' jetarea=' ,areaj

calculation of thetaO.l at yO.1 where ubuc=O.lO call simpsn(areall,ymin,ylO,nod,fubum)

write(*,*)'simpson1 ok!'

call simpsn(area22,ymin,yl0,nod,fu bum2) write(*,*)'simpson2 ok!'

areall=area11*uc/uec

area22=area22*(uc**2)/(uec**2) write( 10,*)

write(10,*)'area11=' ,areall, ' area22=' ,area22 theta1=area11-area22

tlbd=thetal/diam

sttheta=extnfreq*theta1/uec write(10,*)'sttheta=' ,sttheta

write( 1O,*)'thetaO.1O=',thetal,' x/d=' ,xbd,

5 ' thetaO.lO/d=',tlbd

differentiating for viscous shear stress, turbulent shear stress, toJ;a1shear stress and universal velocity. profile

vneu=1.5e-5 tkai=0.4 yz(l)=ymin

. pd=(ymax-ymin)/300.00

do 4000 id=I,298 ydl=yz(id) yd2=ydl+hd yd3=yd2+hd

dfudy=( -3.0*fubum( ydl )+4.0*fubum( yd2) 6-fubum( yd3))/(2.0*hd)

d udy( id )=dfu d y*uc*39. 37

dsfud y=(fu bum (yd 1)- 2.O*fubum(yd2)+

6fubum(yd3) )/(hd*hd)

dsu d y( id) =dsfud y*uc*39. 37*39.37 tbrv(id )=vneu*dudy(id)

stkai=tkai*tkai

cd u dy=d u d y (id) *d u dy( id )*d ud y(id) absdudy=( dudy(id)*dudy(id) )**0.5 sdsudy=dsudy(id )*dsudy(id)

tbrt(id )=stkai*cd udy*absdud yIsdsudy reystrss(id )=(-1.0 )*tbrt( id )/( uec**2) tao bro(id )=tbrv( id )+tb rt( id)

vstar(id)=sqrt(abs( taobro(id))) uf(id)=fu bum(id )*uc

uplus( id)=uf( id )/vstar(id) yplus(id )=yz(id )*vstar(id)/vneu yz(id+ 1)=yz(id)+hd

4000 continue

dudymax=dudy(l) do 4444 nn=I,299 .

if(dudy(i+l) .gt. dudy(i))then dudymax=dudy(i+ 1)

else

dudymax=dudymax endif

4444 continue

deltaw=uc/dudymax

writer 10,*)'dudymax=' ,dudymax, 'deltaw=' ,deltaw do 4001 jd=I,300,l0

write(24,*) yz(jd) ,dudy (jd) write(25,*)yz(jd) ,dsudy(jd) writer 26,*)yz(jd) ,tbrv( jdl wl'ite(Z7,*)yz(jd),tbrt/jd) writer 18,*)yz( jd) ,taobro( jd) write(28,*) yplus(jd) ,uplus( jd)

4001 continue

write(*,*)'ok'

if(xbd .le. 7.00 .and. xbd .ge. 1.00)then do 2005 i=I,300,10

ymy5btl=( yz( j)-y50 )/thetal write (31,*) ymy5b tl ,reystrss (i)

2005 continue

else

do 2006 i=I,300,10 ybx=yz(i)/xdata

writer 31,*) ybx,reystrss(i)

2006 continue

79

*

78

79

9998

*

endif

close(18) close(24) close(25 ) close(26) close(27 ) close(28) close(31 )

data generation for self preservation profile of u and u' write(10,*)

ys=1.0e-7 yw=diarn/2.0 ysinc=yrnax/30 etal=( ys-yw )/xdata eta2=(ys-y50)/thetal eta3=(ys-y50)/xdata eta4=ys/y50

eta5=( ys- y95)/ (y50- y95) suburn=fuburn(ys)

writer 14,*)etal,su bum writer 15,*)eta2,suburn write( 16,*)eta3,su bum write( 17,*)eta4,suburn write( 32,*)eta5,suburn if(ys .ge. yrnax) goto 79

ys=ys+ysinc goto 78 continue close (14) close(15) closet 16) closet 17)

write(10,*) do 9998 i=l,n

tetal=( y(i)-yw )/xdata teta2=( y(i)-y50 )/thetal teta3=( y(i)-y50 )/xdata teta4=y(i)/y50

teta5=( y(i)-y95 )/(y50-y95) write( 19,*)tetal,utbuc(i)

write (20,*)teta2, utbuc( i) write (21,*)teta3,utbuc (i) writer 22,*)teta4, utbuc(i) writer 33,*)teta5, utbuc (i) continue

close(19) close(20) close(21) close(22) close(32) close(33) curve plotting

write( 10,*),---

\

t--- >

U/Um. '

deltay=( ymax-ymin) / nop deltau=1.0/65

yc=ymin do 75 iv=l,nop

uc=fubum(yc) line=' ,

line(l:l)=':'

jh=ltnint( uc/deltau) line(jh:jh)='*'

write(lO,*) line yc=yctdeltay

75 continue

write(lO,*l'V' write(10,*)'-<' close (1O,status='keep') 100 stop

end

* block data block data common /al/m,n data n/8/

end

* subroutine polreg

subroutine polreg(x,y,a)

dimension x(100),y(100),a(100,101) common /al/m,n

ip=mt1 do 300 i=l,ip do 275 j=l,ip k=itj-2 do 250 l=l,n

a( i,j) =a(i,j )tx(l)**k

250 continue

275 continue

do 225 l=l,n ir=ipt1

a(i,ir l=a(i,ir lty(l)*x(l)**( i-I)

225 continue

300 continue

return

end ,

* subroutine gauss I

subroutine gauss(aa,aax)

dimension aa(lOO,lOl),aax(lOO) common /a1/m,n

common ax

nn=mt1 mm=nnt1 lI=nn-1 do 412 k=l,11

jj=k

big=abs(aa(k,k) l

81

kp1=k+1

* search for largest possible pivot element do 407 i=kpl,nn

ab=abs(aa(i,k) ) if( big-ab )406,407,407

406 big=ab

jj=i

407 continue

* descision on necessity of row interchange if(jj-k) 408,410,408

* row interchange

408 do 409 j=k,mm

temp=aa(jj,j) aa(jj,j)=aa(k,j)

409 aa(k,j)=temp

* calculation of elements of new matrix

410 do 411 i=kp1,nn

quot=aa(i,k )/aa(k,k) do 411 j=kp1,mm

411 aa(i,j)=aa(i,j)-quot*aa(k,j) do .412 i=kpl,nn

412 aa(i,k)=O.O

* first step in back substitution

aax( nn) =aa(nn,mm)/ aa( nn ,nn)

* remainder of back substitution do 414 nn1=l,ll

sum=O.O i=nn-nn1 ip1=i+1 do 413 j=ip1,nn

413 sum=sum+aa(i,j)*aax(j) 414 aax(i)=(aa(i,mm)-sum)/aa(i,i)

return end

* subroutine simpson

su b rou tine simpsn (area, ymin, ymax,nod ,dummyf)

* this program integrates a function by simpson's rule

* dummyf is a dummy name for the function integrated h=(ymax-ymin)/nod

sum1=0.0 yy=ymin+h do 504 i=2,nod , if( mod(i,2) )502,502',503

502 suml=sum1+4.0*dummyf(yy)

goto 504

503 sum1=sum1+2.0*dummyf(yy)

5M y~y~h

area=( h/3.0 )*(dummyf( ymin)+suml +dummyf( ymax)) return

end

* subroutine trap

subrou tine trap(n,dist,func,trapl ,trap2) dimension dist(n),func(n)

trap1=0.0 trap2=0.0

do 9999 i=l,n-1

trapval=(func(i+ l)+func(i) )/2.0 deltdis t=dist(i+ 1)- dist( i)

trap1=trap1 +trapval*deltdist

tra p2=tra p 2+tra p val *tra pval*de Itdis t 9999 continue

return end

* function fubum

function fubum(yy) common /al/m,n common ax

dimension ax( 100) fubum=O.O do 610 j=l,m+ 1

fu bum=fu bum+ax(j)*( yy**(j-1))

610 continue

return end

* function fubum2

function fubum2(yy) common /a1/m,n common ax

dimension ax( 100) fubum2=0.0 do 710 j=l,m+1

fubum2=fubum2+(ax(j)*(yy**(j-1)) )

710 continue

fubum2=fubum2**2 return

end

* function fubum3

function fubum3(yy) common /a1/m,n common ax

dimension ax( 100) fubum3=0.0 do 3710 j=l,m+1

fu bum3=fubum3+(ax(j )*(yy**(j-1)))

3710 continue,

fubum3=fubum3**3/

return end

83

20000 12000

. program turb character inp * 10

dimension y(l00),umv(l00),uum(100)

dimension ybd(100),utmv( 100),u( 100),ut(l00) dimension dudy(100),ubuc( 100l,utbuc( 100) dimension ubuec( 100),utbuec( 100),reystrss( 100) dimension dsud y( 100),tbrv( 100),tbrt( 100),taobro( 100)

dimension tbrt2( 100),rey2( 100),tbrho2( 100) dimension dist(n) ,func(n),yconbd( 11)

data yconbd/11*O.O/

print '(lx,a,$)','Enter name of the input file:' read *, inp

ope n (9,file=inp,statu s='old')

open( 10,file=' gama.out' ,status='unknown' ,recl=1400) open( 11,file='u.ou t' ,status='unknown' ,recl=1400) open( 13,file='bp.out' ,status='unknown' ,recl=1400) open( 14,file='e 1.out' ,status='unknown' ,recl=1400) open( 15,fiJe='e2.ou t' ,status='unknown' ,recl=1400) open( 16,file='e3.out' ,status='unknown' ,recl=1400) open( 17,file='e4.out' ,status='unknown' ,recJ=1400) open( 18,file='st.ou t' ,status='unknown' ,recl=1400) open( 19,file='e6.out' ,status='unknown' ,recl=1400) open (23,file='bt.out' ,status='unknown' ,rec1=1400) open(24,file='d.out' ,status= 'unknown' ,recl=1400) open(26,file='vs.out' ,status='unknown' ,recl=1400) open( 29,file='ue.out' ,status='unknown' ,rec1=1400) open( 31,file='rey.ou t' ,status='u nknown' ,l'ecl=1400) open( 32,file='e5.out' ,status='unknown' ,recl=1400)

read (9,*)speed read(9,*) uec read(9,*) extnfreq read (9,*) xdata read(9,*) diam read(9,*) n

write( 10,*) speed,uec,extnfreq,xdata,diam,n do 20000 i=1,n

read (9,*) y(i),umv;(i), u tmv (i) write( 10,12000) y'(i),umv(i),utmv(i)

continue format(3flO.5 ) xbd=xdata/diam

write( 1O,*)'SPEED-',speed,' ','X/D=' ,xbd write( 10,*)'x=' ,xdata,'d=' ,diam

uecv=uec

uec=2. 741e-2*( 10.0**(1.092*uecv)) if (extnfreq .eq. 0.0) then

write(10,*)'WITIlOUT EXCITATION!'

else

write(10,*)'WITH EXCITATION!' std=extnfreq *diaml(uee*1 000)

write(IO,*) 'Strouhal number Std=' ,std endif

write( 10,*) write(10,*) do 2001 i=l,n

2001 write(*,*)y(i),umv(i),utmv(i) do 2000 i=l,n

u (i)=2. 741e-2*( 10.0**( 1.092*umv(i») ue=u(1)

ubue(i)=u(i)/ue ubuee(i)=u(i)/uee

utbue (i) =utmv( i)/20.0*umv( 1) u tbuec(i) =utmv( i) /20.0*uecv ut(i)=utbuee(i)*uec

ybd(i)=y(i)/diam

2000 write( 10,*) 'y(' ,i, ')=' ,y(i),' uhue(' ,i,' )=' ,ubue(i), 6'ubuec(' ,i,')=' ,ubuec(i)

write(10,*) do 2100 i=l,n

2100 write(10,*) 'y(' ,i,' )=' ,y(i),' u (' ,i,' )=' ,u(i), 6'ut(' ,i,' )=' ,ut(i)

utpeak=ut(l) do 2002 i=l,n- I

if((ut(i+l) .ge. ut(i» .and. (ut(i+l) .ge. utpeak»)then utpeak=ut(i+l)

ypeak=y(i+ 1)

ybdpeak=y(i+ 1)/diam else

endif

2002 continue

upuec=utpeak/uee

write( 10,*)'xld=' ,xbd, 'utpeak=' ,utpeak write( 10,*) 'y _peak=' ,ypeak

write( 1O,*)'yId_peak=' ,ybdpeak write( 10,*) 'utpeak/uee=' ,upllec

85

7654

do 7654 j=l,n

if(xbd .le. 1.50)then ullm(j)=ubuee(j) else

uum(j)=ubuc(j) endif

continue do 6543 i=l,n-l

if(uum(i) .ge. 0.95 .and. uum(i+l) .le. 0.95)then

yconbd( 1)=y(i)+( y(i+ 1)-y(i) )*( uum( i)-0.95 )/( uum(i)-uum(i+ 1)) elseif(uum(i) .ge. 0.9 .and. uum(i+1) .Ie. 0.9)then

yconbd( 2)=y(i)+( y( i+1)-y(i) )*(uum(i)-O.9)1(uum (i)-uum(i+ 1)) elseif(uum(i) .ge. 0.8 .and. uum(i+1) .Ie. 0.8)then

yconbd(3)=y(i)+(y(i+ l)-y(i) )*( uum(i)-0.8)/(uum(i)-uum(i+ 1)) elseif(uum(i) .ge. 0.7 .and. uum(i+1) .Ie. 0.7)then

yconbd (4 )=y(i)+( y(i+l )-y(i) )*( uum(i)-O. 7)/( uum (i)-uum(i+ 1)) elseif(uum(i) .ge. 0.6 .and. uum(i+1) .Ie. 0.6)t.hen

yconbd (5)=y(i)+( y(i+ 1)-y(i) )*( uum(i)-0.6 )/( uum(i)-uum(i+ 1)) elseif(uum(i) .ge. 0.5 .and. uum(i+1) .Ie. 0.5)then

ycon bd( 6)=y(i)+(y(i+ 1)-y(i) )*( uum(i)-0.5 )/( uum( i)-uum(i+ 1)) indexy50=i

elseif(ullm(i) .ge. 0.4 .and. uum(i+ll .Ie. 0.4)t.hen

ycon bd( 7)=y(i)+( y( i+1)-y(i) )*(uum(i)-0.4)1 (uum(j)-u um(i+1)) elseif(uum(i) .ge. 0.3 .and. uum(i+1) .le. 0.3)t.hen

yeon bd (8 )=y(i)+(y( i+1)-y(i) )*( u um(i )-0.3) I( uum(i)-uum(i+ 1)) elseif(uum(i) .ge. 0.2 .and. uum(i+1) .le. 0.2)t.hen

yeonbd( 9)=y(i)+( y(i+ 1)-y(i) )*( uum (i )-0.2 )/( u um(i)-u um(i+1)) elseif(uum(i) .ge. 0.13 .and. uum(i+ll .le. 0.13)t.hen

yconbd (10)=y(i)+ (y(i+ 1)-y(i) )*( uum(i)-O.13)1 (uum(i)-uum(i+ 1)) indexy10=i+ 1

ymax=y(i+ 1) else

endif 6543 continue

if(yeonbd(6) .eq. O.O)then

ycon bd (6 )=(yconbd (5)+ycon bd( 7))/2.0 else

endif ymin=y(l) do 7656 i=l,10

7656 write( 10,*) 'yconbd (' ,i, ')=' ,yconbd(i) writer 10,*) 'ymin=' ,ymin

writ.e(10,*) 'ymax=' ,ymax

writ.e( 10,*) 'y _0.10(' ,indexy1O,' )=' ,y(indexy10) slwb=yconbd (10)-yconbd (1)

write( 1O,*)'xbd=' ,xbd writ.e( 10,*) 'slwb=' ,slwb

do 2500 i=l,indexy1O

writ.e( 11,*) ybd(i) ,ubuc(i) ,utbuc(i) wri I.e(29,*) ybd (i), u buec (i), u t.buec (i)

2500 continue I

c1ose(11) c1ose(29)

print. *,'ok !, i am running'

call trap( n,indexy1O,y ,u buec,areal,area2,area3) write (*,*) 'traparea1 =' ,areal

writ.e( *,*) 'traparea2=' ,area2 write(*,*) 'traparea3=' ,area3 delta=ymax-ymin-areal

theta=area1-area2

9990

deltae=area1-area3 sfh12=delta/theta sfh32=deltae/theta write(lO,*)

write( 10,*)'trap delta=' ,delta write( 10,*)'trap theta=' ,theta write( 10,*)'trap deltae=' ,deltae write( 10,*)'sfh12=' ,sfh12

write( 10,*)'sfh32=' ,sfh32

call trap (n,indexy 1O,y,utbuec, tarea1, tarea2, tarea3) q b1'0=2.0*uec*areal/1 000.0

amxbro=2. 0*uec*uec*area2/1 000.0 amfxbro=2.0*uec*uec*tarea2/1000.0 amtx bro=amxb rotamfx bro

write( 10,*)'Q/rho=' ,qbro write( 10,*)'M(X)/rho=' ,amxbro write( 1O,*)'MF(X)/rho=' ,amfxbro write( 10,*)'MT(X)/rho=' ,amtxbro

write(10,*) if(xdata .It. 5.0)then

yw=diam/2.

do 9990 i=1,n

yeblp=(yw-y(i) )/delta ybdelta=y(i)/ delta

write( 13,*)ubuc(i) ,yeblp,ybdelta write( 23,*)utbuc( i), ye blp, ybdelta continue

closet 13) close(23 ) else

write( 10,*) endif

areaj=22.0*(y(indexy10 )**2.)/(7.0*1000.*1000.) write(lO,*)

write( 10,*)'x/ d=' ,xbd,' jetarea=' ,areaj

call trap( n ,indexylO,y, ubuec ,area11 ,area22 ,area33) write(10,*)

write(10,*)'areall=' ,area11,' area22=' ,area22 theta1=area11-area22

t1bd=theta1/diam if(extnfreq .ne. O.O)then

st the ta=extnfre q*th eta1/u ec write(10,*) 'sttheta=' ,sttheta

else endif

write(10,*)'thetaO.10=' ,theta1,' x/d=' ,xbd, 5 ' thetaO.l0/d=',tlbd

vneu=1.5e-5

87

h.

tkai=0.8

do 4000 id=2,indexyl0-l dyl=( y(id )-y(id-l) )/1000.0 dy2=( y(id+ l)-y( id))/1000.0

dudy(id )=(u(id+ 1)-u (id-l) )/( dy 1+dy2)

dsudy(id )=(u (id-l )-2.*u (id)+u (id+1))I( dyl *dy2) if(dudy(id) .eq. O.O)then

dudy(id)=1.0e-7 else

endif

if(dsudy(id) .eq. O.O)then dsudy(id)=1.0e-7

else endif

write(*,*)id,dyl, dy2, dudy(id), dsudy(id) tbrv(id)=vneu*dudy(id)

stkai=tkai*lkai

cd u dy=d ud y( id )*du dy (id )*d ud y(id) absdud y=(dudy(id )*dudy(id) )**0.5 sdsudy=dsudy(id )*dsudy(id)

tbrt( id )=stkai*edudy*absd udyIsdsud,' reystrss(id )=(-1.0 )*tbrt(jd )/( uec**2) taobro(id )=tbrv(id )+tbrt(id)

4000 continue

print*, 'I'

dudymax=dudy(2)

do 4444 nn=2,indexyl0-l

if((dud,'(nn+l) .gt. dudy(nn)) .and. (dudy(nn+l) .ge. dudymax))then dudymax=dudy(nn+ 1)

else endif

4444 continue

print*, '2'

print*, dudymax

if( dudymax .ne. 0.0) then

deltaw=(ucldudymax)*1000.0

write( 10,*)'dudymax=' ,d ud Ylllax,'deltaw=' ,deltaw else

write(lO,*)'dudymax=',dudymax,'deltaw not calculated' endif

4001

do 4001 jd",2,indexyl0-l

write (2~,*)y(jd) ,d udy( jd) ,ds ud y(jd) continue

write(*,*)'ok' close(24 ) write(lO,*)

write( 10,*)'dudy(' ,indexy50, ')=' ,d udy(indexy50) write( 10,*)'dudy(' ,indexy50+ I, ')=' ,dudy(indexy50+ 1) dudy50=( dudy(indexy50 )+dudy(indexy50+ 1))12.0

if (dudy50 .eq. 0.0) then dudy50=10000.0

else

Dalam dokumen Full Thesis .pdf - BUET Central Library (Halaman 89-126)

Dokumen terkait