load_matrix_from_file#
- MapdlMath.load_matrix_from_file(dtype=<class 'numpy.float64'>, name=None, fname='file.full', mat_id='STIFF', asarray=False)[source]#
Import a matrix from an existing FULL file.
- Parameters:
- dtype
numpy.dtype
,optional
Numpy data type to store the vector as. You can use double (“DOUBLE” or “D”), or complex numbers (“COMPLEX” or “Z”). Alternatively you can also supply a numpy data type. Defaults to
np.double
.- fname
str
,optional
Filename to read the matrix from. Defaults to
"file.full"
.- name
str
,optional
APDLMath matrix name. Optional and defaults to a random name.
- mat_id
str
,optional
Matrix type. Defaults to
"STIFF"
."STIFF"
- Stiffness matrix"MASS"
- Mass matrix"DAMP"
- Damping matrix"GMAT"
- Constraint equation matrix"K_RE"
- Real part of the stiffness matrix"K_IM"
- Imaginary part of the stiffness matrix
- asarraybool,
optional
Return a
scipy
array rather than an APDLMath matrix.
- dtype
- Returns:
scipy.sparse.csr.csr_matrix
orAnsMat
Scipy sparse matrix or APDLMath matrix depending on
asarray
.