Mechanical APDL Basic Analysis Guide

(Axel Boer) #1

Example:


NSOL,5,55,U,X
STORE,MERGE! Store UX at node 55
*GET,size,VARI,,NSETS
*dim,UX55,array,size! Create array parameter
VGET,UX55(1),5! Store time history data of variable 5 into ux55
*CFOPEN,disp,dat
*VWRITE,UX55(1)! Write array in given format to file "disp.dat"
(6x,f12.6)
*CFCLOSE

8.7. Reviewing the Variables


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


8.7.1. Plotting Result Graphs


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


8.7.1.1. Interactive

The "Graph Data" button in the variable viewer allows you to plot all the selected variables. A maximum
of 10 variables can be plotted on a single graph. By default, the variable used for the X-axis of the
graphs is TIME for static and transient analyses or FREQUENCY for harmonic analysis. You can select a
different variable for the X-axis of the graph using the radio button under the column X-AXIS in the list
of variables.


When plotting complex data such as from a harmonic analysis, use the 'results to view' drop-down list
on the right top corner of the variable viewer to indicat e whether to plot Amplitude (default), Phase
angle, Real part or Imaginary part.


The variable viewer stores all the time points available on the results file. You can display a portion of
this data by selecting a range for the X-axis value. This is useful when you want to focus on the response
around a certain time point e.g., around the moment of impact in a drop test analysis. This is available
in the "Data Properties" dialog under the X-AXIS tab. Note that this is a global setting i.e. this setting
is used for all subsequent graph plots.


8.7.1.2. Batch

The PLVAR command ( Main Menu> TimeHist Postpro> Graph variables) graphs up to 10 variables
at a time on a graph. By default, the variable used for the X-axis of the graphs is TIME for static and
transient analyses or FREQUENCY for harmonic analysis. You can specify a different variable for the X-
axis (e.g. deflection or strain) by using the XVAR command (Main Menu> TimeHist Postpro> Settings>
Graph).


When plotting complex data such as from a harmonic analysis,PLVAR plots amplitude by default.You
can switch to plotting Phase angle or Real part or Imaginary part via the PLCPLX command (Main
menu> TimeHist Postpro> Settings> Graph).


You can display a portion of the stored data by selecting a range for the X-axis values via the /XRANGE
command.


Two sample plots are shown below:


Release 15.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information

Reviewing the Variables
Free download pdf