You are on page 1of 2

finish

/clear, all, all


/prep7 ! STLRTING THE PREPROSSESOR
immed,on ! IMMEDILTE GRLPHICS ON
pi=2*asin(1) ! DEFINITION OF PIs

!*..............................Defining Material
Properties..........................

N_MODE = 990
RANGE_MIN = 0
RANGE_MAX = 2000
plate_e = 70e9 ! N/m2 !! Elastic modulus, plate element x direction
plate_nu = 0.3 ! Major Poisson's ratio, y-z plane for plate element
Plate_dens = 2700 ! Kg/m3 !!Mass density of plate element
pl_l = 2
pl_rad = 1.0
pl_th = 0.002
esize_1=30 ! element size along the circumference
esize_2=40 ! element size along the length

!*...................................Element
Definition...............................

ET,1,SHELL181

!*......................Material and Real Constants


Definition........................

mp,ex,1,plate_e
mp,prxy,1,plate_nu
mp,dens,1,plate_dens

!* Real Constant Definition for shell

sectype,1,shell
secdata,pl_th

!*................................Defining Shell
Structure............................

!* defining the circle and keypoint


k,1,0,0,0 !DEFINING THE KEYPOINT
k,2,0.6,0,0
k,3,0.6,0.6,0
k,4,0,0.6,0

l,1,2 !DEFINING THE LINE


l,2,3
l,3,4
l,4,1

!-------defining the area-------:


al,1,2,3,4

!------defining area mesh-----------:


lesize,1,,,esize_1 ! MESHING THE LINE
lesize,2,,,esize_1
lesize,3,,,esize_1
lesize,4,,,esize_1

type,1 ! Setting the plate element type


mat,1 ! Setting the plate material properties

amesh,all ! MESH ALL AREAS

!*.............................Numbering
NUMMRG,NODE, , , ,LOW
NUMCMP,node

*get,STRUC_A_NODENUM,node,0,count,,
*get,STRUC_A_ELEMNUM,elem,0,count,,
*vget,STRUC_A_NODEID,node,,nlist
*vget,STRUC_A_ELEMID,elem,,elist

allsel,all

!------------ Structural Meshing Data ---------------------------


!
allsel,all
*cfopen,STRUC_A_MESH,m
CMDSTRING1 = 'struc_A.node.xyz = [...'
*vwrite,CMDSTRING1
%c
*do,NN,1,STRUC_A_NODENUM
NODE_REF = STRUC_A_NODEID(NN)
NODE_LOC_X = nx(NODE_REF)
NODE_LOC_Y = ny(NODE_REF)
NODE_LOC_Z = nz(NODE_REF)
*vwrite,NODE_LOC_X,NODE_LOC_Y,NODE_LOC_Z
%g %g %g
*enddo
*vwrite
];

CSYS,0
allsel,all

CMDSTRING1 = 'struc_A.elem.quad = [...'


*vwrite,CMDSTRING1
%c
*do,NN,1,STRUC_A_ELEMNUM
STRUC_A_ELEMREF = STRUC_A_ELEMID(NN)
NEK1 = nelem(STRUC_A_ELEMREF,1)
NEK2 = nelem(STRUC_A_ELEMREF,2)
NEK3 = nelem(STRUC_A_ELEMREF,3)
NEK4 = nelem(STRUC_A_ELEMREF,4)
*vwrite,NEK1,NEK2,NEK3,NEK4
%i %i %i %i
*enddo
*vwrite
];

You might also like