vscfun

Mapdl.vscfun(parr='', func='', par1='', **kwargs)

Determines properties of an array parameter.

APDL Command: *VSCFUN

Parameters
  • parr – The name of the resulting scalar parameter. See *SET for name restrictions.

  • func

    Functions:

    Maximum: the maximum Par1 array element value. - Minimum: the minimum Par1 array element value.

    Index location of the maximum Par1 array element value. Array Par1 is searched starting from its specified index. - Index location of the minimum Par1 array element value. Array Par1 is searched

    starting from its specified index.

    Index location of the first nonzero value in array Par1. Array Par1 is searched starting from its specified index. - Index location of the last nonzero value in array Par1. Array Par1 is searched

    starting from its specified index.

    Sum: Par1 (the summation of the Par1 array element values). - Median: value of Par1 at which there are an equal number of values above and

    below.

    Mean: (σ Par1)/NUM, where NUM is the number of summed values. - Variance: (σ ((Par1-MEAN)**2))/NUM.

    Standard deviation: square root of VARI. - Root-mean-square: square root of (σ (Par1**2))/NUM.

  • par1 – Array parameter vector in the operation.

Notes

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.