ANSYS for UNIX/LINUX - Additional Information

What is ANSYS?

ANSYS is a general purpose finite element program. Many different types of problems may be analyzed using the code.  Examples include structural, thermal, magnetic field, electric field, coupled field and fluids analyses.

ANSYS is also a self contained program in that the Pre-processor (model definition), Processor (solver) and Post-processor (output) are all integrated into a single code. All of these components may be accessed either through a graphical user interface (GUI) or through execution commands.

The ANSYS INC. Home Page

Setting the Environment

Use SSH to connect to a DECS compute server with X11 forwarding enabled. We recommend using the X2Go client.

You can set the environment for a session by typing source $SOFT/ansys at the command prompt.

If you will be using ANSYS on a regular basis, you can add the following lines to your .cshrc file, and each time you log in your environment will be set to run ANSYS.

if (-e $SOFT/ansys) then
source $SOFT/ansys
endif

 

Starting ANSYS

There are two methods available for starting the ANSYS program in UNIX. The first method is to pick from a group of choices on a menu called the ANSYS Launcher. The second way is to issue the ANSYS execution command at the Unix prompt.

1. ANSYS Launcher:

To start the ANSYS Launcher for version 14.0 at the UNIX prompt issue the following command:

launcher150

 

2. ANSYS Execution Command

ANSYS may also be initiated by issuing the execution command. At the UNIX prompt enter:

ansys140 [-g yes] [-j jobname]

The options -g yes or no is to use the GUI. The options "yes" or "blank" indicate that the GUI is on, and "no" indicates the GUI is off.

And -j jobname is to name the initial jobname that will be assigned to the files generated during the ANSYS session. If the -j option is not used all files will be assigned the name FILE.

Exiting ANSYS

When using the GUI, you can exit the ANSYS program by  either choosing Exit under File in the ANSYS Utility Menu or choose QUIT from the ANSYS Toolbar. With either selection the "Exit from ANSYS" window will appear requesting which information to save from the session. After making your selection, choose OK to exit or Cancel to continue your ANSYS session. When exiting, after clicking OK, move the mouse into the ANSYS_Output window and press return to close that window.

If you are not using the GUI, the /exit command will terminate your ANSYS session.

Printing

Hardcopy output may be obtained from ANSYS in two ways. The first method provides a quick and easy means of generating hardcopies of the ANSYS graphics window in postscript format. The hardcopy command is found by clicking on the PlotCtrls option of the ANSYS Utility Menu and choosing Hard Copy (for screen or graphic window) or Capture Image (for graphic window only). Once the PS Hard Copy or Image Hard Copy window appears, the desired options may be selected and the output generated. To print, select Print To and Enter.

lpr -P printername

The stand alone ANSYS graphics utility program DISPLAY provides the second and more advanced options for producing hardcopy output. DISPLAY allows for greater control of the printout (i.e. scaling functions) and it also allows for alternate graphics formats (i.e. HPGL format). This utility can be used to plot, print or export neutral graphics files on desired formats. Neutral graphic files are created in ANSYS program. Information on using DISPLAY is contained in the document Printing in ANSYS

Running ANSYS in Background (UNIX)

The following command will run your ANSYS file (ansys.input) in background on one of the servers: nohup ansys < ansys.input > ansys.output &. The "nohup" will enable the program to keep running after you log off the server. The "&" will tell the server to run the command in background. "Ansys.output" is where your output will be stored. 

 

Tutorials

There are online tutorials available for the current versions of ANSYS accessible through the Help menu (Help).

Distributed computing

See the Ansys and CFX Distrbuted Computing page.