马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?我要加入
x
/encrypt,yuhui4,Magic Glass,mac,d:\ <BR>/nopr <BR>finish <BR>/CLEAR,NOSTART <BR>multipro,'start',10 <BR>*cset,1,3,H,'The height of glass(unit:m)',2 <BR>*cset,4,6,W,'The width of glass(unit:m)',2 <BR>*cset,7,9,a1,'Angle left side to down(unit:C)',90 <BR>*cset,10,12,a2,'Angle right side to down(unit:C)',90 <BR>*cset,13,15,hole,'the number of hole',4 <BR>*cset,16,18,type,'Layered Glass Type(!SeePeak!)',1 <BR>*cset,19,21,thi,'Thickness of inner Glass(unit:m)',0.01 <BR>*cset,22,24,tho,'Thickness of outer Glass(unit:m)',0.008 <BR>*cset,25,27,Wk,'Designed wind pressure(unit:N/m2)',1000 <BR>*cset,61,62,'Please Fill in related blanks to',' build FEA model And apply loads' <BR>*cset,28,30,Seismic,'Designed seismic accelerate(m/s2)',0.08 <BR>*cset,63,64,'FOR LAYERED GLASS TYPE:1--[dan','pian],2--[jiajiao],3--[ganghua]' <BR>multipro,'end' <BR>*if,hole,eq,0,then <BR> multipro,'start',8 <BR> *cset,1,3,doftop,'constrain type on the top side',2 <BR> *cset,4,6,dofdown,'constrain type on the down side',1 <BR> *cset,7,9,dofleft,'constrain type on the left side',2 <BR> *cset,10,12,dofright,'constrain type on the right side',1 <BR> *cset,13,15,Wdiv,'divide number on the width side',40 <BR> *cset,16,18,Hdiv,'divide number on the heigth side',40 <BR> *cset,19,21,gravity,'The gravity Acceleration(unit:m/s2)',0 <BR> *cset,22,24,switch,'Choose solution type',1 <BR> *cset,61,62,'Please Fill in related blanks to',' Get FEA solution' <BR> *cset,63,64,'SWITCH:0--[By Youself]1--[Small',',Deformed] 2--[LargeDeformed]' <BR> multipro,'end' <BR>*elseif,hole,eq,2,then <BR> multipro,'start',9 <BR> *cset,1,3,kr,'Radium of glass hole(unit:m)',0.0175 <BR> *cset,4,6,kbw,'Distance to width side(unit:m)',0.106 <BR> *cset,7,9,kbh,'Distance to height side(unit:m)',0.106 <BR> *cset,10,12,dofdown,'constrain type on the down side',1 <BR> *cset,13,15,Wdiv,'divide number on the width side',40 <BR> *cset,16,18,Hdiv,'divide number on the heigth side',40 <BR> *cset,19,21,holediv,'divide number on the hole side',32 <BR> *cset,22,24,gravity,'The gravity Acceleration(unit:m/s2)',0 <BR> *cset,25,27,switch,'Choose solution type',1 <BR> *cset,61,62,'Please Fill in related blanks to',' Get FEA solution' <BR> *cset,63,64,'SWITCH:0--[By Youself]1--[Small',',Deformed] 2--[LargeDeformed]' <BR> multipro,'end' <BR>*elseif,hole,eq,4,then <BR> multipro,'start',8 <BR> *cset,1,3,kr,'Radium of glass hole(unit:m)',0.0175 <BR> *cset,4,6,kbw,'Distance to width side(unit:m)',0.106 <BR> *cset,7,9,kbh,'Distance to height side(unit:m)',0.106 <BR> *cset,10,12,Wdiv,'divide number on the width side',40 <BR> *cset,13,15,Hdiv,'divide number on the heigth side',40 <BR> *cset,16,18,holediv,'divide number on the hole side',32 <BR> *cset,19,21,gravity,'The gravity Acceleration(unit:m/s2)',0 <BR> *cset,22,24,switch,'Choose solution type',1 <BR> *cset,61,62,'Please Fill in related blanks to',' Get FEA solution' <BR> *cset,63,64,'SWITCH:0--[By Youself]1--[Small',',Deformed] 2--[LargeDeformed]' <BR> multipro,'end' <BR>*elseif,hole,eq,6,then <BR> multipro,'start',9 <BR> *cset,1,3,kr,'Radium of glass hole(unit:m)',0.0175 <BR> *cset,4,6,kbw,'Distance to width side(unit:m)',0.106 <BR> *cset,7,9,kbh,'Distance to height side(unit:m)',0.106 <BR> *cset,10,12,Dbottom,'hole central distance to bottom',1 <BR> *cset,13,15,Wdiv,'divide number on the width side',40 <BR> *cset,16,18,Hdiv,'divide number on the heigth side',40 <BR> *cset,19,21,holediv,'divide number on the hole side',32 <BR> *cset,22,24,gravity,'The gravity Acceleration(unit:m/s2)',0 <BR> *cset,25,27,switch,'Choose solution type',1 <BR> *cset,61,62,'Please Fill in related blanks to',' Get FEA solution' <BR> *cset,63,64,'SWITCH:0--[By Youself]1--[Small',',Deformed] 2--[LargeDeformed]' <BR> multipro,'end' <BR>*endif <BR>*if,hole,eq,0,then!!!!!!!!!!平板建模 <BR> /prep7 <BR> csys,0 <BR> k,1,1,1 <BR> k,2,1+w,1 <BR> *afun,deg <BR> k,3,1+H*cos(a1)/sin(a1),1+H <BR> k,4,1+w-H*cos(a2)/sin(a2),1+H <BR> a,1,2,4,3 <BR> et,1,shell63 <BR>*if,type,eq,1,then <BR> thforcal=1.1*thi <BR>*elseif,type,eq,2,then <BR> thforcal=1.1*1.25*thi <BR>*elseif,type,eq,3,then <BR> thforcal=1.1*1.20*thi <BR>*endif <BR> R,1,thforcal, <BR> MP,EX,1,7.2e10 <BR> MP,PRXY,1,0.21 <BR> mp,dens,1,2560 <BR> lsel,s,loc,y,ky(1)-0.01,ky(1)+0.01 <BR> lesize,all,,,wdiv <BR> lsel,all <BR> lsel,s,loc,y,ky(3)-0.01,ky(3)+0.01 <BR> lesize,all,,,wdiv <BR> lsel,all <BR> lsel,s,loc,x,kx(1)-0.01,kx(3)+0.01 <BR> lesize,all,,,hdiv <BR> lsel,all <BR> lsel,s,loc,x,kx(4)-0.01,kx(2)+0.01 <BR> lesize,all,,,hdiv <BR> lsel,all <BR> amesh,1 <BR>*if,doftop,eq,0,then <BR> *elseif,doftop,eq,1,then <BR> lsel,s,loc,y,ky(3)-0.01,ky(3)+0.01 <BR> dl,all,,uz <BR> dl,all,,uX <BR> allsel <BR> *elseif,doftop,eq,2,then <BR> lsel,s,loc,y,ky(3)-0.01,ky(3)+0.01 <BR> dl,all,,uz <BR> dl,all,,uy <BR> allsel <BR>*endif <BR>*if,dofdown,eq,0,then <BR> *elseif,dofdown,eq,1,then <BR> lsel,s,loc,y,ky(1)-0.01,ky(1)+0.01 <BR> dl,all,,uz <BR> dl,all,,uX <BR> allsel <BR> *elseif,dofdown,eq,2,then <BR> lsel,s,loc,y,ky(1)-0.01,ky(1)+0.01 <BR> dl,all,,uz <BR> dl,all,,uy <BR> allsel <BR>*endif <BR>*if,dofleft,eq,0,then <BR> *elseif,dofleft,eq,1,then <BR> lsel,s,loc,x,kx(1)-0.01,kx(3)+0.01 <BR> dl,all,,uz <BR> dl,all,,uY <BR> allsel <BR> *elseif,dofleft,eq,2,then <BR> lsel,s,loc,x,kx(1)-0.01,kx(3)+0.01 <BR> dl,all,,uz <BR> dl,all,,ux <BR> allsel <BR>*endif <BR>*if,dofright,eq,0,then <BR> *elseif,dofright,eq,1,then <BR> lsel,s,loc,x,kx(4)-0.01,kx(2)+0.01 <BR> dl,all,,uz <BR> dl,all,,uY <BR> allsel <BR> *elseif,dofright,eq,2,then <BR> lsel,s,loc,x,kx(4)-0.01,kx(2)+0.01 <BR> dl,all,,uz <BR> dl,all,,ux <BR> allsel <BR>*endif <BR>finish <BR>*elseif,hole,eq,2,then!!!!!!!!!!!!两点建模 <BR>/prep7 <BR>/UIS,MSGPOP,3 <BR>et,1,shell63 <BR>*if,type,eq,1,then <BR> thforcal=1.1*thi <BR>*elseif,type,eq,2,then <BR> thforcal=1.1*1.25*thi <BR>*elseif,type,eq,3,then <BR> thforcal=1.1*1.20*thi <BR>*endif <BR>r,2,thforcal <BR>mp,ex,2,2.06e11 <BR>mp,prxy,2,0.3 <BR>csys,1 <BR>n,1, <BR>n,2,kr, <BR>kld=holediv <BR>ngen,kld,1,2,,,,360/kld <BR>*creat,make,mac <BR> et,1,shell63 <BR> real,2 <BR> mat,2 <BR>! :do loop1 <BR>*do,i,2,kld,1 <BR>e,1,i,i+1 <BR>*enddo <BR>finish <BR>/prep7 <BR>e,1,kld+1,2 <BR>*end <BR>make <BR>finish <BR>/prep7 <BR>csys,0 <BR>k,1,1,1 <BR>k,2,1+w,1 <BR>*afun,deg <BR>k,3,1+H*cos(a1)/sin(a1),1+H <BR>k,4,1+w-H*cos(a2)/sin(a2),1+H <BR>k,5,kx(3)+kbw/sin(a1)-kbh*cos(a1)/sin(a1),ky(3)-kbh <BR>k,6,kx(4)-kbw/sin(a2)+kbw*cos(a2)/sin(a2),ky(4)-kbh <BR>a,1,2,4,3 <BR>CYL4,kx(5),ky(5),kr <BR>CYL4,kx(6),ky(6),kr <BR>a***a,1,2 <BR>a***a,4,3 <BR>aplot <BR>/UIS,MSGPOP,3 <BR>R,1,thforcal, <BR>MP,EX,1,7.2e10 <BR>MP,PRXY,1,0.21 <BR>mp,dens,1,2560 <BR>SMRT,6 <BR>TYPE, 1 <BR>MAT, 1 <BR>REAL, 1 <BR>ESYS, 0 <BR>lsel,s,loc,y,ky(1)-0.01,ky(1)+0.01 <BR> lesize,all,,,wdiv <BR> lsel,all <BR> lsel,s,loc,y,ky(3)-0.01,ky(3)+0.01 <BR> lesize,all,,,wdiv <BR> lsel,all <BR> lsel,s,loc,x,kx(1)-0.01,kx(3)+0.01 <BR> lesize,all,,,hdiv <BR> lsel,all <BR> lsel,s,loc,x,kx(4)-0.01,kx(2)+0.01 <BR> lesize,all,,,hdiv <BR> lsel,all <BR>LSEL,S,LENGTH,,2*kr,2*(h+w) <BR>LSEL,INVE <BR>lesize,all,,,kld/4 <BR>smrtsize,6 <BR>mshape,1,2d <BR>mshkey,0 <BR>amesh,1 <BR>eplot <BR>*get,nnn1,node,0,count <BR>egen,2,nnn1+kld,1,kld,1,,,,,,kx(5),ky(5) <BR>*get,nnn2,node,0,count <BR>egen,2,nnn2+kld,1,kld,1,,,,,,kx(6),ky(6) <BR>/UIS,MSGPOP,3 <BR>edele,1,kld,1 <BR>ndele,1,kld+1 <BR>/auto,1 <BR>/rep <BR>nsel,s,loc,x,kx(5)-0.001,kx(5)+0.001 <BR>nsel,r,loc,y,ky(5)-0.001,ky(5)+0.001 <BR>d,all,ux,0,,,,uy,uz <BR>allsel <BR>nsel,s,loc,x,kx(6)-0.001,kx(6)+0.001 <BR>nsel,r,loc,y,ky(6)-0.001,ky(6)+0.001 <BR>d,all,uy,0,,,,uz <BR>allsel <BR>CPINTF,ALL,0.0001, <BR>*if,dofdown,eq,0,then <BR> *elseif,dofdown,eq,1,then <BR> lsel,s,loc,y,ky(1)-0.01,ky(1)+0.01 <BR> dl,all,,uz <BR> allsel <BR> *elseif,dofdown,eq,2,then <BR> lsel,s,loc,y,ky(1)-0.01,ky(1)+0.01 <BR> dl,all,,uz <BR> dl,all,,uy <BR> allsel <BR>*endif <BR>finish <BR>*elseif,hole,eq,4,then!!!!!!!!!!!!!!!!!四点建模 <BR>/prep7 <BR>/UIS,MSGPOP,3 <BR>et,1,shell63 <BR>*if,type,eq,1,then <BR> thforcal=1.1*thi <BR>*elseif,type,eq,2,then <BR> thforcal=1.1*1.25*thi <BR>*elseif,type,eq,3,then <BR> thforcal=1.1*1.20*thi <BR>*endif <BR> |