You are on page 1of 2

/clear

/filnam,hexagon!specify jobname
/prep7!start preprocessing
et,1,82,,,3!specify element typ 3 for thickness
mp,ex,1,210e9
r,1,0.2

rectng,0,10,-3,3
cyl4,0,0,3
cyl4,0,10,3
aadd,all
pnum,area,1
pnum,line,1
rpoly,6,2
!to draw the second hexagon you have two possibilities:
!using agen (copy command) or define a new WP and draw another
polygon
!if you will use the first method you do the following:
agen,2,1,,,10,0,0

!or the following


!local,11,0,10,0,0
!wpave,0,0,0
!rpoly,6,2
asba,4,all
lesize,all,,,5!specify the divisions
amesh,all
/solu
!/eof
/solu
dl,2,,all,0
dl,4,,all,0
dl,5,,all,0
dl,6,,all,0
dl,7,,all,0
dl,8,,all,0
sfl,17,pres,10!define pressure on line 11
solve
/post1
prnsol,s,prin !list von mises stress
prnsol,u,y !list displacement in y- direction
pldisp,1
prrfor,f!prints the reaction solution

/eof

You might also like