Read/write Nastran op4 files¶
Python tools for reading/writing Nastran .op4 files. Can read and write all formats (as far as I know) with the restrictions that the output files created by this class are always double precision, and all matrices are read in as double precision. The binary files can be in big or little endian format.
Notes on sparse matrices:
By default, matrices read from .op4 files will be regular
numpy.ndarraymatrices. However,scipy.sparsematrices can be created instead. See the sparse option inread()andload().By default, matrices written to .op4 files will follow the Python type:
numpy.ndarraymatrices will be written in dense format andscipy.sparsematrices will be written in “bigmat” sparse format. This can be overridden by specifying the sparse option inwrite().
Note
Some features of this module are demonstrated in the pyYeti Tutorials: Reading and writing Nastran output4 files. There is also a link to the source Jupyter notebook at the top of the tutorial.
Main routines¶
|
Directory of all matrices in op4 file; non-member version of |
|
Read all matching matrices from op4 file into dictionary or list; non-member version of |
|
Read all matching matrices from op4 file into dictionary or list; non-member version of |
|
Write op4 file; non-member version of |
Note: pyyeti.op4.save() is an alias for pyyeti.op4.write().
The OP4 Class¶
|
Class for reading/writing Nastran output4 (.op4) files. |
Member functions:
|
Read all matching matrices from op4 file into dictionary. |
|
Directory of all matrices in op4 file. |
|
Read all matching matrices from op4 file into a list; useful if op4 file has duplicate names. |
|
Read all matching matrices from op4 file into dictionary or list; interface to |
|
Write op4 file. |