ANSYS-3D Space Frame Example
ANSYS-3D Space Frame Example
ANSYS-3D Space Frame Example
html
! Define Some Parameters x1 x2 y1 y2 z1 = = = = = 500 825 325 400 50 ! ! ! ! ! These parameters are not required; i.e. one could directly enter in the coordinates into the keypoint definition below. However, using parameters makes it very easy to quickly make changes to your model!
! Define Keypoints K,1, 0,y1, 0 K,2, 0,y2, 0 K,3,x1,y2, 0 K,4,x1, 0, 0 K,5,x2, 0, z1 K,6,x2, 0,-z1 ! k,key-point number,x-coord,y-coord,z-coord
! Define Lines Linking Keypoints L,1,2 L,2,3 L,3,4 L,4,1 L,4,6 L,4,5 L,3,5 L,3,6 ! Define Element Type ET,1,pipe16 KEYOPT,1,6,1 ! Define Real Constants ! (Note: the inside diameter must be positive) R,1,25,2 ! r,real set number,outside diameter,wall thickness R,2,12,1 ! second set of real constants - for rear forks ! Define Material Properties MP,EX,1,70000 MP,PRXY,1,0.33 ! mp,Young's modulus,material number,value ! mp,Poisson's ratio,material number,value ! l,keypoint1,keypoint2
! Define the number of elements each line is to be divided into LESIZE,ALL,20 ! lesize,line number(all lines),size of element ! Line Meshing REAL,1 LMESH,1,6,1 REAL,2 LMESH,7,8 FINISH /SOLU ANTYPE,0 ! ! ! ! ! turn on real property set #1 mesh those lines which have that property set mesh lines 1 through 6 in steps of 1 activate real property set #2 mesh the rear forks
! Finish pre-processing ! Enter the solution processor ! Analysis type,static (dk command)
! dk,keypoint,direction,displacement,,,direction,direction
(fk command)
!fk,keypoint,direction,force ! Solve the problem ! Finish the solution processor ! Save your work to the database
/GCMD,1, PLDISP,2 !Plot the deformed and undeformed edge /GCMD,2, PLNSOL,U,SUM,0,1
! ! ! ! !
Set up Element Table information Element tables are tables of information regarding the solution data You must tell Ansys what pieces of information you want by using the etable command: etable,arbitrary name,item name,data code number
! The arbitrary name is a name that you give the data in the table ! It serves as a reference name to retrieve the data later ! Use a name that describes the data and is easily remembered. ! The item name and data code number come off of the tables provided. ! Examples: ! For the VonMises (or equivalent) stresses at angle 0 at both ends of the ! element (node i and node j); etable,vonmi0,nmisc,5 etable,vonmj0,nmisc,45 ! For the Axial stresses at angle 0 etable,axii0,ls,1 etable,axij0,ls,33 ! For the Direct axial stress component due to axial load (no bending) ! Note it is independent of angular location. etable,diri,smisc,13 etable,dirj,smisc,15 ! ADD OTHERS THAT YOU NEED IN HERE... ! To plot the data, simply type ! plls, name for node i, name for node j ! for example, /GCMD,3, PLLS,vonmi0,vonmj0 /GCMD,4, PLLS,axii0,axij0 /CONT,2,9,0,,0.27 /CONT,3,9,0,,18 /CONT,4,9,-18,,18