ansys.mapdl.core.Mapdl.vscfun#
- Mapdl.vscfun(parr='', func='', par1='', **kwargs)#
Determines properties of an array parameter.
Mechanical APDL Command: *VSCFUN
- Parameters:
- parr
str
The name of the resulting scalar parameter. See starset for name restrictions.
- func
str
Functions:
MAX
- Maximum: the maximumPar1
array element value.MIN
- Minimum: the minimumPar1
array element value.LMAX
- Index location of the maximumPar1
array element value. ArrayPar1
is searched starting from its specified index.LMIN
- Index location of the minimumPar1
array element value. ArrayPar1
is searched starting from its specified index.FIRST
- Index location of the first nonzero value in arrayPar1
. ArrayPar1
is searched starting from its specified index.LAST
- Index location of the last nonzero value in arrayPar1
. ArrayPar1
is searched starting from its specified index.SUM
- Sum:Par1
(the summation of thePar1
array element values).MEDI
- Median: value ofPar1
at which there are an equal number of values above and below.MEAN
- Mean: (σ Par1)/NUM, where NUM is the number of summed values.VARI
- Variance: (σ ((Par1
-MEAN)**2))/NUM.STDV
- Standard deviation: square root of VARI.RMS
- Root-mean-square: square root of (σ (Par1
**2))/NUM.NUM
- Number: the number of summed values (masked values are not counted).
- par1
str
Array parameter vector in the operation.
- parr
Notes
Warning
This function contains specificities regarding the argument definitions. Please refer to the command documentation for further explanations.
Argument Descriptions
parr : str
- The name of the resulting scalar parameter. See starset for name restrictions.func : str
- Functions:MAX
- Maximum: the maximumPar1
array element value.MIN
- Minimum: the minimumPar1
array element value.LMAX
- Index location of the maximumPar1
array element value. ArrayPar1
is searched starting from its specified index.LMIN
- Index location of the minimumPar1
array element value. ArrayPar1
is searched starting from its specified index.FIRST
- Index location of the first nonzero value in arrayPar1
. ArrayPar1
is searched starting from its specified index.LAST
- Index location of the last nonzero value in arrayPar1
. ArrayPar1
is searched starting from its specified index.SUM
- Sum:Par1
(the summation of thePar1
array element values).MEDI
- Median: value ofPar1
at which there are an equal number of values above and below.MEAN
- Mean: (σ Par1)/NUM, where NUM is the number of summed values.VARI
- Variance: (σ ((Par1
-MEAN)**2))/NUM.STDV
- Standard deviation: square root of VARI.RMS
- Root-mean-square: square root of (σ (Par1
**2))/NUM.NUM
- Number: the number of summed values (masked values are not counted).
par1 : str
- Array parameter vector in the operation.
Operates on one input array parameter vector and produces one output scalar parameter according to:
ParR
= f(Par1
)where the functions (f) are described below. The starting array element number must be defined for the array parameter vector. For example, vscfun,MU,MEAN,A(1) finds the mean of the A vector values, starting from the first value and stores the result as parameter MU. Operations use successive array elements ( vlen, vmask ) with the default being all successive array elements. Absolute values and scale factors may be applied to all parameters ( vabs, vfact ). Results may be cumulative ( vcum ). See the voper command for details.
This command is valid in any processor.