/title , frame
/PREP7
!Enter the height and width of the frame:
300, 400
! Define Keypoints
K,1,x1, y1 ! keypoint, #, x, y
K,2,x2, y2
K,3,x3, y3
K,4,x4, y4
K,5,x5, y5
K,6,x6, y6
! Define Lines Linking Keypoints
L,1,2 ! L,keypoint1,keypoint2
L,2,3
L,3,4
L,4,1
L,4,6
L,4,5
L,3,5
L,3,6
! element definition
!
ET,1,LINK1 ! element type #1; spring element
R,1,3250 ! real constant #1; Xsect area: 3200 mm^2
MP,EX,1,200e3 ! material property #1; Young's modulus: 200 GPa
LESIZE,ALL, , ,1,1,1 ! specify divisions on unmeshed lines
LMESH,all ! mesh all lines
!
FINISH ! finish pre-processor
!
/SOLU ! enter solution phase
!
! apply some constraints
DK,1,UX,0,,,UY,UZ ! define a DOF constraint at a keypoint
DK,7,UY,0,,,UZ
!
! apply loads
!
FK,1,FY,-280e3 ! define a force load to a keypoint
FK,3,FY,-210e3
FK,5,FY,-280e3
FK,7,FY,-360e3
!
SOLVE ! solve the resulting system of equations
FINISH ! finish solution
/POST1
PRRSOL,F ! List Reaction Forces
PLDISP,2 ! Plot Deformed shape
PLNSOL,U,SUM,0,1 ! Contour Plot of deflection
ETABLE,SAXL,LS, 1 ! Axial Stress
PRETAB,SAXL ! List Element Table
PLETAB,SAXL,NOAV ! Plot Axial Stress