pyyeti.nastran.op2.OP2

class pyyeti.nastran.op2.OP2(filename)[source]

Class for reading Nastran op2 files and nas2cam data files.

__init__(filename)[source]

Methods

__init__(filename)

directory([verbose, redo, with_headers, ...])

Catalogues and optionally prints contents of op2 file

file_handle()

Returns the op2 file handle

go_to_next_db()

Seek to start of next data block from current position

goto_next()

Set file position at start of next data block

near_db_end()

True if "near" end of data block (there are no more records).

next_db_info()

Get information on the next data block in the file

prtdir([with_headers, with_trailers])

Prints op2 data block directory.

rddrm2op2([verbose])

Read op2 file output by DRM2 DMAP.

rdn2cop2()

Read Nastran output2 file written by DMAP NAS2CAM; usually called by rdnas2cam().

rdop2dynamics()

Reads the TLOAD data from a DYNAMICS data block.

rdop2eot()

Read Nastran output2 end-of-table marker.

rdop2gpwg()

Read the OGPWG data block, which contains model mass properties.

rdop2header()

Reads Nastran output2 header label.

rdop2matrix(trailer)

Read and return Nastran op2 matrix at current file position.

rdop2mats([names, lower, verbose, which])

Read all matrices from Nastran output2 file.

rdop2nt()

Read Nastran output2 data block name and trailer.

rdop2ogf(name)

Read an OGF-formatted data block

rdop2opg([name])

Read the OPG data block, which contains applied forces.

rdop2oug(name)

Read an OUG-formatted data block

rdop2record([form, N])

Read Nastran output2 data record.

rdop2tabheaders()

Read op2 table headers into a list

rdop2tload()

Returns the TLOAD data from an op2 file.

rdparampost(*[, verbose, get_all, get_mats, ...])

Reads PARAM,POST,-1 op2 file and returns dictionary of data.

rdparampost_old([verbose, get_all, ...])

Reads PARAM,POST,-1 op2 file and returns dictionary of data.

set_position(pos[, which])

Set the op2 file position

skipop2matrix()

Skip Nastran op2 matrix at current position.

skipop2record()

Skip over Nastran output2 data record (or super-record).

skipop2table()

Skip over Nastran output2 table.

Attributes

CodeFuncs

See _check_code().