*SMAT, Matrix
,
Type
, Method
,
Val1
, Val2
,
Val3
, Val4
Creates a sparse matrix.
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:
Copy an existing matrix.
Import the matrix from a file.
Val1
, Val2
,
Val3
, Val4
Additional input. The meaning of Val1
through Val4
will vary depending on the specified
Method
. See details below.
The following Valx
fields are used with Method
= COPY.
Val1
Name of the matrix to copy (can be either a dense or a sparse matrix).
Val2
Method used for copying the matrix:
Copy only the diagonal of the matrix. Val3
and
Val4
are ignored.
Transpose the original matrix. Val3
and
Val4
are ignored.
Extract a submatrix based on row and column numbers specified by
Val3
and Val4
.
Val3
Name of integer vector (*VEC) containing row numbers. If no vector is specified, defaults to all rows.
Val4
Name of integer vector (*VEC) containing column numbers. If no vector is specified, defaults to all columns.
The following table describes the Valx
fields used with Method
= IMPORT.
Method = IMPORT | |||||||||||||
Val1 | Val2 | Val3 | Description | ||||||||||
FULL | File name | Matrix type:
| Import a matrix from an existing FULL file.
| ||||||||||
HBMAT | File name | File format:
| Import a matrix from an existing Harwell-Boeing format file. | ||||||||||
MMF | File name | (not used) | Import a matrix from an existing Matrix Market format file. | ||||||||||
DMIG | File name | Separator character (default = blank) | Import a matrix from an existing NASTRAN DMIG file. | ||||||||||
MAT | File name | (not used) | Restore from a previous *EXPORT
(FORMAT = MAT) command.. |
Use the *DMAT command to create a dense matrix.
Unlike the *DMAT command, the *SMAT command cannot be used to allocate a sparse matrix.
For more information on the NOD2BCS and USR2BCS mapping vectors, see Degree of Freedom Ordering in the ANSYS Parametric Design Language Guide.
For more information about .FULL file contents, see the HBMAT in the Command Reference.