css.engineering.uiowa.edu    Linux Software Notes

""

Procedure for Network-intensive Applications

Abaqus, ANSYS, and Fluent/Gambit generate such a high volume of network traffic when run from the file server that they slow activity for everyone with accounts on that file server. To avoid dramatic network slowdowns when running Abaqus, ANSYS, and Fluent, you must create a directory in /var/tmp, copy your input files to that directory, cd to that directory, and then run the application. The applications will not start until you do this. Read below the detailed instructions for Abaqus, ANSYS, Fluent.

When using a virtual Linux machine, you should also use a /var/tmp directory when running Abaqus, ANSYS, or Fluent/Gambit. See Using /var/tmp on a Virtual Linux Machine below.

Abaqus   |   ANSYS   |   Fluent   

Abaqus Notes

How to Run Abaqus

1. Create a directory in your home directory for Abaqus files and put Abaqus-related files in that directory.
        mkdir problem1 where problem1 is the directory you are creating

2. Create a directory in /var/tmp to store your output Abaqus files. Abaqus creates very large scratch files which will be written to this directory. This is temporary space which is NOT backed up and is deleted at the end of every semester or sooner if the disk fills up. You must copy any files you want to keep back to your home directory.
        mkdir /var/tmp/name   where name is the directory you are creating. You can use your login name to name this directory.

3. Copy your Abaqus files to /var/tmp/name
        cp ~/problem1/xxx    /var/tmp/name where xxx are the files you want to copy from the directory you created in step 1 above.

4. Change to the /var/tmp/name directory
        cd /var/tmp/name

5. Run Abaqus. Type abaqus cae at the command prompt. Abaqus will automatically set your working directory to /var/tmp/name as long as you start Abaqus from that directory.

6. When you have Abaqus results, copy those files to your home directory
      cp  xxx  /path where path is where you want to store these files.
If you choose to store them in the directory created in step 1 above, use cp xxx  ~/problem1

From the start menu go to Search and type abaqus, or type abaqus cae from a shell prompt. Temporary files must be stored in /var/tmp.

If you have questions, talk to the consultants in 1253 SC, 319-335-5055.

ANSYS Notes

How to Run ANSYS

1. Create a directory in your home directory for ANSYS files and put ANSYS-related files in that directory.
        mkdir problem1 where problem1 is the directory you are creating

2. Create a directory in /var/tmp to store your output ANSYS file. ANSYS creates very large scratch files which will be written to this directory. This is temporary space which is NOT backed up and is deleted at the end of every semester or sooner if the disk fills up. You must copy any files you want to keep back to your home directory.
        mkdir /var/tmp/name   where name is the directory you are creating. You can use your login name to name this directory.

3. Copy your ANSYS files to /var/tmp/name
        cp ~/problem1/xxx    /var/tmp/name where xxx are the files you want to copy from the directory you created in step 1 above.

4. Change to the /var/tmp/name directory
        cd /var/tmp/name

5. Run ANSYS. Type ansys at the command prompt. ANSYS will automatically set your working directory to /var/tmp/name as long as you start ANSYS from that directory.

6. When you have ANSYS results, copy those files to your home directory
      cp  xxx  /path where path is where you want to store these files.
If you choose to store them in the directory created in step 1 above, use cp xxx  ~/problem1

Run a batch job in the background

You can run ANSYS as a batch job, put it in the background and log out by using the following command.  The & tells the system to run the job in the background; nohup tells the system to continue the job after you log out. The input file is your file of ANSYS commands; the output file will capture anything ANSYS normally writes to the screen. Name the output file anything you want.

nohup ansys -b < inputfile > outputfile &

If you have questions, talk to the consultants in 1253 SC,319- 335-5055.

Fluent/Gambit Notes

How to Run Fluent

1. Create a directory in your home directory for Fluent files and put Fluent-related files in that directory.
        mkdir problem1 where problem1 is the directory you are creating

2. Create a directory in /var/tmp to store your output Fluent files. Fluent creates very large scratch files which will be written to this directory. This is temporary space which is NOT backed up and is deleted at the end of every semester or sooner if the disk fills up. You must copy any files you want to keep back to your home directory.
        mkdir /var/tmp/name   where name is the directory you are creating. You can use your login name to name this directory.

3. Copy your Fluent files to /var/tmp/name
        cp ~/problem1/xxx    /var/tmp/name where xxx are the files you want to copy from the directory you created in step 1 above.

4. Change to the /var/tmp/name directory
        cd /var/tmp/name

5. Run Fluent. Type fluent at the command prompt. Fluent will automatically set your working directory to /var/tmp/name as long as you start Fluent from that directory.

6. When you have Fluent results, copy those files to your home directory
      cp  xxx  /path where path is where you want to store these files.
If you choose to store them in the directory created in step 1 above, use cp xxx  ~/problem1

If you have questions, talk to the consultants in 1253 SC, 319-335-5055.


Source the File

To run Fluent or Gambit, source the appropriate setup file for your shell. The setup files set your Path environment variable so that all the Fluent and associated programs will be available to you.
For a C shell, type
   source /usr/ui/class/aux/fluent_setup.csh
For a Bash shell, type
   . /usr/ui/class/aux/fluent_setup.sh

Using /var/tmp on a Virtual Linux Machine

Once you have started VMware Player and logged into a virtual Linux machine, follow the instructions above for creating and using a /var/tmp file. To return to your [virtual] home directory, use the command cd ~/HOME

Temporary files can be stored in /var/tmp and then copied back to the ~/HOME directory or put on a USB device.


Accounts, Policies | Tools & Help | Labs, Classroom Computers | Email | Software | News | Contact CSS
Search with
www.google.com

updated: 2 October 2008
CSS | College of Engineering | © The University of Iowa 2008. All rights reserved.