好办法,接着给大家来一个。
finish
/clear,start
/prep7
!****************** define parameter ******************
*abset,'define parameter status bar',bar
*set,j,5
*abcheck,j
*set,design_pressure,1.0
*set,unit,1e0
*set,corrupt,1.6*unit
*set,unitcircle,1 !for create head
!*** define left head size
*set,j,10
*abcheck,j
*set,left_head_ndi,900*unit
*set,left_head_ndta,10*unit
*set,left_head_h,25*unit
*set,left_head_di,left_head_ndi+2*corrupt
*set,left_head_dta,left_head_ndta-corrupt
*set,left_head_do,left_head_di+2*left_head_dta
*set,left_head_hi,left_head_di/4
*set,left_head_ho,left_head_hi+left_head_dta
!*** define left head size
*set,j,20
*abcheck,j
*set,right_head_h,25*unit
*set,shell_l,1350*unit
*set,shell_di,left_head_di
*set,shell_do,left_head_do
!*** define shell support size
*set,j,30
*abcheck,j
*set,supp_shell_plane_posx,250*unit
*set,supp_shell_di,920*unit
*set,supp_shell_dta,6*unit
*set,supp_shell_do,supp_shell_di+supp_shell_dta
*set,supp_shell_w,200*unit
*set,supp_shell_start,30
*set,supp_shell_end,150
!*** define support size
*set,j,40
*abcheck,j
*set,supp_down_plane_posx,250*unit
*set,supp_down_plane_posy,700*unit
*set,supp_down_plane_l,810*unit
*set,supp_down_plane_w,150*unit
*set,supp_down_plane_dta,10*unit
*set,j,50
*abcheck,j
*set,supp_left_plane_posx,185*unit
*set,supp_left_plane_posy,700*unit-supp_down_plane_dta
*set,supp_left_plane_l,800*unit
*set,supp_left_plane_refrew,450*unit
*set,supp_left_plane_dta,8*unit
*set,j,60
*abcheck,j
*set,supp_rib_plane_posz,450*unit/2
*set,supp_rib_plane_l,120*unit
*set,supp_rib_plane_refrew,400*unit
*set,supp_rib_plane_dta,8*unit
!pipe n1 size
*set,j,70
*abcheck,j
*set,pipe_n1_posx,675*unit
*set,pipe_n1_posy,600*unit
*set,pipe_n1_do,88.9*unit
*set,pipe_n1_ndta,7.6*unit
*set,pipe_n1_dta,pipe_n1_ndta-corrupt
*set,pipe_n1_di,pipe_n1_do-2*pipe_n1_dta
*set,pipe_n1_referl,200*unit
!pipe n2 size
*set,j,80
*abcheck,j
*set,pipe_n2_posx,675*unit
*set,pipe_n2_posy,-600*unit
*set,pipe_n2_do,88.9*unit
*set,pipe_n2_ndta,7.6*unit
*set,pipe_n2_dta,pipe_n1_ndta-corrupt
*set,pipe_n2_di,pipe_n1_do-2*pipe_n1_dta
*set,pipe_n2_referl,200*unit
!pipe m1 size
*set,j,90
*abcheck,j
*set,pipe_m1_posx,1750*unit
*set,pipe_m1_do,508*unit
*set,pipe_m1_ndta,15*unit
*set,pipe_m1_dta,pipe_n1_ndta-corrupt
*set,pipe_m1_di,pipe_m1_do-2*pipe_n1_dta
*set,pipe_m1_referl,300*unit
*set,j,100
*abcheck,j
*abfinifh
!****************** Create model ******************
/title,Create Modeling
csys,4
k,1000,0,0,0,
circle,1000,unitcircle
lsel,s,loc,x,-unitcircle,0
lsel,r,loc,y,0,unitcircle
cm,left_line,line
cmsel,a,left_line
lsscale,left_line, , ,left_head_hi,left_head_di/2,1, ,0,0
lsscale,left_line, , ,left_head_ho,left_head_do/2,1, ,0,0
cmdele,left_line
lsel,all
csys,1
lsel,s,loc,x,unitcircle
ldele,all, , ,1
csys,4
lsel,all
lsymm,x,all, , , ,0,0
lsel,s,loc,x,0,-left_head_ho
lgen, ,all, , ,-left_head_h, , , , ,1
lsel,all
lsel,s,loc,x,0,left_head_ho
lgen, ,all, , ,shell_l+right_head_h, , , , ,1
lsel,all
ksel,s,loc,y,shell_di/2
*get,key_temp1, kp, 0, num,max
*get,key_temp2, kp, 0, num,min
l,key_temp1,key_temp2
ksel,s,loc,y,shell_do/2
*get,key_temp1, kp, 0, num,max
*get,key_temp2, kp, 0, num,min
l,key_temp1,key_temp2
ksel,s,loc,x,-left_head_hi-left_head_h,-left_head_ho-left_head_h
*get,key_temp1, kp, 0, num,max
*get,key_temp2, kp, 0, num,min
l,key_temp1,key_temp2
ksel,s,loc,x,shell_l+left_head_hi+right_head_h,shell_l+left_head_ho+right_head_h
*get,key_temp1, kp, 0, num,max
*get,key_temp2, kp, 0, num,min
l,key_temp1,key_temp2
al,all
allsel,all
vrotat,1, , , , , ,key_temp1,key_temp2,360, ,
!*** Create support
wpoff,supp_shell_plane_posx
wpro,,,90
cylind,supp_shell_di/2,supp_shell_do/2,-supp_shell_w/2,supp_shell_w/2,-supp_shell_start,-supp_shell_end,
wpstyl,defa
wpoff,supp_down_plane_posx,-supp_down_plane_posy
wpro,,-90,
block,-supp_down_plane_w/2,supp_down_plane_w/2,-supp_down_plane_l/2,supp_down_plane_l/2,0,supp_down_plane_dta,
wpstyl,defa
wpoff,supp_left_plane_posx,-supp_left_plane_posy
block,0,supp_left_plane_dta,0,supp_left_plane_refrew,-supp_left_plane_l/2,supp_left_plane_l/2,
wpoff,supp_left_plane_dta,,-supp_rib_plane_posz
block,0,supp_rib_plane_l,0,supp_rib_plane_refrew,0,-supp_rib_plane_dta,
wpoff,,,2*supp_rib_plane_posz
block,0,supp_rib_plane_l,0,supp_rib_plane_refrew,0,supp_rib_plane_dta,
vovlap,5,7,8,9
vdele,11, , ,1
vdele,13, , ,1
vdele,16, , ,1
wpstyl,defa
wpoff,shell_l/2
wpro,,,90
wpstyle,,,,,,1,,,!polar system
asel,s,loc,x,shell_di/2
vsla,s
cm,shell_head,volu
cmsel,a,shell_head
allsel,all
vsel,u, , ,shell_head
wpstyle,,,,,,0,,,
vsymm,z,all, , , ,0,0
cmdele,shell_head
wpstyl,defa
allsel,all
!* Create pipe n1
wpoff,pipe_n1_posx,pipe_n1_posy
wpro,,90
cylind,pipe_n1_do/2,pipe_n1_di/2,0,pipe_n1_referl,0,360,
wpstyl,defa
wpoff,pipe_n2_posx,pipe_n2_posy
wpro,,-90
cylind,pipe_n2_do/2,pipe_n2_di/2,0,pipe_n2_referl,0,360,
wpstyl,defa
wpoff,pipe_m1_posx
wpro,,,-90
cylind,pipe_m1_do/2,pipe_m1_di/2,0,pipe_m1_referl,0,360,
wpstyl,defa
vovlap,all
vdele,24, , ,1
vdele,25, , ,1
vdele,26, , ,1
vdele,27, , ,1
vdele,28, , ,1
vdele,29, , ,1
vdele,30, , ,1
vdele,31, , ,1
vdele,45, , ,1
vdele,47, , ,1
vdele,49, , ,1
wpro,,,90
wpoff,,,-left_head_h
vsbw,all
wpoff,,,shell_l+2*left_head_h
vsbw,all
wpstyl,defa
vglue,all |