Hello. I'm quite new to pyNastran and would appreciate little help. I've got OP2 file with results from modal analysis in which are stored modal mass matrices(EFMASS,EFMFACS etc.) My question is, how can I load these matrices into numpy array/matrix? I've got into the point where I've created the .matrix/Matrix "variable" but I am unable to load actual values. Here is copy from python console:
matrices:
Matrix['EFMASSS']; shape=(6, 6); type=scipy.sparse.coo.coo_matrix; dtype=float64; desc=square
Matrix['EFMFACS']; shape=(1, 2); type=scipy.sparse.coo.coo_matrix; dtype=float64; desc=rectangular
Matrix['EFMFSMS']; shape=(1, 1); type=scipy.sparse.coo.coo_matrix; dtype=float64; desc=symmetric
Matrix['MEFMASS']; shape=(6, 2); type=scipy.sparse.coo.coo_matrix; dtype=float64; desc=rectangular
Matrix['MEFWTS']; shape=(6, 2); type=scipy.sparse.coo.coo_matrix; dtype=float64; desc=rectangular
Matrix['MPFACS']; shape=(6, 2); type=scipy.sparse.coo.coo_matrix; dtype=float64; desc=rectangular
Matrix['RBMASSS']; shape=(6, 6); type=scipy.sparse.coo.coo_matrix; dtype=float64; desc=square
model.matrices['EFMASSS']
Out[101]: Matrix['EFMASSS']; shape=(6, 6); type=scipy.sparse.coo.coo_matrix; dtype=float64; desc=square