Пример #1
0
    def __init__(self,
                 make_geom: bool = True,
                 debug: bool = False,
                 log: Any = None,
                 debug_file: Optional[str] = None,
                 mode: Optional[str] = None):
        """
        Initializes the OP2 object

        Parameters
        ----------
        make_geom : bool; default=False
            reads the BDF tables
        debug : bool; default=False
            enables the debug log and sets the debug in the logger
        log: log()
            a logging object to write debug messages to
            (.. seealso:: import logging)
        debug_file : default=None -> no debug
            sets the filename that will be written to
        mode : str; default=None -> 'msc'
            {msc, nx}

        """
        GEOM1.__init__(self)
        GEOM2.__init__(self)
        GEOM3.__init__(self)
        GEOM4.__init__(self)

        EPT.__init__(self)
        MPT.__init__(self)
        EDT.__init__(self)
        EDOM.__init__(self)
        CONTACT.__init__(self)
        DIT.__init__(self)
        DYNAMICS.__init__(self)
        AXIC.__init__(self)

        OP2.__init__(self,
                     debug=debug,
                     log=log,
                     debug_file=debug_file,
                     mode=mode)
        self.make_geom = True

        # F:\work\pyNastran\examples\Dropbox\move_tpl\beamp10.op2
        # F:\work\pyNastran\examples\Dropbox\move_tpl\ifsr22r.op2
        # F:\work\pyNastran\examples\Dropbox\move_tpl\ifssh22.op2
        # F:\work\pyNastran\examples\Dropbox\move_tpl\ifsr22r.op2
        # F:\work\pyNastran\examples\Dropbox\move_tpl\ifsv02pp.op2
        self._viewtb_map = {
            (10300, 103, 16): ['QUADP', self._read_fake],
            (10400, 104, 15): ['TRIAP', self._read_fake],
            (10500, 105, 14): ['BEAMP', self._read_fake],
            (14100, 141, 18): ['HEXAP', self._read_view_hexa],
            (14200, 142, 16): ['PENTAP', self._read_fake],
            (14300, 143, 14): ['TETRAP', self._read_fake],
            #(10500, 105, 14) : ['???', self._read_fake],
            #(10500, 105, 14) : ['???', self._read_fake],
        }
Пример #2
0
    def __init__(self, make_geom: bool=True,
                 debug: bool=False, log: Any=None, debug_file: Optional[str]=None, mode: Optional[str]=None):
        """
        Initializes the OP2 object

        Parameters
        ----------
        make_geom : bool; default=False
            reads the BDF tables
        debug : bool; default=False
            enables the debug log and sets the debug in the logger
        log: log()
            a logging object to write debug messages to
            (.. seealso:: import logging)
        debug_file : default=None -> no debug
            sets the filename that will be written to
        mode : str; default=None -> 'msc'
            {msc, nx}

        """
        GEOM1.__init__(self)
        GEOM2.__init__(self)
        GEOM3.__init__(self)
        GEOM4.__init__(self)

        EPT.__init__(self)
        MPT.__init__(self)
        EDT.__init__(self)
        EDOM.__init__(self)
        DIT.__init__(self)
        DYNAMICS.__init__(self)
        AXIC.__init__(self)

        OP2.__init__(self, debug=debug, log=log, debug_file=debug_file, mode=mode)
        self.make_geom = True

        # F:\work\pyNastran\pyNastran\master2\pyNastran\bdf\test\nx_spike\out_boltsold11b.op2
        # F:\work\pyNastran\pyNastran\master2\pyNastran\bdf\test\nx_spike\out_conedg01b.op2
        # F:\work\pyNastran\pyNastran\master2\pyNastran\bdf\test\nx_spike\out_conprop06.op2
        # F:\work\pyNastran\pyNastran\master2\pyNastran\bdf\test\nx_spike\out_glueac103a.op2
        # F:\work\pyNastran\pyNastran\master2\pyNastran\bdf\test\nx_spike\out_conedg01s.op2
        # F:\work\pyNastran\pyNastran\master2\pyNastran\bdf\test\nx_spike\out_sline5.op2
        self._contact_map = {
            (224, 2, 436) : ['???', self._read_fake],
            (724, 7, 441) : ['???', self._read_fake],
            (1224, 12, 446) : ['???', self._read_fake],
            (7110, 71, 588) : ['???', self._read_fake],
            (7210, 72, 589) : ['???', self._read_fake],
            (7410, 74, 591) : ['???', self._read_fake],
            (7510, 75, 592) : ['???', self._read_fake],
            (7710, 77, 594) : ['???', self._read_fake],
            (8110, 81, 598) : ['???', self._read_fake],
            (8301, 83, 605) : ['???', self._read_fake],
            (8710, 87, 449) : ['???', self._read_fake],
            (8810, 88, 603) : ['???', self._read_fake],
            (8920, 89, 614) : ['???', self._read_fake],
            (124, 1, 435) : ['???', self._read_fake],
            (424, 4, 438) : ['???', self._read_fake],
        }

        # F:\work\pyNastran\examples\Dropbox\move_tpl\beamp10.op2
        # F:\work\pyNastran\examples\Dropbox\move_tpl\ifsr22r.op2
        # F:\work\pyNastran\examples\Dropbox\move_tpl\ifssh22.op2
        # F:\work\pyNastran\examples\Dropbox\move_tpl\ifsr22r.op2
        # F:\work\pyNastran\examples\Dropbox\move_tpl\ifsv02pp.op2
        self._viewtb_map = {
            (10300, 103, 16) : ['QUADP', self._read_fake],
            (10400, 104, 15) : ['TRIAP', self._read_fake],
            (10500, 105, 14) : ['BEAMP', self._read_fake],
            (14100, 141, 18) : ['HEXAP', self._read_view_hexa],
            (14200, 142, 16) : ['PENTAP', self._read_fake],
            (14300, 143, 14) : ['TETRAP', self._read_fake],
            #(10500, 105, 14) : ['???', self._read_fake],
            #(10500, 105, 14) : ['???', self._read_fake],

        }