Mechanical APDL Basic Analysis Guide - Ansys

Mechanical APDL Basic Analysis Guide - Ansys Mechanical APDL Basic Analysis Guide - Ansys

www1.ansys.com
from www1.ansys.com More from this publisher
15.11.2012 Views

Chapter 10: Getting Started with Graphics 2. You use graphics action functions to actually produce the display. You can perform both types of graphics functions either by using menu functions in the GUI or by typing in commands directly. 10.5.1. GUI-Driven Graphics Functions When running the ANSYS program interactively, most users will prefer to use the GUI. As you use the GUI functions, you execute commands without actually seeing or editing them. (The program will record all underlying executed commands in your Jobname.LOG file.) You can access graphics specification functions via Utility Menu> PlotCtrls. Graphics action functions reside under Utility Menu> Plot. 10.5.2. Command-Driven Graphics Functions As an alternative to using the GUI functions, you can type ANSYS commands directly in the Input Window. In general, you enter the graphics specifications using the graphics "slash" commands (for example, /WINDOW, /PNUM, etc.). Graphics action commands are usually either prefixed with PL (PLNSOL, PLVAR, etc.) or are suffixed with PLOT (EPLOT, KPLOT, etc.). 10.5.3. Immediate Mode Graphics By default in the GUI, your model will immediately be displayed in the Graphics Window as you create new entities (such as areas, keypoints, nodes, elements, local coordinate systems, boundary conditions, etc.). This is called immediate mode graphics. Anything drawn immediately in this way, however, will be destroyed if you bring up a menu or dialog box on top of it. Or, if you iconify the GUI, the immediate mode graphics image will not be shown when you restore the GUI icon. An immediate image will also be automatically scaled to fit nicely within the Graphics Window - a feature called automatic scaling. Periodically, though, you may need to issue an explicit plot function because you have created new entities which lie "outside" the boundaries of the scaled image already in the Graphics Window and are thus not captured with immediate mode graphics. The plot function will rescale and redraw the image. To obtain a more "permanent" image, you need to execute one of the plot functions (such as Utility Menu> Plot> Volumes) or a graphics action command (such as VPLOT). An image generated in this way will not be destroyed by menu pop-ups or by iconifying the GUI. Also note that symbols (such as keypoint or node numbers, local coordinate systems, boundary conditions, etc.) are also shown immediately but will not be present on a "permanent" display unless you first "turn on" the appropriate symbol using the functions under Utility Menu> PlotCtrls or the appropriate graphics specification command. If you prefer not to see things immediately as you define them, you can use the IMMED command (Utility Menu> PlotCtrls> Erase Options> Immediate Display) to turn off immediate mode. When you run the ANSYS program interactively without using the GUI, immediate mode is off by default. 10.5.4. Replotting the Current Display The /REPLOT command (Utility Menu> Plot> Replot) re-executes the last display action command that was executed. However, the program can execute that command only if it is valid in the current ANSYS routine. For instance, if you issue a PLNSOL command in POST1, then exit that routine and replot while at the Begin level, no contour display will be formed. To save time, you may want to define an abbreviation for the /REPLOT command so that it is available on the Toolbar as a "quick pick." 224 Release 13.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates.

10.5.5. Erasing the Current Display You can clear the current graphics display by issuing the ERASE command (Utility Menu> PlotCtrls> Erase Options> Erase Screen). (GUI menus will not be erased, however.) 10.5.6. Aborting a Display in Progress If you have initiated a display and decide to terminate it before it is completed, invoke your system "break." (Typically, this means moving the mouse pointer to the Output Window and typing Ctrl+C. However, the specific procedure varies from system to system.) You must execute this break while the display is visibly in progress, or else your entire ANSYS session will terminate. 10.6. Multi-Plotting Techniques The multi-plotting capabilities within ANSYS enable you to display both multiple entities within a window and multiple windows with varying entity types. Defining each window's composition is a four-step process: 1. Define the window layout. 2. Choose the entities you want each window to display. 3. If you are displaying elements or graphs, choose the type of element or graph display used for plots. 4. Display the entities you selected. 10.6.1. Defining the Window Layout You need to define how many windows you want the ANSYS program to use for plotting and how those windows appear on your screen. You have the following layout options: • One window • Two windows (left and right of the screen, or top and bottom) • Three windows (two at the top of the screen and one at the bottom, or one window at the top and two windows at the bottom) • Four windows (two at the top of the screen and two at the bottom) To define the window layout, issue the /WINDOW command (Utility Menu> PlotCtrls> MultiWindow Layout). If you choose the GUI path, the program displays a dialog box, in which you click on the layout you prefer. That dialog box also contains a Display upon OK/Apply field, where you also can specify what the ANSYS program displays next. Choices for this field are Multi-Plots, Replot, and No redisplay. When you finish specifying your layout design, click on Apply or OK. 10.6.2. Choosing What Entities Each Window Displays Once you have designed your window layout, you choose what entities each window will display. To do so, use either of the following: Command(s): /GTYPE,WN,Label,KEY GUI: Utility Menu> PlotCtrls> Multi-Plot Controls 10.6.2. Choosing What Entities Each Window Displays If you use the GUI path, a dialog box appears. In its Window to edit field, click on either All window or a specific window number (default is window 1). In the Display type field, choose either Entity plots or Graph plots. Then, click on OK. If you choose Entity plots, another dialog box appears, listing the types of entities Release 13.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates. 225

