MENG 421 --
Class assignments --
1
2
3
4
5
6
8
9
10
11
12
In today's lesson you will run both Matlab and Ansys to solve the axially loaded bar described here. The purpose of this lesson is to learnBy the second exam you will need to memorize the important parts of the Ansys code. We will discuss the code at the beginning of each laboratory.
- how to copy class prototype files,
- how to edit files,
- how to run Matlab and Ansys,
- how to copy the results to the original file, and
- how to print the results.
First you will create Matlab and Ansys folders in the Win directory. Then you will copy the prototype files and run them. Check that the answers for Matlab and Ansys agree. Finally, print out the results, add a cover sheet describing what you did, and turn the package in at the next class meeting.
U:\win\Matlabby clicking on the down-arrow at the end of the Save in: box. Then click the folder icons.
See the Copying Prototype Files for more information.
See the Copying Prototype Files for more information.
/output,Displ,txt,U:\win\Ansys\ ! displacementswhich will put the output in your U:\win\Ansys directory.
Ansys creates very large work files that you do not need. However, if Ansys puts the files in your own directory, you will soon be out of space. Fortunately, each Tech computer has a free storage area named C:\WINDOWS\Temp that can be used. You are not charged for this space, but you have no guarantee that files you place there will survive after you log out.
Change the Ansys workspace area with the following steps.
/output,Displ,txt,U:\win\Ansys\ ! displacements /output,Stress,txt,U:\win\Ansys\ ! forces and stressesappear in the Ansys source code (axial1a.a)
Change to the alternate Output forms when running Ansys on the Mechanical Engineering Department computers to put the output in the D:\Ansys directory..
/output,Displ,txt,D:\Ansys\ ! displacements /output,Stress,txt,D:\Ansys\ ! forces and stresses
NODE UX UY
NODE FX
ELEM STR
Prologue: Each assignment covers much material. You should go through the complete lesson several times until you understand it. You must know how to easily do the material covered in the exercises. In particular, you must understand all the changes you make and be able to write them out on an examination. That is, you do not need to know all the lines in your programs, only the ones you change and the overall structure of an Ansys program.
MENG 421 --
Ansys --
Lecture 1 --
Class assignments --
1
2
3
4
5
6
8
9
10
11
12
Files:
Ansys,
Matlab
Revised: March 19, 2004 -- Copyright © 1997-2004 ARMiller