Beam User-Defined Section

!******************************************
!***First create the built-up cross-section
!******************************************
fini
/clear
/prep7
k,1,0,0,0 !define keypoints
k,2,0,1,0
k,3,1,1,0
k,4,1,0,0
k,5,0,2,0
k,6,1,2,0
a,1,2,3,4 !create areas from keypoints
a,2,5,6,3
et,1,mesh200 !use "not-solved" MESH200 element
keyo,1,1,7 !8node quad option
mat,1 !lower 1/2 of cross-section is material #1
amesh,1 !mesh area #1 with material #1
mat,2 !upper 1/2 of cross-section is material #2
amesh,2 !mesh area #2 with material #2
secwrite,mysec,sect !Write cross-section definition to mysec.sect file

!***********************************************************************************
!***Start new ANSYS Session, read in the section information, apply loads, and solve
!***********************************************************************************
fini
/clear
/prep7
et,1,beam188 !Using BEAM188
n,1,0,0 !Define nodes
n,2,5,0
n,3,10,0
n,4,15,0
n,5,20,0
n,6,25,0
n,1000,0,1,0 !Orientation node
e,1,2,1000 !Create 5 elements from nodes
e,2,3,1000
e,3,4,1000
e,4,5,1000
e,5,6,1000
mp,ex,1,30e6 !Create 2 materials with different alphas
mp,alpx,1,2e-5 !Material 1 alpha = 2e-5
mp,ex,2,30e6
mp,alpx,2,1e-5 !Material 1 alpha = 1e-5
sectype,1,beam,mesh, !User-defined mesh for section ID #1
secread,'mysec','sect',' ',mesh !Read section info from mysec.sect file

/solu

d,1,all,0

f,6,fy,1000

solve

/post1

set,last

/eshape,1

plnsol,s,eqv