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


Python ScalarObject.__init__方法代码示例

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


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

示例1: __init__

# 需要导入模块: from pyNastran.op2.resultObjects.op2_Objects import ScalarObject [as 别名]
# 或者: from pyNastran.op2.resultObjects.op2_Objects.ScalarObject import __init__ [as 别名]
    def __init__(self, data_code, is_sort1, isubcase, dt):
        ScalarObject.__init__(self, data_code, isubcase)
        #self.eType = {}
        self.force41 = {}
        self.force14 = {}
        self.force21 = {}
        self.force12 = {}
        self.force32 = {}
        self.force23 = {}
        self.force43 = {}
        self.force34 = {}
        self.kickForce1 = {}
        self.kickForce2 = {}
        self.kickForce3 = {}
        self.kickForce4 = {}
        self.shear12 = {}
        self.shear23 = {}
        self.shear34 = {}
        self.shear41 = {}

        self.dt = dt
        if is_sort1:
            if dt is not None:
                self.add = self.add_sort1
        else:
            assert dt is not None
            self.add = self.addSort2
开发者ID:sukhbinder,项目名称:cyNastran,代码行数:29,代码来源:oef_complexForceObjects.py

示例2: __init__

# 需要导入模块: from pyNastran.op2.resultObjects.op2_Objects import ScalarObject [as 别名]
# 或者: from pyNastran.op2.resultObjects.op2_Objects.ScalarObject import __init__ [as 别名]
 def __init__(self, data_code, isubcase, apply_data_code=True):
     self.element_type = None
     self.element_name = None
     self.nonlinear_factor = None
     self._times = None
     OES_Object_Deprecated.__init__(self)
     ScalarObject.__init__(self, data_code, isubcase, apply_data_code=apply_data_code)
开发者ID:ClaesFredo,项目名称:pyNastran,代码行数:9,代码来源:oes_objects.py

示例3: __init__

# 需要导入模块: from pyNastran.op2.resultObjects.op2_Objects import ScalarObject [as 别名]
# 或者: from pyNastran.op2.resultObjects.op2_Objects.ScalarObject import __init__ [as 别名]
 def __init__(self, data_code, is_sort1, isubcase, dt):
     ScalarObject.__init__(self, data_code, isubcase)
     #self.dt = dt
     self.ntimes = 0
     self.itotal = 0
     self.eids = None
     self.sources = None
     self.data = None # forces/moments
开发者ID:ClaesFredo,项目名称:pyNastran,代码行数:10,代码来源:opg_Objects.py

示例4: __init__

# 需要导入模块: from pyNastran.op2.resultObjects.op2_Objects import ScalarObject [as 别名]
# 或者: from pyNastran.op2.resultObjects.op2_Objects.ScalarObject import __init__ [as 别名]
    def __init__(self, data_code, isubcase, load_step):
        ScalarObject.__init__(self, data_code, isubcase)

        self.load_step = load_step
        self.eTypes = {}
        self.fluxes = {}
        self.gradients = {}
        if load_step is not None:
            self.add_new_transient()
开发者ID:ClaesFredo,项目名称:pyNastran,代码行数:11,代码来源:oef_Objects.py

示例5: __init__

# 需要导入模块: from pyNastran.op2.resultObjects.op2_Objects import ScalarObject [as 别名]
# 或者: from pyNastran.op2.resultObjects.op2_Objects.ScalarObject import __init__ [as 别名]
    def __init__(self, data_code, isubcase, dt):
        ScalarObject.__init__(self, data_code, isubcase)

        self.dt = dt
        self.fluxes = {}
        if dt is not None:
            self.fluxes = {}
            self.isTransient = True
            raise NotImplementedError('transient fluxObject is supported...')
开发者ID:ClaesFredo,项目名称:pyNastran,代码行数:11,代码来源:oug_Objects.py

示例6: __init__

# 需要导入模块: from pyNastran.op2.resultObjects.op2_Objects import ScalarObject [as 别名]
# 或者: from pyNastran.op2.resultObjects.op2_Objects.ScalarObject import __init__ [as 别名]
    def __init__(self, data_code, isubcase, iMode):
        ScalarObject.__init__(self, data_code, isubcase)
        #self.caseVal = mode
        #print "mode = %s" %(iMode)
        self.caseVal = self.getUnsteadyValue()

        #assert mode>=0.
        self.gridTypes = {}
        self.translations = {iMode: {}}
        self.rotations = {iMode: {}}
开发者ID:HibernantBear,项目名称:pyNastran,代码行数:12,代码来源:oug_eigenvectors.py

示例7: __init__

# 需要导入模块: from pyNastran.op2.resultObjects.op2_Objects import ScalarObject [as 别名]
# 或者: from pyNastran.op2.resultObjects.op2_Objects.ScalarObject import __init__ [as 别名]
    def __init__(self, data_code, is_sort1, isubcase, dt):
        ScalarObject.__init__(self, data_code, isubcase)
        self.eType = {}
        self.grad = {}
        self.flux = {}

        # TODO if dt=None, handle SORT1 case
        if is_sort1:
            self.add = self.add_sort1
        else:
            self.add = self.addSort2
开发者ID:sukhbinder,项目名称:cyNastran,代码行数:13,代码来源:oef_thermalObjects.py

示例8: __init__

