Sie sind auf Seite 1von 36

ANSYS APDL Tutorial

Shelf Example – Truss Elements


Two Force Elements
Link180 in ANSYS
Nodes, Elements
Boundary Conditions, Loads
Free Body at Node 2
/FILNAM,Tutorial-1A
TEXT /title, Simple Truss
FILE /prep7

n, 1, 0.0, 0.0, 0.0 ! Node 1 is located at (0.0, 0.0, 0.0)


PROB n, 2, 20.0, 0.0, 0.0
DEF n, 3, 0.0, 15.0, 0.0

mp, ex, 1, 3.e7 ! Material Properties: E for material no. 1


mp, prxy, 1, 0.27 ! & poisson's ratio for material no.1
et, 1, link180 ! Element type no.1 is LINK180
sectype, 1, link ! Type of cross section is link
secdata, 0.125 ! Cross sectional area = 0.125 sq in

en, 1, 1, 2 ! Element Number 1 connects nodes 1 & 2


en, 2, 2, 3

d, 1, ux, 0. ! Displacement at node 1 in x-dir is zero


d, 1, uy, 0. ! Displacement at node 1 in y-dir is zero
d, 3, ux, 0.
d, 3, uy, 0.

f, 1, fy, -300. ! Force at node 1 in y-direction is -300.


f, 2, fy, -300. ! Force at node 2 in y-direction is -300.
Start APDL
FEM Process

• (1) PREPROCESSOR

• (2) SOLUTION

• (3) POSTPROCESSOR
Utility Menu > File > Change Directory > OK
File > Read
Input from …

Locate & Read


Text File
Display
Manipulation
Utility Menu > PlotCtrls > Numbering >

Node numbers ON, Element / Attrib numbers >

Element numbers > OK


Utility Menu > PlotCtrls >
Symbols > All Applied B.C.'s > OK
Fit > Plot > Elements
Main Menu > Solution > Solve > Current
LS > OK
Main Menu > General Postproc >
Plot Results > Deformed Shape >
Def. + Undef. > OK
Main Menu > General Postproc >
List Results > Nodal Solution >
DOF Solution > Displacement vector sum > OK

THE FOLLOWING DEGREE OF FREEDOM RESULTS ARE IN GLOBAL


COORDINATES

NODE UX UY UZ USUM
1 0.0000 0.0000 0.0000 0.0000
2 -0.21333E-02-0.84000E-02 0.0000 0.86667E-02
3 0.0000 0.0000 0.0000 0.0000

MAXIMUM ABSOLUTE VALUES


NODE 2 2 0 2
VALUE -0.21333E-02-0.84000E-02 0.0000 0.86667E-02
General Postproc > List Results >
Element Solution > Line Element Results >
Element Results > OK
Properties, Force, Stress, Strain

EL= 1 NODES= 1 2 MAT= 1


XC,YC,ZC= 10.00 0.000 0.000 AREA=
0.12500 LINK180
FORCE= -400.00 STRESS= -3200.0 EPEL=-
0.10667E-03
TEMP= 0.00 0.00 EPTH= 0.0000

EL= 2 NODES= 2 3 MAT= 1


XC,YC,ZC= 10.00 7.500 0.000 AREA=
0.12500 LINK180
FORCE= 500.00 STRESS= 4000.0 EPEL=
0.13333E-03
TEMP= 0.00 0.00 EPTH= 0.0000
Beams
Use 10 Beam Elements
For Model
/FILNAM,Tutorial5A
/title, 10 Element, Cantilever Beam
/prep7

!List of Nodes
n, 1, 0.0, 0.0, 0.0 ! Node 1 is located at (0.0, 0.0, 0.0) inches
n, 2, 1.0, 0.0, 0.0
n, 3, 2.0, 0.0, 0.0
n, 4, 3.0, 0.0, 0.0
n, 5, 4.0, 0.0, 0.0
n, 6, 5.0, 0.0, 0.0
n, 7, 6.0, 0.0, 0.0
n, 8, 7.0, 0.0, 0.0
n, 9, 8.0, 0.0, 0.0
n, 10, 9.0, 0.0, 0.0
n, 11, 10.0, 0.0, 0.0

n, 12, 0.0, 0.0, 5.0 !Node 12 locates the element y-z plane
!See figure

!Material Properties
mp, ex, 1, 3.e7 ! Elastic modulus for material number 1 in psi
mp, prxy, 1, 0.3 ! Poisson’s ratio
et, 1, beam188 !Element type; number 1 is beam188
keyopt, 1, 3, 3 !Keyopt(3) = 3 for element type 1

!Key option number 3 gives proper bending shape variation along length

sectype,1, beam, rect !Cross section number 1 is rectangular


secdata, 0.5, 0.375 !Cross section base = 0.5, height = 0.375

