当前位置: 首页>>代码示例>>Python>>正文


Python BDF.__init__方法代码示例

本文整理汇总了Python中pyNastran.bdf.bdf.BDF.__init__方法的典型用法代码示例。如果您正苦于以下问题:Python BDF.__init__方法的具体用法?Python BDF.__init__怎么用?Python BDF.__init__使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在pyNastran.bdf.bdf.BDF的用法示例。


在下文中一共展示了BDF.__init__方法的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: __init__

# 需要导入模块: from pyNastran.bdf.bdf import BDF [as 别名]
# 或者: from pyNastran.bdf.bdf.BDF import __init__ [as 别名]
    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
开发者ID:ClaesFredo,项目名称:pyNastran,代码行数:28,代码来源:op2_geom.py

示例2: __init__

# 需要导入模块: from pyNastran.bdf.bdf import BDF [as 别名]
# 或者: from pyNastran.bdf.bdf.BDF import __init__ [as 别名]
    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
开发者ID:marcinch18,项目名称:pyNastran,代码行数:36,代码来源:op2_geom.py

示例3: __init__

# 需要导入模块: from pyNastran.bdf.bdf import BDF [as 别名]
# 或者: from pyNastran.bdf.bdf.BDF import __init__ [as 别名]
 def __init__(self, bdf_out_filename, debug=True, log=None):
     BDF.__init__(self, debug=debug, log=log)
     self.bdf_out_filename = bdf_out_filename
开发者ID:EmanueleCannizzaro,项目名称:pyNastran,代码行数:5,代码来源:bdf_replacer.py

示例4: __init__

# 需要导入模块: from pyNastran.bdf.bdf import BDF [as 别名]
# 或者: from pyNastran.bdf.bdf.BDF import __init__ [as 别名]
 def __init__(self):
     BDF.__init__(self)
开发者ID:umvarma,项目名称:pynastran,代码行数:4,代码来源:nastranMesh.py

示例5: __init__

