vfun¶
- Mapdl.vfun(parr='', func='', par1='', con1='', con2='', con3='', **kwargs)¶
Performs a function on a single array parameter.
APDL Command:
*VFUN
- Parameters
- parr
The name of the resulting numeric array parameter vector. See
*SET
for name restrictions.- func
Function to be performed:
Arccosine: ACOS(Par1). - Arcsine: ASIN(Par1).
Par1 is sorted in ascending order.
*VCOL
,*VMASK
,*VCUM
, and*VLEN,,NINC
do not apply.*VLEN,NROW
does apply.Compress: Selectively compresses data set. “True” (
*VMASK
) values of Par1 (or row positions to be considered according to the NINC value on the*VLEN
command) are written in compressed form to ParR, starting at the specified position. - Copy: Par1 copied to ParR.Cosine: COS(Par1). - Hyperbolic cosine: COSH(Par1).
Direction cosines of the principal stresses (nX9). Par1 contains the nX6 component stresses for the n locations of the calculations. - Par1 is sorted in descending order.
*VCOL
,*VMASK
,*VCUM
, and*VLEN,,NINC
do not apply.*VLEN,NROW
does apply.Euler angles of the principal stresses (nX3). Par1 contains the nX6 component stresses for the n locations of the calculations. - Exponential: EXP(Par1).
Expand: Reverse of the COMP function. All elements of Par1 (starting at the position specified) are written in expanded form to corresponding “true” (
*VMASK
) positions (or row positions to be considered according to the NINC value on the*VLEN
command) of ParR. - Natural logarithm: LOG(Par1).Common logarithm: LOG10(Par1). - Nearest integer: 2.783 becomes 3.0, -1.75 becomes -2.0.
Logical complement: values 0.0 (false) become 1.0 (true). Values > 0.0 (true) become 0.0 (false). - Principal stresses (nX5). Par1 contains the nX6 component stresses for the n locations of the calculations.
Power function:
Par1**CON1
. Exponentiation of any negative number in the vector Par1 to a non-integer power is performed by exponentiating the positive number and prepending the minus sign. For example,-4**2.3
is-(4**2.3)
.Hyperbolic sine: SINH(Par1). - Square root: SQRT(Par1).
Tangent: TAN(Par1). - Hyperbolic tangent: TANH(Par1).
- par1
Array parameter vector in the operation.
- con1, con2, con3
Constants (used only with the PWR, NORM, LOCAL, and GLOBAL functions).
Notes
Operates on one input array parameter vector and produces one output array parameter vector according to:
ParR = f(Par1)