Chapter 1 * Chapter 2 * Chapter 3 * Chapter 4 * Chapter 5 * Chapter 6 * Chapter 7 * Chapter 8 * Chapter 9 * Chapter 10 * Chapter 11 * Chapter 12 * Chapter 13 * Chapter 14 * Chapter 15 * Chapter 16 * Chapter 17 * Chapter 18 * Chapter 19
You can also generate a neutral graphics file (*.GRPH) and use the stand-alone DISPLAY program. The DISPLAY program can be used to view static or animated screen images, or to convert your file into the appropriate format for printing, plotting, or exporting to word processing or desktop publishing programs.
Printer spooling options will free up the processor more quickly (especially in Z-buffered mode). In Type 4 or Polygon mode, spooling may cause some elements to not plot, or to be improperly placed. Select the Print Directly to Printer option when these types of printing problems are encountered.
You can export Windows Metafiles directly from ANSYS (Windows systems only) by selecting Utility Menu>PlotCtrls>Write Metafile. The subsequent dialog boxes provide limited page layout and configuration options.
The Reverse Video option affects only the background of the display. The black background provided in the ANSYS graphics window is often unsuitable for printing. Selecting Reverse Video will present the graphics on a white background. Contour colors and other colors selected from the ANSYS palette are unaffected by this option.
To obtain other export formats, choose Utility Menu>PlotCtrls>Redirect Plots.. You can select from GRPH, PSCR, HPGL, HPGL2 and VRML. These formats are suitable for a wide range of applications outside of the ANSYS program. Of special interest is the .GRPH file, a neutral graphics file that uses the ANSYS plotting instructions to recreate the file in applications other than ANSYS.
To route your graphics displays to a neutral graphics file having any valid filename, use one of the choices shown below. (In batch mode, by default, the ANSYS program will assign this filename to Jobname.GRPH.)
Command(s):
Utility Menu>PlotCtrls>Device Options
Utility Menu>PlotCtrls>Redirect Plots>To GRPH File
Utility Menu>PlotCtrls>Redirect Plots>To Screen
Each subsequent graphics action command that you issue writes a separate display to this file. (Thus, a neutral graphics file can contain more than one display, with each display being sequentially numbered, beginning with 1.) You can use the ANSYS animation macros, which automatically generate a series of graphics action commands for animation purposes, to create multiple displays on your neutral graphics file. If you wish, you can reissue the /SHOW command with a graphics device name to direct subsequent displays to your terminal screen. This way, you can toggle back and forth between the screen and a file (which is appended, not overwritten) as many times as you wish.
DISPLAY supports all UNIX screen devices and printers that the ANSYS program supports. It also supports Windows-compatible screen devices and printers and the following hard copy formats:
| -j
|
Jobname
|
| -d
|
Device_Type
|
| -s
|
Read / Noread
|
DISPLAY does support the redirection of standard input and output. For example, in the C (csh) shell, the following statement is valid:
display55 -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 START5x.DSP file (where 5x indicates the release number, such as 55 for Release 5.5) containing any valid DISPLAY commands that you would want to execute automatically at start-up. (Use an external text editor to create START5x.DSP.)
The ANSYS program reads the first START5x.DSP file it finds in the following search paths:
Note-The commands discussed in this section, unless otherwise noted, are DISPLAY commands, not ANSYS commands.
1. Set up your DISPLAY session with the /SHOWDISP and (if desired) /CMAP or NOCOLOR commands. (You can include these commands in a START5x.DSP file.)
2. Using the FILEDISP command, direct the DISPLAY program to read the desired neutral graphics file. If you are using the DISPLAY and ANSYS programs simultaneously, make sure the neutral graphics file is first closed in ANSYS. That is, issue /SHOW,TERM before reading the file in DISPLAY.
3. Specify terminal options with the TERM command. For screen display, you might be interested in setting the TERM,LOOP options (the number of loops, NLOOP, and the amount of time to pause between displays, PAUSE).
4. Issue the PLOT command to cause specified displays to be formed. Recall that your graphics file can contain several different displays. You can call up specific displays by number, or you can instruct the program to display ALL plots found on your file.
5. Issue FINISH to exit the DISPLAY program.
GUI menu paths to the /SEG and ANIM commands are:
GUI:
Utility Menu>PlotCtrls>Redirect Plots>Delete Segments
Utility Menu>PlotCtrls>Redirect Plots>Segment Status
Utility Menu>PlotCtrls>Redirect Plots>To Segment Memory (UNIX)
Utility Menu>PlotCtrls>Redirect Plots>To Animation File (Windows)
The same comments regarding memory requirements for ANSYS animation also apply for the DISPLAY program. A typical command stream for animation would look like this:
/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
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 by typing PLOT,1, PLOT,2, ... etc. (or PLOT,ALL). The DISPLAY program will automatically assign an output filename.
3. Exit the DISPLAY program (using the FINISH command) 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 ANSYS image.)
4. Identify the appropriate file (for instance, PSCRnn.GRPH, HPGLnn.GRPH, etc.) and retrieve the image into the box. HPGL files will produce a screen image (bitmapped). You also can 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, use the PSCR,TIFF and PSCR,EPSI command options within the DISPLAY program.
1. From the FILE menu, select Export Ansys Graphics.
2. Select Metafile.
3. To invert the colors of the graphic, choose the Controls option. The Standard Color option exports the ANSYS display file with a black background and the colors designated in the ANSYS program. The Invert WHITE/BLACK option will provide a white background, but still retain the original colors. Choose OK to continue.
4. Select the name, location and type of metafile to be exported. The option for WMF or EMF is provided. Each file export is assigned the default filename file00.emf (or wmf), with the "00" field incrementing for each subsequent file export. Older Windows products do not support EMF files.
Windows Metafiles can be exported directly from ANSYS (Windows systems only) by selecting Utility Menu>PlotCtrls>Write Metafile. The subsequent dialog boxes provide the same options listed above.
Windows Metafiles cannot be obtained directly from the UNIX platform (ANSYS or DISPLAY). The DISPLAY utility for Windows must be installed, and the ANSYS graphics files must be exported to the Windows file system in order to be converted. DISPLAY for Windows is shipped with all ANSYS products. Contact your ASD for installation instructions.
When you are printing to a local (not shared) printer, follow these steps:
1. Activate the Print Manager.
2. Select the Properties Menu for the desired printer.
3. Select the Details Menu.
4. Select the option Print directly to ports.