ACCC Home Page ACADEMIC COMPUTING and COMMUNICATIONS CENTER
Accounts / Passwords Email Labs / Classrooms Telecom Network Security Software Computing and Network Services Education / Teaching Getting Help
 

ANSYS

   
 
     
To use ANSYS
 

ANSYS must ALWAYS be run using torque. There are two ANSYS modes available to you:

  • Interactive via a GUI that is called the launcher, or
  • Non-interactive (batch)
Some time ago, clients could run ANSYS only in batch mode. That is no longer the case. You may run ANSYS just like you would on your PC with graphics displayed.

In both cases you start ANSYS using the qsub command.

 
     
Version
 

10.0

 
     
Profile Changes
 

None.

 
     
Running ANSYS interactively (using the launcher)
 

You desktop PC will act as the X-server for the ANSYS launcher. Exceed is the ACCC-supported X-server package. (See section titled ANSYS and Exceed for setting options.)

Step 1: Start the X-server on your desktop PC.

Step 2: Get the IP address of your desktop machine. On argo-new, enter the following command, replacing xxxxx with your netid:

who -u | grep xxxxx

The resulting output, what appears in parenthesis, is the fully-qualified domain name of your PC. Instead, convert the name to an IP address. As an example, the output is jsmith.cc.uic.edu. To convert it, use the nslookup command on argo-new:

nslookup jsmith.cc.uic.edu

In the resulting output, the line that contains what you want is started with the word Address:

Name: jsmith.cc.uic.edu
Address: 128.248.5.191

Step 3: Create a script like the following script (name it whatever you want; in the example, it is named runansys), replacing the xxx.xxx.xxx.xxx with the IP address that you acquired following the commands given in step two:

export DISPLAY=xxx.xxx.xxx.xxx:0

/usr/common/ansys_inc/v100/ansys/bin/launcher100

Remember to include the colon zero combination :0.

The above script assumes that you are using the bash shell. If you are using the C-shell, then replace the first, export DISPLAY= line with the following (again replacing the xxx.xxx.xxx.xxx with your IP address):

setenv DISPLAY xxx.xxx.xxx.xxx:0

The output from the following command will tell you if you are using the bash shell or the C-shell (replace the xxxx with your netid):

grep xxxx /etc/passwd

Sample output:

jsmith:x:12345:3::/home/homes51/jsmith:/bin/bash

jsmith:x:12345:3::/home/homes51/jsmith:/bin/csh

The first sample output identifies a user running bash; the latter, C.

IMPORTANT: DO NOT use a fully-qualified domain name as the operand to either the export or setenv statements; the operand *** MUST *** be an IP ADDRESS:

WRONG: export DISPLAY=jsmith.cc.uic.edu:0

WRONG setenv DISPLAY jsmith.cc.uic.edu:0

RIGHT: export DISPLAY=128.248.5.191

RIGHT setenv DISPLAY 128.248.5.191:0

Step 4: Submit the runansys script to PBS for execution using the following command (replacing the xxxx with the compute node which you want to use):

qsub -l nodes=xxxx runansys

For example, to run the script on argo16-4:

qsub -l nodes=argo16-4 runansys

 
     
Running ANSYS without the GUI
 

The following command script, call it batchansys, gives an example script that you would use to run your ANSYS job in batch mode:

#!/bin/csh
# PBS -m be
# /usr/common/ansys_inc/v100/ansys/bin/ansys100 -p ansysrf -b <my_ansys_input_file

Each of the lines in the script is explained:

  • #!/bin/csh. Required. Do not change.
  • PBS -m be. This is not required but recommended for jobs that take a long time. Email will be sent to you UIC maildrop letting you know when the job starts, indicated by the b, and when the job completes, indicated by the e. It you want to receive mail only when the job completes, then use the following:

    #PBS -m e

    If you don't want to be informed in either event, then remove the line. The email does not go to argo-new, which should never be used for mail processing, but rather to the mailbox associated with netid@uic.edu. If you want to change the destination of the mail edit your .forward file, changing the netid@uic.edu with the new location.

  • /usr/common/ansys_inc/v100/ansys/bin/ansys100 -p ansysrf -b <my_ansys_input_file. This command invokes ansys. Replace the hardcoded my_ansys_input_file with the name of your ANSYS command file.

To submit your script file to torque, enter:

qsub -V batchansys

The command assumes that you did not change the name of the PBS script. However, if you renamed your copy to some other name, then that name should be the operand to the qsub command. For example, if you renamed the script to myfile, then

qsub -V myfile

The format of the above commands allow torque to decide on which of the compute nodes to run the job. If you want to use a particular node, then use the -l nodes= option. For example, if you want to run the job on argo16-4, then:

qsub -l nodes=argo16-4 ansys_script

If you want to hardcode the execution node into the script, include the following line to ansys_script:

#PBS -l nodes=argo16-4

and then execute the script with the command:

qsub -V ansys_script

DO NOT submit an ANSYS job using either one of the following formats:

./ansys_script

/usr/common/ansys_inc/v100/ansys/bin/ansys100 -p ansysrf -b <my_ansys_input_file

 
     
ANSYS and Exceed
 

If you run ANSYS through Hummingbird, Communications Ltd.'s Exceed™ product, ANSYS Inc. recommends that you adjust the Window Manager settings in order for the online help system to work properly. The setting varies depending on the version of Exceed you are running. Note that changing this setting may affect other applications that you run through Exceed; please check with your system administrator before making any changes.

  1. Right-click on the Exceed icon in the Windows Task Bar.
  2. Select Tools>Configuration.
  3. Double-click on the Screen Definition icon.
  4. Change the Window Manager to Native (for Exceed 6.2) or Default to Native (for Exceed 7.0).
  5. Double-click the Performance icon.
  6. Select Draft Mode, Batch Requests, and Save Unders
  7. Set Maximum Backing Store to Always.
  8. Set Default and Minimum Backing Store to When Mapped.
  9. Click OK. Exceed will now ask if you want to perform a server reset. Click Yes.
 
     
Additional Help
 

None.

 


2007-10-23  ACCC Systems Group
UIC Home Page Search UIC Pages Contact UIC