• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Python oes_objects.StrainObject类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Python中pyNastran.op2.tables.oes_stressStrain.real.oes_objects.StrainObject的典型用法代码示例。如果您正苦于以下问题:Python StrainObject类的具体用法?Python StrainObject怎么用?Python StrainObject使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



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

示例1: __init__

    def __init__(self, data_code, is_sort1, isubcase, dt):
        StrainObject.__init__(self, data_code, isubcase)
        self.eType = {}

        self.code = [self.format_code, self.sort_code, self.s_code]
        if self.code in [[1, 0, 0], [1, 0, 1]]:
            self.e1 = {}
            self.e2 = {}
            self.e3 = {}
            self.e4 = {}
            self.axial = {}
            self.emax = {}
            self.emin = {}
            #self.MS_tension = {}
            #self.MS_compression = {}
        elif self.code == [1, 0, 10]:
            self.e1 = {}
            self.e2 = {}
            self.e3 = {}
            self.e4 = {}
            self.axial = {}
            self.emax = {}
            self.emin = {}
            self.MS_tension = {}
            self.MS_compression = {}
        else:
            raise RuntimeError("Invalid Code: barStrain - get the format/sort/stressCode=%s" % (self.code))

        if is_sort1:
            if dt is not None:
                self.add_new_eid = self.add_new_eid_sort1
        else:
            assert dt is not None
            self.add_new_eid = self.add_new_eid_sort2
开发者ID:umvarma,项目名称:pynastran,代码行数:34,代码来源:oes_bars.py


示例2: __init__

    def __init__(self, data_code, is_sort1, isubcase, dt):
        StrainObject.__init__(self, data_code, isubcase)

        self.eType = {}
        self.code = [self.format_code, self.sort_code, self.s_code]
        self.e11 = {}
        self.e22 = {}
        self.e12 = {}
        self.e1z = {}
        self.e2z = {}
        self.angle = {}
        self.majorP = {}
        self.minorP = {}

        if self.code == [1, 0, 14]:
            self.evmShear = {}
            assert self.isVonMises() == False
        else:
            raise RuntimeError("Invalid Code: compositePlateStrain - get the format/sort/stressCode=%s" % (self.code))

        self.dt = dt
        if is_sort1:
            if dt is not None:
                self.add = self.add_sort1
                self.add_new_eid = self.add_new_eid_sort1
        else:
            assert dt is not None
            self.add = self.addSort2
            self.add_new_eid = self.add_new_eid_sort2
开发者ID:umvarma,项目名称:pynastran,代码行数:29,代码来源:oes_compositePlates.py


示例3: __init__

    def __init__(self, data_code, is_sort1, isubcase, dt):
        StrainObject.__init__(self, data_code, isubcase)

        self.eType = {}
        self.code = [self.format_code, self.sort_code, self.s_code]
        self.e11 = {}
        self.e22 = {}
        self.e12 = {}
        self.e1z = {}
        self.e2z = {}
        self.angle = {}
        self.majorP = {}
        self.minorP = {}

        if self.code == [1, 0, 14]:
            self.evmShear = {}
            assert self.is_von_mises() == False, 'format/sort/stressCode=%s bits=%s' % (self.code, self.stress_bits)
        else:
            raise RuntimeError('Invalid Code: compositePlateStrain - get the format/sort/stressCode=%s bits=%s' % (self.code, self.stress_bits))

        self.dt = dt
        if is_sort1:
            if dt is not None:
                self.add = self.add_sort1
                self.add_new_eid = self.add_new_eid_sort1
        else:
            assert dt is not None, dt
            raise NotImplementedError('SORT2')
开发者ID:ClaesFredo,项目名称:pyNastran,代码行数:28,代码来源:oes_compositePlates.py


示例4: __init__

    def __init__(self, data_code, is_sort1, isubcase, dt):
        StrainObject.__init__(self, data_code, isubcase)
        self.eType = {}

        self.code = [self.format_code, self.sort_code, self.s_code]
        self.e1 = {}
        self.e2 = {}
        self.e3 = {}
        self.e4 = {}
        self.axial = {}
开发者ID:HibernantBear,项目名称:pyNastran,代码行数:10,代码来源:oes_bars.py


示例5: __init__

    def __init__(self, data_code, is_sort1, isubcase, dt):
        StrainObject.__init__(self, data_code, isubcase)
        self.eType = {}

        self.code = [self.format_code, self.sort_code, self.s_code]

        self.fiberCurvature = {}
        self.exx = {}
        self.eyy = {}
        self.exy = {}
        self.dt = dt
开发者ID:HibernantBear,项目名称:pyNastran,代码行数:11,代码来源:oes_plates.py


示例6: __init__

    def __init__(self, data_code, is_sort1, isubcase, dt):
        StrainObject.__init__(self, data_code, isubcase)
        self.eType = {}

        self.code = [self.format_code, self.sort_code, self.s_code]
        self.translations = {}
        self.rotations = {}

        if is_sort1:
            if dt is not None:
                self.add_new_eid = self.add_new_eid_sort1
        else:
            assert dt is not None
开发者ID:HibernantBear,项目名称:pyNastran,代码行数:13,代码来源:oes_bush.py


