Read subset of Nastran op2 data¶
Some Python tools for reading select data from Nastran .op2 files. Converted from the Yeti version.
Can read files in big or little endian format.
The functions/classes provided by this module can be accessed by just
importing the “nastran” package. For example, you can access the
OP2 class in these two ways:
>>> from pyyeti import nastran
>>> from pyyeti.nastran import op2
>>> op2.OP2 is nastran.OP2
True
Main routines¶
|
Process op2/op4 file2 output from DRM1/DRM2 DMAPs to form data recovery matrices. |
Get dictionary of descriptions for Nastran data recovery items. |
|
|
Read all matrices from Nastran output2 file. |
|
Read op2/op4 data written by the DMAP NAS2CAM. |
|
Reads PARAM,POST,-1 op2 file and returns dictionary of data. |
|
Reads PARAM,POST,-1 op2 file and returns dictionary of data. |
|
Reads PARAM,POST,-1 op2 file and returns dictionary of data. |
The OP2 Class¶
|
Class for reading Nastran op2 files and nas2cam data files. |
Member functions:
|
Catalogues and optionally prints contents of op2 file |
|
Prints op2 data block directory. |
Returns the op2 file handle |
|
Set file position at start of next data block |
|
Get information on the next data block in the file |
|
Read Nastran output2 end-of-table marker. |
|
Reads Nastran output2 header label. |
|
Read Nastran output2 data block name and trailer. |
|
|
Read op2 file output by DRM2 DMAP. |
Read Nastran output2 file written by DMAP NAS2CAM; usually called by |
|
Reads the TLOAD data from a DYNAMICS data block. |
|
Read the OGPWG data block, which contains model mass properties. |
|
|
Read and return Nastran op2 matrix at current file position. |
|
Read all matrices from Nastran output2 file. |
|
Read an OGF-formatted data block |
|
Read the OPG data block, which contains applied forces. |
|
Read an OUG-formatted data block |
|
Read Nastran output2 data record. |
Read op2 table headers into a list |
|
Returns the TLOAD data from an op2 file. |
|
|
Reads PARAM,POST,-1 op2 file and returns dictionary of data. |
|
Reads PARAM,POST,-1 op2 file and returns dictionary of data. |
|
Set the op2 file position |
Skip Nastran op2 matrix at current position. |
|
Skip over Nastran output2 data record (or super-record). |
|
Skip over Nastran output2 table. |