***VOPER**, * ParR*,

`Par1`

`Oper`

`Par2`

`CON1`

`CON2`

Compatible Products: – | Pro | Premium | Enterprise | Ent PP | Ent Solver | DYNA

`ParR`

The name of the resulting array parameter vector. See

***SET**for name restrictions.`Par1`

First array parameter vector in the operation. May also be a scalar parameter or a literal constant.

`Oper`

Operations:

**ADD--**Addition:

+`Par1`

.`Par2`

**SUB --**Subtraction:

-`Par1`

.`Par2`

**MULT --**Multiplication:

*`Par1`

.`Par2`

**DIV --**Division:

/`Par1`

(a divide by zero results in a value of zero).`Par2`

**MIN --**Minimum: minimum of

and`Par1`

.`Par2`

**MAX --**Maximum: maximum of

and`Par1`

.`Par2`

**LT --**Less than comparison:

<`Par1`

gives 1.0 if true, 0.0 if false.`Par2`

**LE --**Less than or equal comparison:

`Par1`

gives 1.0 if true, 0.0 if false.`Par2`

**EQ --**Equal comparison:

=`Par1`

gives 1.0 if true, 0.0 if false.`Par2`

**NE --**Not equal comparison:

≠`Par1`

gives 1.0 if true, 0.0 if false.`Par2`

**GE --**Greater than or equal comparison:

Par2 gives 1.0 if true, 0.0 if false.`Par1`

**GT --**Greater than comparison:

>`Par1`

gives 1.0 if true, 0.0 if false.`Par2`

**DER1 --**First derivative: d(

)/d(`Par1`

). The derivative at a point is determined over points half way between the previous and next points (by linear interpolation).`Par2`

must be a function (a unique`Par1`

value for each`Par1`

value) and`Par2`

must be in ascending order.`Par2`

**DER2 --**Second derivative: d

^{2}()/d(`Par1`

)`Par2`

^{2}. See also DER1.**INT1 --**Single integral:

d(`Par1`

), where`Par2`

is the integration constant. The integral at a point is determined by using the single integration procedure described in the`CON1`

*Mechanical APDL Theory Reference*.**INT2 --**Double integral:

d(`Par1`

), where`Par2`

is the integration constant of the first integral and`CON1`

is the integration constant of the second integral. If`CON2`

contains acceleration data,`Par1`

is the initial velocity and`CON1`

is the initial displacement. See also INT1.`CON2`

**DOT --**Dot product:

.`Par1`

.`Par2`

and`Par1`

must each have three consecutive columns of data, with the columns containing the i, j, and k vector components, respectively. Only the starting row index and the column index for the i components are specified for`Par2`

and`Par1`

, such as A(1,1). The j and k components of the vector are assumed to begin in the corresponding next columns, such as A(1,2) and A(1,3).`Par2`

**CROSS --**Cross product:

x`Par1`

.`Par2`

,`Par1`

, and`Par2`

must each have 3 components, respectively. Only the starting row index and the column index for the i components are specified for`ParR`

,`Par1`

, and`Par2`

, such as A(1,1). The j and k components of the vector are assumed to begin in the corresponding next columns, such as A(1,2) and A(1,3).`ParR`

**GATH --**Gather: For a vector of position numbers,

, copy the value of`Par2`

at each position number to`Par1`

. Example: for`ParR`

= 10,20,30,40 and`Par1`

= 2,4,1;`Par2`

= 20,40,10.`ParR`

**SCAT --**Scatter: Opposite of GATH operation. For a vector of position numbers,

, copy the value of`Par2`

to that position number in`Par1`

. Example: for`ParR`

= 10,20,30,40,50 and`Par1`

= 2,1,0,5,3;`Par2`

= 20,10,50,0,40.`ParR`

**ATN2 --**Arctangent: arctangent of

/`Par1`

with the sign of each component considered.`Par2`

**LOCAL --**Transform the data in

from the global Cartesian coordinate system to the local coordinate system given in`Par1`

.`CON1`

must be an`Par1`

*N x 3*(i.e., vector) or an*N x 6*(i.e., stress or strain tensor) array. If the local coordinate system is a cylindrical, spherical, or toroidal system, then you must provide the global Cartesian coordinates inas an`Par2`

*N x 3*array. Set= 1 if the data is strain data.`CON2`

**GLOBAL --**Transform the data in

from the local coordinate system given in`Par1`

to the global Cartesian coordinate system.`CON1`

must be an`Par1`

*N x 3*(i.e., vector) or an*N x 6*(i.e., stress or strain tensor) array. If the local coordinate system is a cylindrical, spherical, or toroidal system, then you must provide the global Cartesian coordinates inas an`Par2`

*N x 3*array. Set= 1 if the data is strain data.`CON2`

`Par2`

Second array parameter vector in the operation. May also be a scalar parameter or a literal constant.

`CON1`

First constant (used only with the INT1 and INT2 operations).

`CON2`

Second constant (used only with the INT2 operation).

Operates on two input array parameter vectors and produces one output array parameter vector according to:

* ParR* =

`Par1`

`Par2`

where the operations (o) are described below. * ParR* may
be the same as

`Par1`

`Par2`

Parameter functions and operations are available to operate on a scalar
parameter or a single element of an array parameter, such as SQRT(B) or SQRT(A(4)).
See the ***SET** command for details. Operations on a sequence
of array elements can be done by repeating the desired function or operation
in a do-loop [***DO**]. The vector operations within the ANSYS
program (***V** commands)
are internally programmed do-loops that conveniently perform the indicated
operation over a sequence of array elements. If the array is multidimensional,
only the first subscript is incremented in the do-loop, that is, the operation
repeats in column vector fashion "down" the array. For example, for A(1,5),
A(2,5), A(3,5), etc. The starting location of the row index must be defined
for each parameter read and for the result written.

`XX`

The default number of loops is from the starting result location to
the last result location and can be altered with the ***VLEN** command.
A logical mask vector may be defined to control at which locations the operations
are to be skipped [***VMASK**]. The default is to skip no
locations. Repeat operations automatically terminate at the last array element
of the result array column if the number of loops is undefined or if it exceeds
the last result array element. Zeroes are used in operations for values read
beyond the last array element of an input array column. Existing values in
the rows and columns of the results matrix remain unchanged where not changed
by the requested operation values. The result array column may be the same
as the input array column since results in progress are stored in a temporary
array until being moved to the results array at the end of the operation.
Results may be overwritten or accumulated with the existing results [***VCUM**].
The default is to overwrite results. The absolute value may be used for
each parameter read or written [***VABS**]. A scale factor
(defaulting to 1.0) is also applied to each parameter read and written [***VFACT**].

This command is valid in any processor.