MapdlMath.mass(dtype=<class 'numpy.float64'>, fname='file.full', asarray=False)

Load the mass matrix from a full file.

  • dtype (numpy.dtype, optional) – Numpy data type to store the vector as. Defaults to np.double

  • fname (str, optional) – Filename to read the matrix from.

  • asarray (bool, optional) – Return a scipy array rather than an APDLMath matrix.


>>> m = mapdl.math.mass()
>>> m
APDLMATH Matrix 60 x 60

Convert to a scipy array

>>> mat = m.asarray()
>>> mat
<60x60 sparse matrix of type '<class 'numpy.float64'>'
    with 1734 stored elements in Compressed Sparse Row format>