pyyeti.nastran.op2.OP2.rdparampost

OP2.rdparampost(*, verbose=False, get_all=False, get_mats=True, get_ougs=False, get_ogfs=False, get_drms=False, get_dr_tables=True, which=-1)[source]

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

Parameters:
  • verbose (bool; optional) – If True, echo names of tables and matrices to screen

  • get_all; bool; optional – If True, sets all other get_* parameters to True. Ignored if False. It won’t override get_mats or get_dr_tables if they are lists or tuples.

  • get_mats (bool or list/tuple; optional) – If True (or False), read (or do not read) matrices. If a list/tuple, it is an iterable of data blocks to look for and read if possible. Each name in the list can end with a “*” for simple wildcard matching. For example:

    get_mats = ["K4HH", "M*"]
    

    would read in “K4HH” and all matrices that start with “M”. In the output dictionary of this routine, each matrix is stored by its name in lower case. If which is “all”, then each entry is a list of all the matrices of each name in the file (see OP2.rdop2mats())

  • get_ougs (bool; optional) – If True, read all “OUG” formatted datablocks. See also which.

  • get_ogfs (bool; optional) – If True, read all “OGF” formatted datablocks. See also which.

  • get_drms (bool; optional) – If True, read all “OEF” and “OES” formatted datablocks. See also which.

  • get_dr_tables (bool or list/tuple; optional) – If True (or False), read (or do not read) data recovery tables. If True, any data block that starts with “T” is checked and if it is a data recovery table, it is read in. If get_dr_tables is a list/tuple, it is an iterable of data blocks to look for and read if possible. Each name in the list can end with a “*” for simple wildcard matching. For example:

    get_dr_tables = ["TUG*"]
    

    would read in all data recovery tables that match that pattern, and only those. Setting get_dr_tables to True is equivalent to setting to ["T*"]. In the output dictionary of this routine, each matrix is stored by its name in lower case. Each matrix is 3-columns:

    [id, dof, type]
    

    See also which.

  • which (integer or str; optional) – If integer, specifies which occurrence of each matrix to read starting at 0. Default is -1; read the last entry for each matrix only. Can also be the string “all”. In that case, each entry in the dictionary is a list of all occurrences of each matrix (even if there is only one occurrence).

Returns:

  • dictionary

  • ’uset’ (pandas DataFrame) – A DataFrame as output by OP2.rdn2cop2()

  • ’cstm’ (array) – 14-column matrix containing the coordinate system transformation matrix for each coordinate system. See description in class OP2, member function OP2.rdn2cop2().

  • ’cstm2’ (dictionary) – Dictionary indexed by the coordinate system id number. This has the same information as ‘cstm’, but in a different format. See description in class OP2, member function OP2.rdn2cop2().

  • ’lama’ (ndarray or list of ndarrays) – The “LAMA” table; # modes x 7. List if which is “all”.

  • ’dynamics’ (ndarray or list of ndarrays) – The “tload” part of the DYNAMICS data block. See also “tload”. List if which is “all”.

  • ’tload’ (ndarray) – Only present if the “DYNAMICS” data block is present. This is the “tload” part of the last “DYNAMICS” data block read in. (Same as “dynamics” if which is not “all”.)

  • ’ogpwg’ (dictionary or list of dictionaries) – Only present if the “OGPWG” table is present in the op2 file. The dictionary is the output of OP2.rdop2gpwg(). List if which is “all”.

  • ’selist’ (2d ndarray) – 2-columns matrix: [ seid, dnseid ] where, for each row, dnseid is the downstream superelement for seid. (dnseid = 0 if seid = 0).

  • ’sebulk’ (2d ndarray) – output record from GEOM1 of SE 0

  • ’seload’ (2d ndarray) – output record from GEOM1 of SE 0

  • ’seconct’ (1d ndarray) – output record from GEOM1 of SE 0

  • ’geom1’ (dictionary) – Dictionary of GEOM1(S) data blocks; key is SE. Does not depend on which. Will be empty if no GEOM1(S) data blocks are in the op2 file.

  • ’bgpdt’ (dictionary) – Dictionary of BGPDT(S) data blocks; key is SE. Does not depend on which. Will be empty if no BGPDT(S) data blocks are in the op2 file.

Notes

Other data blocks may be present in the output depending on the input parameters and the contents of the op2 file.