expandDMI


Purpose

Converts DMI matrix read with readnas to full storage.

Syntax

mat=expandDMI(dmi,fullstorage)
mat=expandDMI(dmi,true)

Description

EXPANDDMI is a utility function that expands a DMI matrix created using readnas to a full double. The input argument is a single structure containing the matrix output from readnmat. Note that this function will not accept an array of structs. The struct is documented below. If the structure does not contain a DMI matrix, the return value is empty. If the structure does contain a DMI matrix, the return value is a fully populated double matrix.

Two input arguments are required. DMI is a structure with the fields shown in the table below. FULLSTORAGE is a logical designating whether output should be in full storage or sparse.

Field

Description

matrix matrices in sparse format
name matrix names
dof row and column DOF, respectively, stored as a 1x2 cell array of imat_ctrace
phase logical flag (0/1) has value of 1 if the matrix is complex-valued and values are given in magnitude/phase form
symmetric logical flag (0/1) has value of 1 if the matrix is stored symmetrically (only half the matrix is stored)
matpool logical flag (0/1) has value of 1 if the matrix was read in from NASTRAN DMIG and has value 0 if matrix was read in from NASTRAN DMI

 

The output MAT is a full or sparse matrix containing data associated with DMI.

See Also

readnas