本文整理汇总了Python中pyNastran.op2.tables.oes_stressStrain.real.oes_objects.StrainObject.__init__方法的典型用法代码示例。如果您正苦于以下问题:Python StrainObject.__init__方法的具体用法?Python StrainObject.__init__怎么用?Python StrainObject.__init__使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类pyNastran.op2.tables.oes_stressStrain.real.oes_objects.StrainObject
的用法示例。
在下文中一共展示了StrainObject.__init__方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __init__
# 需要导入模块: from pyNastran.op2.tables.oes_stressStrain.real.oes_objects import StrainObject [as 别名]
# 或者: from pyNastran.op2.tables.oes_stressStrain.real.oes_objects.StrainObject import __init__ [as 别名]
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
示例2: __init__
# 需要导入模块: from pyNastran.op2.tables.oes_stressStrain.real.oes_objects import StrainObject [as 别名]
# 或者: from pyNastran.op2.tables.oes_stressStrain.real.oes_objects.StrainObject import __init__ [as 别名]
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
示例3: __init__
# 需要导入模块: from pyNastran.op2.tables.oes_stressStrain.real.oes_objects import StrainObject [as 别名]
# 或者: from pyNastran.op2.tables.oes_stressStrain.real.oes_objects.StrainObject import __init__ [as 别名]
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')
示例4: __init__
# 需要导入模块: from pyNastran.op2.tables.oes_stressStrain.real.oes_objects import StrainObject [as 别名]
# 或者: from pyNastran.op2.tables.oes_stressStrain.real.oes_objects.StrainObject import __init__ [as 别名]
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 = {}
示例5: __init__
# 需要导入模块: from pyNastran.op2.tables.oes_stressStrain.real.oes_objects import StrainObject [as 别名]
# 或者: from pyNastran.op2.tables.oes_stressStrain.real.oes_objects.StrainObject import __init__ [as 别名]
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
示例6: __init__
# 需要导入模块: from pyNastran.op2.tables.oes_stressStrain.real.oes_objects import StrainObject [as 别名]
# 或者: from pyNastran.op2.tables.oes_stressStrain.real.oes_objects.StrainObject import __init__ [as 别名]
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
示例7: __init__
# 需要导入模块: from pyNastran.op2.tables.oes_stressStrain.real.oes_objects import StrainObject [as 别名]
# 或者: from pyNastran.op2.tables.oes_stressStrain.real.oes_objects.StrainObject import __init__ [as 别名]
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
示例8: __init__
# 需要导入模块: from pyNastran.op2.tables.oes_stressStrain.real.oes_objects import StrainObject [as 别名]
# 或者: from pyNastran.op2.tables.oes_stressStrain.real.oes_objects.StrainObject import __init__ [as 别名]
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
示例9: __init__
# 需要导入模块: from pyNastran.op2.tables.oes_stressStrain.real.oes_objects import StrainObject [as 别名]
# 或者: from pyNastran.op2.tables.oes_stressStrain.real.oes_objects.StrainObject import __init__ [as 别名]
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
示例10: __init__
# 需要导入模块: from pyNastran.op2.tables.oes_stressStrain.real.oes_objects import StrainObject [as 别名]
# 或者: from pyNastran.op2.tables.oes_stressStrain.real.oes_objects.StrainObject import __init__ [as 别名]
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
示例11: __init__
# 需要导入模块: from pyNastran.op2.tables.oes_stressStrain.real.oes_objects import StrainObject [as 别名]
# 或者: from pyNastran.op2.tables.oes_stressStrain.real.oes_objects.StrainObject import __init__ [as 别名]
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')
示例12: __init__
# 需要导入模块: from pyNastran.op2.tables.oes_stressStrain.real.oes_objects import StrainObject [as 别名]
# 或者: from pyNastran.op2.tables.oes_stressStrain.real.oes_objects.StrainObject import __init__ [as 别名]
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
示例13: __init__
# 需要导入模块: from pyNastran.op2.tables.oes_stressStrain.real.oes_objects import StrainObject [as 别名]
# 或者: from pyNastran.op2.tables.oes_stressStrain.real.oes_objects.StrainObject import __init__ [as 别名]
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)
示例14: __init__
# 需要导入模块: from pyNastran.op2.tables.oes_stressStrain.real.oes_objects import StrainObject [as 别名]
# 或者: from pyNastran.op2.tables.oes_stressStrain.real.oes_objects.StrainObject import __init__ [as 别名]
def __init__(self, data_code, is_sort1, isubcase, dt):
RealBushArray.__init__(self, data_code, is_sort1, isubcase, dt)
StrainObject.__init__(self, data_code, isubcase)
示例15: __init__
# 需要导入模块: from pyNastran.op2.tables.oes_stressStrain.real.oes_objects import StrainObject [as 别名]
# 或者: from pyNastran.op2.tables.oes_stressStrain.real.oes_objects.StrainObject import __init__ [as 别名]
def __init__(self, data_code, is_sort1, isubcase, dt):
RealCompositePlateArray.__init__(self, data_code, is_sort1, isubcase, dt)
StrainObject.__init__(self, data_code, isubcase)