示例7: __init__

    def __init__(self, data_code, is_sort1, isubcase, dt):
        StrainObject.__init__(self, data_code, isubcase)
        self.eType = {}
        self.element_name = self.data_code["element_name"]
        self.code = [self.format_code, self.sort_code, self.s_code]
        self.strain = {}

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


示例8: __init__

    def __init__(self, data_code, is_sort1, isubcase, dt):
        StrainObject.__init__(self, data_code, isubcase)
        self.eType = 'CSHEAR'
        #raise Exception('not supported...CSHEAR strain')
        self.code = [self.format_code, self.sort_code, self.s_code]
        self.maxShear = {}
        self.avgShear = {}
        self.margin = {}

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


示例9: __init__

    def __init__(self, data_code, is_sort1, isubcase, dt):
        StrainObject.__init__(self, data_code, isubcase)
        self.eType = 'CROD'  # {} # 'CROD/CONROD/CTUBE'

        self.code = [self.format_code, self.sort_code, self.s_code]

        self.axial = {}
        self.torsion = {}

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


示例10: __init__

    def __init__(self, data_code, is_sort1, isubcase, dt):
        StrainObject.__init__(self, data_code, isubcase)
        self.eType = {}

        self.code = [self.format_code, self.sort_code, self.s_code]

        self.fiberCurvature = {}
        self.exx = {}
        self.eyy = {}
        self.exy = {}

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


示例11: __init__

    def __init__(self, data_code, is_sort1, isubcase, dt):
        StrainObject.__init__(self, data_code, isubcase)

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

        self.cid = {}  # gridGauss
        self.exx = {}
        self.eyy = {}
        self.ezz = {}
        self.exy = {}
        self.eyz = {}
        self.exz = {}

        #self.dt = dt
        if is_sort1:
            if dt is not None:
                pass
        else:
            assert dt is not None
            raise NotImplementedError('SORT2')
开发者ID:ClaesFredo,项目名称:pyNastran,代码行数:21,代码来源:oes_solids.py


示例12: __init__

    def __init__(self, data_code, is_sort1, isubcase, dt):
        StrainObject.__init__(self, data_code, isubcase)
        self.eType = 'CTRIAX6'

        self.code = [self.format_code, self.sort_code, self.s_code]
        self.radial = {}
        self.azimuthal = {}
        self.axial = {}
        self.shear = {}
        self.emax = {}
        self.ems = {}
        self.evm = {}

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


示例13: __init__

    def __init__(self, data_code, is_sort1, isubcase, dt):
        StrainObject.__init__(self, data_code, isubcase)
        self.eType = "CBEAM"  # {} # 'CBEAM/CONBEAM'

        self.code = [self.format_code, self.sort_code, self.s_code]

        self.xxb = {}
        self.grids = {}
        self.sxc = {}
        self.sxd = {}
        self.sxe = {}
        self.sxf = {}
        self.smax = {}
        self.smin = {}
        self.MS_tension = {}
        self.MS_compression = {}

        if is_sort1:
            if dt is not None:
                # self.add_new_transient = self.add_new_transient
                self.add_new_eid = self.add_new_eid_sort1
                self.add = self.add_sort1
                self.add_new_transient(dt)
开发者ID:HibernantBear,项目名称:pyNastran,代码行数:23,代码来源:oes_beams.py


示例14: __init__

 def __init__(self, data_code, is_sort1, isubcase, dt):
     RealBushArray.__init__(self, data_code, is_sort1, isubcase, dt)
     StrainObject.__init__(self, data_code, isubcase)
开发者ID:EmanueleCannizzaro,项目名称:pyNastran,代码行数:3,代码来源:oes_bush.py


示例15: __init__

 def __init__(self, data_code, is_sort1, isubcase, dt):
     RealCompositePlateArray.__init__(self, data_code, is_sort1, isubcase, dt)
     StrainObject.__init__(self, data_code, isubcase)
开发者ID:EmanueleCannizzaro,项目名称:pyNastran,代码行数:3,代码来源:oes_compositePlates.py


示例16: __init__

 def __init__(self, data_code, is_sort1, isubcase, dt):
     ComplexSolidArray.__init__(self, data_code, is_sort1, isubcase, dt)
     StrainObject.__init__(self, data_code, isubcase)
开发者ID:HibernantBear,项目名称:pyNastran,代码行数:3,代码来源:oes_solids.py


示例17: __init__

 def __init__(self, data_code, is_sort1, isubcase, dt):
     ComplexSpringDamperArray.__init__(self, data_code, is_sort1, isubcase, dt)
     StrainObject.__init__(self, data_code, isubcase)
开发者ID:hurlei,项目名称:pyNastran,代码行数:3,代码来源:oes_springs.py


示例18: __init__

 def __init__(self, data_code, is_sort1, isubcase, dt):
     ComplexShearArray.__init__(self, data_code, is_sort1, isubcase, dt)
     StrainObject.__init__(self, data_code, isubcase)
     assert self.is_strain(), self.stress_bits
开发者ID:hurlei,项目名称:pyNastran,代码行数:4,代码来源:oes_shear.py



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Python oes_objects.StressObject类代码示例发布时间:2022-05-25
下一篇:
Python oes_objects.OES_Object类代码示例发布时间:2022-05-25
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap