pyyeti.nastran.op2.rdmats¶
- pyyeti.nastran.op2.rdmats(filename=None, names=None, lower=False, verbose=False)[source]¶
Read all matrices from Nastran output2 file.
- Parameters:
filename (string or None; optional) – Name of op2 file to read. Can also be the name of a directory or None; in these cases, a GUI is opened for file selection.
names (list_like; optional) – Iterable of names to read in. If None, read all. These can be input in lower case.
lower (bool; optional) – If True, returned names will be in lower case.
verbose (bool; optional) – If True, print matrix names to screen as they are found.
- Returns:
dict – Dictionary containing all matrices in the op2 file: {‘NAME1’: matrix1, ‘NAME2’: matrix2, …}
Notes
This routine is for convenience; this is what it does:
filename = guitools.get_file_name(filename, read=True) return OP2(filename).rdop2mats( names, lower=lower, verbose=verbose )