# 需要导入模块: from pyNastran.bdf.bdf import BDF [as 别名]
# 或者: from pyNastran.bdf.bdf.BDF import __init__ [as 别名]
    def __init__(self):
        BDF.__init__(self)
        self._type_map = {
            'GRID': self.nodes,
            #'RINGAX': self.nodes,

            'MAT1': self.materials,
            'MAT2': self.materials,
            'MAT3': self.materials,
            'MAT4': self.materials,
            'MAT5': self.materials,
            'MAT8': self.materials,
            'MAT10': self.materials,

            # shell
            'CTRIAX': self.elements,
            'CTRIA3': self.elements,
            'CTRIA6': self.elements,
            'CQUAD': self.elements,
            'CQUAD4': self.elements,
            'CQUAD8': self.elements,
            'CQUADX': self.elements,
            'PCOMP': self.properties,
            'PCOMPG': self.properties,
            'PSHELL': self.properties,

            # shear,
            'CSHEAR': self.elements,
            'PSHEAR': self.properties,

            # plane
            #'PLPLANE' : self.elements,

            # solid
            'CTETRA' : self.elements,
            'CPENTA' : self.elements,
            'CHEXA'  : self.elements,
            'PSOLID' : self.properties,
            'PLSOLID': self.properties,

            # rod
            'CONROD': self.elements,
            'CROD'  : self.elements,
            'PROD'  : self.properties,

            # tube
            'CTUBE' : self.elements,
            'PTUBE' : self.properties,

            # beam
            'CBEAM'  : self.elements,
            'PBEAM'  : self.properties,
            'PBEAML' : self.properties,

            # bar
            'CBAR'  : self.elements,
            'PBAR'  : self.properties,
            'PBARL' : self.properties,

            # bend
            'CBEND': self.elements,
            'PBEND': self.properties,
            # bush
            'CBUSH'  : self.elements,
            'CBUSH1D': self.elements,
            'CBUSH2D': self.elements,
            'PBUSH'  : self.properties,
            'PBUSH1D': self.properties,
            #'PBUSH2D': self.properties,
            #'PBUSHT' : self.properties,

            # spring
            'CELAS1': self.elements,
            'CELAS2': self.elements,
            'CELAS3': self.elements,
            'CELAS4': self.elements,
            'PELAS' : self.properties,

            # dampers
            'CFAST': self.elements,
            'PFAST': self.properties,

            # dampers
            'CDAMP1': self.elements,
            'CDAMP2': self.elements,
            'CDAMP3': self.elements,
            'CDAMP4': self.elements,
            'CDAMP5': self.elements,
            'PDAMP' : self.properties,
            'PDAMPT': self.properties,
            'PDAMP5': self.properties,
            'PVISC' : self.properties,

            #'CRAC2D' : self.elements,
            #'CRAC3D' : self.elements,
            #'PRAC2D' : self.properties,
            #'PRAC3D' : self.properties,

            # mass
            #'CONM1': self.elements,
#.........这里部分代码省略.........
开发者ID:umvarma,项目名称:pynastran,代码行数:103,代码来源:test_openmdao.py

示例6: __init__

# 需要导入模块: from pyNastran.bdf.bdf import BDF [as 别名]
# 或者: from pyNastran.bdf.bdf.BDF import __init__ [as 别名]
 def __init__(self, language='english', encoding='ascii'):
     self.language = 'english'
     BDF.__init__(self)
开发者ID:ClaesFredo,项目名称:pyNastran,代码行数:5,代码来源:toCodeAster.py

示例7: __init__

# 需要导入模块: from pyNastran.bdf.bdf import BDF [as 别名]
# 或者: from pyNastran.bdf.bdf.BDF import __init__ [as 别名]
 def __init__(self, log=None, debug=False):
     BDF.__init__(self, debug=debug, log=log)
开发者ID:FrankNaets,项目名称:pyNastran,代码行数:4,代码来源:bdf_mesh.py

示例8: __init__

# 需要导入模块: from pyNastran.bdf.bdf import BDF [as 别名]
# 或者: from pyNastran.bdf.bdf.BDF import __init__ [as 别名]
 def __init__(self, log, fingset):
     self.card_set = fingset
     self.f = open('cards.out.bdf', 'wb')
     #self.newBDF = newBDF
     BDF.__init__(self, log=log)
开发者ID:umvarma,项目名称:pynastran,代码行数:7,代码来源:get_uniq_fields.py

示例9: __init__

# 需要导入模块: from pyNastran.bdf.bdf import BDF [as 别名]
# 或者: from pyNastran.bdf.bdf.BDF import __init__ [as 别名]
 def __init__(self, log=None, debug=False):
     BDF.__init__(self, debug=debug, log=log)
     self.hyper = {}
     self.flow = {}
     self.cards_to_read.add('HYPER')
     self.cards_to_read.add('FLOW')
开发者ID:FrankNaets,项目名称:pyNastran,代码行数:8,代码来源:hyper.py

示例10: __init__

# 需要导入模块: from pyNastran.bdf.bdf import BDF [as 别名]
# 或者: from pyNastran.bdf.bdf.BDF import __init__ [as 别名]
 def __init__(self, language='english'):
     self.language = 'english'
     BDF.__init__(self)
开发者ID:umvarma,项目名称:pynastran,代码行数:5,代码来源:toCalculix.py

示例11: __init__

# 需要导入模块: from pyNastran.bdf.bdf import BDF [as 别名]
# 或者: from pyNastran.bdf.bdf.BDF import __init__ [as 别名]
    def __init__(self, op2FileName, make_geom=False, debug=True, log=None):
        """
        Initializes the OP2 object

        :param op2FileName: the file to be parsed
        :param make_geom: reads the BDF tables (default=False)
        :param debug: prints data about how the OP2 was parsed (default=False)
        :param log: a logging object to write debug messages to
         (.. seealso:: import logging)
        """
        BDF.__init__(self, debug=debug, log=log)
        self.set_subcases()  # initializes the variables
        self.log.debug('op2FileName = %s' % (op2FileName))
        bdfExtension = '.bdf'
        f06Extension = '.f06'
        (fname, extension) = os.path.splitext(op2FileName)
        self.table_name = 'temp'

        #: should the BDF tables be parsed
        self.make_geom = make_geom

        #: the input OP2 filename
        self.op2FileName = op2FileName

        #: the expected BDF filename (guessed)
        self.bdfFileName = fname + bdfExtension

        #: the expected F06 filename (guessed)
        self.f06FileName = fname + f06Extension
        #print "bdfFileName = ",self.bdfFileName

        #: developer parameter to write the OP2 is ASCII format
        #: to better understand it
        self.make_op2_debug = False

        #: BDF Title
        self.Title = ''
        #: limit output DTs
        self.expected_times = {}
        #self.expected_times = {1:array([0.1,0.12])}

        #: file object containing the skipped cards
        self.skippedCardsFile = open('skippedCards.out', 'a')

        #: the list of supported tables (dont edit this)
        self.tablesToRead = [
            # nodes/geometry/loads/BCs
            'GEOM1', 'GEOM2', 'GEOM3', 'GEOM4',      # regular
            'GEOM1S', 'GEOM2S', 'GEOM3S', 'GEOM4S',  # superelements

            'GEOM1OLD', 'GEOM1N',  # ???
            'EPT', 'MPT',    # properties/materials
            'EPTS', 'MPTS',  # properties/materials - superelements
            'EDTS',          # ???
            'DYNAMIC', 'DYNAMICS',
            'DIT',                           # tables (e.g. TABLED1)
            'LAMA', 'BLAMA',                 # eigenvalues

            'BGPDT', 'BGPDTS',               # boundary grids???
            'EQEXIN', 'EQEXINS', 'PVT0', 'CASECC', 'EDOM', 'CASEXX',
            'DESTAB',                        # design variables
            'OQG1', 'OQGV1',                 # spc forces
            'OQMG1',                         # mpc forces

            'OUGV1', 'OUG1',                 # displacements
            'OGPFB1',                        # grid point forces
            'OGS1',                          # grid point stresses

            'OEF1X', 'DOEF1', 'OEFIT',        # element forces
            'OPG1', 'OPGV1', 'OPNL1',          # applied forces
            'OES1', 'OES1X', 'OES1X1', 'OES1C',  # stress
            'OSTR1C', 'OSTR1X',               # strains
            'OESNLXR', 'OESNLXD', 'OESNL1X', 'OESNLBR',  # nonlinear stress

            'OESCP',                       # cylinder stress???
            'OESTRCP',                     # cylinder strain???
            'OESRT',                       # rotational stress?

            'ONRGY1',  # energy
            'ONRGY2',  # energy (sort2, unsupported)

            'R1TABRG', 'HISADD',  # SOL 200

            # unsupported frequency results
            'OAGPSD2', 'OAGATO2', 'OAGRMS2', 'OAGNO2', 'OAGCRM2',
            'OEFPSD2', 'OEFATO2', 'OEFRMS2', 'OEFNO2', 'OEFCRM2',
            'OESPSD2', 'OESATO2', 'OESRMS2', 'OESNO2', 'OESCRM2',
            'OPGPSD2', 'OPGATO2', 'OPGRMS2', 'OPGNO2', 'OPGCRM2',
            'OQGPSD2', 'OQGATO2', 'OQGRMS2', 'OQGNO2', 'OQGCRM2',

            # supported-ish
            'OQMPSD2', 'OQMATO2', 'OQMRMS2', 'OQMNO2', 'OQMCRM2',
            'OSTRPSD2', 'OSTRATO2', 'OSTRRMS2', 'OSTRNO2', 'OSTRCRM2',
            'OUGPSD2', 'OUGATO2', 'OUGCRM2', 'OUGNO2', 'OUGRMS2',
            'OVGPSD2', 'OVGATO2', 'OVGRMS2', 'OVGNO2', 'OVGCRM2',

            # TODO what do these do???
            'OUPV1',
            'VIEWTB', 'ERRORN',
            'OFMPF2M', 'OSMPF2M', 'OPMPF2M', 'OGPMPF2M', 'OLMPF2M',
#.........这里部分代码省略.........
开发者ID:anick107,项目名称:von_mises_rms,代码行数:103,代码来源:op2.py


注:本文中的pyNastran.bdf.bdf.BDF.__init__方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。