You are on page 1of 6

nrec=300

d=0
aa=0
bb=0
cc=0
dd=0
ee=0
ff=0
gg=0
hh=0
ii=0
jj=0
kk=0
aa1=0
bb1=0
cc1=0
dd1=0
ee1=0
ff1=0
gg1=0
hh1=0
ii1=0
jj1=0
kk1=0
aa2=0
bb2=0
cc2=0
dd2=0
ee2=0
ff2=0
gg2=0
hh2=0
ii2=0
jj2=0
kk2=0
aa3=0
bb3=0
cc3=0
dd3=0
ee3=0
ff3=0
gg3=0
hh3=0
ii3=0
jj3=0
kk3=0
aa4=0
bb4=0
cc4=0
dd4=0
ee4=0
ff4=0
gg4=0
hh4=0
ii4=0
jj4=0
kk4=0
/post1
*do,I,1,(nrec-1),1
alls
esel,s,type,,1
nsle,r
SET, , ,1, ,(0+0.02*I), ,
etable,sye,s,y,avg
eSORT,etab,sye,s,y,max
*get,gsye,sort,,max
*get,gsyee,sort,0,imax
*if,aa,lt,gsye,then
aa=gsye
bb=gsyee
cc=I*dr
*endif
etable,sye,eras
esel,s,elem,,bb
nsle,r
nsort,s,y
*get,dd,sort,,max
*get,ee,sort,0,imax
nsort,loc,x
*get,ff,sort,,max
*get,gg,sort,0,imax
nsort,loc,y
*get,hh,sort,,max
*get,ii,sort,0,imax
nsort,loc,z
*get,jj,sort,,max
*get,kk,sort,0,imax
alls

esel,s,type,,1
etable,sye1,s,z,avg
eSORT,etab,sye1,s,z,min
*get,gsye1,sort,,min
*get,gsyee1,sort,0,imin
*if,aa1,gt,gsye1,then
aa1=gsye1
bb1=gsyee1
cc1=I*dr
*endif
etable,sye,eras
esel,s,elem,,bb1
nsle,r
nsort,s,z
*get,dd1,sort,,min
*get,ee1,sort,0,imin
nsort,loc,x
*get,ff1,sort,,max
*get,gg,sort,0,imax
nsort,loc,y
*get,hh1,sort,,max
*get,ii1,sort,0,imax
nsort,loc,z
*get,jj1,sort,,max
*get,kk1,sort,0,imax
alls

esel,s,type,,1
etable,sye2,s,z,avg
eSORT,etab,sye2,s,z,max
*get,gsye2,sort,,max
*get,gsyee2,sort,0,imax
*if,aa2,lt,gsye2,then
aa2=gsye2
bb2=gsyee2
cc2=I*dr
*endif
etable,sye,eras
esel,s,elem,,bb2
nsle,r
nsort,s,z
*get,dd2,sort,,min
*get,ee2,sort,0,imin
nsort,loc,x
*get,ff2,sort,,max
*get,gg2,sort,0,imax
nsort,loc,y
*get,hh2,sort,,max
*get,ii2,sort,0,imax
nsort,loc,z
*get,jj2,sort,,max
*get,kk2,sort,0,imax
alls

esel,s,type,,1
etable,sye3,s,yz,avg
eSORT,etab,sye3,s,yz,max
*get,gsye3,sort,,max
*get,gsyee3,sort,0,imax
*if,aa3,lt,gsye3,then
aa3=gsye3
bb3=gsyee3
cc3=I*dr
*endif
etable,sye,eras
esel,s,elem,,bb3
nsle,r
nsort,s,yz
*get,dd3,sort,,min
*get,ee3,sort,0,imin
nsort,loc,x
*get,ff3,sort,,max
*get,gg3,sort,0,imax
nsort,loc,y
*get,hh3,sort,,max
*get,ii3,sort,0,imax
nsort,loc,z
*get,jj3,sort,,max
*get,kk3,sort,0,imax
alls
i