Chapter 10: Getting Started with Graphics<br />

2. You use graphics action functions to actually produce the display.<br />

You can perform both types of graphics functions either by using menu functions in the GUI or by typing<br />

in commands directly.<br />

10.5.1. GUI-Driven Graphics Functions<br />

When running the ANSYS program interactively, most users will prefer to use the GUI. As you use the GUI<br />

functions, you execute commands without actually seeing or editing them. (The program will record all underlying<br />

executed commands in your Jobname.LOG file.) You can access graphics specification functions<br />

via Utility Menu> PlotCtrls. Graphics action functions reside under Utility Menu> Plot.<br />

10.5.2. Command-Driven Graphics Functions<br />

As an alternative to using the GUI functions, you can type ANSYS commands directly in the Input Window.<br />

In general, you enter the graphics specifications using the graphics "slash" commands (for example, /WINDOW,<br />

/PNUM, etc.). Graphics action commands are usually either prefixed with PL (PLNSOL, PLVAR, etc.) or are<br />

suffixed with PLOT (EPLOT, KPLOT, etc.).<br />

10.5.3. Immediate Mode Graphics<br />

By default in the GUI, your model will immediately be displayed in the Graphics Window as you create new<br />

entities (such as areas, keypoints, nodes, elements, local coordinate systems, boundary conditions, etc.). This<br />

is called immediate mode graphics. Anything drawn immediately in this way, however, will be destroyed if<br />

you bring up a menu or dialog box on top of it. Or, if you iconify the GUI, the immediate mode graphics<br />

image will not be shown when you restore the GUI icon.<br />

An immediate image will also be automatically scaled to fit nicely within the Graphics Window - a feature<br />

called automatic scaling. Periodically, though, you may need to issue an explicit plot function because you<br />

have created new entities which lie "outside" the boundaries of the scaled image already in the Graphics<br />

Window and are thus not captured with immediate mode graphics. The plot function will rescale and redraw<br />

the image.<br />

To obtain a more "permanent" image, you need to execute one of the plot functions (such as Utility Menu><br />

Plot> Volumes) or a graphics action command (such as VPLOT). An image generated in this way will not<br />

be destroyed by menu pop-ups or by iconifying the GUI. Also note that symbols (such as keypoint or node<br />

numbers, local coordinate systems, boundary conditions, etc.) are also shown immediately but will not be<br />

present on a "permanent" display unless you first "turn on" the appropriate symbol using the functions under<br />

Utility Menu> PlotCtrls or the appropriate graphics specification command.<br />

If you prefer not to see things immediately as you define them, you can use the IMMED command (Utility<br />

Menu> PlotCtrls> Erase Options> Immediate Display) to turn off immediate mode. When you run the<br />

ANSYS program interactively without using the GUI, immediate mode is off by default.<br />

10.5.4. Replotting the Current Display<br />

The /REPLOT command (Utility Menu> Plot> Replot) re-executes the last display action command that<br />

was executed. However, the program can execute that command only if it is valid in the current ANSYS<br />

routine. For instance, if you issue a PLNSOL command in POST1, then exit that routine and replot while at<br />

the Begin level, no contour display will be formed. To save time, you may want to define an abbreviation<br />

for the /REPLOT command so that it is available on the Toolbar as a "quick pick."<br />

224<br />

Release 13.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information<br />

of ANSYS, Inc. and its subsidiaries and affiliates.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!