18.3. Viewing and Translating Neutral Graphics Files

After creating a neutral graphics file, the standalone DISPLAY program enables you to view static or animated screen images, or to translate your file into the appropriate format for printing, plotting, or exporting to word processing and desktop publishing programs. The program creates images directly by using information from a .GRPH file created in a previous session.

DISPLAY supports all Linux screen devices and printers that the program supports. It also supports Windows-compatible screen devices and printers and the following hard-copy formats:

18.3.1. Getting Started with the DISPLAY Program

The DISPLAY program runs independently. From Windows, click on the Start button and select Programs>ANSYS 18.2> Display Utility. From a Linux prompt, issue the command display182 or xdisplay182 for a GUI similar to the Windows DISPLAY program. You can specify any or all of the following commands options:

-j Jobname
-d Device_Type
-s Read / Noread

These options function exactly as they do within the program. The DISPLAY program does not support the memory (-m), database (-db), batch (-b), menu (-g), language (-l), product (-p), version (-v), and parameter specification options.

DISPLAY supports the redirection of standard input and output. For example, in the C (csh) shell, the following statement is valid:

display182  -d  X11  -j  demo  <demo.dat>&  demo.out  &

To streamline your use of the DISPLAY program during presentations and demonstrations, you might want to create a start.dsp file containing any valid DISPLAY commands that you would want to execute automatically at start-up. (Use an external text editor to create start.DSP.)

The program reads the first start.dsp file it finds in the following search paths:

  • The working directory

  • Your home directory

  • The APDL directory

If you are running DISPLAY on a Windows System, instead of using a start.dsp file, you can simply select a file.GRPH file from File Manager, drag it to the DISPLAY window, and drop it there.

18.3.2. Viewing Static Images on a Terminal Screen

The commands discussed here, unless otherwise noted, are specific to the DISPLAY program. Use the following procedure to view static displays on a screen with the DISPLAY program.

  1. Set up your DISPLAY session (/SHOWDISP, and optionally /CMAP or NOCOLOR). You can include these commands in a start.dsp file.

  2. Direct the DISPLAY program to read the desired neutral graphics file (FILEDISP). If you are using the DISPLAY and Mechanical APDL programs simultaneously, ensure that the neutral graphics file is first closed in Mechanical APDL (/SHOW,CLOSE) before reading the file into DISPLAY.

  3. Specify terminal options (TERM). For screen display, you may want to set the TERM,LOOP options (the number of loops NLOOP and the amount of time to pause between displays, PAUSE).

  4. Generate the specified displays (PLOT). Reminder: Your graphics file can contain several different displays, and you can call up specific displays by number or display ALL plots found on your file.

  5. Exit the DISPLAY program (FINISH).

18.3.3. Viewing Animated Sequences on a Screen

The procedure for creating an animated display in the DISPLAY program is similar to that used within the Mechanical APDL program. By executing /SEG and ANIM commands, you can display several frames in rapid succession to achieve an animation effect. (The DISPLAY program cannot use all hardware platforms to produce online animation.)

For the DISPLAY program, the Aviname and DELAY arguments of the /SEG command are ignored.

The same comments regarding memory requirements for animation also apply for the DISPLAY program.

Example 18.1:  Typical Command Input for Animation
/SEG,DELE          ! Deletes all currently stored segments
/SEG,MULTI         ! Stores subsequent displays in segment memory
PLOT,4,8,1         ! Plots #4 - #8 (5 frames total) are stored in segment 
                   !     memory  (Use PLOT,ALL to include every plot)
/SEG,OFF           ! Turn off the frame-capture function
ANIM,10            ! Cycles through the five frames 10 times

18.3.4. Capturing Animated Sequences Offline

You can use the DISPLAY program to capture animation offline (on film or videotape) in much the same way as you would for an analysis within the program. See Animation for a general discussion of this technique.

18.3.5. Exporting Files to Desktop Publishing or Word Processing Programs

The DISPLAY program can translate graphics files into Hewlett Packard Graphics Language (HPGL), Encapsulated PostScript (EPS), or some other external format for use in third-party publishing and word processing tools. The Windows version of DISPLAY is also capable of exporting Metafile Graphics (WMF or EMF).

18.3.5.1. Exporting Files on a Windows System

The Windows version of DISPLAY provides direct METAFILE graphics export, in addition to the formats listed above. If the system is operating in Z-buffered mode, it will automatically switch to polygon mode when the file export is requested. A Windows metafile is created and saved in the specified directory by performing the following tasks:

  1. Select File> Export ANSYS Graphics.

  2. Select Metafile.

  3. To invert the colors of the graphic, select the Controls option. The Standard Color option exports the display file with a black background and the colors designated in the program. The Invert WHITE/BLACK option provides a white background, but retains the original colors. Click OK to continue.

  4. Select the name, location and type of metafile (WMF or EMF) to be exported. Each file export is assigned the default filename file00.emf (or .wmf), with the "00" field incrementing for each subsequent file export.

Windows Metafiles can be exported directly via Utility Menu> PlotCtrls> Write Metafile.

Windows Metafiles cannot be obtained directly from the Linux platform. The DISPLAY utility for Windows must be installed, and the Mechanical APDL graphics files must be exported to the Windows file system in order to be converted. DISPLAY for Windows is shipped with all ANSYS, Inc. products. Contact your Support Representative for installation instructions.

18.3.5.2. Exporting Files on a Linux System

To create such exportable graphics files, perform these tasks:

  1. Using the DISPLAY program, issue the FILEDISP command to direct the program to read the desired filename. With the /SHOWDISP command, identify which graphics format you desire (HPGL, POSTSCRIPT, INTERLEAF, etc.). The HPGL format includes color HPGL capability, and the POSTSCRIPT format includes Encapsulated Postscript by default.

  2. Still in the DISPLAY program, create one plot per file (PLOT,1, PLOT,2, ... etc. [or PLOT,ALL]). An output filename is assigned automatically.

  3. Exit the DISPLAY program (FINISH) and enter the word processing program. Create a graphics box in the document at the size of your choice. (Square boxes are recommended to avoid clipping the image.)

  4. Identify the appropriate file (for example, PSCRnn.GRPH, HPGLnn.GRPH, etc.) and retrieve the image into the box.

HPGL files produce a screen image (bitmapped). You can also set up an EPS file to include a TIFF (Tagged Image File Format) bitmap or an Encapsulated PostScript Interchange Format (EPSI) bitmap for screen previewing. To do so, issue the PSCR,TIFF and PSCR,EPSI command options within the DISPLAY program.

18.3.6. Editing the Neutral Graphics File with the Linux GUI

The Linux GUI provides an edit dialog to create a new neutral graphics file from a subset of plots in an existing file: File > Edit Plot Sequence.


Release 18.2 - © ANSYS, Inc. All rights reserved.