esel,s,type,,1
etable,sye4,s,xz,avg
eSORT,etab,sye4,s,xz,max
*get,gsye4,sort,,max
*get,gsyee4,sort,0,imax
*if,aa4,lt,gsye4,then
aa4=gsye4
bb4=gsyee4
cc4=I*dr
*endif
etable,sye,eras
esel,s,elem,,bb4
nsle,r
nsort,s,xz
*get,dd4,sort,,min
*get,ee4,sort,0,imin
nsort,loc,x
*get,ff4,sort,,max
*get,gg4,sort,0,imax
nsort,loc,y
*get,hh4,sort,,max
*get,ii4,sort,0,imax
nsort,loc,z
*get,jj4,sort,,max
*get,kk4,sort,0,imax
alls

!***************************************
a=0
*do,j,1,(4*ne-1),1
csys,1
alls
esel,s,type,,2
nsle,u
esel,s,all
esel,u,type,,2
nsel,r,loc,z,-h1
nsel,r,loc,x,r1
nsel,r,loc,y,90*(j-1)/ne-.1,90*(j-1)/ne+.1
nsort,s,z
*get,S1,sort,,imax
*get,FZ1,node,S1,RF,FZ
iii=FZ1
etable,FZ,eras
nsort,loc,y
*get,Slocy,sort,,imax
alls
esel,s,type,,2
nsle,u
esel,s,all
esel,u,type,,2
nsel,r,loc,z,-h1
nsel,r,loc,x,r1+c
nsel,r,loc,y,90*(j-1)/ne-.1,90*(j-1)/ne+.1
nsort,s,z
*get,S2,sort,,imax
*get,FZ2,node,S2,RF,FZ
jjj=FZ2
etable,FZ,eras
alls
esel,s,type,,2
nsle,u
esel,s,all
esel,u,type,,2
nsel,r,loc,z,-h1
nsel,r,loc,x,r1+t-c
nsel,r,loc,y,90*(j-1)/ne-.1,90*(j-1)/ne+.1
nsort,s,z
*get,S3,sort,,imax
*get,FZ3,node,S3,RF,FZ
kkk=FZ3
etable,FZ,eras
alls
esel,s,type,,2
nsle,u
esel,s,all
esel,u,type,,2
nsel,r,loc,z,-h1
nsel,r,loc,x,r1+t
nsel,r,loc,y,90*(j-1)/ne-.1,90*(j-1)/ne+.1
nsort,s,z
*get,S4,sort,,imax
*get,FZ4,node,S4,RF,FZ
lll=FZ4
etable,FZ,eras
alls
b=(iii+jjj+kkk+lll)
*if,a,lt,b,then
a=b
c=Slocy
*endif
*Enddo
*if,d,lt,a,then
d=a
e=c
f=(dr*I)
*endif

!*******************************************

*enddo
/post1
/OUT,'output','txt'
/com, halghavi | |ghaem|
*vwrite,aa,bb,ee,cc,gg,ii,kk,aa1,bb1,ee1,cc1,aa2,bb2,ee2,cc2,gg2,ii2,kk2,aa3,bb3,ee
3,cc3,gg3,ii3,kk3,aa4,bb4,ee4,cc4,gg4,ii4,kk4,d,e,f
(' ',F15.1,' ',F15.0,' ',F15.0,' ',F15.2,' ',F15.1,' ',F15.1,'
',F15.1,'|||||',F15.1,' ',F15.0,' ',F15.0,' ',F15.2,' ',F15.1,' ',F15.1,'
',F15.1,'||||',F15.1,' ',F15.0,' ',F15.0,' ',F15.2,' ',F15.1,' ',F15.1,'
',F15.1,'||||',F15.1,' ',F15.0,' ',F15.0,' ',F15.2,' ',F15.1,' ',F15.1,'
',F15.1,'||||',F15.1,' ',F15.0,' ',F15.0,' ',F15.2,' ',F15.1,' ',F15.1,'
',F15.1,'||||',F15.1,' ',F15.2,' ',F15.2,'||||')
/out

You might also like