Kannanr03
Mechanical
- Jul 11, 2013
- 3
Hi all,
Actually I am developing the APDL code for a complex structure. I have narrowed down my query to a simple structure here so that I could apply the same concept on my original structure.
APDL code below is for a structure with 2 perpendicularly connected beams from the origin. My aim is to assign each of the beams with different beam sections of varied geometry(but with same material, same element type). I could this comfortably on GUI. But, when I try to assign it on APDL code, I am ended with a meshed structure of the latest defined section as in the image which I have attached. For example, if I assign the second beam with second section , finally the entire structure is of section 2. And section 1 is completely ignored. If someone could get an idea on why its happening in-spite I have used orientation key-points concept in LATT command, please do let me know. Following is the code with which I am working on: Thanks in advance
/PREP7 !preprocessor
MP,EX,1,1E4 !material definition
MP,NUXY,1,0.0
ET,1,BEAM189 !element definition
!keypoint definition
K,1,0,0,0
K,2,100.0,0,0
K,4,0,100.0,0
!orientation keypoint definition
K,3,50,5,0
K,5,0,50,10
!line joining
LSTR,1,2
LSTR,1,4
!definition of 1st section
SECTYPE,1, BEAM, RECT
SECDATA, 0.2, 5.0
LATT,1,,1,,3,,1
!definition of 2nd section
SECTYPE,2, BEAM, RECT
SECDATA, 0.2, 10.0
LATT,1,,1,,5,,2
!meshing
LESIZE, all, , ,10
LMESH,all
/VIEW,,1,1,1 !view change
/ESHAPE,1 !element shape ON
/PNUM,SEC,1 !element section numbering
EPLOT !plot elements
FINISH
Actually I am developing the APDL code for a complex structure. I have narrowed down my query to a simple structure here so that I could apply the same concept on my original structure.
APDL code below is for a structure with 2 perpendicularly connected beams from the origin. My aim is to assign each of the beams with different beam sections of varied geometry(but with same material, same element type). I could this comfortably on GUI. But, when I try to assign it on APDL code, I am ended with a meshed structure of the latest defined section as in the image which I have attached. For example, if I assign the second beam with second section , finally the entire structure is of section 2. And section 1 is completely ignored. If someone could get an idea on why its happening in-spite I have used orientation key-points concept in LATT command, please do let me know. Following is the code with which I am working on: Thanks in advance
/PREP7 !preprocessor
MP,EX,1,1E4 !material definition
MP,NUXY,1,0.0
ET,1,BEAM189 !element definition
!keypoint definition
K,1,0,0,0
K,2,100.0,0,0
K,4,0,100.0,0
!orientation keypoint definition
K,3,50,5,0
K,5,0,50,10
!line joining
LSTR,1,2
LSTR,1,4
!definition of 1st section
SECTYPE,1, BEAM, RECT
SECDATA, 0.2, 5.0
LATT,1,,1,,3,,1
!definition of 2nd section
SECTYPE,2, BEAM, RECT
SECDATA, 0.2, 10.0
LATT,1,,1,,5,,2
!meshing
LESIZE, all, , ,10
LMESH,all
/VIEW,,1,1,1 !view change
/ESHAPE,1 !element shape ON
/PNUM,SEC,1 !element section numbering
EPLOT !plot elements
FINISH