15.11.2012 Views

Mechanical APDL Basic Analysis Guide - Ansys

Mechanical APDL Basic Analysis Guide - Ansys

Mechanical APDL Basic Analysis Guide - Ansys

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Chapter 8:The Time-History Postprocessor (POST26)<br />

8.6.2. Batch Mode<br />

Exporting data from a time-history variable into a file is a two step process:<br />

1. Export a time-history variable data to an array parameter. The command VGET allows you to export<br />

a single time-history variable into a properly dimensioned ( *DIM ) array parameter. The size of this<br />

array can be determined via *GET ,size,vari,,nsets.<br />

2. Once the array is filled then the data can be written out to a file via *VWRITE command as shown<br />

below.<br />

Example:<br />

NSOL,5,55,U,X<br />

STORE,MERGE ! Store UX at node 55<br />

*GET,size,VARI,,NSETS<br />

*dim,UX55,array,size ! Create array parameter<br />

VGET,UX55(1),5 ! Store time history data of variable 5 into ux55<br />

*CFOPEN,disp,dat<br />

*VWRITE,UX55(1) ! Write array in given format to file "disp.dat"<br />

(6x,f12.6)<br />

*CFCLOSE<br />

8.7. Reviewing the Variables<br />

Once the variables are defined, you can review them via graph plots or tabular listings.<br />

8.7.1. Plotting Result Graphs<br />

The description for graph plotting, both with the variable viewer and from the command line follows:<br />

8.7.1.1. Interactive<br />

The "Graph Data" button in the variable viewer allows you to plot all the selected variables. A maximum of<br />

10 variables can be plotted on a single graph. By default, the variable used for the X-axis of the graphs is<br />

TIME for static and transient analyses or FREQUENCY for harmonic analysis. You can select a different variable<br />

for the X-axis of the graph using the radio button under the column X-AXIS in the list of variables.<br />

When plotting complex data such as from a harmonic analysis, use the 'results to view' drop-down list on<br />

the right top corner of the variable viewer to indicate whether to plot Amplitude (default), Phase angle, Real<br />

part or Imaginary part.<br />

The variable viewer stores all the time points available on the results file. You can display a portion of this<br />

data by selecting a range for the X-axis value. This is useful when you want to focus on the response around<br />

a certain time point e.g., around the moment of impact in a drop test analysis. This is available in the "Data<br />

Properties" dialog under the X-AXIS tab. Note that this is a global setting i.e. this setting is used for all subsequent<br />

graph plots.<br />

8.7.1.2. Batch<br />

The PLVAR command ( Main Menu> TimeHist Postpro> Graph variables) graphs up to 10 variables at a<br />

time on a graph. By default, the variable used for the X-axis of the graphs is TIME for static and transient<br />

analyses or FREQUENCY for harmonic analysis. You can specify a different variable for the X-axis (e.g. deflection<br />

or strain) by using the XVAR command (Main Menu> TimeHist Postpro> Settings> Graph).<br />

200<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!