Page 167 - Using ANSYS for Finite Element Analysis Dynamic, Probabilistic, Design and Heat Transfer Analysis
P. 167

154  •   using ansys for finite eLement anaLysis

                         MPDATA,EX,1,,200e9
                         MPDATA,PRXY,1,,0.32
                         ! Create geometric model
                         BLC4,2.25,0.5,3,1.5
                         BLC4,7.25,.5,3,1.5
                         CYL4,1.25,1.25,1.25
                         CYL4,6.25,1.25,1.25
                         CYL4,11.25,1.25,1.25
                         ! Add rectangles with three circular areas
                         FLST,2,5,5,ORDE,2
                         FITEM,2,1
                         FITEM,2,-5
                         AADD,P51X
                         ! Create three hexagonal areas
                         RPR4,6,1.25,1.25,0.7,120
                         RPR4,6,6.25,1.25,0.9,120
                         RPR4,6,11.25,1.25,0.7,120
                         ! Subtract hexagonals to create final shape
                         FLST,3,3,5,ORDE,2
                         FITEM,3,1
                         FITEM,3,-3
                         ASBA, 6,P51X
                         ! Meshing of the geometry
                         ESIZE,0.1,0,
                         MSHKEY,0
                         CM,_Y,AREA
                         ASEL, , , , 4
                         CM,_Y1,AREA
                         CHKMSH,’AREA’
                         CMSEL,S,_Y
                         AMESH,_Y1
                         CMDELE,_Y
                         CMDELE,_Y1
                         CMDELE,_Y2
                         !*
                         ANTYPE,0  !  Set  analysis  type  for  Static
                     Analysis
                         !
                         ! Apply displacement boundary conditions
                         FLST,2,6,3,ORDE,6
                         FITEM,2,9
                         FITEM,2,13
   162   163   164   165   166   167   168   169   170   171   172