Professional Documents
Culture Documents
Introduction
This tutorial was created using ANSYS 7.0 to solve a simple 2D Truss problem. This
is the first of four introductory ANSYS tutorials.
Problem Description
Determine the nodal deflections, reaction forces, and stress for the truss system shown
below (E = 200GPa, A = 3250mm2).
(Modified from Chandrupatla & Belegunda, Introduction to Finite Elements in Engineering, p.123)
Enter the title and click 'OK'. This title will appear in the bottom left corner of
the 'Graphics' Window once you begin. Note: to get the title to appear
immediately, select Utility Menu > Plot > Replot
2. Enter Keypoints
The overall geometry is defined in ANSYS using keypoints which specify
various principal coordinates to define the body. For this example, these
keypoints are the ends of each truss.
o We are going to define 7 keypoints for the simplified structure as given
in the following table
keypoint
coordinate
x
1800
3118
3600
5400
3118
7200
9000
3118
10800
Units
Note the units of measure (ie mm) were not specified. It is the responsibility of
the user to ensure that a consistent set of units are used for the problem; thus
making any conversions where necessary.
Correcting Mistakes
When defining keypoints, lines, areas, volumes, elements, constraints and loads
you are bound to make mistakes. Fortunately these are easily corrected so that
you don't need to begin from scratch every time an error is made! Every
'Create' menu for generating these various entities also has a corresponding
'Delete' menu for fixing things up.
3. Form Lines
The keypoints must now be connected
We will use the mouse to select the keypoints to form the lines.
o In the main menu select: Preprocessor > Modeling > Create > Lines >
Lines > In Active Coord. The following window will then appear:
o Use the mouse to pick keypoint #1 (i.e. click on it). It will now be
marked by a small yellow box.
o Now move the mouse toward keypoint #2. A line will now show on the
screen joining these two points. Left click and a permanent line will
appear.
o Connect the remaining keypoints using the same method.
o When you're done, click on 'OK' in the 'Lines in Active Coord' window,
minimize the 'Lines' menu and the 'Create' menu. Your ANSYS Graphics
window should look similar to the following figure.
Disappearing Lines
Please note that any lines you have created may 'disappear' throughout your
analysis. However, they have most likely NOT been deleted. If this occurs at
any time from the Utility Menu select:
Plot > Lines
4. Define the Type of Element
It is now necessary to create elements. This is called 'meshing'. ANSYS first
needs to know what kind of elements to use for our problem:
o For this example, we will use the 2D spar element as selected in the
above figure. Select the element shown and click 'OK'. You should see
'Type 1 LINK1' in the 'Element Types' window.
o Click on 'Close' in the 'Element Types' dialog box.
5. Define Geometric Properties
We now need to specify geometric properties for our elements:
o In the Preprocessor menu, select Real Constants > Add/Edit/Delete
We are going to give the properties of Steel. Enter the following field:
EX 200000
o Set these properties and click on 'OK'. Note: You may obtain the note
'PRXY will be set to 0.0'. This is poisson's ratio and is not required for
this element type. Click 'OK' on the window to continue. Close the
o In the size 'NDIV' field, enter the desired number of divisions per line.
For this example we want only 1 division per line, therefore, enter '1' and
then click 'OK'. Note that we have not yet meshed the geometry, we have
simply defined the element sizes.
8. Mesh
Now the frame can be meshed.
o In the 'Preprocessor' menu select Meshing > Mesh > Lines and click
'Pick All' in the 'Mesh Lines' Window
Your model should now appear as shown in the following window
Plot Numbering
To show the line numbers, keypoint numbers, node numbers...
From the Utility Menu (top of screen) select PlotCtrls > Numbering...
Fill in the Window as shown below and click 'OK'
o Ensure that 'Static' is selected; i.e. you are going to do a static analysis
on the truss as opposed to a dynamic analysis, for example.
o Click 'OK'.
2. Apply Constraints
It is necessary to apply constraints to the model otherwise the model is not tied
down or grounded and a singular solution will result. In mechanical structures,
these constraints will typically be fixed, pinned and roller-type connections. As
shown above, the left end of the truss bridge is pinned while the right end has a
roller connection.
o In the Solution menu, select Define Loads > Apply > Structural >
Displacement > On Keypoints
o This location is fixed which means that all translational and rotational
degrees of freedom (DOFs) are constrained. Therefore, select 'All DOF'
by clicking on it and enter '0' in the Value field and click 'OK'.
You will see some blue triangles in the graphics window indicating the
displacement contraints.
o Using the same method, apply the roller connection to the right end (UY
constrained). Note that more than one DOF constraint can be selected at
a time in the "Apply U,ROT on KPs" window. Therefore, you may need
to 'deselect' the 'All DOF' option to select just the 'UY' option.
3. Apply Loads
As shown in the diagram, there are four downward loads of 280kN, 210kN,
280kN, and 360kN at keypoints 1, 3, 5, and 7 respectively.
o Select Define Loads > Apply > Structural > Force/Moment > on
Keypoints.
o Select the first Keypoint (left end of the truss) and click 'OK' in the
'Apply F/M on KPs' window.
o The above windows will appear. Ensure that your solution options are
the same as shown above and click 'OK'.
o Once the solution is done the following window will pop up. Click
'Close' and close the /STATUS Command Window..
o Select 'All struc forc F' as shown above and click 'OK'
These values agree with the reaction forces claculated by hand above.
Deformation
o In the General Postproc menu, select Plot Results > Deformed Shape.
The following window will appear.
o Select 'Def + undef edge' and click 'OK' to view both the deformed and
the undeformed object.
o Observe the value of the maximum deflection in the upper left hand
corner (DMX=7.409). One should also observe that the constrained
degrees of freedom appear to have a deflection of 0 (as expected!)
Deflection
For a more detailed version of the deflection of the beam,
o From the 'General Postproc' menu select Plot results > Contour Plot >
Nodal Solution. The following window will appear.
o Select 'DOF solution' and 'USUM' as shown in the above window. Leave
the other selections as the default values. Click 'OK'.
o Looking at the scale, you may want to use more useful intervals. From
the Utility Menu select Plot Controls > Style > Contours > Uniform
Contours...
o Fill in the following window as shown and click 'OK'.
o Are these results what you expected? Note that all the degrees of
freedom were constrained to zero at node 1, while UY was constrained
to zero at node 7.
o If you wanted to save these results to a file, select 'File' within the results
window (at the upper left-hand corner of this list window) and select
'Save as'.
Axial Stress
For line elements (ie links, beams, spars, and pipes) you will often need to use
the Element Table to gain access to derived data (ie stresses, strains). For this
example we should obtain axial stress to compare with the hand calculations.
The Element Table is different for each element, therefore, we need to look at
the help file for LINK1 (Type help link1 into the Input Line). From Table 1.2
in the Help file, we can see that SAXL can be obtained through the ETABLE,
using the item 'LS,1'
o From the General Postprocessor menu select Element Table > Define
Table
o Click on 'Add...'
o As shown above, enter 'SAXL' in the 'Lab' box. This specifies the name
of the item you are defining. Next, in the 'Item,Comp' boxes, select 'By
sequence number' and 'LS,'. Then enter 1 after LS, in the selection box
o Click on 'OK' and close the 'Element Table Data' window.
o Plot the Stresses by selecting Element Table > Plot Elem Table
o The following window will appear. Ensure that 'SAXL' is selected and
click 'OK'
o Because you changed the contour intervals for the Displacement plot to
"User Specified" - you need to switch this back to "Auto calculated" to
obtain new values for VMIN/VMAX.
Utility Menu > PlotCtrls > Style > Contours > Uniform
Contours ...
Again, you may wish to select more appropriate intervals for the contour
plot
o List the Stresses
From the 'Element Table' menu, select 'List Elem Table'
From the 'List Element Table Data' window which appears ensure
'SAXL' is highlighted
Click 'OK'
Quitting ANSYS
To quit ANSYS, select 'QUIT' from the ANSYS Toolbar or select Utility
Menu/File/Exit.... In the dialog box that appears, click on 'Save Everything'
(assuming that you want to) and then click on 'OK'.
Introduction
This tutorial was created using ANSYS 7.0 to solve a simple 3D space frame problem.
Problem Description
The problem to be solved in this example is the analysis of a bicycle frame. The
problem to be modeled in this example is a simple bicycle frame shown in the
following figure. The frame is to be built of hollow aluminum tubing having an
outside diameter of 25mm and a wall thickness of 2mm.
Verification
The first step is to simplify the problem. Whenever you are trying out a new analysis
type, you need something (ie analytical solution or experimental data) to compare the
results to. This way you can be sure that you've gotten the correct analysis type, units,
scale factors, etc.
The simplified version that will be used for this problem is that of a cantilever beam
shown in the following figure:
coordinate
x
500
The two keypoints must now be connected to form a bar using a straight line.
o Select: Preprocessor > Modeling> Create > Lines > Lines > Straight
Line.
o Pick keypoint #1 (i.e. click on it). It will now be marked by a small
yellow box.
o Now pick keypoint #2. A permanent line will appear.
o When you're done, click on 'OK' in the 'Create Straight Line' window.
4. Define the Type of Element
It is now necessary to create elements on this line.
o From the Preprocessor Menu, select: Element Type > Add/Edit/Delete.
o Click on the 'Add...' button. The following window will appear:
o For this example, we will use the 3D elastic straight pipe element as
selected in the above figure. Select the element shown and click 'OK'.
You should see 'Type 1 PIPE16' in the 'Element Types' window.
o Click on the 'Options...' button in the 'Element Types' dialog box. The
following window will appear:
o Click and hold the K6 button (second from the bottom), and select
'Include Output' and click 'OK'. This gives us extra force and moment
output.
o Click on 'Close' in the 'Element Types' dialog box and close the 'Element
Type' menu.
5. Define Geometric Properties
We now need to specify geometric properties for our elements:
o In the Preprocessor menu, select Real Constants > Add/Edit/Delete
o Click Add... and select 'Type 1 PIPE16' (actually it is already selected).
Click on 'OK'.
o Enter the following geometric properties:
o
o
Outside diameter
OD:
Wall thickness TKWALL:
25
2
o Click on 'OK'.
o 'Set 1' now appears in the dialog box. Click on 'Close' in the 'Real
Constants' window.
6. Element Material Properties
You then need to specify material properties:
o In the 'Preprocessor' menu select Material Props > Material Models...
o Double click Structural > Linear > Elastic and
select 'Isotropic' (double click on it)
o Close the 'Define Material Model Behavior' Window.
We are going to give the properties of Aluminum. Enter the following
field:
EX 70000
PRXY 0.33
Utility Menu > File > Save as.... Select the name and location where you want
to save your file.
Solution Phase: Assigning Loads and Solving
1. Define Analysis Type
o From the Solution Menu, select 'Analysis Type > New Analysis'.
o Ensure that 'Static' is selected and click 'OK'.
2. Apply Constraints
o In the Solution menu, select Define Loads > Apply > Structural >
Displacement > On Keypoints
o Select the left end of the rod (Keypoint 1) by clicking on it in the
Graphics Window and click on 'OK' in the 'Apply U,ROT on KPs'
window.
o This location is fixed which means that all translational and rotational
degrees of freedom (DOFs) are constrained. Therefore, select 'All DOF'
by clicking on it and enter '0' in the Value field and click 'OK'.
3. Apply Loads
As shown in the diagram, there is a vertically downward load of 100N at the
end of the bar
o In the Structural menu, select Force/Moment > on Keypoints.
o Select the second Keypoint (right end of bar) and click 'OK' in the
'Apply F/M' window.
The maximum deflection occurs at the end of the rod and was found to be
6.2mm as shown above.
Stress:
The maximum stress occurs at the base of the rod and was found to be 64.9MPa
as shown above (pure bending stress).
2. Results Using ANSYS
Deformation
o from the Main Menu select General Postproc from the 'ANSYS Main
Menu'. In this menu you will find a variety of options, the two which we
will deal with now are'Plot Results' and 'List Results'
o Select Plot Results > Deformed Shape.
o Select 'Def + undef edge' and click 'OK' to view both the deformed and
the undeformed object.
o Observe the value of the maximum deflection in the upper left hand
corner (shown here surrounded by a blue border for emphasis). This is
identical to that obtained via hand calculations.
Deflection
For a more detailed version of the deflection of the beam,
o From the 'General Postproc' menu select Plot results > Contour Plot >
Nodal Solution.
o Select 'DOF solution' and 'USUM'. Leave the other selections as the
default values. Click 'OK'.
o You may want to have a more useful scale, which can be accomplished
by going to the Utility Menu and selecting Plot Controls > Style >
Contours > Uniform Contours
o The deflection can also be obtained as a list as shown below. General
Postproc > List Results > Nodal Solution ... select 'DOF Solution' and
'ALL DOFs' from the lists in the 'List Nodal Solution' window and click
'OK'. This means that we want to see a listing of all translational and
rotational degrees of freedom from the solution. If we had only wanted
to see the displacements for example, we would have chosen 'ALL Us'
instead of 'ALL DOFs'.
o Are these results what you expected? Again, the maximum deflection
occurs at node 2, the right end of the rod. Also note that all the rotational
and translational degrees of freedom were constrained to zero at node 1.
o If you wanted to save these results to a file, use the mouse to go to the
'File' menu (at the upper left-hand corner of this list window) and select
'Save as'.
Stresses
For line elements (ie beams, spars, and pipes) you will need to use the Element
Table to gain access to derived data (ie stresses, strains).
o From the General Postprocessor menu select Element Table > Define
Table...
o Click on 'Add...'
o If you changed the contour intervals for the Displacement plot to "User
Specified" you may need to switch this back to "Auto calculated" to
obtain new values for VMIN/VMAX.
Utility Menu > PlotCtrls > Style > Contours > Uniform
Contours ...
To obtain the bending moment for this element, the Element Table must be
used. The Element Table contains most of the data for the element including the
bending moment data for each element at Node I and Node J. First, we need to
obtain obtain the bending moment data.
o General Postproc > Element Table > Define Table... . Click 'Add...'.
o In the window,
Enter IMoment as the 'User label for item' - this will give a name to
the data
Select 'By sequence num' in the Item box
Select 'SMISC' in the first Comp box
Enter SMISC,6 in the second Comp box
Click 'OK'
This will save all of the bending moment data at the left hand side (I
side) of each element. Now we need to find the bending moment data at
the right hand side (J side) of each element.
o Again, click 'Add...' in the 'Element Table Data' window.
Enter JMoment as the 'User label for item' - again, this will give a
name to the data
Same as above
Same as above
For step D, enter SMISC,12 in the second Comp box
Click 'OK'
o Click 'Close' in the 'Element Table Data' window and close the 'Element
Table' Menu. Select Plot Results > Contour Plot > Line Elem Res...
Now, you can double check these solutions analytically. Note that the
line between the I and J point is a linear interpolation.
o Before the explanation of the above steps, enter help
command line as shown below and then hit enter.
pipe16
in the
item
MFORX
SMISC
MFORY
SMISC
MFORZ
SMISC
MMOMX
SMISC
Definition
Member forces at the node
Member moments at the
MMOMY
SMISC
MMOMZ
SMISC
node
!
!
!
!
Preprocessor
Keypoint, 1, x, y, z
Keypoint, 2, x, y, z
Line from keypoint 1 to 2
FK,2,FY,-100
direction
/STATUS,SOLU
SOLVE
FINISH
Note that you have now finished Postprocessing and the Solution Phase with just
these few lines of code. There are codes to complete the Postprocessing but we will
review these later.
Bicycle Example
Now we will return to the analysis of the bike frame. The steps which you completed
in the verification example will not be explained in great detail, therefore use the
verification example as a reference as required. We will be combining the use of the
Graphic User Interface (GUI) with the use of command lines.
Recall the geometry and dimensions of the bicycle frame:
=
=
=
=
=
500
825
325
400
50
4. Enter Keypoints
For this space frame example, these keypoints are the frame vertices.
o We are going to define 6 keypoints for this structure as given in the
following table (these keypoints are depicted by the circled numbers in
the above figure):
keypoint
coordinate
x
y1
y2
x1
y2
x1
x2
z1
x2
-z1
o Now instead of using the GUI window we are going to enter code into
the 'command line'. First, open the 'Preprocessor Menu' from the
'ANSYS Main Menu'. The preprocessor menu has to be open in order for
the preprocessor commands to be recognized. Alternatively, you can
type /PREP7 into the command line. The command line format required
to enter a keypoint is as follows:
o
K, NPT, X, Y, Z
o Enter the 4 remaining keypoints (listed in the table above) using the
command line
o Now you may want to check to ensure that you entered all of the
keypoints correctly:
Utility Menu > List > Keypoints > Coordinates only
(Alternatively, type 'KLIST' into the command line)
KDELE,#
6. Create Lines
We will be joining the following keypoints together:
line
keypoint
1st 2nd
o Enter the remaining lines until you get a picture like that shown below.
o Again, check to ensure that you entered all of the lines correctly: type
' LLIST ' into the command line
o If there are any lines which need to be changed, delete the line by typing
the following code: ' LDELE,# ' where # corresponds to the reference
number of the line. (This can be obtained from the list of lines). And then
re-enter the line (note: a new reference number will be assigned)
You should obtain the following:
25
2
MP,PRXY,1,0.33
'
10.Mesh Size
As in the verification model, set the element length to 20 mm
Preprocessor > Meshing > Size Cntrls > ManualSize > Lines > All Lines
11. Mesh
Now the frame can be meshed.
o In the 'Preprocessor' menu select 'Mesh' > 'Lines' and click 'Pick All' in
the 'Mesh Lines' Window
Saving Your Job
Utility Menu > File > Save as...
DK, KPOI, Lab, VALUE, VALUE2, KEXPND, Lab2, Lab3, Lab4, Lab5, Lab6
Displacement on K, K #, DOF label, value, value2, Expansion key, other
DOF labels
Not all of the fields are required for this example, therefore when entering the
code certain fields will be empty. For example, to pin the first keypoint enter:
DK,1,UX,0,,,UY,UZ
The DOF labels for translation motion are: UX, UY, UZ. Note that the 5 th and
6th fields are empty. These correspond to 'value2' and 'the Expansion key' which
are not required for this constraint. Also note that all three of the translational
DOFs were constrained to 0. The DOFs can only be contrained in 1 command
line if the value is the same.
To apply the contraints to Keypoint 5, the command line code is:
DK,5,UY,0,,,UZ
If you need to delete any of the constraints use the following command:
'DKDELE, K, Lab' (ie 'DKDELE,1,UZ' would delete the constraint in the 'z'
direction for Keypoint 1)
3. Apply Loads
We will apply vertical downward loads of 600N at the seat post location
(keypoint 3) and 200N at the pedal crank location (keypoint 4). We will use the
command line to define these loading conditions.
To apply a force of 600N downward at keypoint 3, the code should look like
this: ' FK,3,FY,-600 '
Apply both the forces and list the forces to ensure they were inputted correctly
(FKLIST).
If you need to delete one of the forces, the code looks like this: 'FKDELE, K,
Lab' (ie 'FKDELE,3,FY' would delete the force in the 'y' direction for Keypoint 3)
The applied loads and constraints should now appear as shown below.
1. Deformation
Plot Results > Deformed Shape... 'Def + undef edge'
o You may want to try plotting this from different angles to get a better
idea what's going on by using the 'Pan-Zoom-Rotate' menu that was
earlier outlined.
o Try the 'Front' view button (Note that the views of 'Front', 'Left', 'Back',
etc depend on how the object was first defined).
o Your screen should look like the plot below:
2. Deflections
Now let's take a look at some actual deflections in the frame. The deflections
have been calculated at the nodes of the model, so the first thing we'll do is plot
out the nodes and node numbers, so we know what node(s) we're after.
o Go to Utility menu > PlotCtrls > Numbering... and turn on 'Node
numbers'. Turn everything else off.
o Note the node numbers of interest. Of particular interest are those nodes
where the constraints were applied to see if their displacements/rotations
were indeed fixed to zero. Also note the node numbers of the seat and
crank locations.
o List the Nodal Deflections (Main Menu > General Postproc > List
Results > Nodal Solution...'). Are the displacements and rotations as
you expected?
o Plot the deflection as well.
General Postproc > Plot Results > (-Contour Plot-) Nodal
Solution select 'DOF solution' and 'USUM' in the window
Quitting ANSYS
To quit ANSYS, select 'QUIT' from the ANSYS Toolbar or select 'Utility
Menu'/'File'/'Exit...'. In the dialog box that appears, click on 'Save Everything'
(assuming that you want to) and then click on 'OK'
Introduction
This tutorial is the second of three basic tutorials created to illustrate commom
features in ANSYS. The plane stress bracket tutorial builds upon techniques covered
in the first tutorial (3D Bicycle Space Frame), it is therefore essential that you have
completed that tutorial prior to beginning this one.
The 2D Plane Stress Bracket will introduce boolean operations, plane stress, and
uniform pressure loading.
Problem Description
The problem to be modeled in this example is a simple bracket shown in the following
figure. This bracket is to be built from a 20 mm thick steel plate. A figure of the plate
is shown below.
This plate will be fixed at the two small holes on the left and have a load applied to
the larger hole on the right.
Verification Example
The first step is to simplify the problem. Whenever you are trying out a new analysis
type, you need something (ie analytical solution or experimental data) to compare the
results to. This way you can be sure that you've gotten the correct analysis type, units,
scale factors, etc.
The simplified version that will be used for this problem is that of a flat rectangular
plate with a hole shown in the following figure:
Fill in the window as shown above. This will create a circle where
the center has the coordinates 100,50,0 (the center of the
rectangle) and the radius of the circle is 20 mm.
(Alternatively, the command line code for the above command
is CYL4,100,50,20 )
c. Subtraction
Now we want to subtract the circle from the rectangle. Prior to
this operation, your image should resemble the following:
It is now necessary to define the type of element to use for our problem:
Preprocessor Menu > Element Type > Add/Edit/Delete
a. Add the following type of element: Solid (under the Structural heading)
and the Quad 82 element, as shown in the above figure.
(Alternatively, the command line code for the above step is R,1,20)
o Element Material Properties
a. As shown in previous examples, select Preprocessor > Material Props
> Material models > Structural > Linear > Elastic > Isotropic
We are going to give the properties of Steel. Enter the following when
prompted:
EX 200000
PRXY 0.3
o This location is fixed which means that all DOF's are constrained.
Therefore, select 'All DOF' by clicking on it and enter '0' in the Value
field as shown above.
You will see some blue triangles in the graphics window indicating the
displacement contraints.
(Alternatively, the command line code for the above step is DL,4,,ALL,0)
3. Apply Loads
o As shown in the diagram, there is a load of 20N/mm distributed on the
right hand side of the plate. To apply this load:
Solution > Define Loads > Apply > Structural > Pressure > On
Lines
o When the window appears, select the line along the right hand edge of
the plate and click 'OK'
o Calculate the pressure on the plate end by dividing the distributed load
by the thickness of the plate (1 MPa).
o Fill in the "Apply PRES on lines" window as shown below. NOTE:
o The applied loads and constraints should now appear as shown below.
o List the stresses (General Postproc > List Results > Nodal Solution >
Stress, Principals SPRIN) and check the SEQV (Equivalent Stress /
von Mises Stress) for the node in question. (as shown below in red)
The equivalent stress was found to be 2.9141 MPa at this point. We will
use smaller elements to try to get a more accurate solution.
o Resize Elements
a. To change the element size, we need to go back to the
Preprocessor Menu
Preprocessor > Meshing > Size Cntrls > Manual Size >
Areas > All Areas
now decrease the element edge length (ie 20)
b. Now remesh the model (Preprocessor > Meshing > Mesh >
Areas > Free). Once you have selected the area and clicked 'OK'
the following window will appear:
c. Click 'OK'. This will remesh the model using the new element
edge length.
d. Solve the system again (note that the constraints need not be
reapplied). ( Solution Menu > Current LS )
o Repeat steps 'a' through 'd' until the model has converged. (note - the
number of the node at the top of the hole has most likely changed. It is
essential that you plot the nodes again to select the appropriate node).
Plot the stress/deflection at varying mesh sizes as shown below to
confirm that convergence has occured.
Note the shapes of both the deflection and stress curves. As the number of
elements in the mesh increases (ie - the element edge length decreases), the
values converge towards a final solution.
The von Mises stress at the top of the hole in the plate was found to be
approximatly 3.8 MPa. This is a mere 2.5% difference between the analytical
solution and the solution found using ANSYS.
o You can list the von Mises stresses to verify the results at certain nodes
General Postproc > List Results. Select Stress, Principals
SPRIN
Bracket Example
Now we will return to the analysis of the bracket. A combination of GUI and the
Command line will be used for this example.
The problem to be modeled in this example is a simple bracket shown in the following
figure. This bracket is to be built from a 20 mm thick steel plate. A figure of the plate
is shown below.
This plate will be fixed at the two small holes on the left and have a load applied to
the larger hole on the right.
circle 2
circle 3
XCENTER
YCENTER
20
80
RADIUS
20
20
d. Create a rectangle on the left hand end to fill the gap between the two
small circles.
XCORNER
-20
YCORNER
20
WIDTH
20
HEIGHT
60
f.
g. Boolean Operations - Addition
We now want to add these five discrete areas together to form one area.
To perform the Boolean operation, from the Preprocessor menu
select:
Modeling > Operate > Booleans > Add > Areas
In the 'Add Areas' window, click on 'Pick All'
(Alternatively, the command line code for the above step
is AADD,ALL)
You should now have the following model:
h. Create the Bolt Holes We now want to remove the bolt holes from this
plate.
Create the three circles with the parameters given below:
parameter
circle 1
circle 2
circle 3
WP X
80
WP Y
50
20
80
radius
30
10
10
Now select
Preprocessor > Modeling > Operate > Booleans >
Subtract > Areas
Select the base areas from which to subract (the large plate that
was created)
Next select the three circles that we just created. Click on the
three circles that you just created and click 'OK'.
i.
3. Define the Type of Element
As in the verification model, PLANE82 will be used for this example
a. Preprocessor > Element Type > Add/Edit/Delete
b. Use the 'Options...' button to get a plane stress element with thickness
(Alternatively, the command line code for the above step
is ET,1,PLANE82 followed by KEYOPT,1,3,3)
c. Under the Extra
Element Output K5
select nodal
stress.
(Alternatively, the command line code for the above step is R,1,20)
o Element Material Properties
a. Preprocessor > Material Props > Material Library > Structural >
Linear > Elastic > Isotropic
We are going to give the properties of Steel. Enter the following when
prompted:
EX 200000
PRXY 0.3
(The command line code for the above step is MP,EX,1,200000 followed
by MP,PRXY,1,0.3)
o Mesh Size
a. Preprocessor > Meshing > Size Cntrls > Manual Size > Areas > All
Areas
b. Select an element edge length of 5. Again, we will need to make sure the
model has converged.
(Alternatively, the command line code for the above step
is AESIZE,ALL,5,)
o Mesh
a. Preprocessor > Meshing > Mesh > Areas > Free and select the area
when prompted
(Alternatively, the command line code for the above step is AMESH,ALL)
o Instead of selecting one node at a time, you have the option of creating a
box, polygon, or circle of which all the nodes in that area will be
selected. For this case, select 'circle' as shown in the window below.
(You may want to zoom in to select the points Utilty Menu / PlotCtrls /
Pan, Zoom, Rotate...) Click at the center of the bolt hole and drag the
circle out so that it touches all of the nodes on the border of the hole.
o Observe the locations of deflection. Ensure that the deflection at the bolt
hole is indeed 0.
3. Deflection
o To plot the nodal deflections use General Postproc > Plot Results >
Contour Plot > Nodal Solution then select DOF Solution - USUM in
the window.
o You can list the von Mises stresses to verify the results at certain nodes
General Postproc > List Results. Select Stress, Principals
SPRIN
Quitting ANSYS
To quit ANSYS, click 'QUIT' on the ANSYS Toolbar or select Utility Menu > File >
Exit... In the window that appears, select 'Save Everything' (assuming that you want
to) and then click 'OK'.
o Now we need to further divide the 2 areas to make 4 areas. Using the
same method, create a line from the top right keypoint to the bottom left.
Be sure to select both areas to divide, otherwise, you will have to create
the line again to divide the second area.
iii.
Create a hardpoint
Preprocessor > Modeling > Create > Keypoints > Hard PT on line >
Hard PT by ratio
The mesh should then appear as shown below. Note that the node is not at the
midway point on the bottom right diagonal line due to the hardpoint.
4. Define Keypoints
Preprocessor > Modeling > Create > Keypoints > In Active CS...
K,#,x,y,z
Coordinates (x,y)
(0,0)
(1,0)
(0.5,0.5)
5. Create Area
Preprocessor > Modeling > Create > Areas > Arbitrary > Through KPs
a,k1,k2,k3...
ii.
ii.
We are first going to mirror the geometry about the diagonal from node 1
to 4. Click on the lower left node (bottom corner) and select 'OK'
iii.
iv.
v.
In the window that appears select X-Z plane Y and click 'OK'. This will
mirror the geometry about the X-Z plane
vi.
o Plot Elements
Utility Menu > Plot > Elements
Your mesh should now appear as follows:
However, you are not done! If you plot the node numbers you will note that
some duplicate nodes exist (created in mirroring).
o Merge duplicate nodes/elements
Preprocessor > Numbering Ctrls > Merge Items > All
nummrg,all
4. Define Keypoints
Preprocessor > Modeling > Create > Keypoints > In Active CS...
K,#,x,y,z
Coordinates (x,y)
(0,0)
(0.5,0)
(1,0)
(0.75,0.25)
(0.5,0.5)
(0.25,0.25)
(0.5,0.166667)
5. Create Area
Preprocessor > Modeling > Create > Areas > Arbitrary > Through KPs
a,k1,k2,k3...
We need to glue the areas together so that the areas are attached but that
the subdivided areas remain to give us the elements we want
9. Define the Type of Element
Preprocessor > Element Type > Add/Edit/Delete... > Add... > Structural
Mass, Solid > Quad 4node 42
As in the previous mesh, we will use the PLANE42 (2D plane stress or
plane strain) element. This element has 4 nodes each with 2 degrees of
freedom(translation along the X and Y axes).
10.Select Plane Stress with Thickness
In the Element Types window, select Options... and in Element behavior
select Plane strs w/thk
11. Define Real Constants
Preprocessor > Real Constants > Add/Edit/Delete > Add... > OK
In the 'Real Constants for PLANE42' window, enter the thickness: 0.1
12.Define Element Material Properties
Preprocessor > Material Props > Material Models > Structural > Linear
> Elastic > Isotropic
In the window that appears, enter the following geometric properties for
steel:
o Young's modulus EX: 200000
o Poisson's Ratio PRXY: 0.3
ii.
iii.
Preprocessor > Meshing > Mesh > Areas > click 'Pick All'
amesh,all
Problem Description A
We will be creating a solid model of the pulley shown in the following figure.
Geometry Generation
We will create this model by first tracing out the cross section of the pulley and then
sweeping this area about the y axis.
Creation of Cross Sectional Area
1. Create 3 Rectangles
Main Menu > Preprocessor > (-Modeling-) Create > Rectangle > By
2 Corners
BLC4, XCORNER, YCORNER, WIDTH, HEIGHT
Rectangle 1
2
0
Rectangle 2
3
2
Rectangle 3
8
0
WIDTH
HEIGHT
1
5.5
5
1
0.5
5
ANSYS will label the united area as AREA 4 and the previous three areas will
be deleted.
3. Create the rounded edges using circles
Preprocessor > (-Modeling-) Create > (-Areas-) Circle > Solid circles
CYL4,XCENTER,YCENTER,RAD
Circle 1
3
5.5
0.5
Circle 2
8.5
0.2
0.2
5. Copy the smaller circle for the rounded edges at the top
Preprocessor > (-Modeling-) Copy > Areas
o Click on the small circle and then on OK.
o The following window will appear. It asks for the x,y and z offset of the
copied area. Enter the y offset as 4.6 and then click OK.
o The following window will appear prompting for the fillet radius. Enter
0.1
o Follow the same procedure and create a fillet with the same radius
between the following lines
o Then you will be asked to enter or pick two keypoints defining the axis.
o Plot the Keypoints (Utility Menu > Plot > Keypoints. Then select the
following two keypoints
o The following window will appear prompting for sweeping angles. Click
on OK.
X
0
1
0
Y
3
3
3
Z
0
0
1
system, the second keypoint (2002) defines the x-axis orientation, while
the third (2003) defines the orientation of the working plane. The
following warning will appear when selecting the keypoint at the origin
as there are more than one in this location.
note the origin of the working plane. By default those values would be
0,0,0.
3. Create a Cylinder (solid cylinder) with x=5.5 y=0 r=0.5 depth=1 You should
see the following in the graphics screen
We will now copy this volume so that we repeat it every 45 degrees. Note that
you must copy the cylinder before you use boolean operations to subtract it
because you cannot copy an empty space.
4. We need to change active CS to cylindrical Y
Utility Menu > WorkPlane > Change Active CS to > Global
Cylindrical Y
This will allow us to copy radially about the Y axis
5. Create 8 bolt Holes
Preprocessor > Copy > Volumes
o Select the cylinder volume and click on OK. The following window will
appear; fill in the blanks as shown,
o Subtract the cylinders from the pulley hub (Boolean operations) to create
the boltholes. This will result in the following completed structure:
Problem Description B
We will be creating a solid model of the Spindle Base shown in the following figure.
Geometry Generation
We will create this model by creating the base and the back and then the rib.
Create the Base
1. Create the base rectangle
WP X (XCORNER)
0
WP Y (YCORNER)
0
WIDTH
109
HEIGHT
102
2. Create the curved edge (using keypoints and lines to create an area)
o Create the following keypoints
Keypoint 5
Keypoint 6
Keypoint 7
Keypoint 8
X
-20
-20
0
0
Y
82
20
82
20
Z
0
0
0
0
o
o Create arcs joining the keypoints
Main Menu > Preprocessor > (-Modeling-) Create > (-Lines-)
Arcs > By End KPs & Rad
Select keypoints 4 and 5 (either click on them or type 4,5 into the
command line) when prompted.
Select Keypoint 7 as the center-of-curvature when prompted.
Enter the radius of the arc (20) in the 'Arc by End KPs & Radius'
window
Repeat to create an arc from keypoints 1 and 6
(Alternatively, type LARC,4,5,7,20 followed by LARC,1,6,8,20 into the
command line)
o Create a line from Keypoint 5 to 6
Main Menu > Preprocessor > (-Modeling-) Create > (-Lines-)
Lines > Straight Line
L,5,6
4.
5. Create the 4 holes in the base
We will make use of the 'copy' feature in ANSYS to create all 4 holes
o Create the bottom left circle (XCENTER=0, YCENTER=20,
RADIUS=10)
o Copy the area to create the bottom right circle (DX=69)
X
109
109
159
Y
102
2
102
Z
0
0
sqrt(3)/0.02
Note that the planar areas between the two volumes were not added
together.
o Add the planar areas together (don't forget the other side!)
Preprocessor > (-Modeling-) Operate > (-Booleans-) Add >
Areas
AADD, Area 1, Area 2, Area 3
X
-20
0
-20
Y
61
61
61
Z
26
26
30
X
129-(0.57735*26)
129-(0.57735*26) + 38
Y
0
sqrt(3)/2*76
Z
0
0
Quitting ANSYS
To quit ANSYS, select 'QUIT' from the ANSYS Toolbar or select 'Utility
Menu'/'File'/'Exit...'. In the dialog box that appears, click on 'Save Everything'
(assuming that you want to) and then click on 'OK'.