Escolar Documentos
Profissional Documentos
Cultura Documentos
Modeling Tools
| Verification Example | | Preprocessing | | Solution | | Postprocessing | | Command Line |
Solid Modeling
| Bicycle Example | | Preprocessing | | Solution | | Postprocessing | | Command Line |
Index Introduction
This tutorial was created using ANSYS 7.0 to solve a simple 3D space frame problem.
Contributions
Problem Description
Comments
MecE 563 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
Mechanical Engineering outside diameter of 25mm and a wall thickness of 2mm.
University of Alberta
ANSYS Inc.
Copyright © 2001
University of Alberta
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:
2. Enter Keypoints
For this simple example, these keypoints are the ends of the beam.
We are going to define 2 keypoints for the simplified structure as given in the following table
coordinate
keypoint
x y z
1 0 0 0
2 500 0 0
3. Form Lines
The two keypoints must now be connected to form a bar using a straight line.
Select: Preprocessor > Modeling> Create > Lines > Lines > Straight Line.
Pick keypoint #1 (i.e. click on it). It will now be marked by a small yellow box.
When you're done, click on 'OK' in the 'Create Straight Line' window.
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.
Click on the 'Options...' button in the 'Element Types' dialog box. The following window will appear:
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.
Click on 'Close' in the 'Element Types' dialog box and close the 'Element Type' menu.
Click Add... and select 'Type 1 PIPE16' (actually it is already selected). Click on 'OK'.
This defines an outside pipe diameter of 25mm and a wall thickness of 2mm.
Click on 'OK'.
'Set 1' now appears in the dialog box. Click on 'Close' in the 'Real Constants' window.
Double click Structural > Linear > Elastic and select 'Isotropic' (double click on it)
We are going to give the properties of Aluminum. Enter the following field:
EX 70000
PRXY 0.33
7. Mesh Size
In the Preprocessor menu select Meshing > Size Cntrls > ManualSize > Lines > All Lines
In the size 'SIZE' field, enter the desired element length. For this example we want an element length of 2cm,
therefore, enter '20' (i.e 20mm) and then click 'OK'. Note that we have not yet meshed the geometry, we have
simply defined the element sizes.
(Alternatively, we could enter the number of divisions we want in the line. For an element length of 2cm, we
would enter 25 [ie 25 divisions]).
NOTE
It is not necessary to mesh beam elements to obtain the correct solution. However, meshing is done in this case so
that we can obtain results (ie stress, displacement) at intermediate positions on the beam.
8. Mesh
In the 'Preprocessor' menu select Meshing > Mesh > Lines and click 'Pick All' in the 'Mesh Lines' Window
Utility Menu > File > Save as.... Select the name and location where you want to save your file.
From the Solution Menu, select 'Analysis Type > New Analysis'.
2. Apply Constraints
In the Solution menu, select Define Loads > Apply > Structural > Displacement > On Keypoints
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.
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
Select the second Keypoint (right end of bar) and click 'OK' in the 'Apply F/M' window.
Enter a value of -100 in the 'Force/moment value' box and click 'OK'.
The applied loads and constraints should now appear as shown below.
1. Hand Calculations
Now, since the purpose of this exercise was to verify the results - we need to calculate what we should find.
Deflection:
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).
Deformation
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'
Select 'Def + undef edge' and click 'OK' to view both the deformed and the undeformed object.
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
From the 'General Postproc' menu select Plot results > Contour Plot > Nodal Solution.
Select 'DOF solution' and 'USUM'. Leave the other selections as the default values. Click 'OK'.
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
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'.
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.
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).
From the General Postprocessor menu select Element Table > Define Table...
Click on 'Add...'
As shown above, in the 'Item,Comp' boxes in the above window, select 'Stress' and 'von Mises SEQV'
Plot the Stresses by selecting Plot Elem Table in the Element Table Menu
The following window will appear. Ensure that 'SEQV' is selected and click 'OK'
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 ...
Note that a maximum stress of 64.914 MPa occurs at the fixed end of the beam as predicted analytically.
To further verify the simplified model, a bending moment diagram can be created. First, let's look at how ANSYS
defines each element. Pipe 16 has 2 nodes; I and J, as shown in the following image.
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.
General Postproc > Element Table > Define Table... . Click 'Add...'.
In the window,
A. Enter IMoment as the 'User label for item' - this will give a name to the data
B. Select 'By sequence num' in the Item box
C. Select 'SMISC' in the first Comp box
D. Enter SMISC,6 in the second Comp box
E. 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.
Click 'Close' in the 'Element Table Data' window and close the 'Element Table' Menu. Select Plot Results >
Contour Plot > Line Elem Res...
From the 'Plot Line-Element Results' window, select 'IMOMENT' from the pull down menu for LabI, and
'JMOMENT' from the pull down menu for LabJ. Click 'OK'. Note again that you can modify the intervals for
the contour plot.
Now, you can double check these solutions analytically. Note that the line between the I and J point is a
linear interpolation.
Before the explanation of the above steps, enter help pipe16 in the command line as shown below and
then hit enter.
Briefly read the ANSYS documentation which appears, pay particular attention to the Tables near the end of
the document (shown below).
Table 1. PIPE16 Item, Sequence Numbers, and Definitions for the ETABLE Commands
node I
Note that SMISC 6 (which we used to obtain the values at node I) correspond to MMOMZ - the Member
moment for node I. The value of 'e' varies with different Element Types, therefore you must check the
ANSYS Documentation files for each element to determine the appropriate SMISC corresponding to the plot
you wish to generate.
The above example was solved using the Graphical User Interface (or GUI) of ANSYS. This problem can also been
solved using the ANSYS command language interface. To see the benefits of the command line clear your current file:
From the Utility menu select: File > Clear and Start New
Ensure that 'Read File' is selected then click 'OK'
select 'yes' in the following window.
Copy the following code into the command line, then hit enter. Note that the text following the "!" are comments.
/PREP7 ! Preprocessor
K,1,0,0,0, ! Keypoint, 1, x, y, z
K,2,500,0,0, ! Keypoint, 2, x, y, z
L,1,2 ! Line from keypoint 1 to 2
!*
ET,1,PIPE16 ! Element Type = pipe 16
KEYOPT,1,6,1 ! This is the changed option to give the extra force and moment output
!*
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.
We are going to define the vertices of the frame using variables. These variables represent the various lengths of
the bicycle members. Notice that by using variables like this, it is very easy to set up a parametric description of
your model. This will enable us to quickly redefine the frame should changes be necessary. The quickest way to
enter these variables is via the 'ANSYS Input' window which was used above to input the command line codes for
the verification model. Type in each of the following lines followed by Enter.
x1 = 500
x2 = 825
y1 = 325
y2 = 400
z1 = 50
4. Enter Keypoints
For this space frame example, these keypoints are the frame vertices.
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):
coordinate
keypoint
x y z
1 0 y1 0
2 0 y2 0
3 x1 y2 0
4 x1 0 0
5 x2 0 z1
6 x2 0 -z1
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:
K, NPT, X, Y, Z
For a more detailed explanation, type help k into the command line
K,1,0,y1,0
As with any programming language, you may need to add comments. The exclamation mark indicates that
anything following it is commented out. ie - for the second keypoint you might type:
Enter the 4 remaining keypoints (listed in the table above) using the command line
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)
If there are any keypoints which need to be re-entered, simply re-enter the code. A previously defined
keypoint of the same number will be redefined. However, if there is one that needs to be deleted simply enter
the following code:
KDELE,#
In this example, we defined the keypoints by making use of previously defined variables like y1 = 325. This was
simply used for convenience. To define keypoint #1, for example, we could have alternatively used the coordinates
x = 0, y = 325, z = 0.
To get a better view of our view of our model, we'll view it in an isometric view:
Select Utility menu bar > PlotCtrls > Pan, Zoom, Rotate...'
6. Create Lines
keypoint
line Again, we will use the command line to create the lines. The command format to create a
1st 2nd straight line looks like:
1 1 2 L, P1, P2
Line, Keypoint at the beginning of the line, Keypoint at the end of line
2 2 3
3 3 4 For example, to obtain the first line, I would write: ' L,1,2 '
4 1 4 Note: unlike 'Keypoints', 'Lines' will automatically assign themselves the next available
reference number.
5 3 5
6 4 5
7 3 6
8 4 6
Enter the remaining lines until you get a picture like that shown below.
Again, check to ensure that you entered all of the lines correctly: type ' LLIST ' into the command line
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)
As in the verification model, define the type of element (pipe16). As in the verification model, don't forget to
change Option K6 'Include Output' to obtain extra force and moment output.
To set Young's Modulus and Poisson's ratio, we will again use the command line. (ensure that the preprocessor
menu is still open - if not open it by clicking Preprocessor in the Main Menu)
To enter the Elastic Modulus (LAB = EX) of 70000 MPa, type: ' MP,EX,1,70000 '
11. Mesh
In the 'Preprocessor' menu select 'Mesh' > 'Lines' and click 'Pick All' in the 'Mesh Lines' Window
Apply Constraints
Once again, we will use the command line. We are going to pin (translational DOFs will be fixed) the first keypoint and
constrain the keypoints corresponding to the rear wheel attachment locations in both the y and z directions. The following
is the command line format to apply constraints at keypoints.
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 5th 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.
DK,5,UY,0,,,UZ
Note that only UY and UZ are contrained to 0. UX is not constrained. Again, note that the 5th and 6th fields are empty
because they are not required.
Apply the constraints to the other rear wheel location (Keypoint 6 - UY and UZ).
Now list the constraints ('DKLIST') and verify them against the following:
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)
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'
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.
Try the 'Front' view button (Note that the views of 'Front', 'Left', 'Back', etc depend on how the object was
first defined).
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.
Go to Utility menu > PlotCtrls > Numbering... and turn on 'Node numbers'. Turn everything else off.
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.
List the Nodal Deflections (Main Menu > General Postproc > List Results > Nodal Solution...'). Are the
displacements and rotations as you expected?
3. Element Forces
We could also take a look at the forces in the elements in much the same way:
For each element in the model, the force/moment values at each of the two nodes per element will be
displayed.
Close this list window when you are finished browsing.
Then close the 'List Results' menu.
4. Stresses
As shown in the cantilever beam example, use the Element Table to gain access to derived stresses.
Select Element Table > Define Table... to define the table (remember SMISC,6 and SMISC,12)
And, Plot Results > Line Elem Res... to plot the data from the Element Table
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'.
Modeling Tools
Solid Modeling
Index
Comments
| Verification Example | | Preprocessing | | Solution | | Postprocessing | | Command Line |
MecE 563
| Bracket Example | | Preprocessing | | Solution | | Postprocessing | | Command Line |
Mechanical Engineering
The 2D Plane Stress Bracket will introduce boolean operations, plane stress, and uniform pressure loading.
Copyright © 2001 Problem Description
University of Alberta
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:
2. Form Geometry
Boolean operations provide a means to create complicated solid models. These procedures make it easy
to combine simple geometric entities to create more complex bodies. Subtraction will used to create
this model, however, many other Boolean operations can be used in ANSYS.
Instead of creating the geometry using keypoints, we will create an area (using GUI)
Preprocessor > Modeling > Create > Areas > Rectangle > By 2 Corners
Fill in the window as shown above. This will create a rectangle where the bottom left
corner has the coordinates 0,0,0 and the top right corner has the coordinates 200,100,0.
(Alternatively, the command line code for the above command is BLC4,0,0,200,100 )
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:
At this point a 'Subtract Areas' window will pop up and the ANSYS Input window will
display the following message: [ASBA] Pick or enter base areas from which to
subtract (as shown below)
Therefore, select the base area (the rectangle) by clicking on it. Note: The selected area
will turn pink once it is selected.
The following window may appear because there are 2 areas at the location you clicked.
Ensure that the entire rectangular area is selected (otherwise click 'Next') and then click
'OK'.
Now you will be prompted to select the areas to be subtracted, select the circle by clicking
on it and then click 'OK'.
(Alternatively, the command line code for the above step is ASBA,1,2)
It is now necessary to define the type of element to use for our problem:
Add the following type of element: Solid (under the Structural heading) and the Quad 82
element, as shown in the above figure.
For this example, we need a plane stress element with thickness, therefore
Click on the 'Options...' button. Click and hold the K3 button, and select 'Plane strs w/thk', as
shown below.
(Alternatively, the command line code for the above step is ET,1,PLANE82 followed by
KEYOPT,1,3,3)
Enter a thickness of 20 as shown in the figure below. This defines a plate thickness of 20mm)
(Alternatively, the command line code for the above step is R,1,20)
We are going to give the properties of Steel. Enter the following when prompted:
EX 200000
PRXY 0.3
(Alternatively, the command line code for the above step is MP,EX,1,200000 followed by
MP,PRXY,1,0.3)
6. Mesh Size
To tell ANSYS how big the elements should be, Preprocessor > Meshing > Size Cntrls > Manual
Size > Areas > All Areas
Select an element edge length of 25. We will return later to determine if this was adequate for the
problem.
(Alternatively, the command line code for the above step is AESIZE,ALL,25,)
7. Mesh
In the 'Preprocessor' menu select Meshing > Mesh > Areas > Free and select the area when
prompted
(Alternatively, the command line code for the above step is AMESH,ALL)
You have now defined your model. It is now time to apply the load(s) and constraint(s) and solve the the
resulting system of equations.
Ensure that a Static Analysis will be performed (Solution > Analysis Type > New Analysis).
(Alternatively, the command line code for the above step is ANTYPE,0)
2. Apply Constraints
In the Solution > Define Loads > Apply > Structural > Displacement > On Lines
Select the left end of the plate and click on 'Apply' in the 'Apply U,ROT on Lines' window.
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
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
When the window appears, select the line along the right hand edge of the plate and click 'OK'
Calculate the pressure on the plate end by dividing the distributed load by the thickness of the
plate (1 MPa).
The applied loads and constraints should now appear as shown below.
1. Hand Calculations
Now, since the purpose of this exercise was to verify the results - we need to calculate what we should
find.
Deflection: The maximum deflection occurs on the right hand side of the plate and was calculated to be
0.001 mm - neglecting the effects of the hole in the plate (ie - just a flat plate). The actual deflection of
the plate is therefore expected to be greater but in the same range of magnitude.
Stress: The maximum stress occurs at the top and bottom of the hole in the plate and was found to be
3.9 MPa.
At this point we need to find whether or not the final result has converged. We will do this by looking
at the deflection and stress at particular nodes while changing the size of the meshing element.
Since we have an analytical solution for the maximum stress point, we will check the stress at
this point. First we need to find the node corresponding to the top of the hole in the plate. First
plot and number the nodes
The plot should look similar to the one shown below. Make a note of the node closest to the top
of the circle (ie. #49)
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.
Resize Elements
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 )
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.
The approximate maximum displacement was found to be 0.0012 mm, this is 20% greater than the
analytical solution. However, the analytical solution does not account for the large hole in the center of
the plate which was expected to significantly increase the deflection at the end of the plate.
Therefore, the results using ANSYS were determined to be appropriate for the verification model.
3. Deformation
General Postproc > Plot Results > Deformed Shape > Def + undeformd to view both the
deformed and the undeformed object.
4. Deflection
General Postproc > Plot Results > Nodal Solution... Then select DOF solution, USUM in the
window.
Alternatively, obtain these results as a list. (General Postproc > List Results > Nodal
Solution...)
Are these results what you expected? Note that all translational degrees of freedom were
constrained to zero at the left end of the plate.
5. Stresses
General Postproc > Plot Results > Nodal Solution... Then select Stress, von Mises in the
window.
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.
2. Form Geometry
Again, Boolean operations will be used to create the basic geometry of the Bracket.
The main rectangular shape has a width of 80 mm, a height of 100mm and the bottom left corner
is located at coordinates (0,0)
Ensure that the Preprocessor menu is open. (Alternatively type /PREP7 into the command
line window)
Now instead of using the GUI window we are going to enter code into the 'command line'.
Now I will explain the line required to create a rectangle:
c. Now create a second and third circle for the left hand side using the following dimensions:
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
We now want to add these five discrete areas together to form one area.
(Alternatively, the command line code for the above step is AADD,ALL)
f. Create the Bolt Holes We now want to remove the bolt holes from this plate.
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'.
(Alternatively, the command line code for the above step is ASBA,6,ALL)
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)
(Alternatively, the command line code for the above step is R,1,20)
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)
6. Mesh Size
Preprocessor > Meshing > Size Cntrls > Manual Size > Areas > All Areas
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,)
7. Mesh
Preprocessor > Meshing > Mesh > Areas > Free and select the area when prompted
(Alternatively, the command line code for the above step is AMESH,ALL)
(Alternatively, the command line code for the above step is ANTYPE,0)
2. Apply Constraints
As illustrated, the plate is fixed at both of the smaller holes on the left hand side.
Solution > Define Loads > Apply > Structural > Displacement > On Nodes
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.
Click on 'Apply' in the 'Apply U,ROT on Lines' window and constrain all DOF's in the 'Apply
U,ROT on Nodes' window.
3. Apply Loads
As shown in the diagram, there is a single vertical load of 1000N, at the bottom of the large bolt hole.
Apply this force to the respective keypoint ( Solution > Define Loads > Apply > Structural >
Force/Moment > On Keypoints Select a force in the y direction of -1000)
The applied loads and constraints should now appear as shown below.
As shown previously, it is necessary to prove that the solution has converged. Reduce the mesh
size until there is no longer a sizeable change in your convergence criteria.
2. Deformation
General Postproc > Plot Results > Def + undeformed to view both the deformed and the
undeformed object.
Observe the locations of deflection. Ensure that the deflection at the bolt hole is indeed 0.
3. Deflection
To plot the nodal deflections use General Postproc > Plot Results > Contour Plot > Nodal
Solution then select DOF Solution - USUM in the window.
Alternatively, obtain these results as a list. (General Postproc > List Results > Nodal
Solution...)
Are these results what you expected? Note that all translational degrees of freedom were
constrained to zero at the bolt holes.
4. Stresses
General Postproc > Plot Results > Nodal Solution... Then select von Mises Stress in the
window.
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'.
Modeling Tools
Solid Modeling
Introduction
This tutorial is the last of three basic tutorials devised to illustrate commom features in ANSYS. Each
tutorial builds upon techniques covered in previous tutorials, it is therefore essential that you complete
Index
the tutorials in order.
The Solid Modelling Tutorial will introduce various techniques which can be used in ANSYS to create
Contributions solid models. Filleting, extrusion/sweeping, copying, and working plane orientation will be covered in
detail.
Comments
MecE 563 Two Solid Models will be created within this tutorial.
Mechanical Engineering
University of Alberta
Problem Description A
ANSYS Inc. We will be creating a solid model of the pulley shown in the following figure.
Copyright © 2001
University of Alberta
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.
1. Create 3 Rectangles
Main Menu > Preprocessor > (-Modeling-) Create > Rectangle > By 2 Corners
BLC4, XCORNER, YCORNER, WIDTH, HEIGHT
ANSYS will label the united area as AREA 4 and the previous three areas will be deleted.
5. Copy the smaller circle for the rounded edges at the top
Preprocessor > (-Modeling-) Copy > Areas
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.
The following window will appear prompting for the fillet radius. Enter 0.1
Follow the same procedure and create a fillet with the same radius between the following
lines
As shown below, zoom into the fillet radius and plot and number the lines.
Now we need to sweep the area around a y axis at x=0 and z=0 to create the pulley.
2. By default the graphics will now show all keypoints. Plot Areas
You will first be prompted to select the areas to be swept so click on the area.
Then you will be asked to enter or pick two keypoints defining the axis.
Plot the Keypoints (Utility Menu > Plot > Keypoints. Then select the following two
keypoints
The following window will appear prompting for sweeping angles. Click on OK.
By default, the working plane in ANSYS is located on the global Cartesian X-Y plane. However,
for us to define the bolt holes, we need to use a different working plane. There are several ways to
define a working plane, one of which is to define it by three keypoints.
X Y Z
#2001 0 3 0
#2002 1 3 0
#2003 0 3 1
Select Keypoints 2001 then 2002 then 2003 IN THAT ORDER. The first keypoint (2001)
defines the origin of the working plane coordinate 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.
Once you have selected the 3 keypoints and clicked 'OK' the WP symbol (green) should
appear in the Graphics window. Another way to make sure the active WP has moves is:
Utility Menu > WorkPlane > Show WP Status
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.
Select the cylinder volume and click on OK. The following window will appear; fill in the
blanks as shown,
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.
Select keypoints 4 and 5 (either click on them or type 4,5 into the command line)
when prompted.
Enter the radius of the arc (20) in the 'Arc by End KPs & Radius' window
We will make use of the 'copy' feature in ANSYS to create all 4 holes
The following window will appear once you select the area
Fill in the window as shown (length of extrusion = 26mm). Note, to extrude the area in the
negative z direction you would simply enter -26.
As in the previous example, we need to change the working plane. You may have observed that
geometry can only be created in the X-Y plane. Therefore, in order to create the back of the
Spindle Base, we need to create a new working plane where the X-Y plane is parallel to the back.
Again, we will define the working plane by aligning it to 3 Keypoints.
X Y Z
#100 109 102 0
#101 109 2 0
#102 159 102 sqrt(3)/0.02
Recall when defining the working plane; the first keypoint defines the origin, the second
keypoint defines the x-axis orientation, while the third defines the orientation of the
working plane.
(Alternatively, type KWPLAN,1,100,101,102 into the command line)
Note that the planar areas between the two volumes were not added together.
Add the planar areas together (don't forget the other side!)
Preprocessor > (-Modeling-) Operate > (-Booleans-) Add > Areas
AADD, Area 1, Area 2, Area 3
First change the active coordinate system back to the global coordinate system (this will
make it easier to align to the new coordinate system)
Utility Menu > WorkPlane > Align WP with > Global Cartesian
X Y Z
#200 -20 61 26
#201 0 61 26
#202 -20 61 30
Recall when defining the working plane; the first keypoint defines the origin, the second
keypoint defines the x-axis orientation, while the third defines the orientation of the
working plane.
(Alternatively, type KWPLAN,1,200,201,202 into the command line)
We now need to update the coordiante system to follow the working plane changes (ie make the
new Work Plane origin the active coordinate)
Utility Menu > WorkPlane > Change Active CS to > Working Plane
CSYS,4
X Y Z
#203 129-(0.57735*26) 0 0
#204 129-(0.57735*26) + 38 sqrt(3)/2*76 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'.
Solution Tracking
Buckling Introduction
NonLinear Materials
This tutorial was completed using ANSYS 7.0 The purpose of the tutorial is to show the required steps
Dynamic - Modal to account for the weight of an object in ANSYS.
Dynamic - Harmonic
Loads will not be applied to the beam shown below in order to observe the deflection caused by the
Dynamic - Transient weight of the beam itself. The beam is to be made of steel with a modulus of elasticity of 200 GPa.
Thermal-Conduction
Thermal-Mixed Bndry
Transient Heat
Axisymmetric
Index
Contributions
Comments
MecE 563
Preprocessing: Defining the Problem
Mechanical Engineering
1. Give example a Title
University of Alberta Utility Menu > File > Change Title ...
/title, Effects of Self Weight for a Cantilever Beam
3. Define Keypoints
Copyright © 2001 Preprocessor > Modeling > Create > Keypoints > In Active CS...
University of Alberta K,#,x,y,z
We are going to define 2 keypoints for this beam as given in the following table:
4. Create Lines
Preprocessor > Modeling > Create > Lines > Lines > In Active Coord
L,1,2
For this problem we will use the BEAM3 (Beam 2D elastic) element. This element has 3 degrees
of freedom (translation along the X and Y axes, and rotation about the Z axis).
In the 'Real Constants for BEAM3' window, enter the following geometric properties:
Preprocessor > Material Props > Material Models > Structural > Linear > Elastic > Isotropic
In the window that appears, enter the following geometric properties for steel:
Preprocessor > Material Props > Material Models > Structural > Linear > Density
In the window that appears, enter the following density for steel:
Preprocessor > Meshing > Size Cntrls > ManualSize > Lines > All Lines...
Preprocessor > Meshing > Mesh > Lines > click 'Pick All'
Apply Constraints
Solution > Define Loads > Apply > Structural > Displacement > On Keypoints
Define Gravity
It is necessary to define the direction and magnitude of gravity for this problem.
Select Solution > Define Loads > Apply > Structural > Inertia > Gravity...
The following window will appear. Fill it in as shown to define an acceleration of 9.81m/s2 in the
y direction.
Note: Acceleration is defined in terms of meters (not 'mm' as used throughout the problem). This
is because the units of acceleration and mass must be consistent to give the product of force units
(Newtons in this case). Also note that a positive acceleration in the y direction stimulates gravity
in the negative Y direction.
There should now be a red arrow pointing in the positive y direction. This indicates that an
acceleration has been defined in the y direction.
DK,1,ALL,0,
ACEL,,9.8
The applied loads and constraints should now appear as shown in the figure below.
Hand calculations were performed to verify the solution found using ANSYS:
As observed in the upper left hand corner, the maximum displacement was found to be 5.777mm.
This is in agreement with the theortical value.
Distributed Loading
Application of Distributed Loads
NonLinear Analysis
Solution Tracking
Introduction
Buckling
NonLinear Materials This tutorial was completed using ANSYS 7.0. The purpose of this tutorial is to explain how to apply
distributed loads and use element tables to extract data. Please note that this material was also covered
Dynamic - Modal in the 'Bicycle Space Frame' tutorial under 'Basic Tutorials'.
Dynamic - Harmonic
A distributed load of 1000 N/m (1 N/mm) will be applied to a solid steel beam with a rectangular cross
Dynamic - Transient section as shown in the figure below. The cross-section of the beam is 10mm x 10mm while the
modulus of elasticity of the steel is 200GPa.
Thermal-Conduction
Thermal-Mixed Bndry
Transient Heat
Axisymmetric
Index
Contributions
Comments
MecE 563
Mechanical Engineering
University of Alberta
ANSYS Inc.
Copyright © 2001
University of Alberta
Preprocessing: Defining the Problem
1. Open preprocessor menu
/PREP7
3. Create Keypoints
Preprocessor > Modeling > Create > Keypoints > In Active CS
K,#,x,y
We are going to define 2 keypoints (the beam vertices) for this structure as given in the
following table:
2 (1000,0)
4. Define Lines
Preprocessor > Modeling > Create > Lines > Lines > Straight Line
L,K#,K#
For this problem we will use the BEAM3 element. This element has 3 degrees of freedom
(translation along the X and Y axis's, and rotation about the Z axis). With only 3 degrees of
freedom, the BEAM3 element can only be used in 2D analysis.
In the 'Real Constants for BEAM3' window, enter the following geometric properties:
This defines an element with a solid rectangular cross section 10mm x 10mm.
Preprocessor > Material Props > Material Models > Structural > Linear > Elastic > Isotropic
In the window that appears, enter the following geometric properties for steel:
Preprocessor > Meshing > Size Cntrls > ManualSize > Lines > All Lines...
Preprocessor > Meshing > Mesh > Lines > click 'Pick All'
Plot Elements
You may also wish to turn on element numbering and turn off keypoint numbering
Apply Constraints
Solution > Define Loads > Apply > Structural > Displacement > On Keypoints
Pin Keypoint 1 (ie UX and UY constrained) and fix Keypoint 2 in the y direction (UY
constrained).
Apply Loads
We will apply a distributed load, of 1000 N/m or 1 N/mm, over the entire length of the beam.
Select Solution > Define Loads > Apply > Structural > Pressure > On Beams
Click 'Pick All' in the 'Apply F/M' window.
As shown in the following figure, enter a value of 1 in the field 'VALI Pressure value at node I'
then click 'OK'.
The applied loads and constraints should now appear as shown in the figure below.
Note:
To have the constraints and loads appear each time you select 'Replot' you must change some
settings. Select Utility Menu > PlotCtrls > Symbols.... In the window that appears, select
'Pressures' in the pull down menu of the 'Surface Load Symbols' section.
As shown previously, we need to use element tables to obtain principle stresses for line elements.
2. Click 'Add...'
4. click 'Apply'
5. Repeat steps 2 to 4 but change 'SMAXI' to 'SMAXJ' in step 3a and change '1' to '3' in step
3d.
6. Click 'OK'. The 'Element Table Data' window should now have two variables in it.
8. Select: General Postproc > Plot Results > Line Elem Res...
9. Select 'SMAXI' from the 'LabI' pull down menu and 'SMAXJ' from the 'LabJ' pull down
menu
Note:
ANSYS can only calculate the stress at a single location on the element. For this example,
we decided to extract the stresses from the I and J nodes of each element. These are the
nodes that are at the ends of each element.
For this problem, we wanted the principal stresses for the elements. For the BEAM3
element this is categorized as NMISC, 1 for the 'I' nodes and NMISC, 3 for the 'J' nodes. A
list of available codes for each element can be found in the ANSYS help files. (ie. type
help BEAM3 in the ANSYS Input window).
As shown in the plot below, the maximum stress occurs in the middle of the beam with a value of
750 MPa.
Distributed Loading
Graphical Solution Tracking
NonLinear Analysis
Solution Tracking
Introduction
Buckling
NonLinear Materials This tutorial was completed using ANSYS 7.0 This will act as an explanation of what the Graphical
Solution Tracking plot is acutally describing. An example of such a plot is shown below and will be
Dynamic - Modal used throughout the explanation.
Dynamic - Harmonic
Dynamic - Transient
Thermal-Conduction
Thermal-Mixed Bndry
Transient Heat
Axisymmetric
Index
Contributions
Comments
MecE 563
Mechanical Engineering
University of Alberta
1. Title and Axis Labels
The title of the graph is really just the time value of the last calculated iteration. In this
example, the time at the end of the analysis was set to 1. This can be changed with the
ANSYS Inc.
Time command before the Solve command is issued. For more information regarding
setting the time value, and many other solution control option, see Chapter 8.5 of the
Structural Analysis Guide in the Help file.
Copyright © 2001 The x-axis is labelled Cumulative Iteration Number. As ANSYS steps through non-
University of Alberta linear analysis, it uses a solver (Newton-Raphson, etc) that iterates to find a solution. If the
problem is relatively linear, very few iterations will be required and thus the length of the
graph will be small. However, if the solution is highly non-linear, or is not converging,
many iterations will be required. The length of the graph in these cases can be quite long.
Again, for more information about changing iteration settings, you can see Chapter 8.5 in
the help file.
The y-axis is labelled Absolute Convergence Norm. In the case of a structural analysis,
which this graph is taken from, this absolute convergence norm refers to non-normalized
values (ie there are units associated with these values). Some analyses use normalized
values. In reality it doesn't really matter because it is only a comparison that is going on.
This is what will be explained next.
For each parameter, there are two curves plotted. For ease of explanation, we will look at
the force curves.
The F CRIT curve refers to the convergence criteria force value. This value is equal
to the product of VALUE x TOLER. The default value of VALUE is the square root of
the sum of the squares (SRSS) of the applied loads, or MINREF (which defaults to
0.001), which ever is greater. This value can be changed using the CNVTOL
command, which is discussed in the help file. The value of TOLER defaults to 0.5%
for loads.
One may inquire why the F CRIT value increases as the number of iterations
increases. This is because the analysis is made up of a number of substeps. In the
case of a structural example, such as this, these substeps are basically portions of the
total load being applied over time. For instance, a 100N load broken up with 20
substeps means 20, 5N loads will be applied consequtively until the entire 100N is
applied. Thus, the F CRIT value at the start will be 1/20th of the final F CRIT value.
The F L2 curve refers to the L2 Vector Norm of the forces. The L2 norm is the SRSS
of the force imbalances for all DOF's. In simpler terms, this is the SRSS of the
difference between the calculated internal force at a particular DOF and the external
force in that direction.
For each substep, ANSYS iterates until the F L2 value is below the F CRIT value. Once
this occurs, it is deemed the solution is within tolerance of the correct solution and it moves
on to the next substep. Generally, when the curves peak this is the start of a new substep.
As can be seen in the graph above, a peak follow everytime the L2 value drops below the
CRIT value, as expected.
Solution Tracking
Buckling Introduction
NonLinear Materials
This tutorial was created using ANSYS 7.0 to solve a simple buckling problem.
Dynamic - Modal
It is recommended that you complete the NonLinear Tutorial prior to beginning this tutorial
Dynamic - Harmonic
Dynamic - Transient Buckling loads are critical loads where certain types of structures become unstable. Each load has an
associated buckled mode shape; this is the shape that the structure assumes in a buckled condition.
Thermal-Conduction There are two primary means to perform a buckling analysis:
Thermal-Mixed Bndry
1. Eigenvalue
Transient Heat
Eigenvalue buckling analysis predicts the theoretical buckling strength of an ideal elastic
Axisymmetric
structure. It computes the structural eigenvalues for the given system loading and constraints.
This is known as classical Euler buckling analysis. Buckling loads for several configurations are
readily available from tabulated solutions. However, in real-life, structural imperfections and
Index nonlinearities prevent most real-world structures from reaching their eigenvalue predicted
buckling strength; ie. it over-predicts the expected buckling loads. This method is not
recommended for accurate, real-world buckling prediction analysis.
Contributions
2. Nonlinear
Comments
MecE 563 Nonlinear buckling analysis is more accurate than eigenvalue analysis because it employs non-
linear, large-deflection, static analysis to predict buckling loads. Its mode of operation is very
Mechanical Engineering simple: it gradually increases the applied load until a load level is found whereby the structure
University of Alberta
becomes unstable (ie. suddenly a very small increase in the load will cause very large
deflections). The true non-linear nature of this analysis thus permits the modeling of geometric
imperfections, load perterbations, material nonlinearities and gaps. For this type of analysis, note
that small off-axis loads are necessary to initiate the desired buckling mode.
ANSYS Inc.
Copyright © 2001
University of Alberta
This tutorial will use a steel beam with a 10 mm X 10 mm cross section, rigidly constrained at the
bottom. The required load to cause buckling, applied at the top-center of the beam, will be calculated.
3. Define Keypoints
Preprocessor > Modeling > Create > Keypoints > In Active CS ...
K,#,X,Y
We are going to define 2 Keypoints for this beam as given in the following table:
4. Create Lines
Preprocessor > Modeling > Create > Lines > Lines > In Active Coord
L,1,2
For this problem we will use the BEAM3 (Beam 2D elastic) element. This element has 3 degrees
of freedom (translation along the X and Y axes, and rotation about the Z axis).
In the 'Real Constants for BEAM3' window, enter the following geometric properties:
Preprocessor > Material Props > Material Models > Structural > Linear > Elastic > Isotropic
In the window that appears, enter the following geometric properties for steel:
Preprocessor > Meshing > Size Cntrls > ManualSize > Lines > All Lines...
For this example we will specify an element edge length of 10 mm (10 element divisions along
the line).
Preprocessor > Meshing > Mesh > Lines > click 'Pick All'
LMESH,ALL
You must first ensure that you are looking at the unabridged solution menu so that you can select
Analysis Options in the Analysis Type submenu. The last option in the solution menu will either
be 'Unabridged menu' (which means you are currently looking at the abridged version) or
'Abriged Menu' (which means you are looking at the unabridged menu). If you are looking at the
abridged menu, select the unabridged version.
In the following window, change the [SSTIF][PSTRES] item to 'Prestress ON', which ensures the
stress stiffness matrix is calculated. This is required in eigenvalue buckling analysis.
Apply Constraints
Solution > Define Loads > Apply > Structural > Displacement > On Keypoints
Apply Loads
Solution > Define Loads > Apply > Structural > Force/Moment > On Keypoints
The eignenvalue solver uses a unit force to determine the necessary buckling load. Applying a
load other than 1 will scale the answer by a factor of the load.
Apply a vertical (FY) point load of -1 N to the top of the beam (keypoint 2).
The applied loads and constraints should now appear as shown in the figure below.
Close the solution menu and click FINISH at the bottom of the Main Menu.
FINISH
Normally at this point you enter the postprocessing phase. However, with a buckling analysis you must
re-enter the solution phase and specify the buckling analysis. Be sure to close the solution menu and re-
enter it or the buckling analysis may not function properly.
Solution > Analysis Type > New Analysis > Eigen Buckling
ANTYPE,1
Complete the window which appears, as shown below. Select 'Block Lanczos' as an extraction
method and extract 1 mode. The 'Block Lanczos' method is used for large symmetric eigenvalue
problems and uses the sparse matrix solver. The 'Subspace' method could also be used, however it
tends to converge slower as it is a more robust solver. In more complex analyses the Block
Lanczos method may not be adequate and the Subspace method would have to be used.
Close the solution menu and click FINISH at the bottom of the Main Menu.
FINISH
Again it is necessary to exit and re-enter the solution phase. This time, however, is for an expansion
pass. An expansion pass is necessary if you want to review the buckled mode shape(s).
Select Solution > Analysis Type > Expansion Pass... and ensure that it is on. You may have to
select the 'Unabridged Menu' again to make this option visible.
Select Solution > Load Step Opts > ExpansionPass > Single Expand > Expand Modes ...
To display the minimum load required to buckle the beam select General Postproc > List
Results > Detailed Summary. The value listed under 'TIME/FREQ' is the load (41,123),
which is in Newtons for this example. If more than one mode was selected in the steps
above, the corresponding loads would be listed here as well.
/POST1
SET,LIST
Select General Postproc > Read Results > Last Set to bring up the data for the last mode
calculated.
3. Create Keypoints
Preprocessor > Modeling > Create > Keypoints > In Active CS
K,#,X,Y
We are going to define 2 keypoints (the beam vertices) for this structure to create a beam
with a length of 100 millimeters:
4. Define Lines
Preprocessor > Modeling > Create > Lines > Lines > Straight Line
L,1,2
For this problem we will use the BEAM3 (Beam 2D elastic) element. This element has 3 degrees
of freedom (translation along the X and Y axis's, and rotation about the Z axis). With only 3
degrees of freedom, the BEAM3 element can only be used in 2D analysis.
In the 'Real Constants for BEAM3' window, enter the following geometric properties:
Preprocessor > Material Props > Material Models > Structural > Linear > Elastic > Isotropic
In the window that appears, enter the following geometric properties for steel:
Preprocessor > Meshing > Size Cntrls > Lines > All Lines...
For this example we will specify an element edge length of 1 mm (100 element divisions along
the line).
ESIZE,1
Preprocessor > Meshing > Mesh > Lines > click 'Pick All'
LMESH,ALL
Ensure the following selections are made under the 'Basic' tab (as shown above)
A. Ensure Large Static Displacements are permitted (this will include the effects of large
deflection in the results)
B. Ensure Automatic time stepping is on. Automatic time stepping allows ANSYS to
determine appropriate sizes to break the load steps into. Decreasing the step size usually
ensures better accuracy, however, this takes time. The Automatic Time Step feature will
determine an appropriate balance. This feature also activates the ANSYS bisection feature
which will allow recovery if convergence fails.
C. Enter 20 as the number of substeps. This will set the initial substep to 1/20 th of the total
load.
D. Enter a maximum number of substeps of 1000. This stops the program if the solution does
not converge after 1000 steps.
Ensure the following selection is made under the 'Nonlinear' tab (as shown below)
A. Ensure Line Search is 'On'. This option is used to help the Newton-Raphson solver
converge.
NOTE
There are several options which have not been changed from their default values. For more
information about these commands, type help followed by the command into the command line.
Apply Constraints
Solution > Define Loads > Apply > Structural > Displacement > On Keypoints
Apply Loads
Solution > Define Loads > Apply > Structural > Force/Moment > On Keypoints
Place a -50,000 N load in the FY direction on the top of the beam (Keypoint 2). Also apply a -250
N load in the FX direction on Keypoint 2. This horizontal load will persuade the beam to buckle
at the minimum buckling load.
The model should now look like the window shown below.
SOLVE
To view the element in 2D rather than a line: Utility Menu > PlotCtrls > Style > Size and
Shape and turn 'Display of element' ON (as shown below).
General Postproc > Plot Results > Deformed Shape... > Def + undeformed
PLDISP,1
As shown, you can obtain the results (such as deflection, stress and bending moment diagrams) the
same way you did in previous examples using the General Postprocessor. However, you may wish to
view time history results such as the deflection of the object over time.
1. Define Variables
Select: Main Menu > TimeHist Postpro. The following window should open
automatically.
If it does not open automatically, select Main Menu > TimeHist Postpro > Variable
Viewer
Click the add button in the upper left corner of the window to add a variable.
Double-click Nodal Solution > DOF Solution > Y-Component of displacement (as
shown below) and click OK. Pick the uppermost node on the beam and click OK in the
'Node for Data' window.
To add another variable, click the add button again. This time select Reaction Forces >
Structural Forces > Y-Component of Force. Pick the lowermost node on the beam and
click OK.
On the Time History Variable window, click the circle in the 'X-Axis' column for FY_3.
This will make the reaction force the x-variable. The Time History Variables window
should now look like this:
The labels on the plot are not updated by ANSYS, so you must change them manually.
Select Utility Menu > Plot Ctrls > Style > Graphs > Modify Axes and re-label the X and
Y-axis appropriately.
The plot shows how the beam became unstable and buckled with a load of approximately
40,000 N, the point where a large deflection occured due to a small increase in force. This
is slightly less than the eigen-value solution of 41,123 N, which was expected due to non-
linear geometry issues discussed above.
command language interface of ANSYS. This problem has also been solved using the ANSYS
command language interface that you may want to browse. Open the .HTML version, copy and paste
the code into Notepad or a similar text editor and save it to your computer. Now go to 'File > Read
input from...' and select the file. A .PDF version is also available for printing.
Solution Tracking
Buckling Introduction
NonLinear Materials
This tutorial was completed using ANSYS 7.0 The purpose of the tutorial is to describe how to include
Dynamic - Modal material nonlinearities in an ANSYS model. For instance, the case when a large force is applied resulting in a
stresses greater than yield strength. In such a case, a multilinear stress-strain relationship can be included
Dynamic - Harmonic which follows the stress-strain curve of the material being used. This will allow ANSYS to more accurately
Dynamic - Transient
model the plastic deformation of the material.
Thermal-Conduction
Thermal-Mixed Bndry
Transient Heat
Axisymmetric
Index
Contributions
Comments
MecE 563
Mechanical Engineering
University of Alberta
For this analysis, a simple tension speciment 100 mm X 5 mm X 5 mm is constrained at the bottom and has a
load pulling on the top. This specimen is made out of a experimental substance called "WhoKilledKenium".
ANSYS Inc. The stress-strain curve for the substance is shown above. Note the linear section up to approximately 225 MPa
where the Young's Modulus is constant (75 GPa). The material then begins to yield and the relationship
becomes plastic and nonlinear.
Copyright © 2001
University of Alberta
Preprocessing: Defining the Problem
1. Give example a Title
Utility Menu > File > Change Title ...
/title, NonLinear Materials
2. Create Keypoints
Preprocessor > Modeling > Create > Keypoints > In Active CS
/PREP7
K,#,X,Y
We are going to define 2 keypoints (the beam vertices) for this structure to create a beam with a
length of 100 millimeters:
3. Define Lines
Preprocessor > Modeling > Create > Lines > Lines > Straight Line
L,1,2
For this problem we will use the LINK1 (2D spar) element. This element has 2 degrees of freedom
(translation along the X and Y axis's) and can only be used in 2D analysis.
In the 'Real Constants for LINK1' window, enter the following geometric properties:
Preprocessor > Material Props > Material Models > Structural > Linear > Elastic > Isotropic
In the window that appears, enter the following geometric properties for steel:
Now that the initial properties of the material have been outlined, the stress-strain data must be included.
Preprocessor > Material Props > Material Models > Structural > Nonlinear > Elastic > Multilinear
Elastic
The following window will pop up.
Fill in the STRAIN and STRESS boxes with the following data. These are points from the stress-
strain curve shown above, approximating the curve with linear interpolation between the points.
When the data for the first point is input, click Add Point to add another. When all the points
have been inputed, click Graph to see the curve. It should look like the one shown above. Then
click OK.
Curve
Strain Stress
Points
1 0 0
2 0.001 75
3 0.002 150
4 0.003 225
5 0.004 240
6 0.005 250
7 0.025 300
8 0.060 355
9 0.100 390
10 0.150 420
11 0.200 435
12 0.250 449
13 0.275 450
To get the problem geometry back, select Utility Menu > Plot > Replot.
/REPLOT
Preprocessor > Meshing > Manual Size > Size Cntrls > Lines > All Lines...
For this example we will specify an element edge length of 5 mm (20 element divisions along the line).
Preprocessor > Meshing > Mesh > Lines > click 'Pick All'
LMESH,ALL
Ensure the following selections are made under the 'Basic' tab (as shown above)
A. Ensure Large Static Displacements are permitted (this will include the effects of large deflection in
the results)
B. Ensure Automatic time stepping is on. Automatic time stepping allows ANSYS to determine
appropriate sizes to break the load steps into. Decreasing the step size usually ensures better
accuracy, however, this takes time. The Automatic Time Step feature will determine an
appropriate balance. This feature also activates the ANSYS bisection feature which will allow
recovery if convergence fails.
C. Enter 20 as the number of substeps. This will set the initial substep to 1/20 th of the total load.
D. Enter a maximum number of substeps of 1000. This stops the program if the solution does not
converge after 1000 steps.
F. Ensure all solution items are writen to a results file. This means rather than just recording the data
for the last load step, data for every load step is written to the database. Therefore, you can plot
certain parameters over time.
Ensure the following selection is made under the 'Nonlinear' tab (as shown below)
A. Ensure Line Search is 'On'. This option is used to help the Newton-Raphson solver converge.
NOTE
There are several options which have not been changed from their default values. For more information
about these commands, type help followed by the command into the command line.
Apply Constraints
Solution > Define Loads > Apply > Structural > Displacement > On Keypoints
Apply Loads
Solution > Define Loads > Apply > Structural > Force/Moment > On Keypoints
Place a 10,000 N load in the FY direction on the top of the beam (Keypoint 2).
1. To view the element in 2D rather than a line: Utility Menu > PlotCtrls > Style > Size and Shape and
turn 'Display of element' ON (as shown below).
As shown, you can obtain the results (such as deflection, stress and bending moment diagrams) the same way
you did in previous examples using the General Postprocessor. However, you may wish to view time history
results such as the deflection of the object over time.
1. Define Variables
Select: Main Menu > TimeHist Postpro. The following window should open automatically.
If it does not open automatically, select Main Menu > TimeHist Postpro > Variable Viewer
Click the add button in the upper left corner of the window to add a variable.
Select Nodal Solution > DOF Solution > Y-Component of displacement (as shown below) and
click OK. Pick the uppermost node on the beam and click OK in the 'Node for Data' window.
To add another variable, click the add button again. This time select Reaction Forces >
Structural Forces > Y-Component of Force. Pick the lowermost node on the beam and click
OK.
On the Time History Variable window, click the circle in the 'X-Axis' column for FY_3. This will
make the reaction force the x-variable. The Time History Variables window should now look like
this:
The labels on the plot are not updated by ANSYS, so you must change them manually. Select
Utility Menu > Plot Ctrls > Style > Graphs > Modify Axes and re-label the X and Y-axis
appropriately.
This plot shows how the beam deflected linearly when the force, and subsequently the stress, was
low (in the linear range). However, as the force increased, the deflection (proportional to strain)
began to increase at a greater rate. This is because the stress in the beam is in the plastic range and
thus no longer relates to strain linearly. When you verify this example analytically, you will see
the solutions are very similar. The difference can be attributed to the ANSYS solver including
large deflection calculations.