!List of elements and nodes they connect


en, 1, 1, 2, 12 ! Element Number 1 connects nodes 1 & 2
en, 2, 2, 3, 12 ! Dummy node Node 12 orients the cross section
en, 3, 3, 4, 12
en, 4, 4, 5, 12
en, 5, 5, 6, 12
en, 6, 6, 7, 12
en, 7, 7, 8, 12
en, 8, 8, 9, 12
en, 9, 9, 10, 12
en, 10, 10, 11, 12

!Displacement Boundary Conditions


d, 1, all, 0.0 ! All DOF at node 1 are zero
d, 12, all, 0.0 ! All DOF at dummy node 12 are zero

!Applied Force
f, 11, fz, -50. ! Force at node 11 in negative z-direction is 50 lbf.
Read input file >
Solve >
Plot deformed shape
Main Menu > General Postproc >
List Results > Nodal Solution >
DOF Solution > Displacement vector sum > OK
Node Point Displacements
NODE UX UY UZ USUM
1 0.0000 0.0000 0.0000 0.0000
2 0.0000 0.0000 -0.36936E-02 0.36936E-02
3 0.0000 0.0000 -0.14214E-01 0.14214E-01
4 0.0000 0.0000 -0.30802E-01 0.30802E-01
5 0.0000 0.0000 -0.52700E-01 0.52700E-01
6 0.0000 0.0000 -0.79150E-01 0.79150E-01
7 0.0000 0.0000 -0.10939 0.10939
8 0.0000 0.0000 -0.14267 0.14267
9 0.0000 0.0000 -0.17822 0.17822
10 0.0000 0.0000 -0.21529 0.21529
11 0.0000 0.0000 -0.25311 0.25311
MAXIMUM ABSOLUTE VALUES
NODE 0 0 11 11
VALUE 0.0000 0.0000 -0.25311 0.25311
Main Menu > General Postproc > List Results>
Element Solution > Stress >
X-Component of stress > OK
ELEMENT = 1 SECTION ID = 1
Cross section
ELEMENT NODE = 1
Node Points
SEC NODE SXX SXZ SXY
1 -42667. 0.0000 0.0000
3 -42667. 0.0000 0.0000
13 0.62016E-12 0.0000 0.0000
11 0.26466E-12 0.0000 0.0000
5 -42667. 0.0000 0.0000
15 0.97566E-12 0.0000 0.0000
23 42667. 0.0000 0.0000
21 42667. 0.0000 0.0000
25 42667. 0.0000 0.0000
Top in Tension
Max= 42667. 0.0000 0.0000 Bottom in Compression
Min= -42667. 0.0000 0.0000

ELEMENT NODE = 2

SEC NODE SXX SXZ SXY


1 -38400. 0.0000 0.0000
3 -38400. 0.0000 0.0000
Transverse & Axial Loads
Don’t Interact in Linear Analysis
3D Problem

Node 1

Node 2

Node 3
/FILNAM,Tutorial5C
/title, 3D Beam Sample Problem – An 'L’ - Beam
/prep7
n, 1, 0.0, 0.0, 0.0 ! Node 1 is located at (X=0.0, Y=0.0, Z=0.0)
n, 2, 12.0, 0.0, 0.0
n, 3, 12.0, 6.0, 0.0 Text File Problem
n, 4, 12.0, 0.0, 4.0
et, 1, beam188 ! Element type; no.1 is 3D beam188 Definition
!Material Properties
mp, ex, 1, 1.e7 ! Elastic modulus, psi
mp, prxy, 1, 0.3 ! Poisson’s ratio
keyopt, 1, 3, 3 !Keyopt(3) = 3 for element type 1
! Key option number 3 gives proper bending moment variation along length

keyopt, 1, 4, 2 !Keyopt(4) = 2 for element type 1


! Key option number 4 =2 turns on transverse + torsion shear output

sectype,1, beam, rect !Cross section number 1 is rectangular


secdata, 1.0, 0.25 !Cross section base = 1.0, height = 0.25

! element connection and orientation


en, 1, 1, 2, 4 ! Element #1 connects nodes 1 & 2, and
! uses node 4 to define the element local x-z plane.

en, 2, 2, 3, 4 ! Element #2 connects nodes 2 & 3, and


! uses node 1 to define the element local x-z plane.

! Displacement boundary conditions


d, 1, ux, 0. ! Displacement at node 1 in x-dir is zero
d, 1, uy, 0.
d, 1, uz, 0.
d, 1, rotx, 0. ! Rotation at node 1 about x-axis is zero
d, 1, roty, 0.
d, 1, rotz, 0. Deformation Plot
! Applied force
f, 3, fz, -5.0 ! Force at node 3 in the negative z-direction
fin

Das könnte Ihnen auch gefallen