dmat#

Mapdl.dmat(matrix='', type_='', method='', val1='', val2='', val3='', val4='', val5='', **kwargs)[source]#

Creates a dense matrix.

APDL Command: *DMAT

Parameters:
matrix

Name used to identify the matrix. Must be specified.

type_

Matrix type:

Double precision real values (default). - Complex double precision values.

method

Method used to create the matrix:

Allocate space for a matrix (default). - Resize an existing matrix to new row and column dimensions. Values are kept from the original matrix. If the dimensions specified by Val1 (rows) and Val2 (columns) are greater than the original matrix size, the additional entries are assigned a value of zero.

Copy an existing matrix. - Link to an existing matrix. The memory will be shared between the original matrix and the new matrix. This is useful for manipulating a submatrix of a larger matrix. The Val1 through Val5 arguments will be used to specify the lower and upper bounds of row and column numbers from the original matrix.

val1, val2, val3, val4, val5

Additional input. The meaning of Val1 through Val5 will vary depending on the specified Method. See details below.

Notes

This command allows you to create a dense matrix. To create a sparse matrix, use the *SMAT command. *SMAT is recommended for large matrices obtained from the .FULL or .HBMAT file. Refer to the HBMAT command documentation for more information about .FULL file contents.

Use the *VEC command to create a vector.

For very large matrices, use the OUTOFCORE option (Method = ALLOC or COPY) to keep some of the matrix on disk if there is insufficient memory.

When importing a dense matrix from a DMIG file, you can define the formatting of the file using the Val3 and Val4 fields.