# 需要导入模块: from pyNastran.op2.resultObjects.op2_Objects import ScalarObject [as 别名]
# 或者: from pyNastran.op2.resultObjects.op2_Objects.ScalarObject import __init__ [as 别名]
    def __init__(self, data_code, is_sort1, isubcase, dt):
        ScalarObject.__init__(self, data_code, isubcase)
        self.gridTypes = {}
        self.temperatures = {}

        self.dt = dt
        if is_sort1:
            if dt is not None:
                self.add = self.add_sort1
        else:
            assert dt is not None
            self.add = self.addSort2
开发者ID:ClaesFredo,项目名称:pyNastran,代码行数:14,代码来源:oug_temperatures.py

示例9: __init__

# 需要导入模块: from pyNastran.op2.resultObjects.op2_Objects import ScalarObject [as 别名]
# 或者: from pyNastran.op2.resultObjects.op2_Objects.ScalarObject import __init__ [as 别名]
    def __init__(self, data_code, is_sort1, isubcase, dt):
        ScalarObject.__init__(self, data_code, isubcase)
        self.force_moment = {}
        self.elemName = {}
        self.eids = {}

        self.dt = dt
        if is_sort1:
            if dt is not None:
                self.add = self.add_sort1
        else:
            assert dt is not None, 'is_sort1=%s' % is_sort1
            self.add = self.addSort2
开发者ID:abk-ShuaiHaotian,项目名称:pyNastran,代码行数:15,代码来源:ogf_Objects.py

示例10: __init__

# 需要导入模块: from pyNastran.op2.resultObjects.op2_Objects import ScalarObject [as 别名]
# 或者: from pyNastran.op2.resultObjects.op2_Objects.ScalarObject import __init__ [as 别名]
    def __init__(self, data_code, is_sort1, isubcase, dt):
        self.nonlinear_factor = None
        self.table_name = None
        self.analysis_code = None
        ScalarObject.__init__(self, data_code, isubcase, apply_data_code=True)  # no double inheritance
        #self.dt = dt

        #self.eType = {}
        #self.code = [self.format_code, self.sort_code, self.s_code]

        #self.ntimes = 0  # or frequency/mode
        self.ntotal = 0
        self._nnodes = 0  # result specific
开发者ID:sukhbinder,项目名称:cyNastran,代码行数:15,代码来源:tableObject.py

示例11: __init__

# 需要导入模块: from pyNastran.op2.resultObjects.op2_Objects import ScalarObject [as 别名]
# 或者: from pyNastran.op2.resultObjects.op2_Objects.ScalarObject import __init__ [as 别名]
    def __init__(self, data_code, is_sort1, isubcase, dt):
        ScalarObject.__init__(self, data_code, isubcase)
        self.energy = {}
        self.percent = {}
        self.density = {}
        #print self.data_code
        #print "num_wide = %s %s"  % (self.data_code['num_wide'], type(self.data_code['num_wide']))

        self.dt = dt
        if is_sort1:
            if dt is not None:
                self.add = self.add_sort1
        else:
            assert dt is not None
            self.add = self.addSort2
开发者ID:ClaesFredo,项目名称:pyNastran,代码行数:17,代码来源:oee_objects.py

示例12: __init__

# 需要导入模块: from pyNastran.op2.resultObjects.op2_Objects import ScalarObject [as 别名]
# 或者: from pyNastran.op2.resultObjects.op2_Objects.ScalarObject import __init__ [as 别名]
    def __init__(self, data_code, is_sort1, isubcase, dt):
        ScalarObject.__init__(self, data_code, isubcase)
        self.dt = dt

        self.eids = {}
        self.sources = {}
        self.forces = {}
        self.moments = {}
        if self.dt is not None:
            assert dt >= 0.
            raise NotImplementedError('transient appliedLoads not implemented...')
            self.eids = {dt: []}
            self.sources = {dt: []}
            self.forces = {dt: []}
            self.moments = {dt: []}
            self.add = self.addTransient
开发者ID:HibernantBear,项目名称:pyNastran,代码行数:18,代码来源:opg_Objects.py

示例13: __init__

# 需要导入模块: from pyNastran.op2.resultObjects.op2_Objects import ScalarObject [as 别名]
# 或者: from pyNastran.op2.resultObjects.op2_Objects.ScalarObject import __init__ [as 别名]
    def __init__(self, data_code, is_sort1, isubcase, dt):
        ScalarObject.__init__(self, data_code, isubcase)
        self.nx = {}
        self.ny = {}
        self.txy = {}
        self.angle = {}
        self.majorP = {}
        self.minorP = {}
        self.tmax = {}
        self.ovm = {}

        self.elemName = {}
        self.eids = {}

        self.dt = dt
        if is_sort1:
            if dt is not None:
                self.add = self.add_sort1
        else:
            assert dt is not None
            self.add = self.addSort2
开发者ID:sukhbinder,项目名称:cyNastran,代码行数:23,代码来源:ogs_surfaceStresses.py

示例14: __init__

# 需要导入模块: from pyNastran.op2.resultObjects.op2_Objects import ScalarObject [as 别名]
# 或者: from pyNastran.op2.resultObjects.op2_Objects.ScalarObject import __init__ [as 别名]
 def __init__(self, data_code, isubcase, apply_data_code=True):
     ScalarObject.__init__(self, data_code, isubcase, apply_data_code=apply_data_code)
开发者ID:sukhbinder,项目名称:cyNastran,代码行数:4,代码来源:oes_objects.py


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