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
*SETfor name restrictions.- func
Function to be performed:
ACOS Arccosine:
ACOS(Par1).ASINArcsine:ASIN(Par1).ASORTPar1is sorted in ascending order.*VCOL,*VMASK,*VCUM, and*VLEN,,NINCdo not apply.*VLEN,NROWdoes apply.ATANArctangent:ATAN(Par1)COMPCompress: Selectively compresses data set. "True" (*VMASK) values ofPar1(or row positions to be considered according to theNINCvalue on the*VLENcommand) are written in compressed form toParR, starting at the specified position.COPYCopy:Par1copied toParR.COSCosine:COS(Par1).COSHHyperbolic cosine:COSH(Par1).DIRCOSDirection cosines of the principal stresses (nX9).Par1contains the nX6 component stresses for thenlocations of the calculations.DSORTPar1is sorted in descending order.*VCOL,*VMASK,*VCUM, and*VLEN,,NINCdo not apply.*VLEN,NROWdoes apply.EURLEREuler angles of the principal stresses (nX3).Par1contains the nX6 component stresses for thenlocations of the calculations.EXPExponential:EXP(Par1).EXPAExpand: Reverse of the COMP function. All elements ofPar1(starting at the position specified) are written in expanded form to corresponding "true" (*VMASK) positions (or row positions to be considered according to theNINCvalue on the*VLENcommand) ofParR.LOGNatural logarithm:LOG(Par1).LOG10Common logarithm:LOG10(Par1).NINTNearest integer: 2.783 becomes 3.0, -1.75 becomes -2.0.NOTLogical complement: values 0.0 (false) become 1.0 (true). Values > 0.0 (true) become 0.0 (false).PRINPrincipal stresses (nX5).Par1contains thenX6component stresses for thenlocations of the calculations.PWRPower function:Par1**CON1. Exponentiation of any negative number in the vectorPar1to a non-integer power is performed by exponentiating the positive number and prepending the minus sign. For example,-4**2.3is-(4**2.3).SINSine:SIN(Par1)SINHHyperbolic sine:SINH(Par1).SQRTSquare root:SQRT(Par1).TANTangent:TAN(Par1).TANHHyperbolic tangent:TANH(Par1).TANGTangent to a path at a point: the slope at a point is determined by linear interpolation half way between the previous and next points. Points are assumed to be in the global Cartesian coordinate system. Path points are specified in arrayPar1(having 3 consecutive columns of data, with the columns containing thex,y, andzcoordinate locations, respectively, of the points). Only the starting row index and the column index for the x coordinates are specified, such asA(1,1). The y and z coordinates of the vector are assumed to begin in the corresponding next columns, such asA(1,2)andA(1,3). The tangent result,ParR, must also have 3 consecutive columns of data and will contain the tangent direction vector (normalized to 1.0); such as 1,0,0 for an x-direction vector.NORMNormal to a path and an input vector at a point: determined from the cross-product of the calculated tangent vector (seeTANG) and the input direction vector (with thei,j, andkcomponents input asCON1,CON2, andCON3). Points are assumed to be in the global Cartesian coordinate system. Path points are specified in arrayPar1(having 3 consecutive columns of data, with the columns containing thex,y, andzcoordinate locations, respectively, of the points). Only the starting row index and the column index for thexcoordinates are specified, such asA(1,1). Theyandzcoordinates of the vector are assumed to begin in the corresponding next columns, such asA(1,2)andA(1,3). The normal result,ParR, must also have 3 consecutive columns of data and will contain the normal direction vector (normalized to 1.0); such as1,0,0for an x-direction vectorLOCALTransforms global Cartesian coordinates of a point to the coordinates of a specified system: points to be transformed are specified in arrayPar1(having 3 consecutive columns of data, with the columns containing thex,y, andzglobal Cartesian coordinate locations, respectively, of the points). Only the starting row index and the column index for thexcoordinates are specified, such asA(1,1). The y and z coordinates of the vector are assumed to begin in the corresponding next columns, such asA(1,2)andA(1,3). Results are transformed to coordinate systemCON1(which may be any valid coordinate system number, such as 1,2,11,12, etc.). The transformed result,ParR, must also have 3 consecutive columns of data and will contain the corresponding transformed coordinate locations.GLOBALTransforms specified coordinates of a point to global Cartesian coordinates: points to be transformed are specified in arrayPar1(having 3 consecutive columns of data, with the columns containing the local coordinate locations (x,y,zorr,θ,zor etc.) of the points). Only the starting row index and the column index for the x coordinates are specified, such asA(1,1). The y and z coordinates (orθandz, or etc.) of the vector are assumed to begin in the corresponding next columns, such asA(1,2)andA(1,3). Local coordinate locations are assumed to be in coordinate systemCON1(which may be any valid coordinate system number, such as 1,2,11,12, etc.). The transformed result,ParR, must also have 3 consecutive columns of data, with the columns containing the global Cartesianx, y, and z coordinate locations, respectively.
- 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)