Sei sulla pagina 1di 21

ANSYS Short Course

ANSYS Short Course


Tim Langlais

ANSYS Short Course

Intro to ANSYS
Problems ANSYS can solve y Static Structures y Harmonic, Vibration y Electromagnetics y Dynamics y Fluids

ANSYS Short Course

Schedule
1. 2D Structural Example 2. 2D Thermal Example 3. Batch Processing 4. Modeling 5. Meshing 6. Solution 7. Post Processing 8. Tips and Tricks

ANSYS Short Course

Getting Started
Copy the course materials to your directory and start ANSYS: unix% cd ~ unix% cp ~langlais/ansys-course.tar.gz . unix% gunzip ansys-course.tar.gz unix% tar -xvf ansys-course.tar unix% cd ansys/batch unix% module add ansys unix% ansys54 -g -p ansysrf

ANSYS Short Course

Help!
ANSYS Home http://www.ansys.com Online Manuals Utility Menu Help Net Manuals
http://terminator.tamu.edu/softwareDocs/ansys/realtoc.html

ANSYS Short Course

2D Structural Example

0.002R 0.02m

0.02m

1000N

y plane stress y model in 2D

ANSYS Short Course

2D Thermal Example
h=150W/m 2 K T=25C

k=20W/mK T=200C

0.002R

T=50C 0.02m

q= -100W/m 2 0.02m

y model in 2D

ANSYS Short Course

What is a Batch File?


A batch le is an ASCII le that contains a list of ANSYS commands used to dene a problem. y all GUI commands are tied to batch commands y batch les can be run interactively or in the background

ANSYS Short Course

Disadvantages of Batch Processing


y must learn new command set y learning curve is steep

ANSYS Short Course

10

Advantages of Batch Processing


y saves space! 20K batch le vs. 30MB *.db le y parametric modelingcan change parameters and re-run y can run analyses in the background Batch processing saves time, especially if you need to analyze something repeatedly. It is possible to automatically vary certain parameters and keep track of the results!

ANSYS Short Course

11

ANSYS Batch Language


y primitive FORTRAN syntax y can make loops and conditionals based on any variable Uses: y selective application of boundary conditions y calculation based on results resultant force at boundary average temperature over a surface

ANSYS Short Course

12

Modeling Exercise: Notched Shaft


0.15"R 1.5" 1.0"

1.0"
y llet is 90o arc y circular cross-section

2.25"

ANSYS Short Course

13

ANSYS and Pro/E


y no elegant way to read Pro/E les in ANSYSyet Option 1: y mesh within Pro/E using Pro/FEA y export ANSYS le from Pro/E y read le into ANSYS Option 2: y export IGES le from Pro/E y import IGES le into ANSYS y mesh within ANSYS

ANSYS Short Course

14

Meshing
Free Meshing y use ANSYS MeshTool with the Smart Mesher y can automatically mesh any geometry y dicult to control element shape Mapped Meshing y easy to control element shapes and sizes y can lead to more accurate results y more dicultneed to split areas and volumes a certain way

ANSYS Short Course

15

Example Free Mesh

ANSYS Short Course

16

Example Mapped Mesh

ANSYS Short Course

17

Solution
y dierent solvers for dierent problemsmake sure you use the right one! y make sure you know the DOFs of your element before applying the BCs y for structural problems, remember to distribute loads over several nodes

ANSYS Short Course

18

Post Processing
y contour plots using Plot Results > Nodal Solu ... or Element Table y line plots using Path Operations > y print plots using PlotCntrls -> Hard Copy ...

ANSYS Short Course

19

Tips and Tricks: Files


For linear, static problems ANSYS solves Ax = b During solution, ANSYS writes equation to disk, creating lots of large temporary les. y as long as you have saved everything (SAVE_DB), the *.db le is the only one you need y the *.rst, *.emat, *.esav, etc. are not needed

ANSYS Short Course

20

Tips and Tricks: More Files


Because ANSYS writes large temporary les to disk during solution, you should not run your analysis in your home directory (because you will be writing over the network). y unix% cd /usr/tmp/ these are temporary directories on the local hard drive y once solution is done, copy batch le and/or *.db le to your home directory Solution is much faster this way!

ANSYS Short Course

21

Tips and Tricks: Memory Allocation


ANSYS is a resource hog. y out of local memoryANSYS cannot allocate enough memory on this machine run on another machine y out of heap space tell ANSYS to allocate more space using -m or -db switch y disk fullyou are over quota use scratch space in /usr/tmp/

Potrebbero piacerti anche