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
To enter the ANSYS time-history postprocessor, use either of the following:
Command(s):
Main Menu>TimeHist Postpro
GUI:
Main Menu>TimeHist Postpro>Define Variables
Main Menu>TimeHist Postpro>Elec&Mag>Circuit>Define Variables
NSOL,2,358,U,X ESOL,3,219,47,EPEL,XVariable 2 is the UX displacement at node 358, and variable 3 is the X component of elastic strain at node 47 of element 219. Any subsequent reference to these result items will be through the reference numbers assigned to them. Defining a new variable with the same number as an existing variable overwrites the existing variable.
See the NSOL and ESOL command descriptions for further information.
Table 6-1 Commands used to store variables
| Command
|
GUI Menu Path
|
| PLVAR
|
Main Menu>TimeHist Postpro>Graph Variables
|
| PRVAR
|
Main Menu>TimeHist Postpro>List Variables
|
| ADD
|
Main Menu>TimeHist Postpro>Math Operations>Add
|
| DERIV
|
Main Menu>TimeHist Postpro>Math Operations>Derivative
|
| QUOT
|
Main Menu>TimeHist Postpro>Math Operations>Divide
|
| VGET
|
Main Menu>TimeHist Postpro>Table Operations>Variable to Par
|
| VPUT
|
Main Menu>TimeHist Postpro>Table Operations>Parameter to Var
|
MERGE
Adds newly defined variables to previously stored variables for the time points stored in memory. That is, more columns of data are added to the database. This is useful if you wish to define and then store new variables after some variables have already been stored (default).
NEW
Replaces previously stored variables, erases previously calculated variables, and stores newly defined variables with current specifications.
APPEND
Appends data to previously stored variables. That is, if you think of each variable as a column of data, the APPEND option adds rows to each column. This is useful when you want to "concatenate" the same variable from two files, such as in a transient analysis with results on two separate files. Use the FILE command (Main Menu>TimeHist Postpro>Settings> File) to specify result file names.
ALLOC,N
Allocates space for N points (N rows) for a subsequent storage operation. Previously stored variables, if any, are zeroed. You normally do not need this option, because the program determines the number of points required automatically from the results file.
An example of using the STORE command follows:
/POST26 NSOL,2,23,U,Y ! Variable 2 = UY at node 23 SHELL,TOP ! Specify top of shell results ESOL,3,20,23,S,X ! Variable 3 = top SX at node 23 of element 20 PRVAR,2,3 ! Store and then print variables 2 and 3 SHELL,BOT ! Specify bottom of shell results ESOL,4,20,23,S,X ! Variable 4 = bottom SX at node 23 of element 20 STORE ! By command default, place variable 4 in memory with 2 and 3 PLESOL,2,3,4 ! Plot variables 2,3,4For more information, see the NSOL, SHELL, ESOL, PRVAR, STORE, and PLESOL command descriptions in the ANSYS Commands Reference.
Notes
Figure 6-1 POST26 plot using XVAR = 1 (time)
Figure 6-2 POST26 plot using XVAR 0 1
If the abscissa is something other than time, you can display a three-dimensional graph (with time or frequency as the Z dimension). To do so, change from the default X-Y view using one of the following:
Command(s):
When a variable contains complex data, consisting of real and imaginary parts, the PLVAR command plots the amplitude by default. You can switch to the phase angle, the real part, or the imaginary part by using the PLCPLX command (Main Menu>TimeHist Postpro>Settings>Graph).
Many graphics specifications are available for graph plots. You can perform tasks such as the following by choosing Utility Menu>PlotCtrls>Style>Graphs or via the commands shown below:
Command(s):
Main Menu>TimeHist Postpro>Settings>List
You can adjust the format of your listing somewhat with the LINES command (Main Menu>TimeHist Postpro>Settings>List) A sample PRVAR output is shown below.
Sample Output from PRVAR
***** ANSYS POST26 VARIABLE LISTING *****
TIME 51 UX 30 UY
UX UY
.10000E-09 .000000E+00 .000000E+00
.32000 .106832 .371753E-01
.42667 .146785 .620728E-01
.74667 .263833 .144850
.87333 .310339 .178505
1.0000 .356938 .212601
1.3493 .352122 .473230E-01
1.6847 .349681 -.608717E-01
POST26 SUMMARY OF VARIABLE EXTREME VALUES
VARI TYPE IDENTIFIERS NAME MINIMUM AT TIME MAXIMUM AT TIME
1 TIME 1 TIME TIME .1000E-09 .1000E-09 6.000 6.000 2 NSOL 51 UX UX .0000E+00 .1000E-09 .3569 1.000 3 NSOL 30 UY UY -.3701 6.000 .2126 1.000When a complex variable consists of real and imaginary parts, the PRVAR command lists both the real and imaginary parts by default. You can work with just one component (real part, imaginary part, amplitude, or phase angle) using the PRCPLX command.
Another useful listing command is EXTREM (Main Menu>TimeHist Postpro>List Extremes), which prints the maximum and minimum Y-variable values within the active X and Y ranges. You can also assign these extreme values to parameters using the *GET command (Utility Menu>Parameters>Get Scalar Data). A sample EXTREM output is shown below.
Sample Output from EXTREM
POST26 SUMMARY OF VARIABLE EXTREME VALUES
VARI TYPE IDENTIFIERS NAME MINIMUM AT TIME MAXIMUM AT TIME
1 TIME 1 TIME TIME .1000E-09 .1000E-09 6.000 6.000 2 NSOL 50 UX UX .0000E+00 .1000E-09 .4170 6.000 3 NSOL 30 UY UY -.3930 6.000 .2146 1.000
NSOL,2,441,U,Y,UY441 ! Defines variable 2 as UY at node 441, name = UY441
DERIV,3,2,1,,VEL441 ! Variable 3 is derivative of variable 2 w.r.t.
! variable 1 (time), name = VEL441 (velocity)
DERIV,4,3,1,,ACCL441 ! Variable 4 is derivative of variable 3 w.r.t.
! variable 1 (time), name = ACCL441 (acceleration)
See the NSOL and DERIV command descriptions in the ANSYS Commands Reference for further
information.
Another example would be to break a complex variable from a harmonic analysis
(a+ib) into its real and imaginary parts (a and b) and then to calculate the
amplitude
and the phase angle (arc tangent (b/a)):
REALVAR,3,2,,,REAL2 ! Variable 3 is real part of variable 2, name = REAL2 IMAGIN,4,2,,,IMAG2 ! Variable 4 is imaginary part PROD,5,3,3 ! Variable 5 is square of variable 3 PROD,6,4,4 ! Variable 6 is square of variable 4 ADD,5,5,6 ! Variable 5 (reused) is sum of variables 5 and 6 SQRT,6,5,,,AMPL2 ! Variable 6 (reused) is the amplitude QUOT,5,3,4 ! Variable 5 (reused) is the variable (b/a) ATAN,7,5,,,PHASE2 ! Variable 7 is the phase angle(This could be saved as a macro for future use.)
For more information, see the REALVAR, IMAGIN, PROD, ADD, SQRT, QUOT, and ATAN command descriptions in the ANSYS Commands Reference.
Notes
The RESP command in POST26 is used to generate the response spectrum, use either of the following:
Command(s):
Main Menu>TimeHist Postpro>Generate Spectrm
RESP requires two previously defined variables: one containing frequency values for the response spectrum (field LFTAB) and the other containing the displacement time-history (field LDTAB). The frequency values in LFTAB represent not only the abscissa of the response spectrum curve, but also the frequencies of the one-degree-of-freedom oscillators used to generate the response spectrum. You can create the LFTAB variable using either the FILLDATA command or the DATA command.
The displacement time-history values in LDTAB usually result from a transient dynamic analysis of a single-DOF system. You can create the LDTAB variable using the DATA command (if the displacement time-history is on a file), the NSOL command (Main Menu>TimeHist Postpro>Define Variables). A numerical time-integration scheme is used to calculate the response spectrum.