Beispiel #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],
        }
Beispiel #2
0
    def __init__(self, make_geom=True,
                 debug=False, log=None, debug_file=None):
        """
        Initializes the OP2 object

        :param make_geom: reads the BDF tables (default=False)
        :param debug: enables the debug log and sets the debug in the logger (default=False)
        :param log: a logging object to write debug messages to
         (.. seealso:: import logging)
        :param debug_file: sets the filename that will be written to (default=None -> no debug)
        """
        assert make_geom == True, make_geom

        BDF.__init__(self, debug=debug, log=log)
        GEOM1.__init__(self)
        GEOM2.__init__(self)
        GEOM3.__init__(self)
        GEOM4.__init__(self)

        EPT.__init__(self)
        MPT.__init__(self)
        DIT.__init__(self)
        DYNAMICS.__init__(self)

        OP2.__init__(self, debug, log=log, debug_file=debug_file)
        self.make_geom = make_geom
Beispiel #3
0
    def __init__(self, make_geom=True,
                 debug=False, log=None, debug_file=None, mode='msc'):
        """
        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='msc'
            {msc, nx}
        """
        # make_geom=False, debug=True, log=None, debug_file=None

        BDF.__init__(self, debug=debug, log=log)
        GEOM1.__init__(self)
        GEOM2.__init__(self)
        GEOM3.__init__(self)
        GEOM4.__init__(self)

        EPT.__init__(self)
        MPT.__init__(self)
        DIT.__init__(self)
        DYNAMICS.__init__(self)

        OP2.__init__(self, debug, log=log, debug_file=debug_file, mode=mode)
        self.make_geom = True
Beispiel #4
0
    def __init__(self, make_geom=True, debug=False, log=None, debug_file=None):
        """
        Initializes the OP2 object

        :param make_geom: reads the BDF tables (default=False)
        :param debug: enables the debug log and sets the debug in the logger (default=False)
        :param log: a logging object to write debug messages to
         (.. seealso:: import logging)
        :param debug_file: sets the filename that will be written to (default=None -> no debug)
        """
        assert make_geom == True, make_geom

        BDF.__init__(self, debug=debug, log=log)
        GEOM1.__init__(self)
        GEOM2.__init__(self)
        GEOM3.__init__(self)
        GEOM4.__init__(self)

        EPT.__init__(self)
        MPT.__init__(self)
        DIT.__init__(self)
        DYNAMICS.__init__(self)

        OP2.__init__(self, debug, log=log, debug_file=debug_file)
        self.make_geom = make_geom
Beispiel #5
0
    def __init__(self,
                 make_geom=True,
                 debug=False,
                 log=None,
                 debug_file=None,
                 mode='msc'):
        """
        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='msc'
            {msc, nx}
        """
        # make_geom=False, debug=True, log=None, debug_file=None

        BDF.__init__(self, debug=debug, log=log)
        GEOM1.__init__(self)
        GEOM2.__init__(self)
        GEOM3.__init__(self)
        GEOM4.__init__(self)

        EPT.__init__(self)
        MPT.__init__(self)
        DIT.__init__(self)
        DYNAMICS.__init__(self)

        OP2.__init__(self, debug, log=log, debug_file=debug_file, mode=mode)
        self.make_geom = True
Beispiel #6
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],

        }
