Escolar Documentos
Profissional Documentos
Cultura Documentos
Amit Gupta
September 27, 2004
1. Starting ANSYS
At this moment, there are two options from where you can run ANSYS: (a) from
the NANOHUB and (b) from an ECN Windows NT PC.
If you have not already done so, send out a request for an account on NANOHUB
(http://www.nanohub.org) so that you will be able to access and run ANSYS. ANSYS
can be found in the General Productivity section of the On-line Simulation section of the
NANOHUB. This is the preferred method to run ANSYS for this course. Please make
sure you have read all the notes and instructions before actually using ANSYS on
NANOHUB. The instructions on using NANOHUB are well documented there and will
not be discussed here. Please be patient when running ANSYS on NANOHUB. You
may have to play around with the dimensions of the screen size for the VNC session for
the most comfortable fit on your specific computer screen. It may be helpful to minimize
the ANSYS Output Window as it may get in one’s way when trying to access the
Graphical User Interface (GUI). ANSYS creates very large files when running. To save
disk space, it is advisable to delete unwanted files. Please see the section on General
Notes for the address of a web page that describes the files ANSYS creates. This
information can also be found in the ANSYS manual found in the Help option in the
Utility Menu.
(b) Windows NT
General Notes:
1. Make sure you save your work occasionally when working on complex
geometries. As far as the author knows, ANSYS does not seem to have an undo
command. If a mistake is made the previously saved file will have to be reloaded
to resume work.
1
2. It is the responsibility of the user to be consistent with the units used in the
problem. ANSYS does not ask for or specify which units to use for the
parameters. This will be exemplified in the section below.
3. ANSYS creates a large amount of files and data when processing. Not all the
files are useful and need to be saved. A good description on the important files is
giving in http://www.mece.ualberta.ca/tutorials/ansys/AU/Files/Files.html. The
description of the files can also be found in the ANSYS manual from the Help
command.
4. Make extensive use of the Help command in the Utility Menu. Note that the
Help command gives different options when running ANSYS from a Windows
NT PC and when running from NANOHUB. In some dialog windows for
commands, the Help option is also given. Clicking on it will open a separate
window and describe the command.
5. Familiarize yourself with the ANSYS program. In order to be able to follow the
instructions in the following tutorial, please make sure you can locate the
following in the ANSYS program: ANSYS Utility Menu, ANSYS Main Menu,
ANSYS Command Prompt (the window with the cursor, usually below the
Utility Menu) as well as the ANSYS Toolbar.
Problem Description
2
Thickness = 1 µ m = 1e-6 m
Young’s modulus = 1.3 x 1011 N/m2
Poisson’s ratio = 0.279
Pre-processing
1. Enter Jobname
2. Specify Title
This step is not necessary as far as the analysis is concerned, but it helps in
documenting your work. The title will appear on all graphic displays and will be
included on the solution output.
a. Click on Utility Menu → File → Change Title...
b. Enter the title: Microsized Cantilever Beam.
c. Click on OK to enter and close the dialog window.
Enter /PREP7 (this starts the preprocessing phase) in the Command Prompt
window followed by ANTYPE,STATIC (Hit enter after typing every command in the
ANSYS Command Prompt window). This selects the static analysis option. Static
analysis is the default analysis type. This command can also be accessed from Main
Menu → Preprocessor → Loads → –Analysis Type- → New Analysis….
Set Preferences
Setting the preferences allows one to choose the desired engineering discipline
(structural, thermal, electromagnetic etc.) for context filtering of menu choices. By
default the menu choices for all disciplines are shown, with non-applicable choices
“dimmed” based on the element type chosen for the model. By choosing the desired
discipline, the dimmed choices are not shown at all. For example, turning on the
structural filtering completely suppresses all thermal, electromagnetic, and fluid menu
options.
This problem performs a static structural analysis, so the structural discipline will
be chosen.
a. Click on ANSYS Main Menu → Preferences...
b. Click on the structural button to turn on the filtering. Leave the other
default values as they are.
c. Click on OK to apply the filtering and close the dialog window
3
4. Set the Units
ANSYS does not specify what units to use and it is dependent on the user to specify
the units. In this problem SI units will be used. Type /units, si in the ANSYS
Command Prompt window. This command cannot be accessed form the menu. Please
utilize the Help command in the Utility Menu to learn more about the /unit command.
In any analysis one needs to select from a library of element types and define the
appropriate one for the analysis. The element type determines many things such as the
degree-of-freedom set (displacement, rotations, temperature etc.), the characteristic shape
of the element (line, quadrilateral, brick etc.), and whether the element is 2-D or 3-D.
Many element types also have additional element options to specify such things as
element behavior and assumptions, element results, printout options etc. For information
about the different element types, please consult the Help option in the Utility Menu.
For this problem element type PLANE42, a 2-D structural element, will be used.
For a more accurate result, a higher-order or mid-side node element, PLANE82, should
be used. In this problem, plane stress with thickness will need to be specified as an
option for PLANE42. The element thickness will be defined as a real constant.
Real constants are parameters that provide additional geometry information for
element types whose geometry is not fully defined by their node locations. For example,
shell thickness for shell elements and cross-sectional properties for beam elements. All
properties required as input for a particular element type are entered as one set of real
constants. There is a possibility of multiple sets only if multiple element types are used
in the analysis. Each set is given a reference number.
4
For this problem, since the assumption is plane stress with thickness, the thickness
is entered as a real constant for PLANE42.
8. Save Database
Save the database that has been created so far into file beam.db. Click on ANSYS
Toolbar → SAVE_DB.
Before creating the geometry, the global triad symbol may be moved from the
origin to the bottom left corner of the Graphics Window so that it will not obscure the
view of the keypoint and node at the origin.
5
a. Click on Utility Menu → PlotCtrls → Window Controls → Window
Options…
b. For the option on [/TRIAD] Location of triad, select At bottom left.
c. Click on OK to apply the location change of the reference triad.
There are several ways to create the model geometry within ANSYS, some of
which are more convenient than others are. These include solid modeling and direct
generation (Read more about this in the Help manual). For this problem of a simple
cantilever beam, the geometry will be generated using solid modeling. The first step is to
recognize that the simple beam is a single rectangle. There are simple predefined
geometric shapes called primitives available in ANSYS. A rectangle primitive, for
example, defines the following solid model entities in one step: one area, four lines, and
four keypoints.
Save the database created so far to a file with a name that represents the model
before meshing. When the model needs to be re-meshed, the analysis can be resumed
from this database file.
ANSYS has the feature of automatically creating the mesh of the model without
specifying any mesh size control (the default mesh). If it is not clear how to determine
6
the mesh density, one can start by using the default mesh. In this problem, a global
element size will be specified to control the overall mesh density.
Solving
The solution step is where one can define the analysis type and options (already
done in the beginning of the preprocessing phase in this example), apply loads and the
load options, and initiate the finite element solution. The loads can also be applied in the
preprocessing phase as will be shown in Example II below. All displacement constraints
and loads are ultimately applied to the nodes. However, there are methods in ANSYS to
initially apply them to the geometric primitives and ANSYS will automatically transfer or
expand the constraints or loads to the nodes. However, for this problem, the constraints
and loads will be directly applied to the nodes.
7
h. Click on OK to define the displacement constraints on the picked node.
i. Choose UX only for Lab2, DOFs to be constrained (You may have to
click on All DOF to unselect it).
j. Enter 0 for VALUE, Displacement value.
k. Click on OK to apply the displacement and close the dialog window.
l. Close all the remaining windows up to the Main Menu → Solution
options window.
3. Solve
Post-processing
Postprocessing is where one reviews the results of the analysis through graphic
displays and tabular listings. The general postprocessor (POST1) is used to review
results at one sub-step (time step) over the entire model. The time-history postprocessor
(POST26) is used to review results at specific points in the model over all time steps. In
this example, only the general postprocessor needs to be used.
8
c. Choose Undisplaced shape key → Deformed shape with undeformed
edge.
d. Click on OK to plot and close the dialog window.
A colored contour plot of the stress in the X-direction should become visible in
the ANSYS Graphics window.
Printing Results
There are instructions on how to print results from NANOHUB under the section
titled ANSYS Related Information.
When done, one can exit the ANSYS program along with performing various
options. In this example, everything will be saved.
a. Click on Utility Menu → File → Exit
b. Choose Save Everything.
c. Click on OK to exit ANSYS.
9
Problem Description
The problem described here is similar to that in Example I, except that the model
used here is in 3-D and that a point force of 50 nN will be applied at the center of the free
end in the downward direction. The dimensions and parameters are similar to those in
Example I.
Pre-processing
4. Set no preferences
For this example, the element type is a coupled field solid. For it to be displayed
in the menu, all the disciplines will have to be selected.
In this analysis, element type SOLID5 will be used. It is a 3-D coupled field
solid. According to the manual, it has a 3-D magnetic, thermal, structural and
piezoelectric field capability with limited coupling between the fields. One can read
more about it using the Help command in the Utility Menu.
10
Set the Young’s modulus, EX to 1.3e11 and Poisson’s ratio, PRXY to 0.279.
In this example, the geometry will be created differently than in Example I. The
model will be created using keypoints. The commands will be entered using the ANSYS
Command Prompt window. As a caution, please be careful when typing to avoid typos.
Save your work periodically so that if a mistake is made work can be resumed from the
previously saved file.
12. Meshing
11
d. Enter 2 in the field NDIV, No. of element divisions. This command can
also be executed by entering ESIZE, , 2 in the ANSYS Command
Prompt window.
e. Enter V, 1, 2, 4, 3, 5, 6, 8, 7 in the ANSYS Command Prompt window.
One must enter the keypoint numbers in this particular order; otherwise
the volume will be irregularly formed. One may have to sketch this out on
a piece of paper and play connect the dots to see how this volume is
formed.
f. Enter VMESH, 1 in the ANSYS Command Prompt window. A
Warning window may open up during meshing. Review the information
and close the window.
At this point, the author would like to point out a command that might be useful:
Utility-Menu → PlotCtrls → Pan, Zoom, Rotate…. Explore the various options.
Clicking on Dynamic Mode allows you to manipulate the model, to various positions,
using the different mouse buttons.
In this example, the displacement constraints and the load application will be
done in the preprocessing phase. In this part of the example, many of the commands will
be entered using the ANSYS Command Prompt window.
12
14. Apply Point Load
Solving
Post-Processing
Please see Example I for details on postprocessing. There are many things that
can be analyzed for this problem. It is advisable to explore the many options available.
13