moper#
- Mapdl.moper(parr='', par1='', oper='', val1='', val2='', val3='', val4='', val5='', val6='', **kwargs)#
Performs matrix operations on array parameter matrices.
APDL Command:
*MOPER- Parameters:
- parr
The name of the resulting array parameter matrix. See
*SETfor name restrictions.- par1
First array parameter matrix input to the operation. For
Oper = MAP, this is anNx 3 array of coordinate locations at which to interpolate.ParRwill then be anN(out)xMarray containing the interpolated values.- oper
Matrix operations:
INVERT
(*MOPER, ParR, Par1, INVERT)Square matrix invert: Inverts thenxnmatrix inPar1intoParR. The matrix must be well conditioned.警告
Non-independent or ill-conditioned equations can cause erroneous results.
For large matrices, use the APDL Math operation
*LSFACTORfor efficiency (see APDL Math).MULT
(*MOPER, ParR, Par1, MULT, Par2)Matrix multiply: MultipliesPar1byPar2. The number of rows ofPar2must equal the number of columns ofPar1for the operation. IfPar2is input with a number of rows greater than the number of columns ofPar1, matrices are still multiplied. However, the operation only uses a number of rows ofPar2equal to the number of columns ofPar1.COVAR
(*MOPER, ParR, Par1, COVAR, Par2)Covariance: The measure of association between two columns of the input matrix (Par1).Par1, of size m runs (rows) byndata (columns) is first processed to produce a row vector containing the mean of each column which is transposed to a column vector (Par2) of n array elements. ThePar1andPar2operation then produces a resultingnxnmatrix (ParR) of covariances (with the variances as the diagonal terms).CORR
(*MOPER, ParR, Par1, CORR, Par2)Correlation: The correlation coefficient between two variables. The input matrix (Par1), of size m runs (rows) by n data (columns), is first processed to produce a row vector containing the mean of each column which is then transposed to a column vector (Par2) of n array elements. ThePar1andPar2operation then produces a resultingnxnmatrix (ParR) of correlation coefficients (with a value of 1.0 for the diagonal terms).SOLV
(*MOPER, ParR, Par1, SOLV, Par2)Solution of simultaneous equations: Solves the set ofnequations of n terms of the forman_1 x_1 + an_2 x_2 + ... + an_n x_n = b_nwherePar1contains the matrix of a-coefficients,Par2the vector(s) of b-values, andParRthe vector(s) of x-results.Par1must be a square matrix. The equations must be linear, independent, and well conditioned.Warning: Non-independent or ill-conditioned equations can cause erroneous results. - For large matrices, use the APDL Math operation
*LSFACTORfor efficiency (see APDL Math).SORT
(*MOPER, ParR, Par1, SORT, Par2, n1, n2, n3)Matrix sort: Sorts matrixPar1according to sort vectorPar2and places the result back inPar1. Rows ofPar1are moved to the corresponding positions indicated by the values ofPar2.Par2may be a column ofPar1(in which case it will also be reordered). Alternatively, you may specify the column ofPar1to sort using n1 (leavingPar2blank). A secondary sort can be specified by columnn2, and a third sort usingn3.ParRis the vector of initial row positions (the permutation vector). SortingPar1according toParRshould reproduce the initial ordering.NNEAR
(*MOPER, ParR, Par1, NNEAR, Toler)Nearest Node: Quickly determine all the nodes within a specified tolerance of a given array.ParRis a vector of the nearest selected nodes, or 0 if no nodes are nearer thanToler.Par1is thenx 3 array of coordinate locations.Tolerdefaults to 1 and is limited to the maximum model size.ENEAR
(*MOPER, ``ParR,Par1, ENEAR, Toler)`` Nearest Element: Quickly determine the elements with centroids that are within a specified tolerance of the points in a given array. -ParRis a vector of the nearest selected elements, or 0 if no element centroids are nearer thanToler.Par1is thenx 3 array of coordinate locations.MAP
(*MOPER, ParR, Par1, MAP, Par2, Par3, kDim, --, kOut, LIMIT)Maps the results from one set of points to another. For example, you can map pressures from a CFD analysis onto your model for a structural analysis.Par1is theNoutx 3 array of points that will be mapped to.Par2is theNinxMarray that containsMvalues of data to be interpolated at each point and corresponds to theNinx 3 points inPar3. The resultingParRis theNoutxMarray of mapped data points.For each point in the destination mesh, all possible triangles in the source mesh are searched to find the best triangle containing each point. It then does a linear interpolation inside this triangle. You should carefully specify your interpolation method and search criteria in order to provide faster and more accurate results (see
LIMIT, below).kDimis the interpolation criteria. IfkDim = 2 or 0, two dimensional interpolation is applied (interpolate on a surface). IfkDim = 3, three dimensional interpolation is applied (interpolate on a volume).kOutspecified how points outside of the domain are handled. IfkOut= 0, use the value(s) of the nearest region point for points outside of the region. If`kOut`= 1, set results outside of the region to zero.
LIMIT specifies the number of nearby points considered for interpolation. The default is 20, and the minimum is 5. Lower values will reduce processing time; however, some distorted or irregular sets of points will require a higher
LIMITvalue to encounter three nodes for triangulation.Output points are incorrect if they are not within the domain (area or volume) defined by the specified input points. Also, calculations for out-of-bound points require much more processing time than do points that are within bounds. Results mapping is available from the command line only.
INTP
(*MOPER, ParR, Par1, INTP, Par2)Finds the elements that contain each point in the array ofnx 3 points inPar1.Par2will contain the set of element ID numbers andParRwill contain theirnx 3 set of natural element coordinates (values between -1 and 1).Par1must be in global Cartesian coordinates.SGET
(*MOPER, ParR, Par1, SGET, Par2, Label, Comp)Gets the nodal solution item corresponding to Label and Comp (see the PLNSOL command) and interpolates it to the given element locations.Par1contains thenx 3 array of natural element coordinates (values between -1 and 1) of thenelement ID numbers inPar2.Par1andPar2are usually the output of the*MOPER,,,INTPoperation.ParRcontains theninterpolated results.Val1, Val2, ..., Val6Additional input used in the operation. The meanings ofVal1throughVal6vary depending on the specified matrix operation. See the description of Oper for details.