Beispiel #7
0
    def __init__(self,
                 make_geom=True,
                 debug=False,
                 log=None,
                 debug_file=None,
                 mode='msc'):
        """
        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='msc'
            {msc, nx}

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

        EPT.__init__(self)
        MPT.__init__(self)
        DIT.__init__(self)
        DYNAMICS.__init__(self)

        OP2.__init__(self, debug, log=log, debug_file=debug_file, mode=mode)
        self.make_geom = True
        # F:\work\pyNastran\pyNastran\master2\pyNastran\bdf\test\nx_spike\out_altmdtku4.op2
        # F:\work\pyNastran\pyNastran\master2\pyNastran\bdf\test\nx_spike\out_altd200x7.op2
        # F:\work\pyNastran\pyNastran\master2\pyNastran\bdf\test\nx_spike\out_mdtku1.op2
        # F:\work\pyNastran\pyNastran\master2\pyNastran\bdf\test\nx_spike\out_mcso14.op2
        # F:\work\pyNastran\pyNastran\master2\pyNastran\bdf\test\nx_spike\out_ds105.op2
        # F:\work\pyNastran\pyNastran\master2\pyNastran\bdf\test\nx_spike\out_altcc574.op2
        # F:\work\pyNastran\pyNastran\master2\pyNastran\bdf\test\nx_spike\out_adjoint.op2
        # F:\work\pyNastran\pyNastran\master2\pyNastran\bdf\test\nx_spike\out_mcso18.op2
        # F:\work\pyNastran\pyNastran\master2\pyNastran\bdf\test\nx_spike\out_cqr4optstdis.op2
        # F:\work\pyNastran\pyNastran\master2\pyNastran\bdf\test\nx_spike\out_d200ce12.op2
        #: Optimization Table (I think this is NX-specifc)
        self._edom_map = {
            # are these 3 really EDOM?
            #MAT1DOM(103,1,9944)
            #MAT10DOM(2801,28,9945)
            #MODTRAK(6006,60,477)
            (103, 1, 9944): ['???', self._read_fake],
            (304, 3, 276): ['???', self._read_fake],
            (404, 4, 277): ['???', self._read_fake],
            (504, 5, 246): ['???', self._read_fake],
            (5106, 51, 471): ['DCONADD', self._read_fake],
            (4106, 41, 362): ['DCONSTR', self._read_fake],
            #DDVAL(7000,70,563)
            #DRESP3(6700,67,433)
            (504, 5, 246): ['???', self._read_fake],
            (504, 5, 246): ['???', self._read_fake],
            (504, 5, 246): ['???', self._read_fake],
            (504, 5, 246): ['???', self._read_fake],
            (504, 5, 246): ['???', self._read_fake],
            (3106, 31, 352): ['DESVAR', self._read_fake],
            (3206, 32, 353): ['DLINK', self._read_fake],
            (3306, 33, 354): ['DVPREL1', self._read_fake],
            (3406, 34, 355): ['DVPREL2', self._read_fake],
            #DOPTPRM(4306,43,364)
            (3706, 37, 358): ['DTABLE', self._read_fake],
            (3806, 38, 359): ['DRESP1', self._read_fake],
            (3906, 39, 360): ['DRESP2', self._read_fake],
            (4106, 41, 362): ['???', self._read_fake],
            (4206, 42, 363): ['DSCREEN', self._read_fake],
            (4306, 43, 364): ['???', self._read_fake],
            (4406, 44, 372): ['DVGRID', self._read_fake],
            #DVSHAP(5006,50,470)
            (5106, 51, 471): ['???', self._read_fake],
            #DVBSHAP(5806,58,474)
            #DVGEOM(5906,59,356)
            (6006, 60, 477): ['???', self._read_fake],
            #DRESP3(6700,67,433)
            (6100, 61, 429): ['DVCREL1', self._read_fake],
            (6200, 62, 430): ['DVCREL2', self._read_fake],
            (6300, 63, 431): ['DVMREL1', self._read_fake],
            (6400, 64, 432): ['DVMREL2', self._read_fake],
            (6006, 60, 477): ['???', self._read_fake],
            (7000, 70, 563): ['DCONSTR/DDVAL?', self._read_fake],
        }

        # 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:\Program Files\Siemens\NXNastran\nxn10p1\nxn10p1\nast\tpl\fsw_eng.op2
        # F:\work\pyNastran\pyNastran\master2\pyNastran\bdf\test\nx_spike\out_boltld04i.op2
        # F:\work\pyNastran\pyNastran\master2\pyNastran\bdf\test\nx_spike\out_eliter17.op2
        # F:\work\pyNastran\pyNastran\master2\pyNastran\bdf\test\nx_spike\out_weld01i.op2
        # F:\work\pyNastran\examples\Dropbox\move_tpl\ac10901a_new.op2
        self._edt_map = {
            (5201, 52, 373): ['ACMODL', self._read_fake],
            (6301, 63, 397): ['ADAPT', self._read_fake],
            (7801, 78, 582): ['AECOMP', self._read_fake],
            (7901, 79, 583): ['AECOMPL', self._read_fake],
            (7301, 73, 574): ['AEDW', self._read_fake],
            (4002, 40, 273): ['AEFACT', self._read_fake],
            (7501, 75, 576): ['AEFORCE', self._read_fake],
            (2602, 26, 386): ['AELINK', self._read_fake],
            (2302, 23, 341): ['AELIST', self._read_fake],
            (7001, 70, 571): ['AEPARM', self._read_fake],
            (7401, 74, 575): ['AEPRESS', self._read_fake],
            (3202, 32, 265): ['AERO', self._read_fake],
            (2202, 22, 340): ['AEROS', self._read_fake],
            (2102, 21, 339): ['AESTAT', self._read_fake],
            (2002, 20, 338): ['AESURF', self._read_fake],
            (7701, 77, 581): ['AESURFS', self._read_fake],
            (3002, 30, 263): ['CAERO1', self._read_fake],
            (4301, 43, 167): ['CAERO2', self._read_fake],
            (4401, 44, 168): ['CAERO3', self._read_fake],
            (4501, 45, 169): ['CAERO4', self._read_fake],
            (5001, 50, 175): ['CAERO5', self._read_fake],
            (6201, 62, 143): ['CLOAD', self._read_fake],
            (6401, 64, 307): ['CSSCHD', self._read_fake],
            (104, 1, 81): ['DEFORM', self._read_fake],
            (2702, 27, 387): ['DIVERG', self._read_fake],
            (4102, 41, 274): ['FLFACT', self._read_fake],
            (3902, 39, 272): ['FLUTTER', self._read_fake],
            (17400, 174, 616): ['GROUP', self._read_fake],
            (3802, 38, 271): ['MKAERO1', self._read_fake],
            (3702, 37, 270): ['MKAERO2', self._read_fake],
            (7601, 76, 577): ['MONPNT1', self._read_fake],
            (3102, 31, 264): ['PAERO1', self._read_fake],
            (4601, 46, 170): ['PAERO2', self._read_fake],
            (4701, 47, 171): ['PAERO3', self._read_fake],
            (4801, 48, 172): ['PAERO4', self._read_fake],
            (5101, 51, 176): ['PAERO5', self._read_fake],
            (5301, 53, 378): ['PANEL', self._read_fake],
            (3502, 35, 268): ['SET1', self._read_fake],
            (3602, 36, 269): ['SET2', self._read_fake],
            (4302, 43, 607): ['SET3', self._read_fake],
            (3302, 33, 266): ['SPLINE1', self._read_fake],
            (3402, 34, 267): ['SPLINE2', self._read_fake],
            (4901, 49, 173): ['SPLINE3', self._read_fake],
            (6501, 65, 308): ['SPLINE4', self._read_fake],
            (6601, 66, 309): ['SPLINE5', self._read_fake],
            (2402, 24, 342): ['TRIM', self._read_fake],
            (7201, 72, 573): ['UXVEC', self._read_fake],
            (7108, 822, 51): ['BOLT', self._read_fake],
            (7108, 71, 251): ['???', self._read_fake],
            (5808, 58, 220): ['ITER', self._read_fake],
            (14000, 140, 568): ['SWLDPRM', self._read_fake],
            (11001, 110, 581): ['???', self._read_fake],
            #(10500, 105, 14) : ['???', self._read_fake],
            #(10500, 105, 14) : ['???', self._read_fake],
            #(10500, 105, 14) : ['???', self._read_fake],
            #(10500, 105, 14) : ['???', self._read_fake],
            #(10500, 105, 14) : ['???', self._read_fake],
            #(10500, 105, 14) : ['???', self._read_fake],
            #(10500, 105, 14) : ['???', self._read_fake],
            #(10500, 105, 14) : ['???', self._read_fake],
            #(10500, 105, 14) : ['???', self._read_fake],
            #(10500, 105, 14) : ['???', 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_fake],
            (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],
        }