HBMAT

HBMAT, Fname, Ext, --, Form, Matrx, Rhs, Mapping
Writes an assembled global matrix in Harwell-Boeing format.

Compatible Products: – | Pro | Premium | Enterprise | Ent PP | Ent Solver | DYNA

Fname

File name and directory path (248 characters maximum, including the characters needed for the directory path). An unspecified directory path defaults to the working directory; in this case, you can use all 248 characters for the file name.

Defaults to the current Jobname if left blank.

Ext

Filename extension (eight-character maximum).

Defaults to .MATRIX if left blank.

--

Unused field.

Form

Specifies format of output matrix file:

ASCII

 — 

Write output matrix file in ASCII form.

BIN

 — 

Write output matrix file in binary form.

Matrx

Specify which matrix to write to the output matrix file:

STIFF

 — 

Write stiffness matrix to output matrix file. Valid for all types of analyses that write a .FULL file.

MASS

 — 

Write mass matrix to output matrix file. Valid for buckling, substructure, and modal analyses. If .FULL file was generated in a buckling analysis, then this label will write stress stiffening matrix to output matrix file.

DAMP

 — 

Write damping matrix to output matrix file. Only valid for damped modal analyses.

Rhs

Specifies whether to write the right-hand side vector to output matrix file:

YES

 — 

Write right-hand side vector to output matrix file.

NO

 — 

Do not write right-hand side vector to output matrix file.

Mapping

Specifies whether to write the mapping file. This file is always named Fname.MAPPING.

YES

 — 

Write the mapping file.

NO

 — 

Do not write the mapping file (default).

Command Default

By default, assuming a proper filename and extension have been entered, writes the stiffness matrix and right-hand side vector to jobname.MATRIX in the current working directory in ASCII format.

Notes

This command is used to copy a matrix from the assembled global matrix file (.FULL file) or from the superelement matrix file (.SUB file) as specified on the FILEAUX2 command and write it in Harwell-Boeing format to a new file, named jobname.MATRIX. The Harwell-Boeing format is widely used by other applications that deal with matrices.

The assembled global matrix file is created during solution depending on the analysis type, equation solver, and other solution options. By default, the assembled global matrix file is never deleted at the end of solution. For most analysis types, the Sparse direct solver and the ICCG solver will write a .FULL file. All mode extraction methods used for buckling and modal analyses will write a properly formatted .FULL file to be used with the HBMAT command. However, when using Distributed ANSYS, a majority of analyses will write a distributed (or local) form of the .FULL file which is not currently supported by the HBMAT command.

When dumping the stiffness matrix for transient and harmonic analyses, be aware that the element mass matrix values (and possibly element damping matrix values) are incorporated into the globally assembled stiffness matrix. Thus, the globally assembled stiffness matrix represents more than the stiffness of the model for these analysis types. Please refer to the Mechanical APDL Theory Reference for more details.

When dumping a .FULL file, the rows and columns corresponding to specified constraints (e.g., D commands) are eliminated from the system of equations and therefore are not written to the .MATRIX file. Also, rows and columns corresponding to eliminated (slave) degrees of freedom from coupling and/or constraint equations (e.g., CE, CP commands) are also eliminated from the system of equations and are not written to the .MATRIX file. The DOFs that are eliminated from any coupling and/or constraint equations are determined internally by the solution code and may not match what you specified via the CE/CP (or similar) commands.

When dumping a .SUB file, the full nxn matrix will be written to the .MATRIX file for either symmetric or unsymmetric matrices, regardless of whether any of the matrix coefficients are zero-valued. When dumping a .FULL file, only the lower triangular part of the matrix will be written to the .MATRIX file if the matrix is symmetric; the full matrix is written if the matrix is unsymmetric. Only matrix coefficients that are greater than zero will be written.

The Harwell-Boeing format is column-oriented. That is, non-zero matrix values are stored with their corresponding row indices in a sequence of columns. However, since the ANSYS matrix files are stored by row and not column, when the HBMAT command is used with a non-symmetric matrix, the transpose of the matrix is, in fact, written.

The WRFULL command, in conjunction with the SOLVE command, can be used to generate the assembled global matrix file and eliminate the equation solution process and results output process.

The mapping file can be used to map the matrix equation numbers found in the .MATRIX file directly to the corresponding node numbers and degrees of freedom.

When dumping a CMS .SUB file, the last rows/columns of the matrix are non-physical degrees of freedom added internally by the CMS process and cannot be mapped directly to a node number or particular degree of freedom.

Menu Paths

Utility Menu>File>List>Binary Files
Utility Menu>List>Files>Binary Files

Release 18.2 - © ANSYS, Inc. All rights reserved.