pyyeti.nastran.op2.OP2.rdop2ogf

OP2.rdop2ogf(name)[source]

Read an OGF-formatted data block

Parameters:

name (string) – Name of OGF data block

Returns:

pandas.DataFrame or None – If data block is present, the output is a pandas DataFrame with multilevel indices. The index has four levels: (node, element id, element name, direction) with the names: ("Node", "Element", "Desc", "Comp"). The columns has two levels: (mode number, frequency) with the names: ("Mode #", "Freq (Hz)"). For example, here are the first two columns of an ``ofg associated with node 2693:

>>> ogf.loc[[2693], :2]
Mode #                                 1             2
Freq (Hz)                       6.835803      9.240421
Node Element Desc     Comp
2693 2648    QUAD4    FX   -6.424288e+00  1.881207e+01
                      FY   -9.492936e+00  1.947833e+01
                      FZ   -6.474704e+00  8.646915e+01
                      MX    3.494281e+00 -1.237239e+01
                      MY    3.494860e+00 -1.237513e+01
                      MZ   -2.012388e+00 -1.778058e+00
     2649    QUAD4    FX    6.426482e+00 -1.881229e+01
                      FY    9.493129e+00 -1.947879e+01
                      FZ    6.474766e+00 -8.646799e+01
                      MX   -3.494281e+00  1.237239e+01
                      MY   -3.494860e+00  1.237513e+01
                      MZ    2.012388e+00  1.778058e+00
     0       *TOTALS* FX    2.193109e-03 -2.204326e-04
                      FY    1.932395e-04 -4.540352e-04
                      FZ    6.194949e-05  1.154103e-03
                      MX   -5.434231e-11  3.802825e-11
                      MY   -5.434231e-11  3.871037e-11
                      MZ    1.273293e-10  9.640644e-11